(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),i=e.i(394481),n=e.i(663333),a=e.i(49893),o=e.i(889753),l=e.i(5397),s=e.i(21121);e.i(647872);var c=e.i(279791),u=e.i(523579),d=e.i(726513),m=e.i(678480),p=e.i(39822),f=e.i(725837),g=e.i(427309),w=e.i(688070),h=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[i.privacyRegimeAtom,e.privacyRegime],[n.deviceClassAtom,e.deviceClass],[o.userTierAtom,e.userTier],[a.adsKillswitchAtom,e.adsKillswitch],[l.showAdminHeaderAtom,e.showAdminHeader],[c.showOpenWebCommentsAtom,e.showOpenWebComments],[s.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[u.retroWeatherAtom,e.retroWeather],[g.geoipCountry,e.geoipCountry],[d.subsOfferCopyVariantAtom,e.subsOfferCopyVariant],[m.subsOfferLayoutVariantAtom,e.subsOfferLayoutVariant],[p.editorsPickLocationAwareVariantAtom,e.editorsPickLocationAwareVariant],[h.webViewPlatformAtom,e.webViewPlatform],[w.isWebViewOnlyAtom,e.isWebViewOnly],[f.hourlyPaginationVariantAtom,e.hourlyPaginationVariant]]),null)])},792302,e=>{"use strict";var t=e.i(155252),r=e.i(118444),i=e.i(546446),n=e.i(5397),a=e.i(206507),o=e.i(806262),l=e.i(674339),s=e.i(184154),c=e.i(695881),u=e.i(609858);let d=(0,c.createLogger)("AtomDebugHydrationBoundaries"),m=({debugData:e})=>{let{updateSection:t}=(0,u.useDebugSystem)(),r=(0,s.usePathname)();return d.info("Initial props received",{hasDebugData:!!e,currentPath:r}),(0,o.useHydrateAtoms)([[l.debugDataAtom,e||{timestamp:new Date().toISOString()}]]),(0,a.useEffect)(()=>{d.lifecycle("Path changed",r);let i=sessionStorage.getItem("lastPath"),n=!i||i===r;d.info("Navigation type",n?"Direct load/refresh":"Client-side navigation"),t("route",r),n&&!e?t("meta",{dataState:"stale",lastConfirmedPath:i||null,currentPath:r,isDirectLoad:!0,timestamp:new Date().toISOString()}):(t("components",{}),e&&(d.info("Updating with new debug data for path",r),e.page&&t("page",e.page),e.match&&t("match",e.match),e.timestamp&&t("timestamp",e.timestamp),e.headers&&t("headers",e.headers),e.environment&&t("environment",e.environment),e.location&&t("location",{...e.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),t("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:n,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",r??"")},[r,e,t]),d.lifecycle("Hydration complete",{debugData:e,pathname:r}),null};var p=e.i(250966);let f=(0,p.createServerReference)("40c1a77107cbd7f23fc8a510c4a1ab4580adff8cd3",p.callServer,void 0,p.findSourceMapURL,"translateDebugDataAction");var g=e.i(64412);let w=(0,c.createLogger)("LocationCollector"),h=(0,c.createLogger)("DataCollector");function y({pageProps:e,userRoles:t}){let r=(0,s.usePathname)(),i=(0,s.useSearchParams)(),{updateSection:n}=(0,u.useDebugSystem)(),o=(0,a.useRef)(!1);!function(){let{updateSection:e}=(0,u.useDebugSystem)(),{location:t,isLoading:r}=(0,g.useLocation)();(0,a.useEffect)(()=>{t&&!r&&(w.info("Location data updated",t.displayName),e("location",{...t,_observedFrom:"useLocation",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[t,r,e])}(),(0,a.useEffect)(()=>{if(t&&t.length>0){let e=Array.isArray(t)?t:[];n("userRoles",e),h.info("DataCollector","User roles updated",e)}},[t,n]);let l=(0,a.useCallback)(async()=>{try{h.info("DataCollector","Collecting data for route:",{path:r,paramsCount:i?Array.from(i.keys()).length:0});let t={};i?.forEach((e,r)=>{t[r]=e}),h.lifecycle("DataCollector","Calling translateDebugDataAction");let a=await f({route:r??"",params:t,pageProps:e});a&&(h.info("DataCollector","Debug data received",{route:a.route,hasPage:!!a.page,hasMatch:!!a.match,hasHeaders:!!a.headers,hasEnvironment:!!a.environment}),a.route&&(n("route",a.route),h.info("DataCollector","Route updated",a.route)),a.page&&(n("page",a.page),h.info("DataCollector","Page data updated",{title:a.page.title,id:a.page.id}),n("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:!1,timestamp:new Date().toISOString()})),a.match&&(n("match",a.match),h.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(a.match||{})})),a.headers&&(n("headers",a.headers),h.info("DataCollector","Headers updated",{headerCount:Object.keys(a.headers||{}).length})),a.environment&&(n("environment",a.environment),h.info("DataCollector","Environment data updated",{envVarCount:Object.keys(a.environment||{}).length})),n("timestamp",new Date().toISOString()))}catch(e){h.error("DataCollector","Error collecting debug data:",e),n("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[r,i,e,n]);return(0,a.useEffect)(()=>{h.lifecycle("DataCollector","Setting up data collection for path",r),o.current||(o.current=!0);let e=setTimeout(()=>{l()},200);return()=>{clearTimeout(e),h.lifecycle("DataCollector","Cleanup for path",r)}},[l,r]),null}function v({children:e,pageProps:r}){return(0,t.jsxs)(i.Provider,{children:[(0,t.jsx)(m,{debugData:null}),(0,t.jsx)(y,{pageProps:r}),e]})}let S=(0,r.default)(()=>e.A(186044).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{modules:[451309]},ssr:!1,loading:()=>null});e.s(["AdminHeaderWrapper",0,function({children:e}){return(0,i.useAtomValue)(n.showAdminHeaderAtom)?(0,t.jsxs)(v,{children:[(0,t.jsx)(S,{}),e]}):(0,t.jsx)(t.Fragment,{children:e})}],792302)},569579,e=>{"use strict";var t=e.i(155252),r=e.i(358273),i=e.i(333350);if(i.default){let e=(0,r.getMetricsSession)();(!e||(0,r.checkSessionTimestampExpired)())&&(0,r.setIsNewMestricsSession)(),(0,r.setMetricsSession)(e)}let n=()=>null;var a=e.i(206507),o=e.i(546446);e.i(571195);var l=e.i(947118),s=e.i(310847),c=e.i(382602),u=e.i(528600),d=e.i(688070),m=e.i(647292),p=e.i(491240),f=e.i(915044),g=e.i(959194),w=e.i(737801),h=e.i(184154),y=e.i(630986),v=e.i(800462),S=e.i(608201),E=e.i(236593),A=e.i(64412),I=e.i(797770);let b=(0,e.i(981030).atom)(!1),C=["article","video","liveblog"];var P=e.i(521350);let D="location-viewed-last-fired";var R=e.i(147732);let T=new Date().getTime(),_=(0,R.debounce)(()=>{window.scrollY>L&&(L=window.scrollY)},250);i.default&&window.addEventListener("scroll",_);let L=i.default&&window.innerHeight>0?window.innerHeight:0,O=({scriptSrc:e})=>{let i=(0,o.useAtomValue)(d.isWebViewOnlyAtom);(()=>{let e=(0,o.useAtomValue)(d.isWebViewOnlyAtom),t=(0,o.useAtomValue)(m.webViewPlatformAtom),i="us2-fb061d169ced8343850163112c402d41",n=(0,l.useIsInitialized)(),f=(0,a.useRef)(n),{user:{isUserLoggedIn:g,userID:w}}=(0,u.useUser)(),h=(0,o.useAtomValue)(c.userEmailAtom),y=g?w:null,v=g?h:"",S=(0,o.useAtomValue)(s.wxuUserAnonymousIdAtom),E=(({hasInvokedMPInit:e,apiKey:t,isUserLoggedIn:r,customerid:i,email:n,other:a})=>!e&&t&&a&&(r&&i&&n||!r))({hasInvokedMPInit:f.current,apiKey:i,isUserLoggedIn:g,customerid:y,email:v,other:S});(0,a.useEffect)(()=>{if(E){f.current=!0;let n={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:v,customerid:y,other:(0,p.truncateIdentityValue)(S)}},v1SecureServiceUrl:"mparticle.weather.com/webevents/v1/JS/",v2SecureServiceUrl:"mparticle.weather.com/webevents/v2/JS/",v3SecureServiceUrl:"mparticle.weather.com/webevents/v3/JS/",configUrl:"mparticle.weather.com/tags/JS/v2/",identityUrl:"mparticle.weather.com/identity/v1/",aliasUrl:"mparticle.weather.com/webevents/v1/identity/",dataPlan:{planId:"weather_web",planVersion:2},identityCallback:e=>{if(e?.getUser()){let t=e.getUser().getMPID();t&&(console.debug("MParticle: Identity callback triggered",t),(e=>{try{let t=JSON.parse(localStorage.getItem("wxu-web/keyval:mparticleUser")||"{}"),i=t?.value?.mpid;if(i&&i!==e){let e=(0,r.getMetricsSession)();if(e&&Number.isFinite(e.sessionStartTime)&&Date.now()-e.sessionStartTime{let e=(0,l.useIsInitialized)(),t=(0,h.usePathname)(),r=(0,w.useEventAttributes)(),i=(0,y.useCMSAttributes)(),n=(0,o.useAtomValue)(S.sourcePageAtom),s=(0,o.useAtomValue)(E.sourceModuleAtom),[c,u]=(0,a.useState)(!1),d=(0,a.useRef)(!1),m=(0,a.useMemo)(()=>({author:i?.author||"",contentId:i?.contentId,premiumContent:i?.premiumContent,publishDate:i?.publishDate,provider:i?.provider,title:i?.title,nodeTypes:i?.nodeType,pageTemplate:i?.pageTemplate,iabContent:i?.iabContent??null,tagsAnalytics:i?.tagsAnalytics,tagsGeo:i?.tagsGeo,tagsKeyword:i?.tagsKeyword,tagsStorm:i?.tagsStorm,collection:i?.collection,entitlements:i?.entitlements,createdDate:i?.createdDate,...r,fromString:r.fromString??"",url:t?(0,g.stripLastPartOfSlug)(t):"",sourcePage:n??"",sourceModule:s?.id??null,sourceModuleName:s?.name??null,...s?.modulePosition!=null&&{sourcePosition:s.modulePosition},sourceElement:s?.element??null}),[r,i,t,n,s]);return(0,a.useEffect)(()=>{(0,g.areObjectValuesDefined)(m)&&!c&&u(!0)},[m,c]),(0,a.useCallback)(async()=>{if(m?.pageId==="article"&&e&&c&&!d.current)try{window.mParticle?.logEvent?.("article-viewed",window.mParticle?.EventType?.Other,m),console.debug(`MParticle: Event "article-viewed" tracked - ${m?.pageId}`),d.current=!0}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[e,m,c])})();return((0,a.useEffect)(()=>{n()},[n]),(0,a.useEffect)(()=>{v()},[v]),i)?(0,t.jsx)("script",{id:"mparticle-webview-sdk",dangerouslySetInnerHTML:{__html:`(function(){window.mParticle=window.mParticle||{EventType:{Unknown:0,Navigation:1,Location:2,Search:3,Transaction:4,UserContent:5,UserPreference:6,Social:7,Other:8}};window.mParticle.eCommerce={Cart:{}};window.mParticle.Identity={};window.mParticle.config=window.mParticle.config||{};window.mParticle.config.rq=[];window.mParticle.ready=function(t){window.mParticle.config.rq.push(t)};function e(e,o){return function(){if(o){e=o+"."+e}var t=Array.prototype.slice.call(arguments);t.unshift(e);window.mParticle.config.rq.push(t)}}var o=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"];var n=["setCurrencyCode","logCheckout"];var i=["identify","login","logout","modify"];o.forEach(function(t){window.mParticle[t]=e(t)});n.forEach(function(t){window.mParticle.eCommerce[t]=e(t,"eCommerce")});i.forEach(function(t){window.mParticle.Identity[t]=e(t,"Identity")});var r=document.createElement("script");r.type="text/javascript";r.async=true;r.src="${e}";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)})();`}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U,{}),(0,t.jsx)("script",{src:e})]})},U=()=>{let e,t=(()=>{let e=(0,l.useIsInitialized)(),t=(0,w.useEventAttributes)(),[i,n]=(0,a.useState)(!1),o=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>({...t}),[t]);return(0,a.useEffect)(()=>{(0,g.areObjectValuesDefined)(s)&&!i&&n(!0)},[s,i]),(0,a.useCallback)(async()=>{if((0,r.isNewMetricsSession)()&&e&&i&&!o.current)try{window.mParticle?.logEvent?.("session-start",window.mParticle?.EventType?.Other,s),o.current=!0,(0,r.deleteIsNewMestricsSession)(),console.debug(`MParticle: Event "session-start" tracked - sessionId: ${s.sessionId}`)}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[e,s,i])})(),n=(()=>{let e=(0,l.useIsInitialized)(),t=(0,w.useEventAttributes)(),n=(0,y.useCMSAttributes)(),s=t.pageId,c=i.default&&!["video","article"].includes(s)?window.location.href:"",[u,d]=(0,a.useState)(!1),m=(0,a.useRef)(!1),p=(0,a.useRef)(void 0),[f,P]=(0,o.useAtom)(v.fromSearchResultAtom),[D,R]=(0,o.useAtom)(S.sourcePageAtom),[T,_]=(0,o.useAtom)(E.sourceModuleAtom),{location:L}=(0,A.useLocation)(),O=function(e){try{let t=(e.startsWith("http")?new URL(e).pathname:e.split("?")[0]??"").split("/"),r=t.indexOf("l");if(-1!==r&&r{let e=C.includes(s)&&n?{...null!=n.title&&{title:n.title},...null!=n.author&&{author:n.author},...null!=n.contentId&&{contentId:n.contentId},...null!=n.collection&&{collection:n.collection},...null!=n.createdDate&&{createdDate:n.createdDate},...null!=n.entitlements&&{entitlements:n.entitlements},...null!=n.nodeType&&{nodeTypes:n.nodeType},...null!=n.iabContent&&{iabContent:n.iabContent},...null!=n.pageTemplate&&{pageTemplate:n.pageTemplate},...null!=n.premiumContent&&{premiumContent:n.premiumContent},...null!=n.provider&&{provider:n.provider},...null!=n.publishDate&&{publishDate:n.publishDate},...null!=n.tagsAnalytics&&{tagsAnalytics:n.tagsAnalytics},...null!=n.tagsGeo&&{tagsGeo:n.tagsGeo},...null!=n.tagsKeyword&&{tagsKeyword:n.tagsKeyword},...null!=n.tagsStorm&&{tagsStorm:n.tagsStorm},...null!=n.cmsUrl&&{cmsUrl:n.cmsUrl}}:{};return{...t,wlocId:O??null,...L?.presentationName&&{wlocPresentationName:L?.presentationName},...L?.type&&{wlocType:L?.type},...f&&{fromSearchResult:f},sourcePage:D??"",sourceModule:T?.id??null,sourceModuleName:T?.name??null,...T?.position!=null&&{sourcePosition:T.position},sourceElement:T?.element??null,adBlock:k,...U&&{adsMetricsUnitAndZone:U},...e,fullUrl:c,articleHeadline:""}},[t,O,L,f,D,T,k,U,n,c]);return(0,a.useEffect)(()=>{(0,g.areObjectValuesDefined)(N)&&!u&&d(!0)},[N,u]),(0,a.useCallback)(async()=>{if(p.current!==N.pageId&&(m.current=!1,p.current=N.pageId),e&&u&&!m.current)try{window.mParticle?.logEvent?.("page-viewed",window.mParticle?.EventType?.Other,N),m.current=!0,f&&P(null),D&&R(null),T&&_(null),(0,r.incrementMetricsSessionCount)(),console.debug(`MParticle: Event "page-viewed" tracked - ${N.pageId}`)}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[e,N,u,f,P,D,R,T,_])})(),s=(()=>{let{location:e}=(0,A.useLocation)(),t=(0,l.useIsInitialized)(),r=(0,w.useEventAttributes)(),n=e?.geocode,o=n?.split?.(","),s=o?.[0]?parseFloat(o[0]):void 0,c=o?.[1]?parseFloat(o[1]):void 0,u=e?.ianaTimeZone,d="string"==typeof u&&u.length>0?u.slice(0,255):"Etc/UTC",m=r.sessionId,p=(0,a.useMemo)(()=>({...r,latitude:s,longitude:c,ianaTimeZone:d}),[r,s,c,d]);return(0,a.useCallback)(async()=>{if(!i.default||!t||!n||!m||!Number.isFinite(s)||!Number.isFinite(c)||!(0,g.areObjectValuesDefined)(p))return;let r=(()=>{if(!(0,P.isLocalStorageAvailable)())return null;try{let e=localStorage.getItem(D);if(!e)return null;let t=JSON.parse(e);if("string"!=typeof t?.geocode||"string"!=typeof t?.sessionId)return null;return t}catch{return null}})();if(!r||r.geocode!==n||r.sessionId!==m)try{window.mParticle?.logEvent?.("location-viewed",window.mParticle?.EventType?.Other,p);if((0,P.isLocalStorageAvailable)())try{localStorage.setItem(D,JSON.stringify({geocode:n,sessionId:m}))}catch{}console.debug(`MParticle: Event "location-viewed" tracked - ${e?.displayName||"Unknown location"}`)}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[t,p,n,m,s,c,e?.displayName])})();return e=(0,w.useEventAttributes)(),(0,a.useEffect)(()=>{let t=()=>{if(window.mParticle?.isInitialized?.()){let t,r,i,n=(new Date().getTime()-T)/1e3,a=(t=document.documentElement.scrollHeight,r=window.innerHeight,L=L||window.scrollY,(i=t===r?100:Math.round(L/(t-r)*100))>100?i=100:i{window.removeEventListener("beforeunload",t),window.removeEventListener("blur",t)}},[e]),(0,a.useEffect)(()=>{t()},[t]),(0,a.useEffect)(()=>{n()},[n]),(0,a.useEffect)(()=>{s()},[s]),null};var k=e.i(940496),N=e.i(673915);let M=({scriptSrc:e})=>{let r,i;return r=(0,o.useSetAtom)(N.fromStringAtom),(0,a.useEffect)(()=>{let e=(0,k.getCookie)("fromStr");e&&(r(String(e)),(0,k.deleteCookie)("fromStr",{domain:".weather.com"}))},[]),i=(0,o.useSetAtom)(b),(0,a.useEffect)(()=>{let e=!1,t=null,r=null,n=null;return Promise.all([new Promise(e=>{(n=document.createElement("div")).id="ad-detector-bait",n.className="ad-banner ad-unit ad-placeholder",n.style.cssText="width:1px !important;height:1px !important;position:absolute;left:-9999px !important;top:-1000px !important;",document.body.appendChild(n),t=setTimeout(()=>{if(t=null,!n)return e(!1);let r=window.getComputedStyle(n),i=!document.body.contains(n)||null===n.offsetParent||"none"===r.display||"hidden"===r.visibility;n.remove(),n=null,e(i)},50)}),new Promise(e=>{r=setTimeout(()=>{r=null,e(!0)},3e3),fetch("https://securepubads.g.doubleclick.net/pagead/ppub_config",{method:"HEAD",mode:"no-cors"}).then(()=>{null!==r&&clearTimeout(r),r=null,e(!1)}).catch(()=>{null!==r&&clearTimeout(r),r=null,e(!0)})})]).then(([t,r])=>{e||i(t||r)}),()=>{e=!0,null!==t&&clearTimeout(t),null!==r&&clearTimeout(r),n?.remove(),n=null}},[i]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{}),(0,t.jsx)(O,{scriptSrc:e})]})};e.s(["Analytics",0,M,"default",0,M],569579)},572739,e=>{"use strict";var t=e.i(155252),r=e.i(585683),i=e.i(926045),n=e.i(546446),a=e.i(206507),o=e.i(725296),l=e.i(528600),s=e.i(37423);e.s(["default",0,function({regime:e,isUserLoggedIn:c}){let u=(0,n.useStore)(),{user:{userID:d},isUserIdLoading:m}=(0,l.useUser)();return(0,a.useEffect)(()=>{let e=window.top?.__twcResolveUserId;e&&(c?d?e(d):m||e(""):e(""))},[c,d,m]),o.RESTRICTIVE_REGIMES.includes(e)&&(0,i.preload)("https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",{as:"script"}),(0,a.useEffect)(()=>{(async()=>{window?.DprSdk?.isInitialized&&(await window?.DprSdk.isInitialized,u.set(s.dprSdkIsInitializedAtom,!0))})()},[u]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{id:"dprsdk-script",src:"https://weather.com/api/v1/script/dprSdkScript.js",strategy:"beforeInteractive"}),(0,t.jsx)(r.default,{id:"dprsdk-init",strategy:"beforeInteractive",children:` if (window.top?.DprSdk) { var w = window.top; if (!w.__twcUserId) { w.__twcUserId = new Promise(function (r) { w.__twcResolveUserId = r; }); } var getRegisteredUserId = function () { return w.__twcUserId; }; async function initDprSdk() { try { await w.DprSdk.init({ getApplicationInfo: function () { return { id: 'weather.com', version: '2.0.0' }; }, getUserRegime: function () { return '${e}'; }, getUserId: getRegisteredUserId, getRegisteredUserId: getRegisteredUserId, getIsUserLoggedIn: function () { return ${c}; }, }); } catch (_error) { // do nothing. } } initDprSdk(); } `})]})}])},987070,e=>{"use strict";var t=e.i(155252),r=e.i(206507),i=e.i(381477),n=e.i(521350),a=e.i(695881),o=e.i(318849);let l=(0,a.createLogger)("SWRProvider"),s=o.SWR_CACHE_STORAGE_KEY,c=o.SWR_CACHE_LEGACY_STORAGE_KEY,u=["get-dynamic-maps-tile-series"],d=[],m=["upsx/cookie/purchase","upsx/purchase/token"],p=(e,t)=>e===t||e.startsWith(`@"${t}"`),f=e=>u.some(t=>p(e,t)),g=e=>m.some(t=>p(e,t))?1/0:d.some(t=>p(e,t))?864e5:9e5,w=e=>{let t,r=null;try{r=localStorage.getItem(s)}catch(e){l.warn("Failed to read SWR cache from localStorage",e);return}if(!r)return;try{t=JSON.parse(r)}catch(e){l.warn("Discarding corrupt SWR cache in localStorage",e);try{localStorage.removeItem(s)}catch{}return}if(!Array.isArray(t))return;let i=Date.now();for(let r of t){if(!Array.isArray(r)||2!==r.length)continue;let[t,n]=r;if("string"!=typeof t||!n||"object"!=typeof n)continue;let{v:a,t:o}=n;!("number"!=typeof o||null==a||"object"!=typeof a||i-o>g(t))&&(e.has(t)||e.set(t,a))}},h=e=>{if((0,o.isSwrPersistDisabled)())return;let t=Date.now(),r=[],i=2;for(let[n,a]of e.entries()){if(f(n))continue;let e=[n,{v:a,t:t}],o=JSON.stringify(e).length+1;r.push({entry:e,size:o}),i+=o}let n=0;for(;i>1572864&&ne));try{localStorage.setItem(s,a)}catch(e){if(e&&"object"==typeof e&&("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||22===e.code||1014===e.code)){try{localStorage.removeItem(s)}catch{}l.warn("localStorage quota exceeded; SWR cache will be in-memory only this session",e);return}l.warn("Failed to persist SWR cache to localStorage",e)}},y=()=>{try{localStorage.removeItem(c)}catch{}};e.s(["DEFAULT_TTL_MS",0,9e5,"LEGACY_STORAGE_KEY",0,c,"LONG_TTL_MS",0,864e5,"MAX_BYTES",0,1572864,"PERSIST_INTERVAL_MS",0,3e4,"STORAGE_KEY",0,s,"SWRProvider",0,({children:e,fallback:a={}})=>{let[o]=(0,r.useState)(()=>new Map);return(0,r.useEffect)(()=>{if(!(0,n.isLocalStorageAvailable)())return;y(),w(o);let e=()=>h(o);window.addEventListener("beforeunload",e);let t=setInterval(e,3e4);return()=>{window.removeEventListener("beforeunload",e),clearInterval(t)}},[o]),(0,t.jsx)(i.SWRConfig,{value:{provider:()=>o,fallback:a},children:e})},"hydrateFromStorage",0,w,"persistToStorage",0,h,"removeLegacyCache",0,y])},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])},85617,e=>{"use strict";var t=e.i(206507),r=e.i(528600),i=e.i(45846),n=e.i(436028),a=e.i(571195),o=e.i(725296),l=e.i(521350),s=e.i(313983);let c=async()=>{try{let e=await m();await p({upsxConsentResponse:e}),await h({upsxConsentResponse:e})}catch(e){console.log(e)}},u=({purpose:e,upsxConsentResponse:t})=>{let r=t?.find?.(t=>t?.purpose===e);return r?.consent},d=async({purpose:e,value:t,setByUser:r})=>{let n={purpose:e,consent:t,setByUser:r,consentDateTime:new Date().toISOString()};await i.upsxClient.consent.createUserConsent(n)},m=async()=>await i.upsxClient.consent.getUserConsent(),p=async({upsxConsentResponse:e})=>{let t=u({purpose:"sale-of-data",upsxConsentResponse:e}),{localSaleOfDataConsent:r,setByUser:i}=f();g({localSaleOfDataConsent:r,upsxSaleOfDataConsent:t}),w({upsxSaleOfDataConsent:t})&&await d({purpose:"sale-of-data",value:r,setByUser:i})},f=()=>{let e=window.DprSdk,t=e?.getUserConsent("sale-of-data"),r="boolean"==typeof t;return{localSaleOfDataConsent:r?t:e?.getRegimePurposeDefaultValue("sale-of-data")??!0,setByUser:r}},g=({localSaleOfDataConsent:e,upsxSaleOfDataConsent:t})=>{let r=window.DprSdk,i=window.navigator.globalPrivacyControl,n=(0,l.isLocalStorageAvailable)()?localStorage.getItem("saleOfDataConflict"):null,a=!0===t&&!1===e&&!i;a&&!n?(0,l.isLocalStorageAvailable)()&&localStorage.setItem("saleOfDataConflict","true"):!a&&n&&(0,l.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),!1===t&&!0===e&&r?.setUserConsents({"sale-of-data":!1},{skipLogUserConsent:!0})},w=({upsxSaleOfDataConsent:e})=>{let t=!1,r=window.navigator.globalPrivacyControl;return("boolean"!=typeof e||r&&!0===e)&&(t=!0),t},h=async({upsxConsentResponse:e})=>{if((0,o.getRegime)()!==o.Regime.USA_CCPA)return;let t=u({purpose:s.Purpose.SENSITIVE_DATA,upsxConsentResponse:e}),{localSensitiveDataConsent:r}=y();v({localSensitiveDataConsent:r,upsxSensitiveDataConsent:t}),function({upsxSensitiveDataConsent:e}){let t=!1;return"boolean"!=typeof e&&(t=!0),t}({upsxSensitiveDataConsent:t})&&await d({purpose:s.Purpose.SENSITIVE_DATA,value:!0,setByUser:!1})},y=()=>{let{DprSdk:e}=window,t=e?.getUserConsent(s.Purpose.SENSITIVE_DATA),r="boolean"==typeof t;return{localSensitiveDataConsent:r?t:e?.getRegimePurposeDefaultValue(s.Purpose.SENSITIVE_DATA)??!0,setByUser:r}},v=async({localSensitiveDataConsent:e,upsxSensitiveDataConsent:t})=>{let{DprSdk:r}=window;"boolean"==typeof t&&t!==e&&r?.setUserConsents({[s.Purpose.SENSITIVE_DATA]:t},{skipLogUserConsent:!0})};e.s(["UserAuthSync",0,()=>(!function(){let[e,s]=(0,t.useState)(!1),[c,u]=(0,t.useState)(null),d=(0,t.useRef)(!1),m=(0,o.getRegime)(),{user:{isUserLoggedIn:p,userID:f,anonId:g}}=(0,r.useUser)(),w=(0,t.useCallback)(async(e={})=>{if(f){s(!0),u(null);try{let t,r,l,s,c,u=await i.upsxClient.applications.getApplications(e.appId||"twc-web-registered",e.endpointId||f),w=u?.partners||[],h=(t=[],(r=a.default.env.NEXT_PUBLIC_OMNITURE_ID||null)&&t.push({name:"omniture",id:r}),(l=function({upsxId:e,anonId:t}){return e||t||null}({upsxId:f,anonId:g}))&&(t.push({name:"amplitude",id:l}),t.push({name:"airlytics",id:l})),(s=a.default.env.NEXT_PUBLIC_MPARTICLE_ID||null)&&t.push({name:"mParticle",id:s}),!p&&s&&t.push({name:"braze",id:s}),p&&f&&(t.push({name:"zuora",id:f}),t.push({name:"braze",id:f})),c=a.default.env.NEXT_PUBLIC_SOURCEPOINT_DSR_ID||null,o.RESTRICTIVE_REGIMES.includes(m)&&c&&t.push({name:"sourcepoint",id:c}),t),y=(0,n.hasLength)(w)?h.filter(e=>{let t=w.find(t=>t.name===e.name);return!t||t.id!==e.id}):h;return y.length&&(u?await i.upsxClient.applications.addPartner(e.appId||"twc-web-registered",e.endpointId||f,{partners:y,version:"1.0.0"}):await i.upsxClient.applications.createApplication({appId:e.appId||"twc-web-registered",endpointId:e.endpointId||f,partners:y,version:"1.0.0"})),d.current=!0,{success:!0,addedOrUpdated:y}}catch(t){let e=t instanceof Error?t:Error("Unknown error occurred");return u(e),{success:!1,error:e.message}}finally{s(!1),(0,l.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","false")}}},[f]);(0,t.useEffect)(()=>{if(!(0,l.isLocalStorageAvailable)())return;let e=localStorage.getItem("PARTNERS_SYNC"),t=e&&JSON.parse(e);p&&f&&t&&!d.current&&(async()=>{await w()})()},[f,p,w])}(),!function(){let e=(0,t.useRef)(!1),{user:{isUserLoggedIn:i}}=(0,r.useUser)();(0,t.useEffect)(()=>{i&&!e.current&&(c(),e.current=!0)},[i])}(),null)],85617)},231457,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyInitializedAtom",0,t])},959377,e=>{"use strict";var t=e.i(206507),r=e.i(546446),i=e.i(231457);e.s(["useInitializeSdk",0,function(e){let{domainKey:n,serviceWorkerPath:a,enabled:o=!1}=e,[l,s]=(0,r.useAtom)(i.pushlyInitializedAtom);return(0,t.useEffect)(()=>{if(o)try{window.PushlySDK=window.PushlySDK||[],window.pushly=window.pushly||function(...e){window.PushlySDK.push(e)},window.pushly("load",{domainKey:n,sw:a}),s(!0)}catch(e){console.error("Failed to initialize Pushly SDK:",e)}},[n,a,o,s]),{isInitialized:l}}])},330871,e=>{"use strict";var t=e.i(206507),r=e.i(546446),i=e.i(231457);function n(e){let{isPremium:t,isUserLoggedIn:r,userHasLoggedInBefore:i,locationData:n,upsUserId:a}=e;return{is_premium:t,is_registered_user:i||r,place_id:n?.placeId,twc_latitude:n?.latitude,twc_longitude:n?.longitude,twc_postal_code:n?.postalCode,...r&&a&&{upsx_id:a}}}e.s(["usePushlyProfile",0,function(e){let a=(0,t.useRef)(!1),o=(0,t.useRef)(e),l=(0,r.useAtomValue)(i.pushlyInitializedAtom);(0,t.useEffect)(()=>{o.current=e},[e]),(0,t.useEffect)(()=>{if(!l||!window.pushly||!e)return;let{mParticleId:t}=e,r=n(e);try{window.pushly("profile",r),t&&window.pushly("external_id",t),a.current||(a.current=!0,window.pushly("on_permission_allowed",()=>{let e=o.current;if(!e||!window.pushly)return;let t=n(e);window.pushly("profile",t),e.mParticleId&&window.pushly("external_id",e.mParticleId)}))}catch(e){console.error("Failed to set Pushly profile:",e)}},[e,l])}])},369769,e=>{"use strict";e.i(571195);var t=e.i(155252),r=e.i(585683),i=e.i(206507),n=e.i(959377),a=e.i(330871),o=e.i(528600),l=e.i(546446),s=e.i(310847),c=e.i(64412);e.i(897892);let u=()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},d=()=>{let{user:e}=(0,o.useUser)(),t=(0,l.useAtomValue)(s.userHasLoggedInBeforeAtom),{location:r}=(0,c.useLocation)(),[n,d]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e;(e=u())&&e!==n&&d(e);let t=setInterval(()=>{let e=u();e&&(d(e),clearInterval(t))},1e3);return()=>clearInterval(t)},[n]);let{latitude:m,longitude:p}=(e=>{if(!e)return{latitude:void 0,longitude:void 0};let[t,r]=e.split(",");return{latitude:t?parseFloat(t):void 0,longitude:r?parseFloat(r):void 0}})(r?.geocode);return(0,a.usePushlyProfile)({isPremium:e.isUserPremium,isUserLoggedIn:e.isUserLoggedIn,userHasLoggedInBefore:t??!1,locationData:r?{placeId:r.placeId,latitude:m,longitude:p,postalCode:r.postalCode}:void 0,upsUserId:e.userID||void 0,mParticleId:n||void 0}),null},m="samsung_widget",p="en-US";e.s(["Pushly",0,({serviceWorkerPath:e,partner:a,locale:o="en-US"})=>{let[l,s]=(0,i.useState)(!1),c="XJe7TqRv7lQ0gyF5biuPnAchWgRhgAjeQc0h";return((0,n.useInitializeSdk)({domainKey:c||"",serviceWorkerPath:e,enabled:l&&a!==m&&o===p&&!!c}),a===m||o!==p)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{src:`https://cdn.p-n.io/pushly-sdk.min.js?domain_key=${c}`,strategy:"afterInteractive",onLoad:()=>{console.log("Pushly SDK loaded"),s(!0)},onError:e=>{console.error("Failed to load Pushly SDK:",e)}}),(0,t.jsx)(d,{})]})}],369769)},157725,e=>{"use strict";var t=e.i(206507),r=e.i(546446),i=e.i(528600),n=e.i(776169),a=e.i(310847),o=e.i(184154),l=e.i(343277),s=e.i(553329),c=e.i(145651),u=e.i(249725);e.s(["UserPreferenceSync",0,()=>(!function(){let{user:{isUserLoggedIn:e,userID:o},userProfile:l}=(0,i.useUser)(),{updatePreferences:s}=(0,n.usePreferences)(),c=(0,r.useAtomValue)(a.wxuUserPreferenceAtom),u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{(async()=>{if(e&&l&&o&&!u.current){u.current=!0;try{c&&await s(c,!1)}catch(e){console.error("Failed to sync user preferences:",e),u.current=!1}}})()},[e,l,o,s,c])}(),!function(){let e=(0,o.useParams)(),i=e?.locale||"en-US",{favoriteLocations:n}=(0,c.default)(),{hasResolvedPlaceId:d,recordFeatureId:m}=(0,u.useLocationFeatureIds)(),[p,f]=(0,r.useAtom)(a.wxuUserLocationFeatureIdSweepVersionAtom),g=(0,t.useRef)(!1),w=(0,t.useRef)(!1);(0,t.useEffect)(()=>()=>{w.current=!0},[]),(0,t.useEffect)(()=>{if(g.current||1===p)return;let e=function(e,t){let r=new Set,i=[];for(let n of e){let e=n.placeID;!e||r.has(e)||t(e)||(r.add(e),i.push(e))}return i}(n,d);if(0===e.length){n.length>0&&1!==p&&f(1);return}g.current=!0,(async()=>{let t=!0;for(let r=0;r{let{data:r,error:n}=await (0,s.tryCatch)((0,l.getLocationPointByPlaceId)(e,i));if(w.current)return;if(n){t=!1;return}let a=r?.location;m({placeId:e,geocode:a?`${a.latitude},${a.longitude}`:void 0},a?.featureId??null)}))}t&&!w.current&&f(1)})()},[n,d,m,p,f,i])}(),null)],157725)},599827,e=>{"use strict";var t=e.i(206507),r=e.i(897892),i=e.i(528600),n=e.i(543512),a=e.i(901351);function o(){let e=new URLSearchParams(window.location.search),t=e.get("re");e.delete("re"),window.history.replaceState({},"",window.location.href.replace(`${0==[...e].length?"?":""}re=${t}`,"")),t||(e.set("re",Date.now().toString()),window.location.search=e.toString())}e.s(["PurchaseTokenRefresh",0,()=>{let{user:e}=(0,i.useUser)();return(0,t.useEffect)(()=>{let t=e.subscriptionTier===n.UserSubscriptionTiers.standard,i=(0,r.getCookie)("premium"),l=!1;if(i&&"string"==typeof i){let e=i.split(".")[1];if(e)try{let{expirationDateTime:t,iat:r,premium:i}=JSON.parse(atob(e))||{};if(i){let e=new Date(t);e.setDate(e.getDate()-1);let i=new Date,n=new Date(1e3*r);n.setDate(n.getDate()+1),l=i>=n&&i>=e}}catch(e){console.error("Failed to parse premium cookie JWT:",e)}}(t||l)&&(async()=>{try{let e=await a.upsxClient.purchase.getPurchaseToken();t&&e?.premium&&o()}catch(e){console.error("Failed to refresh purchase token:",e)}})()},[e.subscriptionTier]),null},"reloadPageWithLoopCheck",0,o])},520362,e=>{"use strict";var t=e.i(155252),r=e.i(206507);let i=e=>{let{apiRoute:t,depth:i,refresh:n,serverURL:a}=e,o=(0,r.useRef)(!1),l=(0,r.useCallback)(e=>{e.origin===a&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof n?n():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[n,a]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",l),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}),n()),()=>{"u">typeof window&&window.removeEventListener("message",l)}),[a,l,i,t,n]),null};var n=e.i(184154);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"},l=e=>{let r=(0,n.useRouter)();return(0,t.jsx)(i,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,l],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),i=(0,r.useRef)(null),n=(0,r.useRef)(null),l=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{if("u"{let r=t.current,n=e.current;if(!r||!n)return;if(!r.isConnected){t.current=null,n.style.opacity="0",i.current?.disconnect();return}let a=r.getBoundingClientRect();n.style.top=`${a.top+window.scrollY}px`,n.style.left=`${a.left+window.scrollX}px`,n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.opacity="1"},[]),u=(0,r.useCallback)(()=>{t.current=null,l.current=null,e.current&&(e.current.style.opacity="0"),i.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===n.current&&(n.current=requestAnimationFrame(()=>{n.current=null,c()}))},[c]),m=(0,r.useCallback)(e=>{if(e===l.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 n=(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?m(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!==n.current&&cancelAnimationFrame(n.current),i.current?.disconnect(),e.current?.remove()}},[m,u,d]),null},"LivePreviewListener",0,l],520362)}]);