(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,238430,e=>{"use strict";var t=e.i(902875),i=e.i(247865);e.s(["default",0,function({candidate:e,failedMessage:a="Authentication failed. Please try again.",protectMessage:o="Remove your adblocker.",fetch:r,refresh:n,getCustomAccountInfo:l}){let[s,d]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),h=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==h.current[0]&&(h.current=[e.id],e.transactIDs&&h.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,i.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{d(a)})}catch{d(a)}},[r,a,n]),y=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(y.admiral=y.admiral||function(...e){(y.admiral.q=y.admiral.q||[]).push(e)},y.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(d(o),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!l;y.admiral("after","visitor.latest",function(i){var a;if("account"===e.requirement)(t?l().registered:i.status.registered)||m||(d(o),u(!0));else if("benefits"===e.requirement){let i=[];if(t)i=l().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(a=e.find(e=>e.startsWith("admbenefits=")))?void 0:a.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void g(!0);let a=!1;for(let e of t)i.includes(e)&&(a=!0);a?g(!0):(d(o),u(!0))}else d(o),u(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(g(!1),w())},[f,w]),(0,i.useEffect)(()=>{m||!c||(p(!0),y.admiral("targeting","force",{candidateIDs:h.current}))},[m,c,h,y]),(0,t.jsxs)("div",{children:[s||null," "]})}])},590238,e=>{"use strict";var t=e.i(725287),i=e.i(537989);e.i(609717);var a=e.i(950771),o=e.i(695203),r=e.i(604323),n=e.i(797770),l=e.i(236433),s=e.i(513539),d=e.i(991511);e.s(["AnalyticsBoundary",0,e=>{let c=(0,t.usePathname)();return(0,d.useRehydrateAtoms)([[i.pageIdAtom,e.pageId],[a.pageLocaleAtom,e.pageLocale],[o.deviceClassAtom,e.deviceClass],[r.metricsArticleDataAtom,e.metricsArticleData],[n.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[s.layoutStateAtom,e.layoutState??null],[s.activeEventAtom,e.activeEvent??null],[l.pageAtomsPathnameAtom,c]]),null}])},855602,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(1567),o=e.i(782552),r=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:l,variant:s="frontend",children:d})=>{let c=(0,a.useTrackModuleViewed)(),u=(0,o.useTrackModuleViewed)(),m="admin"===s,p=(0,i.useCallback)(()=>{c({moduleId:e,modulePosition:n}),u({moduleId:e,modulePosition:n})},[c,u,e,n]),f=(0,i.useRef)(null),[g,h]=(0,i.useState)([]),w=(0,i.useCallback)(()=>{let e=f.current?Array.from(f.current.children):[];h(t=>t.length===e.length&&t.every((t,i)=>t===e[i])?t:e)},[]);return((0,i.useEffect)(()=>{let e=f.current;if(!e||(w(),"u"t.disconnect()},[w,m]),(0,r.useFullVisibilityOnce)(p,{targets:g,disabled:m}),m)?(0,t.jsx)(t.Fragment,{children:d}):(0,t.jsx)("div",{ref:f,className:"hide-empty","data-module-id":e,"data-module-key":l,"data-item-position":n,children:d})}])},551699,e=>{"use strict";var t=e.i(247865),i=e.i(333350);let a=2e3,o=[0,.25,.5,.75,1],r=e=>e.right-e.left>0&&e.bottom-e.top>0;e.s(["useFullVisibilityOnce",0,(e,{targets:n,dwellMs:l=a,disabled:s=!1})=>{let[d,c]=(0,t.useState)(!1),u=(0,t.useRef)(null),m=(0,t.useRef)(!1),p=(0,t.useRef)(e);(0,t.useEffect)(()=>{p.current=e},[e]),(0,t.useEffect)(()=>{if(s||d||m.current||!i.default||0===n.length)return;let e=new Map,t=()=>{u.current&&(clearTimeout(u.current),u.current=null)},a=()=>{u.current=null,m.current||(m.current=!0,p.current(),c(!0))},f=new IntersectionObserver(i=>{let o;if(i.forEach(t=>{e.set(t.target,t.boundingClientRect)}),e.sizenull!==e.rootBounds)?.rootBounds??null,d=s?{width:s.width,height:s.height}:{width:window.innerWidth,height:window.innerHeight};((e,t)=>{if(!e||!r(e)||t.width=0&&e.bottom=t.height,o=e.left>=0&&e.right=t.width;return(i||a)&&(o||n)})(0===(o=[...e.values()].filter(r)).length?null:o.reduce((e,t)=>({top:Math.min(e.top,t.top),left:Math.min(e.left,t.left),bottom:Math.max(e.bottom,t.bottom),right:Math.max(e.right,t.right)}),{top:1/0,left:1/0,bottom:-1/0,right:-1/0}),d)?u.current||m.current||(u.current=setTimeout(a,l)):t()},{threshold:o});return n.forEach(e=>f.observe(e)),()=>{t(),f.disconnect()}},[n,s,d,l])}])},1567,782552,e=>{"use strict";var t=e.i(947118),i=e.i(737801),a=e.i(546446),o=e.i(513539),r=e.i(247865);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",n=(0,t.useIsInitialized)(),l=(0,i.useEventAttributes)(),s=(0,a.useAtomValue)(o.layoutStateAtom);return(0,r.useCallback)(({moduleId:t,modulePosition:i})=>{if(!n)return void console.warn("MParticle is not initialized");let a={...l,moduleId:t,modulePosition:String(i),layoutState:s};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,a),console.debug(`MParticle: Event "${e}" tracked`,a)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[l,n,s])}],1567);var n=e.i(725287),l=e.i(540768),s=e.i(682142),d=e.i(782937),c=e.i(695881),u=e.i(333350),m=e.i(64412),p=e.i(950771),f=e.i(537989),g=e.i(695203),h=e.i(158662),w=e.i(358273),y=e.i(122124),b=e.i(777638),v=e.i(727365),C=e.i(896363),x=e.i(924776),_=e.i(409628),A=e.i(605781);let S=(0,c.createLogger)("useTrackModuleViewed"),k=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),E=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),P=[];function I(e){try{(0,A.trackModuleViewed)(e),S.info(`Hightouch: Event "module-viewed" tracked - ${e.moduleId}`)}catch(e){S.error('Hightouch: Event "module-viewed" failed',{error:e})}}e.s(["useTrackModuleViewed",0,()=>{let e=(0,n.usePathname)(),t=(0,a.useAtomValue)(f.pageIdAtom),i=(0,a.useAtomValue)(p.pageLocaleAtom),c=(0,a.useAtomValue)(g.deviceClassAtom),A=(0,a.useAtomValue)(o.layoutStateAtom),S=(0,a.useAtomValue)(h.experimentJoinListAtom),{location:M}=(0,m.useLocation)(),N=(0,x.useIsHightouchReady)(),T=(0,r.useCallback)(({moduleId:a,modulePosition:o})=>{let r=(0,s.getCICookie)(),n=r?.["TWC-GeoIP-Country"]??(0,l.getCookie)("twc-location-country"),u=r?.["TWC-GeoIP-Region"]??(0,l.getCookie)("twc-location-region"),m=r?.["TWC-Privacy"]??(0,l.getCookie)("twc-privacy"),p=window.DprSdk?.getGdprConsentOptInsString()??"",f=window.DprSdk?.getCcpaSaleOptInString()??"",g=window.navigator?.globalPrivacyControl??!1,h=p?.includes("functional-technology")??!1,x=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,P=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,I=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),N=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),T=navigator?.cookieEnabled??!1,W=(0,l.getCookie)("partner")||"",j=(0,d.getPartnerByPattern)(W)??W,D=(0,w.getMetricsSession)(),F=D?.sessionId||"",V=new Date(D?.sessionStartTime||0).toISOString(),L=new Date,R=L.getHours(),O=_.WEEK_DAYS[L.getDay()]??"",B="article"===t||"video"===t?(0,y.stripLastPartOfSlug)(e??""):(0,y.getAnonymizedPath)(e??""),X=(0,v.normalizeWlocType)(M?.type),H=M?.featureSource??null;return{moduleId:a,modulePosition:String(o),layoutState:A??void 0,pageId:t??"",url:B,referrer:document.referrer,locale:i,deviceClass:c,partner:j,sessionId:F,sessionStartTime:V,siteMode:"normal",dayOfWeek:O,hourOfDay:R,regime:m??"",cookiesEnabled:T,gpcSignalOptOut:g,functionalTechnologies:h,geographicallyRelevantAds:x,interestBasedAds:P,priv:p,privProducts:f,saleOfDataAuthorization:I,sensitiveDataAuthorization:N,campaign:(0,b.getCampaign)(),experimentJoinList:S,weatherMode:"normal",physicalCountry:n??"",physicalState:u??"",wlocCity:M?.city??null,wlocCountry:M?.countryCode??null,wlocState:M?.adminDistrictCode??null,wlocDMA:M?.dmaCd??null,wlocId:M?.placeId??null,wlocFeatureId:M?.featureId??null,wlocFeatureSource:null!=H&&E.has(H)?H:void 0,wlocTags:M?.tags?.length?(0,C.parseArrayToString)(M.tags):null,wlocType:null!==X&&k.has(X)?X:void 0,samsungVersion:(0,b.getSamsungVersion)(),appVersion:"b1f2a8b9d69b0e3e05fe6d294ee6a35cce1a3921".slice(0,10)}},[e,t,i,c,A,S,M]);return(0,r.useEffect)(()=>{if(!N||0===P.length)return;let e=P;P=[],e.forEach(I)},[N]),(0,r.useCallback)(e=>{if(!u.default)return;let t=T(e);N?I(t):P.push(t)},[N,T])}],782552)},853686,e=>{"use strict";var t=e.i(902875),i=e.i(333350),a=e.i(283366);let o=["cw12138"],r=["cw12648"];function n({flagKey:e,requireReachableFold:t=!0}){let o=i.default?function(e,t){let i=function(e){try{let t=window.localStorage.getItem(`amp-exp-$default_instance-${"client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6)}`);if(!t)return;let i=JSON.parse(t);if(!l(i))return;let a=i[e];if(!l(a)||!a.expKey||!a.key&&!a.value)return;return a}catch{return}}(e);if(i&&(!t||function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let i=!1,a=!1;for(let r of Object.values(t)){let t=r?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;i=!0;let n=l(e)?e[t]:void 0;if(void 0!==n){var o;l(n)&&"number"==typeof(o=n.interval)&&Number.isFinite(o)&&o>=1e4&&o(0,t.jsx)(n,{flagKey:e},e)),r.map(e=>(0,t.jsx)(n,{flagKey:e,requireReachableFold:!1},e))]})}],853686)},406752,e=>{"use strict";var t=e.i(247865),i=e.i(295553),a=e.i(991511),o=e.i(546446),r=e.i(726249),n=e.i(935807),l=e.i(919101),s=e.i(527091),d=e.i(767685),c=e.i(310847),u=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:m})=>{let p=(0,o.useAtomValue)(c.wxuUserRecentAddressesAtom),f=(0,o.useAtomValue)(c.wxuUserRecentLocationsDataAtom),[,g]=(0,o.useAtom)(i.pageLocationDataAtom),h=(0,o.useSetAtom)(u.activeLocationAtom),w=(0,t.useMemo)(()=>{let t,i;return m?(0,d.honorRecentLocationName)(m,f):(t=(0,l.getAddressForLocationData)(e.location,p),i=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,r.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,n.getLocationPresentationName)(t,[],!1,i),name:(0,n.getLocationName)(t,[],!1,i),context:(0,n.getLocationContext)(t,[],!1,i),ianaTimeZone:(0,s.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[m,e,p,f]);(0,a.useRehydrateAtoms)([[i.pageLocationDataAtom,w]]);let y=(0,t.useRef)(null);return(0,t.useEffect)(()=>{g(w);let e=w.placeId;y.current!==e&&(h({placeId:w.placeId,geocode:w.geocode,featureId:w.featureId}),y.current=e)},[w,g,h]),null}],406752)},217027,e=>{"use strict";var t=e.i(247865),i=e.i(546446),a=e.i(650130);e.i(304158);var o=e.i(485737),r=e.i(150137),n=e.i(64412);e.s(["useTravelerMode",0,function(){let{location:e}=(0,n.useLocation)(),l=(0,i.useAtomValue)(r.preciseGeocodeAtom),s=(0,i.useAtomValue)(o.geoipGeocode),d=l||s,{distanceInKm:c,distanceInMiles:u}=(0,t.useMemo)(()=>{if(!d||!e?.geocode)return{distanceInKm:null,distanceInMiles:null};let[t,i]=d.split(","),o=parseFloat(t??""),r=parseFloat(i??""),[n,l]=e.geocode.split(","),s=parseFloat(n??""),c=parseFloat(l??"");if(isNaN(o)||isNaN(r)||isNaN(s)||isNaN(c))return{distanceInKm:null,distanceInMiles:null};let u=(0,a.calculateDistance)(o,r,s,c);return{distanceInKm:u,distanceInMiles:.621371*u}},[d,e?.geocode]);return{isTravelerMode:null!==u&&u>=75,isLocalMode:null!==u&&u{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedTopAdHeightAtom",0,t])},495406,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(725287),o=e.i(16838),r=e.i(632137),n=e.i(380993),l=e.i(546446),s=e.i(5397),d=e.i(688070),c=e.i(647292),u=e.i(697380),m=e.i(219246);let p="min-h-[50px] my-2",f="min-h-[90px]",g="min-h-[250px]",h="min-h-[600px]",w={WX_Hidden:{type:"custom",containerClasses:"hidden"},WX_BottomLeader:{type:"standard",placeholderClass:f},WX_Bot300:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX1:{type:"standard",placeholderClass:g},WX_Bot300AdX2:{type:"standard",placeholderClass:g},WX_Bot300AdX3:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX4:{type:"standard",placeholderClass:g},WX_Bot300AdX5:{type:"standard",placeholderClass:g},WX_Bot300AdX6:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_PromoDriver1:{type:"standard",placeholderClass:g},WX_FlexLeader:{type:"standard",placeholderClass:f},WX_MidLeader:{type:"standard",placeholderClass:f},WX_MidLeader2:{type:"standard",placeholderClass:f},WX_MidLeader3:{type:"standard",placeholderClass:f},WX_MidLeader4:{type:"standard",placeholderClass:f},WX_Top300Small:{type:"standard",placeholderClass:g},WX_Top300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},WX_Mid300:{type:"standard",placeholderClass:g},WX_Mid300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},MW_Position2:{type:"standard",placeholderClass:g},MW_Position3:{type:"standard",placeholderClass:g},MW_Position3_Hourly:{type:"standard",placeholderClass:g},MW_Position4:{type:"standard",placeholderClass:g},MW_Position5:{type:"standard",placeholderClass:g},WX_WindowShade:{type:"standard",placeholderClass:g,tabletPlaceholderClass:f,containerClasses:"pb-0 rounded-3xl",disableBorder:!0},WX_Leaderboard:{type:"standard",placeholderClass:f},MW_Position1:{type:"custom",placeholderClass:p,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",mobileAppContainerClasses:"bg-gray-100 block fixed w-full bottom-0 left-0 z-adOverlay",isBottomFixed:!0},MW_Position1_Samsung:{type:"custom",placeholderClass:p,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",isBottomFixed:!0},MW_Position1_Radar:{type:"custom",placeholderClass:p,containerClasses:"bg-gray-100 block fixed w-full top-0 left-[0px] z-adOverlay",isTopFixed:!0},MW_Position_ContentFeedAd1:{type:"nativeVideoPlaylist"},MW_Position_ContentFeedAd11:{type:"nativeVideoPlaylist"},WX_ContentFeed1:{type:"nativeVideoPlaylist"},WX_ContentFeedRadar:{type:"standardNative",persistElementOnEmpty:!0,containerClasses:"bg-gray-100 [&_[id$=ContentFeedRadar]]:w-full"}};var y=e.i(528600),b=e.i(849177);function v({eventName:e,enabled:t,filter:a}){let[o,r]=(0,i.useState)(!1),n=(0,i.useRef)(!1),l=(0,i.useRef)(a);return l.current=a,(0,i.useEffect)(()=>{if(!t){n.current=!1;return}if(n.current)return;let i=!0;return window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent(e,l.current?{filter:l.current}:void 0).then(()=>{i&&r(!0)}).catch(t=>{console.error(`Error waiting for ${e}:`,t)})}),n.current=!0,()=>{i=!1,n.current=!1}},[t,e]),{triggered:o}}var C=e.i(421956),x=e.i(456215),_=e.i(176540);let A={adSlots:!0,adFallbackPromo:!0,adScripts:!0,adVideo:!0,taboola:!0,adLayoutReservation:!0,adScaffolding:!0,promoMorningBrief:!0,contentRecirculation:!0,sdkConsent:!0,sdkPush:!0,sdkAnalytics:!0},S=[{name:"atmosphere",when:e=>(0,_.default)(e.article),disables:["adSlots","adFallbackPromo","adScripts","taboola","promoMorningBrief"]},{name:"snowcast",when:e=>(0,x.isSnowCastWebView)(e.webViewPlatform),disables:["adSlots","adFallbackPromo","adScripts","adVideo","taboola","adLayoutReservation","adScaffolding","promoMorningBrief","contentRecirculation","sdkConsent","sdkPush"]},{name:"premium",when:e=>!0===e.isUserPremium,disables:["adSlots","adScripts","adVideo","taboola"]},{name:"adsKillswitch",when:e=>!0===e.adsKillswitch,disables:["adSlots","adScripts","adVideo","taboola"]}],k=({globalPageProps:e,...i})=>{let{adSlots:a,adFallbackPromo:o}=function(e){let t={...A};for(let i of S)if(i.when(e))for(let e of i.disables)t[e]=!1;return t}({webViewPlatform:(0,l.useAtomValue)(c.webViewPlatformAtom),article:e?.article??null,isUserPremium:null,adsKillswitch:null});return a||o?(0,t.jsx)(E,{...i}):null},E=({adId:e,adSlot:c,stickyReplaceSlot:p,title:f="Advertisement",className:g,sticky:h=!1,disableRegisteredUsers:x=!1,placeholderContent:_,fallbackPromoDriver:A})=>{let S=e||("object"==typeof c?c.slotTarget:void 0)||"",k="object"==typeof p?p?.slotTarget:void 0,E=S?w[S]??w[S.replace(/_GLS$/,"")]:void 0,I=(0,a.useParams)()?.locale,M=(0,l.useAtomValue)(s.showAdminHeaderAtom),N=(0,l.useAtomValue)(d.isWebViewOnlyAtom)&&E?.mobileAppContainerClasses?E.mobileAppContainerClasses:E?.containerClasses,T=(0,l.useSetAtom)(u.fixedBottomAdHeightAtom),W=(0,l.useSetAtom)(m.fixedTopAdHeightAtom),{shouldRender:j,placeholderClass:D}=function({adId:e,adSlotConfig:t,disableRegisteredUsers:a=!1}){let{user:o}=(0,y.useUser)(),r=(0,l.useAtomValue)(b.adsDisabledAtom),n=o.isUserPremium||r||!e||!!a&&o.isUserLoggedIn;!function({adId:e,adSlotType:t,enabled:a}){let o=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(a&&("standardNative"===t||"nativeVideoPlaylist"===t)&&!o.current){try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("WX_ContentFeedRadar"===e)return{currContentFeedIndex:null,baseNativeAdPosition:"WX_ContentFeedRadar"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error(`Could not parse index from ContentFeed adId: ${e}`),null})(e);if(t){let{currContentFeedIndex:i,baseNativeAdPosition:a}=t,o=window.__HeliosConfig.slotsConfig[a];if(o){let t=null!==i?`${o.adUnitPath}/contentfeed${i}`:o.adUnitPath;window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${a}`)}}catch(e){console.error("Error rendering native ad",e)}o.current=!0}},[e,t,a])}({adId:e,adSlotType:t?.type,enabled:!n});let{adSlotRenderEvent:s}=function({adId:e,enabled:t=!0}){let[a,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(!t||!e)return;let i=t=>{t.slot.getSlotElementId()===e&&o(t)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotRenderEnded",i)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotRenderEnded",i)})}},[e,t]),{adSlotRenderEvent:a}}({adId:e,enabled:!n}),{isAdHidden:d}=function(e,t=!0){let[a,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!e||!t)return;let i=document.getElementById(e);if(!i)return;let a=()=>{o("none"===window.getComputedStyle(i).display)};a();let r=new MutationObserver(a);return r.observe(i,{attributes:!0,attributeFilter:["style","class"]}),()=>r.disconnect()},[e,t]),{isAdHidden:a}}(e,!n),{isSlotConfigDeleted:c}=function({adId:e,enabled:t}){let{triggered:i}=v({eventName:"SLOT_CONFIG_DELETED",enabled:t&&!!e,filter:t=>t.args[0].slotId===e});return{isSlotConfigDeleted:i}}({adId:e,enabled:!n}),{isAdsExcluded:u}=function({enabled:e}){let{triggered:t}=v({eventName:"ERROR_EXCLUSION",enabled:e});return{isAdsExcluded:t}}({enabled:!n}),m=!!t?.persistElementOnEmpty,p=!n&&(m||!d)&&(m||!s?.isEmpty)&&!c&&!u,{placeholderClass:f}=function({adId:e,adSlotConfig:t,enabled:i}){let{isIMAdDetected:a}=function({adId:e,enabled:t}){let{triggered:i}=v({eventName:"IM_AD_DETECTED_FOR_MW",enabled:t&&e.includes("MW_Position1")});return{isIMAdDetected:i}}({adId:e,enabled:i}),{isTabletDetected:o}=function({enabled:e}){let{triggered:t}=v({eventName:"TABLET_DETECTED",enabled:e});return{isTabletDetected:t}}({adId:e,enabled:i}),r=o?t?.tabletPlaceholderClass??t?.placeholderClass:t?.placeholderClass;return{placeholderClass:a?"h-0 min-h-0 p-0":r}}({adId:e,adSlotConfig:t,enabled:!n});return{shouldRender:p,placeholderClass:f}}({adId:S,adSlotConfig:E,disableRegisteredUsers:x}),F=(0,i.useRef)(null),{isReplaceSlotVisible:V}=function({adId:e,stickyReplaceId:t,enabled:a=!0}){let[o,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let i=t&&t!==e?t:null;if(!a||!i)return;let o=e=>{e.slot.getSlotElementId()===i&&r(!0)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotVisibilityChanged",o)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotVisibilityChanged",o)})}},[e,t,a]),{isReplaceSlotVisible:o}}({adId:S,stickyReplaceId:k,enabled:j});if((0,i.useEffect)(()=>{let e=F.current,t=E?.isTopFixed||E?.isBottomFixed;if(!(j&&e&&t))return;let i=E?.isTopFixed?W:T,a=()=>i(e.offsetHeight),o=new ResizeObserver(a);return o.observe(e),a(),()=>{o.disconnect(),i(0)}},[j,S,T,W,E?.isBottomFixed,E?.isTopFixed]),!j){let[e]=A||[];return e&&"en-US"===I?(0,t.jsx)(C.PromoDriverBlock,{...e}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.DebugCollector,{componentName:"AdBlock",data:{props:{adId:S,adSlot:c,adSlotConfig:E,sticky:h},state:{shouldRender:j},performance:{renderTime:Date.now()}},enabled:M}),(0,t.jsx)(n.Card,{ref:F,variant:E?.type==="standard"?"bottom":"ghost",border:E?.disableBorder?"none":void 0,padding:E?.disableBorder?"none":void 0,style:V?{display:"none"}:void 0,className:(0,r.cn)("region-contentTop","adContainer disableHeliosStyles",!h&&"overflow-hidden",E?.type==="standard"&&"pb-6",E?.type==="nativeVideoPlaylist"&&"[&_iframe]:mt-[10px]",h&&E?.stickyHeight,N,g),"aria-label":"Advertisement",children:(0,t.jsxs)(n.CardContent,{className:(0,r.cn)(E?.type==="standard"&&"bg-gray-100 pb-6",h&&E?.stickyClasses),children:[E?.type==="standard"&&f&&(0,t.jsx)("div",{className:"text-xxs w-full px-4 py-1 text-center leading-4 text-gray-400",children:f}),(0,t.jsx)("div",{"data-testid":`${S}-container`,className:(0,r.cn)("flex w-full justify-center",E?.verticalAlign==="top"?"items-start":"items-center",D),children:_?(0,t.jsx)("div",{id:S,"data-testid":S,children:_}):(0,t.jsx)(P,{adId:S})})]})})]})},P=i.default.memo(({adId:e})=>(0,t.jsx)("div",{id:e,"data-testid":e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}),()=>!0);P.displayName="StableAdDiv",e.s(["AdBlock",0,k,"default",0,k],495406)},267538,e=>{e.q("/_next/static/immutable/media/weather-bg-sprite.32wix_aaq3qmi.jpg")},425912,e=>{e.q("/_next/static/immutable/media/weather-bg-sprite.2ol3vhh5gt8dk.webp")},421956,e=>{"use strict";var t=e.i(902875),i=e.i(37429),a=e.i(240058),o=e.i(155879);let r=({title:e,image:r,subtitle:n,bodyText:l,ctaButton:s})=>{let d=s?.url&&/^https?:\/\//i.test(s.url),c=(0,o.isImageObject)(r)?r:null;return e||c&&c?.url||n||l||s?(0,t.jsxs)("div",{"data-promo-driver":!0,className:"overflow-hidden rounded-lg bg-white",children:[e&&(0,t.jsx)("div",{className:"pb-4",children:(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:e})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[c?.url?(0,t.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white",children:(0,t.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,t.jsx)("a",{href:s&&s.url||"#",className:"block h-full w-full",children:(0,t.jsx)(i.default,{src:c.url,alt:e||"Promo image",fill:!0,objectFit:"cover",sizes:"(max-width: 767px) 100vw, 400px",rounded:!1})})})}):null,(n||l||s)&&(0,t.jsxs)("div",{className:"pt-4",children:[n&&(0,t.jsx)("a",{href:s&&s.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:n})}),l&&(0,t.jsx)("a",{href:s&&s.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:l})}),s&&(0,t.jsx)("div",{className:"flex justify-end",children:d?(0,t.jsx)("a",{href:s.url||"#",target:s.openInNewTab?"_blank":"_self",rel:s.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:s.text}):(0,t.jsx)(a.default,{href:s.url||"#",target:s.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:s.text})})]})]})]}):null};e.s(["PromoDriverBlock",0,r,"default",0,r])},204782,e=>{"use strict";var t=e.i(247865),i=e.i(546446),a=e.i(528600),o=e.i(37423);e.s(["default",0,function(){let{user:e}=(0,a.useUser)(),[r,n]=(0,t.useState)(!1),l=(0,i.useAtomValue)(o.dprSdkIsInitializedAtom);return(0,t.useEffect)(()=>{l&&n((()=>{try{if(void 0!==window?.DprSdk){let e=window?.DprSdk?.getFeatureFlags();return e?.taboola??!0}return!0}catch(e){return!0}})())},[l]),r&&!e?.isUserPremium}])},176540,e=>{"use strict";e.s(["default",0,function(e){return!!e?.category&&"atmosphere"===function(e){if(!e?.value)return;let{value:t}=e;if("string"==typeof t)return t.split("/")[0];let i=t.pathSegments?.[0]?.segment;return"string"==typeof i&&i.length>0?i:"string"==typeof t.id&&t.id.length>0?t.id.split("/")[0]:void 0}(e.category)}],176540)},115284,e=>{"use strict";var t=e.i(902875),i=e.i(247865),a=e.i(533760),o=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let n=(0,o.default)();return((0,i.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),r&&window._newsroom.push({pageDashboard:r}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,r]),n&&e)?(0,t.jsx)(a.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,r,"default",0,r])},155879,e=>{"use strict";e.s(["isImageObject",0,function(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&null!==e.seo&&"object"==typeof e.seo&&"altText"in e.seo)}])}]);