(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,147732,e=>{"use strict";e.s(["f",0,function(e,t,{signal:r,edges:i}={}){let n,o=null,a=null!=i&&i.includes("leading"),l=null==i||i.includes("trailing"),c=()=>{null!==o&&(e.apply(n,o),n=void 0,o=null)},d=null,u=()=>{null!=d&&clearTimeout(d),d=setTimeout(()=>{d=null,l&&c(),s()},t)},s=()=>{null!==d&&(clearTimeout(d),d=null),n=void 0,o=null},p=function(...e){if(r?.aborted)return;n=this,o=e;let t=null==d;u(),a&&t&&c()};return p.schedule=u,p.cancel=s,p.flush=()=>{c()},r?.addEventListener("abort",s,{once:!0}),p}])},866137,723469,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t],866137);var r=e.i(538167),i=e.i(935251),n=e.i(282446),o=e.i(201542),a=e.i(682142),l=e.i(782937),c=e.i(695881),d=e.i(333350),u=e.i(64412),s=e.i(950771),p=e.i(537989),f=e.i(695203),g=e.i(158662),I=e.i(358273),y=e.i(122124),w=e.i(777638),E=e.i(924776),m=e.i(24638),v=e.i(409628),x=e.i(605781),h=e.i(963722),C=e.i(313983);let D=(0,c.createLogger)("useTrackString");e.s(["f",0,()=>{let e=(0,n.y)(p.f),t=(0,n.y)(s.f),c=(0,n.y)(f.f),L=(0,n.y)(g.f),P=(0,i.usePathname)(),{location:_}=(0,u.f)(),S=(0,m.f)(),k=(0,E.f)()&&void 0!==S,b=(0,r.useCallback)(r=>{let i=(0,a.f)(),n=i?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),d=i?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),u=i?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),s=window.DprSdk?.getGdprConsentOptInsString()??"",p=window.DprSdk?.getCcpaSaleOptInString()??"",f=window.navigator?.globalPrivacyControl??!1,g=(0,h.u)(C.f.FUNCTIONAL_TECHNOLOGY),E=(0,h.u)(C.f.GEOGRAPHICALLY_RELEVANT_ADVERTISING),m=(0,h.u)(C.f.SALE_OF_DATA),x=(0,h.u)(C.f.SENSITIVE_DATA),D=navigator?.cookieEnabled??!1,k=(0,o.getCookie)("partner")||"",b=(0,l.i)(k)??k,T=(0,I.N)(),R=T?.sessionId||"",A=new Date(T?.sessionStartTime||0).toISOString(),F=new Date,O=F.getHours(),N=v.f[F.getDay()]??"",U="article"===e||"video"===e?(0,y.Z)(P??""):(0,y.N)(P??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:U,referrer:document.referrer,locale:t,deviceClass:c,partner:b,sessionId:R,sessionStartTime:A,siteMode:"normal",dayOfWeek:N,hourOfDay:O,regime:u??"",cookiesEnabled:D,gpcSignalOptOut:f,functionalTechnologies:g,geographicallyRelevantAds:E,interestBasedAds:S?.[C.f.INTEREST_BASED_ADS]??null,priv:s,privProducts:p,saleOfDataAuthorization:m,sensitiveDataAuthorization:x,campaign:(0,w.s)(),experimentJoinList:L,weatherMode:"normal",physicalCountry:n??"",physicalState:d??"",wlocCity:_?.city??null,wlocCountry:_?.countryCode??null,wlocState:_?.adminDistrictCode??null,wlocDMA:_?.dmaCd??null,samsungVersion:(0,w.L)(),appVersion:"6bbd4204dd7437768dd9e31d47333d570221fb89".slice(0,10)}},[e,t,c,L,P,_,S]);return(0,r.useCallback)(e=>{if(d.default&&e){if(!k)return void D.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,x.h)(b(e)),D.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){D.error('Hightouch: Event "track-string" failed',{error:e})}}},[k,b])}],723469)},688070,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},647292,e=>{"use strict";let t=(0,e.i(144683).g)("");e.s(["f",0,t])},320209,e=>{"use strict";e.i(199690);var t=e.i(538167),r=e.i(935251),i=e.i(282446),n=e.i(201542),o=e.i(682142),a=e.i(782937),l=e.i(695881),c=e.i(333350),d=e.i(64412),u=e.i(950771),s=e.i(537989),p=e.i(695203),f=e.i(158662),g=e.i(358273),I=e.i(122124),y=e.i(727365),w=e.i(896363),E=e.i(777638),m=e.i(924776),v=e.i(24638),x=e.i(409628),h=e.i(605781),C=e.i(963722),D=e.i(313983);let L=(0,l.createLogger)("useTrackAssetViewed"),P=[],_=null;function S(e){try{(0,h.o)(e),L.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){L.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["c",0,function(e){try{_?.(e)}catch(e){L.error('Hightouch: Event "asset-viewed" failed',e)}},"f",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),l=(0,i.y)(s.f),h=(0,i.y)(u.f),L=(0,i.y)(p.f),_=(0,i.y)(f.f),{location:k}=(0,d.f)(),b=(0,v.f)(),T=(0,m.f)()&&void 0!==b,R=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:c,pos:d,tagsKeyword:u})=>{let s=(0,o.f)(),p=s?.["TWC-GeoIP-Country"]??(0,n.getCookie)("twc-location-country"),f=s?.["TWC-GeoIP-Region"]??(0,n.getCookie)("twc-location-region"),m=s?.["TWC-Privacy"]??(0,n.getCookie)("twc-privacy"),v=window.DprSdk?.getGdprConsentOptInsString()??"",P=window.DprSdk?.getCcpaSaleOptInString()??"",S=window.navigator?.globalPrivacyControl??!1,T=(0,C.u)(D.f.FUNCTIONAL_TECHNOLOGY),R=(0,C.u)(D.f.GEOGRAPHICALLY_RELEVANT_ADVERTISING),A=(0,C.u)(D.f.SALE_OF_DATA),F=(0,C.u)(D.f.SENSITIVE_DATA),O=navigator?.cookieEnabled??!1,N=(0,n.getCookie)("partner")||"",U=(0,a.i)(N)??N,G=(0,g.N)(),$=G?.sessionId||"",z=new Date(G?.sessionStartTime||0).toISOString(),M=new Date,V=M.getHours(),H=x.f[M.getDay()]??"",j="article"===l||"video"===l?(0,I.Z)(e??""):(0,I.N)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:c,pos:String(d),tagsKeyword:u??null,pageId:l??"",schemaVersion:"nextgen",url:j,referrer:document.referrer,locale:h,deviceClass:L,partner:U,sessionId:$,sessionStartTime:z,siteMode:"normal",dayOfWeek:H,hourOfDay:V,regime:m??"",cookiesEnabled:O,gpcSignalOptOut:S,functionalTechnologies:T,geographicallyRelevantAds:R,interestBasedAds:b?.[D.f.INTEREST_BASED_ADS]??null,priv:v,privProducts:P,saleOfDataAuthorization:A,sensitiveDataAuthorization:F,campaign:(0,E.s)(),experimentJoinList:_,weatherMode:"normal",physicalCountry:p??"",physicalState:f??"",wlocCity:k?.city??null,wlocCountry:k?.countryCode??null,wlocState:k?.adminDistrictCode??null,wlocDMA:k?.dmaCd??null,wlocId:k?.placeId??null,wlocFeatureId:k?.featureId??null,wlocTags:k?.tags?.length?(0,w.f)(k.tags):null,wlocType:(0,y.f)(k?.type),samsungVersion:(0,E.L)(),appVersion:"6bbd4204dd7437768dd9e31d47333d570221fb89".slice(0,10)}},[e,l,h,L,_,k,b]);return(0,t.useEffect)(()=>{if(!T||0===P.length)return;let e=P;P=[],e.forEach(S)},[T]),(0,t.useCallback)(e=>{if(!c.default)return;let t=R(e);T?S(t):P.push(t)},[T,R])})();(0,t.useEffect)(()=>(_=e,()=>{_===e&&(_=null)}),[e])}])},630986,e=>{"use strict";var t=e.i(282446),r=e.i(604323);e.s(["f",0,()=>(0,t.y)(r.f)])},328343,680810,562209,e=>{"use strict";var t=e.i(538167),r=e.i(282446),i=e.i(737801),n=e.i(688070);e.s(["f",0,()=>{let e=(0,i.f)(),o=(0,r.y)(n.f);return(0,t.useCallback)((t,r={})=>{if(o)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!t)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!t.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${t.flag_key} - no experiment_key (feature flag only)`);try{let i={...e,newVariant:t.variant||"",newExperiment:t.flag_key,newExperimentKey:t.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,i,r),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${t.flag_key||"unknown"}:${t.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[e,o])}],328343);var o=e.i(199690),a=e.i(201542),l=e.i(682142),c=e.i(782937),d=e.i(695881),u=e.i(333350),s=e.i(64412),p=e.i(950771),f=e.i(537989),g=e.i(695203),I=e.i(358273),y=e.i(777638),w=e.i(924776),E=e.i(24638),m=e.i(963722),v=e.i(313983),x=e.i(409628),h=e.i(605781);let C=(0,d.createLogger)("useTrackEnrolledInExperiment"),D=[];function L(e){try{(0,h.P)(e),C.info(`Hightouch: Event "enrolled-in-experiment" tracked - ${e.newExperiment}:${e.newVariant}`)}catch(e){C.error("Hightouch: Failed to track enrolled-in-experiment",e)}}e.s(["f",0,()=>{let e=(0,r.y)(f.f),i=(0,r.y)(p.f),o=(0,r.y)(g.f),d=(0,r.y)(n.f),{location:h}=(0,s.f)(),C=(0,E.f)(),P=(0,w.f)()&&void 0!==C,_=(0,t.useCallback)((t,r)=>{let n=(0,l.f)(),d=n?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),u=n?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),s=n?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),p=window.DprSdk?.getGdprConsentOptInsString()??"",f=window.DprSdk?.getCcpaSaleOptInString()??"",g=window.navigator?.globalPrivacyControl??!1,w=(0,m.u)(v.f.FUNCTIONAL_TECHNOLOGY),E=(0,m.u)(v.f.GEOGRAPHICALLY_RELEVANT_ADVERTISING),C=navigator?.cookieEnabled??!1,D=(0,a.getCookie)("partner")||"",L=(0,c.i)(D)??D,P=(0,I.N)(),_=P?.sessionId||"",S=P?.sessionStartTime||0,k=new Date,b=k.getHours(),T=x.f[k.getDay()]??"",R=-k.getTimezoneOffset()/60;return{newExperiment:t.flag_key,newVariant:t.variant||"",newExperimentReceivedAt:Date.now(),experimentJoinList:r,pageId:e??"",referrer:document.referrer,locale:i,deviceClass:o,partner:L,sessionId:_,sessionStartTime:S,dayOfWeek:T,hourOfDay:b,deviceTimeZone:R,regime:s??"",cookiesEnabled:C,gpcSignalOptOut:g,functionalTechnologies:w,geographicallyRelevantAds:E,priv:p,privProducts:f,campaign:(0,y.s)()??void 0,weatherMode:"normal",physicalCountry:d??"",physicalState:u??"",wlocCity:h?.city??null,wlocCountry:h?.countryCode??null,wlocState:h?.adminDistrictCode??null,wlocDMA:h?.dmaCd??null,samsungVersion:(0,y.L)(),appVersion:"6bbd4204dd7437768dd9e31d47333d570221fb89".slice(0,10)}},[e,i,o,h]);return(0,t.useEffect)(()=>{if(!P||0===D.length)return;let e=D;D=[],e.forEach(L)},[P]),(0,t.useCallback)((e,t)=>{if(!u.default||d||!e.experiment_key)return;let r=_(e,t);P?L(r):D.push(r)},[P,d,_])}],680810);var P=e.i(553329);let _="production"!==o.default.env.VERCEL_TARGET_ENV,S=new Set;e.s(["y",0,function(){S.clear()},"B",0,function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){_&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){_&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(S.has(i)){_&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}S.add(i);let n={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",time:Date.now(),event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:_?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,P.f)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0}));r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):_&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}],562209)},343277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationPointByPlaceId=l,r.getLocationPointByGeocode=c,r.getLocationPointByLocIdParam=d,r.getLocationPointByIcao=u,r.getLocationPointByCanonicalCityId=s,r.getLocationPointByFeatureId=p;let i=e.r(630585),n=e.r(678651),o=e.r(414655),a=e.r(330091);async function l(e,t){let r=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({placeId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(a)}async function c(e,t,r){let a=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({geocode:e,language:t,locationType:r?.locationType})),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(l)}async function d(e,t){let r=(0,a.testLocId)(e);if(!r)throw Error("Not a valid locId or type supported");let l=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(c)}async function u(e,t){let r=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({icaoCode:e,language:t,locationType:"airport"})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(a)}async function s(e,t){let r=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(a)}async function p(e,t,r){let a=(0,n.urlFrom)((0,i.getLocationPointUrlConfig)({featureId:e,language:t,locationType:r?.locationType})),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400,tags:[`featureId:${e}`]}});return(0,o.handleFetchResponse)(l)}},630585,(e,t,r)=>{"use strict";e.i(199690),Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationSearchUrlConfig=function({query:e,language:t,locationType:r,countryCode:i,adminDistrictCode:n}){let o={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(o.locationType=r),i&&(o.countryCode=i),n&&(o.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:o}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:i,featureId:n,icaoCode:o,locationType:a,language:l}){let c={language:l,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(c.geocode=e),t&&(c.locid=t),r&&(c.placeid=r),i&&(c.canonicalCityId=i),n&&(c.featureId=n),o&&(c.icaoCode=o),a&&(c.locationType=a),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:c}}},330091,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.ErrInvalidFeatureId=r.ErrInvalidCanonicalCityID=r.ErrInvalidPlaceID=r.ErrInvalidPartialLocID9=r.ErrInvalidPartialLocID1=r.ErrInvalidUSZipCode=r.ErrInvalidLocID=r.ErrInvalidLatOrLong=r.ErrInvalidGeocode=r.ErrInvalid=r.LocationError=r.isMapboxFeatureId=r.MAPBOX_FEATURE_TYPES=r.RegExpUuidFeatureId=r.RegExpFeatureId=r.RegExpCanonicalCityID=r.RegExpPlaceID=r.RegExpPartialLocID9=r.RegExpPartialLocID1=r.RegExpUSZipCode=r.RegExpLocID=r.RegExpGeocode=r.LocationTypeMap=r.LocationType=void 0,r.valid=c,r.normalized=function(e,t){switch(t){case i.Geocode:return f(e);case i.LocID:return I(e);case i.USZipCode:return y(e);case i.PartialLocID1:return w(e);case i.PartialLocID9:return E(e);case i.PlaceID:return m(e);case i.CanonicalCityID:return v(e);case i.FeatureId:return x(e);default:return e}},r.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=p(t),d))if(e.regex.test(t))try{return{type:e.type,locId:e.normalize(t)}}catch{break}return null},r.locIdFromSeoPhrase=p,r.normalizedGeocode=f,r.parseLatLonFromGeocode=function(e){let t=f(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let i=parseFloat(t[0].trim()),n=parseFloat(t[1].trim());if(isNaN(i)||isNaN(n))throw r.ErrInvalidGeocode;return[i,n]},r.normalizeLatOrLong=g,r.normalizedLocID=I,r.normalizedUSZipCode=y,r.normalizedPartialLocID1=w,r.normalizedPartialLocID9=E,r.normalizedPlaceID=m,r.normalizedCanonicalCityID=v,r.normalizedFeatureId=x,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(n=i||(r.LocationType=i={}))[n.Geocode=0]="Geocode",n[n.LocID=1]="LocID",n[n.USZipCode=2]="USZipCode",n[n.PartialLocID1=3]="PartialLocID1",n[n.PartialLocID9=4]="PartialLocID9",n[n.PlaceID=5]="PlaceID",n[n.CanonicalCityID=6]="CanonicalCityID",n[n.FeatureId=7]="FeatureId",r.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId",FeatureId:"featureId"},r.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let o=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27|28))?(:\w{2})?$/;r.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27|28):\w{2}$/,r.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,r.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,r.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,r.RegExpPlaceID=/^([0-9a-f]){32,}$/,r.RegExpCanonicalCityID=r.RegExpPlaceID,r.RegExpFeatureId=/^(place|locality|neighborhood|postcode|poi|ski|airport|address|district|region|country)\.[\w.]+$/i,r.RegExpUuidFeatureId=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,r.MAPBOX_FEATURE_TYPES=["place","locality","neighborhood","postcode","address","district","region","country"];let a=RegExp(`^(${r.MAPBOX_FEATURE_TYPES.join("|")})\\.[\\w.]+$`,"i");r.isMapboxFeatureId=e=>a.test(e);class l extends Error{constructor(e){super(e),this.name="LocationError"}}function c(e,t){switch(t){case i.Geocode:return r.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case i.LocID:return r.RegExpLocID.test(e);case i.USZipCode:return r.RegExpUSZipCode.test(e);case i.PartialLocID1:return r.RegExpPartialLocID1.test(e);case i.PartialLocID9:return r.RegExpPartialLocID9.test(e);case i.PlaceID:return r.RegExpPlaceID.test(e);case i.CanonicalCityID:return r.RegExpCanonicalCityID.test(e);case i.FeatureId:return r.RegExpFeatureId.test(e)||r.RegExpUuidFeatureId.test(e);default:return!1}}r.LocationError=l,r.ErrInvalid=new l("location: invalid location"),r.ErrInvalidGeocode=new l("location: invalid location: invalid geocode"),r.ErrInvalidLatOrLong=new l("location: invalid location: invalid latitude or longitude"),r.ErrInvalidLocID=new l("location: invalid location: invalid locid"),r.ErrInvalidUSZipCode=new l("location: invalid location: invalid US zip code"),r.ErrInvalidPartialLocID1=new l("location: invalid location: invalid partial locid type 1"),r.ErrInvalidPartialLocID9=new l("location: invalid location: invalid partial locid type 9"),r.ErrInvalidPlaceID=new l("location: invalid location: invalid placeid"),r.ErrInvalidCanonicalCityID=new l("location: invalid location: invalid canonical city ID"),r.ErrInvalidFeatureId=new l("location: invalid location: invalid featureId");let d=[{regex:r.RegExpFeatureId,type:r.LocationTypeMap.FeatureId,normalize:x},{regex:r.RegExpUuidFeatureId,type:r.LocationTypeMap.FeatureId,normalize:x},{regex:r.RegExpGeocode,type:r.LocationTypeMap.Geocode,normalize:f},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:I},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:y},{regex:r.RegExpPartialLocID1,type:r.LocationTypeMap.PartialLocID1,normalize:w},{regex:r.RegExpPartialLocID9,type:r.LocationTypeMap.PartialLocID9,normalize:E},{regex:r.RegExpPlaceID,type:r.LocationTypeMap.PlaceID,normalize:m},{regex:r.RegExpCanonicalCityID,type:r.LocationTypeMap.CanonicalCityID,normalize:v}],u=/-/,s=/\s/;function p(e){if(r.RegExpUuidFeatureId.test(e))return e;let t=e;if(o.test(e))if(u.test(e)){let r=e.split("-").pop();r&&(t=r)}else if(s.test(e)){let r=e.split(" ").pop();r&&(t=r)}else{let r=e.split("+").pop();r&&(t=r)}return t}function f(e){if(""===e||!c(e,i.Geocode))throw r.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw r.ErrInvalidGeocode;try{for(let e=0;e{"use strict";e.s(["ExperimentContext",()=>v,"ExperimentProvider",()=>x,"useExperimentContext",()=>h],742436);var t=e.i(199690),r=e.i(458201),i=e.i(538167),n=e.i(333350),o=e.i(282446),a=e.i(328343),l=e.i(680810),c=e.i(158662),d=e.i(528600),u=e.i(562209),s=e.i(283366),p=e.i(219750),f=e.i(441535),g=e.i(830460);e.i(617163);let I={next:[{experimentName:"cw15000",variantName:"control"}],htmx:[{experimentName:"cw15000",variantName:"a"}]},y="wx.siteExperiment",w=e=>e.metadata?.[y]===!0,E=e=>w(e)?`${e.flag_key}:${e.variant??""}`:e.flag_key;e.s(["c",0,w,"o",0,function(e){return(Object.hasOwn(I,e)?I[e]:[]).map(e=>({...e})).map(({experimentName:e,variantName:t})=>({flag_key:e,variant:t,experiment_key:e,metadata:{[y]:!0}}))},"C",0,E],569014);let m="production"!==t.default.env.VERCEL_TARGET_ENV,v=(0,i.createContext)(null),x=({children:e})=>{let t=(0,a.f)(),I=(0,l.f)(),y=(0,o.F)(c.f),{user:x}=(0,d.f)(),[h,C]=(0,i.useState)(!1),[,D]=(0,i.useState)(0),L=(0,i.useRef)(void 0),P=(0,i.useRef)(void 0);L.current=x.userID||void 0;let _=n.default?window.__wxExperimentDeviceId:void 0;P.current=_||x.anonId||void 0,m&&_&&x.anonId&&_!==x.anonId&&console.warn("[Experiment] Device ID divergence — bucketing on the early ID.",{earlyDeviceId:_,useUserAnonId:x.anonId});let S=(0,i.useRef)(new Set),k=(0,i.useRef)({}),b=(0,i.useCallback)(e=>{if(void 0===e.variant&&e.metadata?.default===!0){m&&console.debug(`[Experiment] Skipping unassigned exposure for ${e.flag_key}`);return}let r=(0,s.p)(e.flag_key),i=void 0!==r?{...e,variant:r}:e,n=`${i.flag_key}::${i.variant??""}`;if(S.current.has(n))return;let o=()=>{if(S.current.has(n))return;S.current.add(n);let[e]=JSON.parse((0,f.f)({[i.flag_key]:{key:i.variant}}));if(e){let t=E(i);k.current={...k.current,[t]:e},y(JSON.stringify(Object.values(k.current))),(0,s.W)(t,e)}try{let e=p.f[i.flag_key];t(e?{...i,flag_key:e}:i),w(i)||(0,u.B)({exposure:i,userId:L.current,deviceId:P.current});let r=Object.values(k.current);I(i,r.length>0?JSON.stringify(r):null)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}};window.mParticle?.isInitialized?.()?o():window.mParticle?.ready?.(o)},[t,I,y]),T=function(){let[e,t]=(0,i.useState)(()=>n.default?window.__wxExperimentClient??null:null);return(0,i.useEffect)(()=>{if(e||!n.default)return;let r=(0,g.F)(!0)??null;r?t(r):m&&console.debug("[Experiment] No client available (no API key?) — variants will use fallbacks")},[e]),e}();return(0,i.useEffect)(()=>{if(!n.default)return;window.__wxExposureSink=b;let e=window.__wxExposureQueue;if(e?.length)for(let t of(window.__wxExposureQueue=[],e))b(t);return()=>{window.__wxExposureSink===b&&(window.__wxExposureQueue??=[],window.__wxExposureSink=e=>{window.__wxExposureQueue?.push(e)})}},[b]),(0,i.useEffect)(()=>{let e=!n.default||!1!==window.__wxNeedsRemoteExperiments;(async()=>{if(!T)return;if(!e){m&&console.debug("[Experiment] All flags are local-mode — skipping remote fetch"),C(!0);return}let t=P.current;if(!t&&!x.userID){m&&console.debug("[Experiment] No user identifier available"),C(!0);return}let r={device_id:t,...x.userID?{user_id:x.userID}:{},user_properties:{}};m&&console.debug("[Experiment] Fetching experiments from API for user:",r);try{await T.fetch(r)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{C(!0)}})()},[T,x.anonId,x.userID]),(0,i.useEffect)(()=>{if(!T)return;let e=P.current;(e||x.userID)&&T.setUser({device_id:e,...x.userID?{user_id:x.userID}:{}})},[T,x.anonId,x.userID]),(0,i.useEffect)(()=>{S.current.clear(),(0,u.y)(),(0,s.z)(),k.current={},y(null),D(e=>e+1);let e=(0,s.f)();Object.keys(e).length>0&&(k.current=e,y(JSON.stringify(Object.values(e))))},[x.userID,y]),(0,r.jsx)(v.Provider,{value:{client:T,variant:(e,t)=>{if(!T)return t;let r=T.variant(e,t);return m&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!T)return Promise.resolve();if(!e){let e=P.current;if(e||x.userID){let t={device_id:e,...x.userID?{user_id:x.userID}:{},user_properties:{}};return T.fetch(t)}}return T.fetch(e)},isFetchComplete:h},children:e})},h=()=>{let e=(0,i.useContext)(v);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e}},219750,441535,e=>{"use strict";e.s(["f",0,{"homepage-video-player-desktop-web":"cw13124",cw14363:"cw14363",cw14385:"cw14385","tenday-upsell-gate":"cw14461"}],219750),e.s(["f",0,function(e){return JSON.stringify(Object.entries(e).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`}))}],441535)},283366,e=>{"use strict";e.s(["p",()=>m,"f",()=>g,"z",()=>v,"I",()=>x,"W",()=>I]);var t=e.i(538167),r=e.i(695881),i=e.i(333350),n=e.i(358273),o=e.i(742436);let a=(0,r.createLogger)("useExposure"),l="wxu-exp-exposed:",c=new Set,d=()=>{try{return(0,n.N)()?.sessionId||null}catch{return null}},u=(e,t)=>{for(let r=localStorage.length-1;r>=0;r--){let i=localStorage.key(r);i?.startsWith(e)&&i!==e+t&&localStorage.removeItem(i)}},s=e=>{try{let t=localStorage.getItem(l+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},p=(e,t)=>{try{u(l,e),localStorage.setItem(l+e,JSON.stringify([...t]))}catch{}},f="wxu-exp-joinlist:",g=()=>{let e=d();if(!e)return{};try{let t=localStorage.getItem(f+e);return t?JSON.parse(t):{}}catch{return{}}},I=(e,t)=>{let r=d();if(r)try{u(f,r);let i=g();localStorage.setItem(f+r,JSON.stringify({...i,[e]:t}))}catch{}},y=e=>{if(0===c.size)return;let t=s(e);for(let e of c)t.add(e);p(e,t),c.clear()},w=e=>{let t=d();return t?(y(t),s(t).has(e)):c.has(e)},E=new Map;function m(e){return E.get(e)}function v(){c.clear(),E.clear();let e=d();if(e)try{localStorage.removeItem(l+e)}catch{}}function x(e,r){let n=void 0!==r,l=r?.variant,u=(0,t.useContext)(o.ExperimentContext);(0,t.useEffect)(()=>{if(!i.default||!u||w(e)||n&&void 0===l)return;let{client:t,isFetchComplete:r}=u;if(!t||!r)return;let o=()=>{if(!w(e)){(e=>{let t=d();if(!t)return c.add(e);y(t);let r=s(t);r.add(e),p(t,r)})(e),void 0!==l&&E.set(e,l);try{t.exposure(e)}catch(t){(e=>{let t=d();if(!t)return c.delete(e);let r=s(t);r.delete(e)&&p(t,r)})(e),void 0!==l&&E.delete(e),a.error("Failed to track exposure:",t)}}};window.mParticle?.isInitialized?.()?o():window.mParticle?.ready?.(o)},[u,e,n,l])}},617163,e=>{"use strict";e.i(199690),e.s([])},456215,e=>{"use strict";e.s(["x",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"U",0,function(e){return"ios"===e||e.endsWith("-ios")}])},846871,e=>{"use strict";var t=e.i(458201),r=e.i(294237),i=e.i(632137);let n=(0,r.f)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}});e.s(["f",0,({className:e,size:r,variant:o,label:a})=>(0,t.jsx)("div",{className:(0,i.f)(n({size:r,variant:o}),e),"aria-label":a})])},579310,e=>{"use strict";var t=e.i(144683),r=e.i(889753);let i=(0,e.i(532923).f)(r.u,e=>e.prop("locations")),n=(0,t.g)(e=>e(r.u)?.locations||[]);(0,t.g)(e=>{let t=e(n);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,t.g)(e=>(e(n)?.length||0)>0),e.s(["R",0,i,"r",0,n])},436028,e=>{"use strict";e.s(["f",0,e=>Array.isArray(e)&&e.length>0])}]);