(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,198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(533760),a=e.i(405341),s=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,n]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,a.getCjConfig)();e&&(0,s.isCjEligible)()&&n(e)},[]),e)?(0,t.jsx)(i.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";var t=e.i(288906);e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number(t.default.env.NEXT_PUBLIC_CJ_ENTERPRISE_ID?.trim()),r=t.default.env.NEXT_PUBLIC_CJ_TAG_ID?.trim();return Number.isInteger(e)&&!(er.US_REGIMES.includes((0,r.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),i=e.i(695881),a=e.i(553329),s=e.i(405341),n=e.i(829065);let o=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:c})=>{let u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||u.current||!i)return;let t=(0,s.getCjConfig)();t&&(0,n.isCjEligible)()&&(u.current=!0,(0,a.tryCatch)((async()=>{var e;let a,n,o;return e={orderId:i,amount:l,actionTrackerId:c?s.CJ_ACTION_ID_TRIAL_SIGNUP:s.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(a=window).cj=a.cj||{},a.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(n=document.createElement("script")).id="cjapitag",n.async=!0,n.src=t.tagSrc,o=document.getElementsByTagName("script")[0],void(o?.parentNode?o.parentNode.insertBefore(n,o):document.body.appendChild(n))})()).then(({error:e})=>{e&&o.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,c])}],560542)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),i=e.i(458001),a=e.i(394481),s=e.i(663333),n=e.i(849177),o=e.i(889753),l=e.i(5397),c=e.i(21121);e.i(647872);var u=e.i(494889),d=e.i(928083),m=e.i(624432),g=e.i(739971),p=e.i(688070),f=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[i.cscCountryCodeAtom,e.cscCountryCode],[a.privacyRegimeAtom,e.privacyRegime],[s.deviceClassAtom,e.deviceClass],[o.userTierAtom,e.userTier],[n.adsDisabledAtom,e.adsDisabled],[l.showAdminHeaderAtom,e.showAdminHeader],[c.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[u.newsHubEnabledAtom,e.newsHubEnabled],[d.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[m.contentSearchUniversalAtom,e.contentSearchUniversal],[g.subscriptionsEnabledAtom,e.subscriptionsEnabled],[f.webViewPlatformAtom,e.webViewPlatform],[p.isWebViewOnlyAtom,e.isWebViewOnly]]),null)])},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:i}={}){let a,s=null,n=null!=i&&i.includes("leading"),o=null==i||i.includes("trailing"),l=()=>{null!==s&&(e.apply(a,s),a=void 0,s=null)},c=null,u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,o&&l(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),a=void 0,s=null},m=function(...e){if(r?.aborted)return;a=this,s=e;let t=null==c;u(),n&&t&&l()};return m.schedule=u,m.cancel=d,m.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),m}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let s=e.r(276247),n=e.r(788443),o=e.r(955011)},866137,723469,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["adBlockAtom",0,t],866137);var r=e.i(247865),i=e.i(725287),a=e.i(546446),s=e.i(540768),n=e.i(682142),o=e.i(782937),l=e.i(695881),c=e.i(333350),u=e.i(64412),d=e.i(950771),m=e.i(537989),g=e.i(695203),p=e.i(158662),f=e.i(358273),A=e.i(122124),C=e.i(777638),S=e.i(924776),w=e.i(409628),b=e.i(605781);let v=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,a.useAtomValue)(m.pageIdAtom),t=(0,a.useAtomValue)(d.pageLocaleAtom),l=(0,a.useAtomValue)(g.deviceClassAtom),I=(0,a.useAtomValue)(p.experimentJoinListAtom),y=(0,i.usePathname)(),{location:E}=(0,u.useLocation)(),h=(0,S.useIsHightouchReady)(),k=(0,r.useCallback)(r=>{let i=(0,n.getCICookie)(),a=i?.["TWC-GeoIP-Country"]??(0,s.getCookie)("twc-location-country"),c=i?.["TWC-GeoIP-Region"]??(0,s.getCookie)("twc-location-region"),u=i?.["TWC-Privacy"]??(0,s.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",m=window.DprSdk?.getCcpaSaleOptInString()??"",g=window.navigator?.globalPrivacyControl??!1,p=d?.includes("functional-technology")??!1,S=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,b=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,v=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),h=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),k=navigator?.cookieEnabled??!1,_=(0,s.getCookie)("partner")||"",P=(0,o.getPartnerByPattern)(_)??_,T=(0,f.getMetricsSession)(),D=T?.sessionId||"",R=new Date(T?.sessionStartTime||0).toISOString(),N=new Date,O=N.getHours(),U=w.WEEK_DAYS[N.getDay()]??"",L="article"===e||"video"===e?(0,A.stripLastPartOfSlug)(y??""):(0,A.getAnonymizedPath)(y??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:L,referrer:document.referrer,locale:t,deviceClass:l,partner:P,sessionId:D,sessionStartTime:R,siteMode:"normal",dayOfWeek:U,hourOfDay:O,regime:u??"",cookiesEnabled:k,gpcSignalOptOut:g,functionalTechnologies:p,geographicallyRelevantAds:S,interestBasedAds:b,priv:d,privProducts:m,saleOfData:v,saleOfDataAuthorization:v,sensitiveDataAuthorization:h,campaign:(0,C.getCampaign)(),experimentJoinList:I,weatherMode:"normal",physicalCountry:a??"",physicalState:c??"",wlocCity:E?.city??null,wlocCountry:E?.countryCode??null,wlocState:E?.adminDistrictCode??null,wlocDMA:E?.dmaCd??null,samsungVersion:(0,C.getSamsungVersion)(),appVersion:"1859ba795b654d4c24c5e39bfab4d221ffa72c91".slice(0,10)}},[e,t,l,I,y,E]);return(0,r.useCallback)(e=>{if(c.default&&e){if(!h)return void v.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,b.trackTrackString)(k(e)),v.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){v.error('Hightouch: Event "track-string" failed',{error:e})}}},[h,k])}],723469)},800462,50727,e=>{"use strict";var t=e.i(284007);let r=(0,t.atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,r],800462);let i=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,i],50727)},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,i])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},320209,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),i=e.i(546446),a=e.i(540768),s=e.i(682142),n=e.i(782937),o=e.i(695881),l=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),m=e.i(695203),g=e.i(158662),p=e.i(358273),f=e.i(122124),A=e.i(777638),C=e.i(924776),S=e.i(409628),w=e.i(605781);let b=(0,o.createLogger)("useTrackAssetViewed"),v=[],I=null;function y(e){try{(0,w.trackAssetViewed)(e),b.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){b.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{I?.(e)}catch(e){b.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),o=(0,i.useAtomValue)(d.pageIdAtom),w=(0,i.useAtomValue)(u.pageLocaleAtom),b=(0,i.useAtomValue)(m.deviceClassAtom),I=(0,i.useAtomValue)(g.experimentJoinListAtom),{location:E}=(0,c.useLocation)(),h=(0,C.useIsHightouchReady)(),k=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:l,pos:c,tagsKeyword:u})=>{let d=(0,s.getCICookie)(),m=d?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),g=d?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),C=d?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),v=window.DprSdk?.getGdprConsentOptInsString()??"",y=window.DprSdk?.getCcpaSaleOptInString()??"",h=window.navigator?.globalPrivacyControl??!1,k=v?.includes("functional-technology")??!1,_=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,P=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,T=navigator?.cookieEnabled??!1,D=(0,a.getCookie)("partner")||"",R=(0,n.getPartnerByPattern)(D)??D,N=(0,p.getMetricsSession)(),O=N?.sessionId||"",U=new Date(N?.sessionStartTime||0).toISOString(),L=new Date,V=L.getHours(),M=S.WEEK_DAYS[L.getDay()]??"",j="article"===o||"video"===o?(0,f.stripLastPartOfSlug)(e??""):(0,f.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:l,pos:String(c),tagsKeyword:u??null,pageId:o??"",url:j,referrer:document.referrer,locale:w,deviceClass:b,partner:R,sessionId:O,sessionStartTime:U,siteMode:"normal",dayOfWeek:M,hourOfDay:V,regime:C??"",cookiesEnabled:T,gpcSignalOptOut:h,functionalTechnologies:k,geographicallyRelevantAds:_,interestBasedAds:P,priv:v,privProducts:y,campaign:(0,A.getCampaign)(),experimentJoinList:I,weatherMode:"normal",physicalCountry:m??"",physicalState:g??"",wlocCity:E?.city??null,wlocCountry:E?.countryCode??null,wlocState:E?.adminDistrictCode??null,wlocDMA:E?.dmaCd??null,samsungVersion:(0,A.getSamsungVersion)(),appVersion:"1859ba795b654d4c24c5e39bfab4d221ffa72c91".slice(0,10)}},[e,o,w,b,I,E]);return(0,t.useEffect)(()=>{if(!h||0===v.length)return;let e=v;v=[],e.forEach(y)},[h]),(0,t.useCallback)(e=>{if(!l.default)return;let t=k(e);h?y(t):v.push(t)},[h,k])})();(0,t.useEffect)(()=>(I=e,()=>{I===e&&(I=null)}),[e])}])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,a=0,s=()=>"function"==typeof window.mParticle?.init,n=()=>{void 0!==t&&(clearInterval(t),t=void 0)},o=()=>{if(!s()||(n(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},l=()=>{void 0===t&&(a=0,t=setInterval(()=>{a+=100,o(),a>=3e4&&n()},100))},c=e=>(i.add(e),l(),()=>{i.delete(e)}),u=e=>s()?(e(),()=>{}):c(e),d=e=>s()?()=>{}:c(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,s,m),"watchForSdkLoad",0,e=>{if("u"{};if(s())return o(),()=>{};l();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>o();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let g=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),f=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(g,p,f)],947118)},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),a=e.i(293163),s=e.i(160317),n=e.i(382602),o=e.i(540768),l=e.i(310847),c=e.i(333350),u=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:m,subscriptionTier:g}}=(0,u.useUser)(),[p,f]=(0,t.useState)(!1),[A,C]=(0,t.useState)(!1),S=m??!1,w=(0,s.getSubscriptionTierKey)(g),b=(0,i.useAtomValue)(n.userFirstNameAtom),v=(0,i.useAtomValue)(n.userGenderAtom),I=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),y=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),E=c.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,h=c.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,k=(0,o.getCookie)("subscription")??"",{productID:_=null,expirationDateTime:P=null,transactionDateTime:T=null,firstTransactionDateTime:D=null,autoRenew:R=null,price:N=null,productName:O=null}=(0,a.jwtDecoder)(k)||{},U=(0,t.useMemo)(()=>({premium:S,premiumProductTier:w,premiumExpiration:P,premiumStart:T,premiumFirstTransactionDate:D,premiumProductId:_,premiumProductAutoRenew:R,premiumPrice:N,premiumProductName:O,isRegisteredUser:d||y||!1,isLoggedIn:d,"Amplitude.device_id":I,$Gender:v,$FirstName:b,saleOfDataAuthorization:E,sensitiveDataAuthorization:h,devUser:!1}),[S,w,P,T,D,_,R,N,O,I,d,y,b,v,E,h]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,a.areObjectValuesDefined)(r)&&!p&&f(!0)},[U,p]);let L=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&p&&!A){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),C(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,p,A]);return{userAttributes:U,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let i=window.mParticle?.Identity?.getCurrentUser?.();i?(i.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:L,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},663333,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,r],494889);let i=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,i],928083);let a=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,a],624432),e.s([],647872)},849177,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsDisabledAtom",0,t])},458001,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["cscCountryCodeAtom",0,t])},456215,e=>{"use strict";e.s(["isSnowCastWebView",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"isWebViewIos",0,function(e){return"ios"===e||e.endsWith("-ios")}])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:a,page:s,onUpdateData:n,onSetPageData:o}){let{updateComponentData:l,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=n||l,m=o||c;return(0,t.useEffect)(()=>{if(a)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),d(e,{...a,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,a,d]),(0,t.useEffect)(()=>{s&&!u.current&&(i.lifecycle("Setting page metadata",{title:s.title,assetName:s.assetName,collection:s.collection}),m({...s,_updatedAt:new Date().toISOString()}),u.current=!0)},[s,m]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,a]=(0,t.useAtom)(i),s=(0,r.useCallback)((e,t)=>{a(r=>{let i=r?.[e]||{},a="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:a}})},[a]),n=(0,r.useCallback)((e,t)=>{a(r=>{let i=r||{timestamp:new Date().toISOString()},a=i.components||{};if(null===t){let t={...a};return delete t[e],{...i,components:t}}return{...i,components:{...a,[e]:t}}})},[a]),o=(0,r.useCallback)(e=>{s("page",e)},[s]),l=(0,r.useCallback)(e=>{s("route",e)},[s]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&s(e,t)})},[s]);return{debugData:e,updateSection:s,updateComponentData:n,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{a({timestamp:new Date().toISOString()})},[a]),updateRouteInfo:l,updatePageDebug:c}}],609858)},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},45846,e=>{"use strict";e.i(288906);let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},378869,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["emailPreferencesAtom",0,t])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),a=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),s=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,a,"userGenderAtom",0,s])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),a=e.i(310847);let s=Object.freeze({});function n(){let e=(0,t.useSetAtom)(a.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let a=[];t.placeId&&a.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&a.push((0,i.formatGeocode)(t.geocode)),0!==a.length&&e(e=>{let t=e??{};if(!a.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of a)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(a.wxuUserLocationFeatureIdsAtom)??s,o=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,i.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:o,hasResolvedPlaceId:l,recordFeatureId:n()}},"useRecordFeatureId",0,n])},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),a=e.i(889753);let s=(0,e.i(174960).focusAtom)(a.userPreferencesAtom,e=>e.prop("locations")),n=(0,i.atom)(e=>e(a.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(n);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(n)?.length||0)>0),e.s(["userLocationsAtom",0,s,"userLocationsGetAtom",0,n],579310);var o=e.i(310847),l=e.i(247865);let c=Object.freeze([]),u=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(s),a=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):c,[i]),[n,d]=(0,t.useAtom)(o.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(o.wxuUserRecentAddressesAtom),g=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...a.map(e=>e.position),0)+1};e({locations:[...a,r]})},[a,e]),p=(0,l.useCallback)(t=>{e({locations:a.filter(e=>e.placeID!==t)})},[a,e]),f=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),A=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),C=(0,l.useCallback)(()=>{d([])},[d]),S=(0,l.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),w=(0,l.useCallback)(e=>{p(e),A(e),S(e)},[p,A,S]);return{addFavoriteLocation:g,removeFavoriteLocation:p,addRecentLocation:f,removeRecentLocation:A,removeRecentAddress:S,clearRecentLocations:C,deleteLocation:w,recentLocations:n||u,favoriteLocations:a}}],145651)},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["clearPurchaseChecked",0,()=>{try{localStorage.removeItem(t)}catch{}},"markPurchaseChecked",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"purchaseCheckedRecently",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["getSmartScriptClickUrl",0,function(e){let t=e?.clickURL;return"string"==typeof t&&t?t:null},"smartScriptClickUrlAtom",0,t,"withCtaAttribution",0,function(e,{trackAdset:t,deepLinkValue:r}){if(!URL.canParse(e))return e;let i=new URL(e);return t&&i.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&i.searchParams.set("deep_link_value",r),i.toString()}])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:a}=await (0,r.tryCatch)(t);a||e||i(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])}]);