(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,414338,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(730921),i=e.i(581014),a=e.i(877957),o=e.i(62544),s=e.i(901351),l=e.i(313983),c=e.i(725296),u=e.i(521350),d=e.i(546446),p=e.i(540768),g=e.i(682142),f=e.i(782937),m=e.i(695881),h=e.i(333350),w=e.i(64412),v=e.i(950771),b=e.i(537989),C=e.i(695203),S=e.i(158662),y=e.i(358273),A=e.i(777638),E=e.i(924776),k=e.i(409628),_=e.i(605781);let x=(0,m.createLogger)("useTrackConsentChange"),R={"sale-of-data":"sod","sensitive-data":"sensitive-data"};var I=e.i(611540),P=e.i(553329);let L=async e=>{let t;await (0,P.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{t=setTimeout(e,1e3)})])),clearTimeout(t)},T=({isUserLoggedIn:e,regime:m,deviceClass:P,experience:T,isPremiumUser:D})=>{let O=(0,i.useTranslations)("PrivacyConsentModal"),N=(0,n.useLocale)(),j=(0,I.interpolateUrl)(I.URLS.privacyPolicy,{locale:N}),[U,V]=(0,r.useState)(!1),[B,M]=(0,r.useState)(!1),[H,$]=(0,r.useState)(!1),F=(()=>{let e=(0,d.useAtomValue)(b.pageIdAtom),t=(0,d.useAtomValue)(v.pageLocaleAtom),n=(0,d.useAtomValue)(C.deviceClassAtom),i=(0,d.useAtomValue)(S.experimentJoinListAtom),{location:a}=(0,w.useLocation)(),o=(0,E.useIsHightouchReady)(),s=(0,r.useCallback)(()=>{let e=(0,g.getCICookie)(),r=e?.["TWC-GeoIP-Country"]??(0,p.getCookie)("twc-location-country"),o=e?.["TWC-GeoIP-Region"]??(0,p.getCookie)("twc-location-region"),s=e?.["TWC-Privacy"]??(0,p.getCookie)("twc-privacy"),l=window.DprSdk?.getGdprConsentOptInsString()??"",c=window.DprSdk?.getCcpaSaleOptInString()??"",u=window.navigator?.globalPrivacyControl??!1,d=l?.includes("functional-technology")??!1,m=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,h=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,w=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),v=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),b=navigator?.cookieEnabled??!1,C=(0,p.getCookie)("partner")||"",S=(0,f.getPartnerByPattern)(C)??C,E=(0,y.getMetricsSession)(),_=E?.sessionId||"",x=new Date(E?.sessionStartTime||0).toISOString(),R=new Date,I=R.getHours(),P=k.WEEK_DAYS[R.getDay()]??"";return{schemaVersion:"nextgen",referrer:document.referrer,locale:t,deviceClass:n,partner:S,sessionId:_,sessionStartTime:x,siteMode:"normal",dayOfWeek:P,hourOfDay:I,regime:s??"",cookiesEnabled:b,gpcSignalOptOut:u,functionalTechnologies:d,geographicallyRelevantAds:m,interestBasedAds:h,priv:l,privProducts:c,saleOfData:w,saleOfDataAuthorization:w,sensitiveDataAuthorization:v,campaign:(0,A.getCampaign)(),experimentJoinList:i,weatherMode:"normal",physicalCountry:r??"",physicalState:o??"",caUser:"US"===r&&"CA"===o,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,samsungVersion:(0,A.getSamsungVersion)(),appVersion:"3d9f6c2d34c79fe983bdfcc8d3d447b1317ef888".slice(0,10)}},[t,n,i,a]),l=(0,r.useCallback)((t,r)=>{if("sensitive-data"===t&&r)return(0,_.trackSensitiveDataOptin)(s());let n={...s(),pageId:e??"",wlocDMA:a?.dmaCd??null};return"sensitive-data"===t?(0,_.trackSensitiveDataOptout)(n):r?(0,_.trackSodOptin)(n):(0,_.trackSodOptout)(n)},[s,e,a]);return(0,r.useCallback)((e,t)=>{let r=`${R[e]}-${t?"optin":"optout"}`;if(h.default)return o?(x.info(`Hightouch: Event "${r}" tracked`),l(e,t)):void x.warn(`Hightouch: Event "${r}" skipped - SDK not ready`)},[o,l])})();(0,r.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||D||!(0,u.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),r=localStorage.getItem("saleOfDataConflict");t?(M(!0),V(!0)):e&&r&&m===c.Regime.USA_CCPA&&($(!0),V(!0))},[m,D,e]);let z=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&(await e.beforeRefresh,window.location.reload())}catch(e){console.error("Failed to update UPSX consent:",e)}},G=t=>{let r=window,n=window.top,i=r.DprSdk||n?.DprSdk;if(!i)return void console.error("Unable to fix conflict, missing DprSdk.");i.setUserConsents({[l.Purpose.SALE_OF_DATA]:t});let a=L(()=>F(l.Purpose.SALE_OF_DATA,t));e&&z({purpose:l.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0,beforeRefresh:a}),B?((0,u.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||a.then(()=>window.location.reload())):H&&(0,u.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),V(!1)},W="",K="";if(B?(W="gpcConflictHeader",K="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(K+="_usa-ccpa")):H&&(W="saleOfDataConflictHeader",K="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(K+="_usa-ccpa")),K)return(0,t.jsx)(o.Dialog,{open:U,onOpenChange:V,children:(0,t.jsxs)(o.DialogContent,{className:`text-center ${"desktop"!==P?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===T?"wu-theme":""} `,onEscapeKeyDown:e=>{(H||B)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[W&&(0,t.jsx)(o.DialogHeader,{children:(0,t.jsx)(o.DialogTitle,{className:"text-xl font-semibold",children:O(W)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:O.rich(K,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:j,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(o.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(a.Button,{onClick:()=>{G(!0)},variant:"default",className:"w-full sm:w-auto",children:O("optInButtonText")}),(0,t.jsx)(a.Button,{onClick:()=>{G(!1)},variant:"secondary",className:"w-full sm:w-auto",children:O("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModalClient",0,T,"SOD_TRACK_TIMEOUT_MS",0,1e3,"default",0,T],414338)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),n=e.i(458001),i=e.i(394481),a=e.i(663333),o=e.i(849177),s=e.i(889753),l=e.i(5397),c=e.i(21121);e.i(647872);var u=e.i(494889),d=e.i(928083),p=e.i(624432),g=e.i(739971),f=e.i(688070),m=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[n.cscCountryCodeAtom,e.cscCountryCode],[i.privacyRegimeAtom,e.privacyRegime],[a.deviceClassAtom,e.deviceClass],[s.userTierAtom,e.userTier],[o.adsDisabledAtom,e.adsDisabled],[l.showAdminHeaderAtom,e.showAdminHeader],[c.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[u.newsHubEnabledAtom,e.newsHubEnabled],[d.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[p.contentSearchUniversalAtom,e.contentSearchUniversal],[g.subscriptionsEnabledAtom,e.subscriptionsEnabled],[m.webViewPlatformAtom,e.webViewPlatform],[f.isWebViewOnlyAtom,e.isWebViewOnly]]),null)])},556441,e=>{"use strict";var t=e.i(902875),r=e.i(725287),n=e.i(240058),i=e.i(877957),a=e.i(368847),o=e.i(132084),s=e.i(528600),l=e.i(837879),c=e.i(498076),u=e.i(37429),d=e.i(683199);e.s(["default",0,()=>{let e=(0,r.useSearchParams)(),p=e.get("par")||e.get("partner"),g=(0,c.useIsMobile)(),f=(0,l.useSubscriptionsEnabled)(),{user:m}=(0,s.useUser)(),{isUserPremium:h}=m,w=(0,d.usePremiumSource)();return p===o.Partner.TIKTOK&&g&&f&&!h?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(u.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(a.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(a.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(i.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(n.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>w({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])},185945,e=>{"use strict";var t=e.i(288906),r=e.i(247865),n=e.i(725287);function i(){return false}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(n.current=r.setRoute)}},[e.route]),null}function s(e){let i=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let o=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},538946,e=>{"use strict";var t,r=e.i(288906),n={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_2ZmwkbQNh16Bv7W5dKZXrjz7dwqY":void 0},i=e.i(247865),a=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,i.useEffect)(()=>(e&&a&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[i,a]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))a&&r.setAttribute(i,a);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),a=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],538946)},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(276247),o=e.r(788443),s=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),n=e.i(725287),i=e.i(546446),a=e.i(540768),o=e.i(682142),s=e.i(782937),l=e.i(695881),c=e.i(333350),u=e.i(64412),d=e.i(950771),p=e.i(537989),g=e.i(695203),f=e.i(158662),m=e.i(358273),h=e.i(122124),w=e.i(777638),v=e.i(924776),b=e.i(409628),C=e.i(605781);let S=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,i.useAtomValue)(p.pageIdAtom),t=(0,i.useAtomValue)(d.pageLocaleAtom),l=(0,i.useAtomValue)(g.deviceClassAtom),y=(0,i.useAtomValue)(f.experimentJoinListAtom),A=(0,n.usePathname)(),{location:E}=(0,u.useLocation)(),k=(0,v.useIsHightouchReady)(),_=(0,r.useCallback)(r=>{let n=(0,o.getCICookie)(),i=n?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),c=n?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),u=n?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",p=window.DprSdk?.getCcpaSaleOptInString()??"",g=window.navigator?.globalPrivacyControl??!1,f=d?.includes("functional-technology")??!1,v=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,C=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,S=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),k=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),_=navigator?.cookieEnabled??!1,x=(0,a.getCookie)("partner")||"",R=(0,s.getPartnerByPattern)(x)??x,I=(0,m.getMetricsSession)(),P=I?.sessionId||"",L=new Date(I?.sessionStartTime||0).toISOString(),T=new Date,D=T.getHours(),O=b.WEEK_DAYS[T.getDay()]??"",N="article"===e||"video"===e?(0,h.stripLastPartOfSlug)(A??""):(0,h.getAnonymizedPath)(A??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:N,referrer:document.referrer,locale:t,deviceClass:l,partner:R,sessionId:P,sessionStartTime:L,siteMode:"normal",dayOfWeek:O,hourOfDay:D,regime:u??"",cookiesEnabled:_,gpcSignalOptOut:g,functionalTechnologies:f,geographicallyRelevantAds:v,interestBasedAds:C,priv:d,privProducts:p,saleOfData:S,saleOfDataAuthorization:S,sensitiveDataAuthorization:k,campaign:(0,w.getCampaign)(),experimentJoinList:y,weatherMode:"normal",physicalCountry:i??"",physicalState:c??"",wlocCity:E?.city??null,wlocCountry:E?.countryCode??null,wlocState:E?.adminDistrictCode??null,wlocDMA:E?.dmaCd??null,samsungVersion:(0,w.getSamsungVersion)(),appVersion:"3d9f6c2d34c79fe983bdfcc8d3d447b1317ef888".slice(0,10)}},[e,t,l,y,A,E]);return(0,r.useCallback)(e=>{if(c.default&&e){if(!k)return void S.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,C.trackTrackString)(_(e)),S.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){S.error('Hightouch: Event "track-string" failed',{error:e})}}},[k,_])}],723469)},320209,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),n=e.i(546446),i=e.i(540768),a=e.i(682142),o=e.i(782937),s=e.i(695881),l=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),p=e.i(695203),g=e.i(158662),f=e.i(358273),m=e.i(122124),h=e.i(777638),w=e.i(924776),v=e.i(409628),b=e.i(605781);let C=(0,s.createLogger)("useTrackAssetViewed"),S=[],y=null;function A(e){try{(0,b.trackAssetViewed)(e),C.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){C.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{y?.(e)}catch(e){C.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),s=(0,n.useAtomValue)(d.pageIdAtom),b=(0,n.useAtomValue)(u.pageLocaleAtom),C=(0,n.useAtomValue)(p.deviceClassAtom),y=(0,n.useAtomValue)(g.experimentJoinListAtom),{location:E}=(0,c.useLocation)(),k=(0,w.useIsHightouchReady)(),_=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:n,title:l,pos:c,tagsKeyword:u})=>{let d=(0,a.getCICookie)(),p=d?.["TWC-GeoIP-Country"]??(0,i.getCookie)("twc-location-country"),g=d?.["TWC-GeoIP-Region"]??(0,i.getCookie)("twc-location-region"),w=d?.["TWC-Privacy"]??(0,i.getCookie)("twc-privacy"),S=window.DprSdk?.getGdprConsentOptInsString()??"",A=window.DprSdk?.getCcpaSaleOptInString()??"",k=window.navigator?.globalPrivacyControl??!1,_=S?.includes("functional-technology")??!1,x=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,R=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,I=navigator?.cookieEnabled??!1,P=(0,i.getCookie)("partner")||"",L=(0,o.getPartnerByPattern)(P)??P,T=(0,f.getMetricsSession)(),D=T?.sessionId||"",O=new Date(T?.sessionStartTime||0).toISOString(),N=new Date,j=N.getHours(),U=v.WEEK_DAYS[N.getDay()]??"",V="article"===s||"video"===s?(0,m.stripLastPartOfSlug)(e??""):(0,m.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:n,title:l,pos:String(c),tagsKeyword:u??null,pageId:s??"",url:V,referrer:document.referrer,locale:b,deviceClass:C,partner:L,sessionId:D,sessionStartTime:O,siteMode:"normal",dayOfWeek:U,hourOfDay:j,regime:w??"",cookiesEnabled:I,gpcSignalOptOut:k,functionalTechnologies:_,geographicallyRelevantAds:x,interestBasedAds:R,priv:S,privProducts:A,campaign:(0,h.getCampaign)(),experimentJoinList:y,weatherMode:"normal",physicalCountry:p??"",physicalState:g??"",wlocCity:E?.city??null,wlocCountry:E?.countryCode??null,wlocState:E?.adminDistrictCode??null,wlocDMA:E?.dmaCd??null,samsungVersion:(0,h.getSamsungVersion)(),appVersion:"3d9f6c2d34c79fe983bdfcc8d3d447b1317ef888".slice(0,10)}},[e,s,b,C,y,E]);return(0,t.useEffect)(()=>{if(!k||0===S.length)return;let e=S;S=[],e.forEach(A)},[k]),(0,t.useCallback)(e=>{if(!l.default)return;let t=_(e);k?A(t):S.push(t)},[k,_])})();(0,t.useEffect)(()=>(y=e,()=>{y===e&&(y=null)}),[e])}])},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])},520362,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let n=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:a}=e,o=(0,r.useRef)(!1),s=(0,r.useCallback)(e=>{e.origin===a&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,a]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),o.current||(o.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:a}),i()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[a,s,n,t,i]),null};var i=e.i(725287);let a=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),o={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let r=(0,i.useRouter)();return(0,t.jsx)(n,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",n.current?.disconnect();return}let a=r.getBoundingClientRect();i.style.top=`${a.top+window.scrollY}px`,i.style.left=`${a.left+window.scrollX}px`,i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i.style.opacity="1"},[]),u=(0,r.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,c()}))},[c]),p=(0,r.useCallback)(e=>{if(e===s.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void a.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?p(e.data.blockId):u())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==i.current&&cancelAnimationFrame(i.current),n.current?.disconnect(),e.current?.remove()}},[p,u,d]),null},"LivePreviewListener",0,s],520362)},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",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])},235577,e=>{"use strict";var t=e.i(902875),r=e.i(523084),n=e.i(47524),i=e.i(632137),a=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:o,hidden:s,size:l="default",variant:c="light",className:u}){let d="sm"===l,p=(0,i.cn)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(a.Button,{type:"button",onClick:o,"aria-hidden":"true",tabIndex:-1,className:(0,i.cn)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",s&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",s&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",s&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(r.ChevronLeft,{className:p}):(0,t.jsx)(n.ChevronRight,{className:p})})}])},457492,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(632137),i=e.i(546446),a=e.i(663333),o=e.i(235577),s=e.i(315730),l=e.i(240058);let c=(0,n.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:r,index:i,link:a}=e,o=r===i,s=(0,n.cn)(c,{"bg-gray-100 text-blue-500":o});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(i,a),className:(0,n.cn)("cursor-pointer",s),"aria-current":o?"page":void 0,children:a.label})}let{basePath:u,mpa:d}=e,p=a.href??("/"===a.slug?u||"/":`${u}/${a.slug}`);return(0,t.jsx)(l.default,{href:p,mpa:d,className:s,"aria-current":o?"page":void 0,sourceModule:"subnavigation",children:a.label})},d=(0,r.memo)(e=>{let{links:r,activeIndex:l,className:c,constrained:d=!0}=e,p=(0,i.useAtomValue)(a.deviceClassAtom),{ref:g,showLeft:f,showRight:m,scrollLeft:h,scrollRight:w}=(0,s.useHorizontalScroll)({enabled:"mobile"!==p&&"tablet"!==p,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,n.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",d&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -left-25 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":f}),"aria-hidden":"true"}),(0,t.jsx)(o.ScrollButton,{hidden:!f,onClick:h,direction:"left"}),(0,t.jsx)("div",{ref:g,className:(0,n.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,n)=>e.onSelect?(0,t.jsx)(u,{link:r,index:n,activeIndex:l,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(u,{link:r,index:n,activeIndex:l,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -right-25 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":m}),"aria-hidden":"true"}),(0,t.jsx)(o.ScrollButton,{hidden:!m,onClick:w,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));d.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,d],457492)},315730,e=>{"use strict";var t=e.i(147732),r=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:n=200,contentKey:i}={}){let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(!1),[l,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),p=(0,r.useCallback)(()=>{let t=a.current;if(!t||!e){c(!1),d(!1);return}let{scrollLeft:r,scrollWidth:n,clientWidth:i}=t,o=Math.abs(r),l=o>2,u=o+i(0,t.debounce)(p,150),[p]),f=(0,r.useCallback)(()=>{null===o.current&&(o.current=requestAnimationFrame(()=>{p(),o.current=null}))},[p]);(0,r.useEffect)(()=>{let t=a.current;return t&&(s.current="rtl"===getComputedStyle(t).direction),p(),e&&(t?.addEventListener("scroll",f),window.addEventListener("resize",g)),()=>{null!==o.current&&cancelAnimationFrame(o.current),o.current=null,t?.removeEventListener("scroll",f),g.cancel(),window.removeEventListener("resize",g)}},[e,p,f,g,i]);let m=(0,r.useCallback)(()=>a.current?.scrollBy({left:-n,behavior:"smooth"}),[n]),h=(0,r.useCallback)(()=>a.current?.scrollBy({left:n,behavior:"smooth"}),[n]);return{ref:a,showLeft:l,showRight:u,scrollLeft:m,scrollRight:h}}])},402525,e=>{"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 n=new URL(e);return t&&n.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&n.searchParams.set("deep_link_value",r),n.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,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:i}=await (0,r.tryCatch)(t);i||e||n(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])}]);