(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),i=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:s="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:n,refresh:r,getCustomAccountInfo:o}){let[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!1),[m,f]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),p=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,i.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&r()}).catch(()=>{c(s)})}catch{c(s)}},[n,s,r]),x=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(x.admiral=x.admiral||function(...e){(x.admiral.q=x.admiral.q||[]).push(e)},x.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),d(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;x.admiral("after","visitor.latest",function(i){var s;if("account"===e.requirement)(t?o().registered:i.status.registered)||m||(c(a),d(!0));else if("benefits"===e.requirement){let i=[];if(t)i=o().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(s=e.find(e=>e.startsWith("admbenefits=")))?void 0:s.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void g(!0);let s=!1;for(let e of t)i.includes(e)&&(s=!0);s?g(!0):(c(a),d(!0))}else c(a),d(!0)}})}}))},[]),(0,i.useEffect)(()=>{h&&(g(!1),v())},[h,v]),(0,i.useEffect)(()=>{m||!u||(f(!0),x.admiral("targeting","force",{candidateIDs:p.current}))},[m,u,p,x]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var i=e.i(950771),s=e.i(695203),a=e.i(604323),n=e.i(797770),r=e.i(513539),o=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,o.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[s.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[n.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[r.layoutStateAtom,e.layoutState??null],[r.activeEventAtom,e.activeEvent??null]]),null)])},853686,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(333350),s=e.i(283366);let a=["cw12138"],n=["cw12648"];function r({flagKey:e,requireReachableFold:t=!0}){let a=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(!o(i))return;let s=i[e];if(!o(s)||!s.expKey||!s.key&&!s.value)return;return s}catch{return}}(e);if(i&&(!t||function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let i=!1,s=!1;for(let n of Object.values(t)){let t=n?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;i=!0;let r=o(e)?e[t]:void 0;if(void 0!==r){var a;o(r)&&"number"==typeof(a=r.interval)&&Number.isFinite(a)&&a>=1e4&&a(0,t.jsx)(r,{flagKey:e},e)),n.map(e=>(0,t.jsx)(r,{flagKey:e,requireReachableFold:!1},e))]})}],853686)},855602,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(1567),a=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:r,variant:o="frontend",children:l})=>{let c=(0,s.useTrackModuleViewed)(),u="admin"===o,d=(0,i.useCallback)(()=>{c({moduleId:e,modulePosition:n})},[c,e,n]),m=(0,i.useRef)(null),[f,h]=(0,i.useState)([]),g=(0,i.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];h(t=>t.length===e.length&&t.every((t,i)=>t===e[i])?t:e)},[]);return((0,i.useEffect)(()=>{let e=m.current;if(!e||(g(),"u"t.disconnect()},[g,u]),(0,a.useFullVisibilityOnce)(d,{targets:f,disabled:u}),u)?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":r,"data-item-position":n,children:l})}])},115284,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(185312),a=e.i(204782);let n=({pageTemplate:e,pageDashboard:n})=>{let r=(0,a.default)();return((0,i.useEffect)(()=>{r&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),n&&window._newsroom.push({pageDashboard:n}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[r,e,n]),r&&e)?(0,t.jsx)(s.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,n,"default",0,n])},576816,703123,e=>{"use strict";var t=e.i(592121),i=e.i(959194),s=e.i(947118),a=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let n=(0,s.useIsInitialized)(),r=(0,a.useEventAttributes)(),[o,l]=(0,t.useState)(!1),c=(0,t.useRef)(!1),u=(0,t.useMemo)(()=>{let t={...r,formVariant:e.formVariant,sensitiveDataAuthorization:e.sensitiveDataAuthorization,deviceTimeZone:e.deviceTimeZone,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(t.url=e.url),void 0===t.formVariant&&delete t.formVariant,void 0===t.sensitiveDataAuthorization&&delete t.sensitiveDataAuthorization,void 0===t.deviceTimeZone&&delete t.deviceTimeZone,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,t},[r,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,i.areObjectValuesDefined)(u)&&!o&&l(!0)},[u,o]),(0,t.useCallback)(async()=>{if(n&&o&&!c.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,u),c.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${u.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[n,u,o])}],576816);let n=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,n],703123)},61284,e=>{"use strict";e.s(["PROMO_CHECKOUT_URL",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},145473,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(592121),s=e.i(185312),a=e.i(546446),n=e.i(683903),r=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),u=e.i(422825),d=e.i(837879),m=e.i(576816),f=e.i(553329),h=e.i(695881),g=e.i(143851),p=e.i(703123),v=e.i(61284);let x=(0,h.createLogger)("useGoogleLogin");var w=e.i(404893),b=e.i(367810),j=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:h=!0,isUserLoggedIn:y,redirectToCheckoutOnSignup:k}){let I=(0,n.useTranslations)("GoogleLogin"),C=(0,a.useSetAtom)(w.googleLoginInitilizedAtom),{loginWithGoogle:N,error:A,clearError:S}=function(e=!1){let t=(0,n.useTranslations)("GoogleLogin"),[s,h]=(0,i.useState)(null),w=(0,a.useSetAtom)(l.userHasLoggedInBeforeAtom),b=(0,a.useAtomValue)(p.gsiEmailStatesAtom),{updateEmailSubscriptions:j}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:y}=(0,r.usePageNavigation)(),{syncPreferencesFromUpsx:k}=(0,c.usePreferences)(),{authSuccess:I,authRedirect:C}=(0,g.useUserLogin)(),N=(0,d.useSubscriptionsEnabled)(),A=(0,m.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0});return{loginWithGoogle:(0,i.useCallback)(async i=>{let{credential:s}=i;h(null);try{let t=await o.upsxClient.auth.loginWithGoogle({google_id_token:s}),i=t?.isFirstLogin;if(await I({email:t.email,userID:t.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:!!i}),i){let{error:e}=await (0,f.tryCatch)(A());e&&x.warn("Failed to track signup-complete for Google signup",e)}let{newsletter:a,weekly:n,onYourRadar:r,marketing:l,alwaysSubscribe:c}=b||{};return(i||c)&&await j({newsletter:a,weekly:n,onYourRadar:r,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),i&&e&&N?C(v.PROMO_CHECKOUT_URL):C(),!0}catch(e){console.error("Failed to login with Google",e);try{let i=e?.data,s=i?.messageCode;if(!s)throw Error("No Error Message");switch(s){case 1e3:case 1026:case 1033:h({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:h({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(e){h({header:t("somethingWentWrong")})}return!1}},[w,k,y,I,C,j,b,e,N,A]),error:s,clearError:(0,i.useCallback)(()=>{h(null)},[])}}(k),E=(0,j.useRefMemo)(N),_=(0,i.useRef)(null);A&&(_.current=A);let L=_.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{E.current?.(e)}}),C(!0)),e?.(),!y&&h&&t?.prompt()},id:"google-gsi-script"}),L&&(0,t.jsx)(b.Dialog,{open:!!A,onOpenChange:e=>!e&&S(),children:(0,t.jsx)(b.BasicDialog,{showCloseButton:!1,title:L.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:L.body||""}}),primaryAction:{label:I("cancel"),onClick:S}})})]})}],145473)},935762,e=>{"use strict";var t=e.i(699173);let i=["Topic","Topic","Topic"],s={background:"#f2f2f2",borderRadius:16,color:"#252422",fontSize:13,padding:"6px 12px",whiteSpace:"nowrap"};e.s(["TopicChipsAdminBlock",0,function({heading:e,wrapChips:a}){let n=e?.trim()??"Hot Topics:";return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8,minWidth:0},children:[n&&(0,t.jsx)("strong",{style:{fontSize:16},children:n}),i.map((e,i)=>(0,t.jsx)("span",{style:s,children:e},i))]}),(0,t.jsxs)("small",{style:{opacity:.7},children:["Chips come from the selected topic list at render time, following its published links. On the page they"," ",a?"wrap onto multiple lines":"scroll sideways on one line","."]})]})}],935762)},654075,e=>{"use strict";var t=e.i(699173);e.s(["TableAdminBlock",0,function(e){return(0,t.jsx)("div",{children:"Table"})}])},499746,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(546446),a=e.i(145651),n=e.i(249725),r=e.i(292980),o=e.i(663333);e.i(101346);var l=e.i(512134),c=e.i(64412),u=e.i(147732),d=e.i(381477),m=e.i(240058),f=e.i(316078),h=e.i(180193),g=e.i(368847),p=e.i(889951),v=e.i(726249),x=e.i(674885),w=e.i(617874),b=e.i(961123),j=e.i(325974),y=e.i(525936);let k=({isLoading:e,displayName:i,temperature:s,wxPhrase:a,iconCode:n})=>(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":i?`${i} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:i})}),(0,t.jsx)(f.WxIcon,{isLoading:e,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:n,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(h.Temperature,{value:s})})," ",(e||a)&&(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:a})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:i})}),(e||a)&&(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:a})]}),(0,t.jsx)(f.WxIcon,{isLoading:e,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:n,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(g.default,{isLoading:e,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(h.Temperature,{value:s})})]})]}),I=()=>(0,t.jsx)(k,{isLoading:!0,iconCode:-1}),C=(0,i.memo)(({identifier:e})=>{let a=(0,b.useParams)(),r=a?.locale||"en-US",o=(0,s.useAtomValue)(x.userUnitPreferenceAtom),l=(0,w.unitsSystemByName)(o)?.code,c=(0,n.useRecordFeatureId)(),u=e.placeId?void 0:e.geocode,{location:f,isLoading:h}=function(e,t){let{location:i,isLoading:s}=(0,j.useResolveCanonical)(e,t);return{location:i,isLoading:s}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,v.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:u});(0,i.useEffect)(()=>{f?.placeId&&c({placeId:f.placeId,geocode:f.geocode},f.featureId??null)},[f,c]);let{data:g,isLoading:I}=(0,d.default)(f&&["currentObservations",f.geocode,l,r],([e,t,i,s])=>(0,p.getCurrentObservations)({geocode:t,units:i,language:s}),{revalidateOnFocus:!1,dedupingInterval:6e4}),C=f?.placeId??e.placeId,{path:N,isGeolocationLoading:A}=(0,y.default)(C||"",{targetGeocode:f?.geocode??e.geocode,featureId:e.featureId??f?.featureId,canonicalID:f?.canonicalID}),S=h||I||!f||A,E=g?.temperature,_=g?.wxPhraseLong,L=g?.iconCode??-1,P=e.name||f?.name||f?.city||f?.displayName,T=(0,t.jsx)(k,{isLoading:S,displayName:P,temperature:E,wxPhrase:_,iconCode:L});return N?(0,t.jsx)(m.default,{href:N,className:"no-underline md:block md:w-full",children:T}):T},(e,t)=>{let i,s;return i=e.identifier,s=t.identifier,i.geocode===s.geocode&&i.placeId===s.placeId&&i.featureId===s.featureId&&i.name===s.name});var N=e.i(523084),A=e.i(47524),S=e.i(632137);let E={left:N.ChevronLeft,right:A.ChevronRight},_=({buttonClassName:e,containerClassName:s,onClick:a,tabIndex:n,direction:r,...o})=>{let[l,c]=(0,i.useState)(!1),u=E[r];return(0,t.jsx)("div",{className:(0,S.cn)("absolute",s),children:(0,t.jsx)("button",{className:(0,S.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",l&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),a?.()},tabIndex:n,...o,children:(0,t.jsx)(u,{className:(0,S.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",l&&"!h-6 !w-6")})})})},L="relative -mt-2 -mb-4 overflow-hidden",P="scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",T=()=>(0,t.jsx)("div",{className:L,"data-testid":"forecast-module-placeholder","aria-hidden":"true",children:(0,t.jsx)("div",{className:P,children:(0,t.jsx)(I,{})})}),M=({locationIdentifiers:e,showScrollButtons:s})=>{let[a,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),l=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>{let e=l.current;if(!e||!s){n(!1),o(!1);return}let{scrollLeft:t,offsetWidth:i,scrollWidth:a}=e,r=Math.abs(t),c=r>0,u=r+i(0,u.debounce)(m,150),[m]);(0,i.useEffect)(()=>{let e=l.current;return e&&(d.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",f),()=>{null!==c.current&&cancelAnimationFrame(c.current),f.cancel(),window.removeEventListener("resize",f)}},[m,f]);let h=(0,i.useCallback)(()=>{null===c.current&&(c.current=requestAnimationFrame(()=>{m(),c.current=null}))},[m]),g=(0,i.useCallback)(()=>{l.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,i.useCallback)(()=>{l.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:L,children:[s&&(0,t.jsx)(_,{containerClassName:(0,S.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":a}),onClick:g,tabIndex:a?0:-1,"aria-hidden":!a,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:P,role:"list","data-testid":"forecast-module",onScroll:h,ref:l,children:e.map((e,i)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(C,{identifier:e})},e.placeId??e.geocode??i))}),s&&(0,t.jsx)(_,{containerClassName:(0,S.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":r}),onClick:p,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":"Scroll right",direction:"right"})]})},O=()=>{let{favoriteLocations:e,recentLocations:u}=(0,a.default)(),{resolveFeatureId:d}=(0,n.useLocationFeatureIds)(),{resolveDetails:m}=(0,r.useRecentLocationDetails)(),f=(0,s.useAtomValue)(o.deviceClassAtom),h=(0,l.useIsClient)(),{location:g,isLoading:p}=(0,c.useLocation)(),x=(0,i.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:i,resolveDetails:s=()=>void 0}){let a=[],n=new Set,r=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,v.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let i=t.some(e=>n.has(e));for(let e of t)n.add(e);return!i};for(let t of e){if(a.length>=5)break;if(!t.coordinate)continue;let e=(0,v.formatGeocode)(t.coordinate),n=t.placeID??void 0,o=(n?s(n)?.featureId:void 0)??i({placeId:n,geocode:e});r({featureId:o,placeId:n,geocode:e})&&a.push({geocode:e,placeId:n,name:t.name??void 0,featureId:o})}for(let e of t){if(a.length>=5)break;let t=s(e),n=t?.featureId??i({placeId:e});r({featureId:n,placeId:e})&&a.push({placeId:e,name:t?.name,featureId:n})}return a})({favoriteLocations:e,recentLocations:u,resolveFeatureId:d,resolveDetails:m}),[e,u,d,m]),w=(0,i.useMemo)(()=>g?.placeId||g?.featureId?[{placeId:g.placeId||void 0,featureId:g.featureId}]:[],[g?.placeId,g?.featureId]);if(!h)return(0,t.jsx)(T,{});let b=x.length>0?x:w;return b.length>0?(0,t.jsx)(M,{locationIdentifiers:b,showScrollButtons:"mobile"!==f&&"tablet"!==f}):p?(0,t.jsx)(T,{}):null};e.s(["ForecastModule",0,O,"default",0,O],499746)},748907,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(645968),a=e.i(742436),n=e.i(949920),r=e.i(553329),o=e.i(901351),l=e.i(317298),c=e.i(528600);async function u(e,t){let{data:i,error:s}=await (0,r.tryCatch)(e?o.upsxClient.segmentation.getUserMetrics():o.upsxClient.segmentation.getAnonymousEndpointMetrics(t));if(s)return null;let a={promotesNews:(0,l.hasNewsIntent)(i?.metrics)};return(0,l.writeNextSessionIntent)(a),a}let d="next-session-intent",m="data-home-news",f={layout:"default",variant:null,eligible:!1};function h(e){document.documentElement.setAttribute(m,e)}function g(){document.documentElement.removeAttribute(m)}function p(){let e=(0,i.useContext)(a.ExperimentContext),s=e?.isFetchComplete??!1,[n,r]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),[u,m]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=window.__wxHomeNews??f;return h(e.layout),r(e.eligible),"pending"===e.layout?c(!0):e.forced||m(e.variant),g},[]);let p=(0,i.useCallback)(e=>{window.__wxHomeNews={...e,eligible:!0},h(e.layout);try{localStorage.setItem("wxu-home-news-layout",JSON.stringify(e))}catch{}c(!1),m(e.variant)},[]);return(0,i.useEffect)(()=>{if(!o)return;let e=setTimeout(()=>{p({layout:"default",variant:null})},2e3);return()=>clearTimeout(e)},[o,p]),(0,i.useEffect)(()=>{var t,i,a;if(!o||!e||!s)return;let{key:n,value:r}=e.variant(d),c="control"===(i=t=n||r)||"v1"===i||"v2"===i?t:null;p({layout:c?(a=(0,l.readNextSessionIntent)()?.promotesNews??!1,"v2"===c||"v1"===c&&a?"first":"default"):"default",variant:c})},[o,e,s,p]),(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(v,{}),u&&(0,t.jsx)(x,{})]})}function v(){return!function(){let{user:e}=(0,c.useUser)(),t=e.isUserLoggedIn?"upsx/segmentation/metrics/user":e.anonId?"upsx/segmentation/metrics/endpoint":null,{data:i}=(0,n.default)(t,()=>u(e.isUserLoggedIn,e.anonId),{shouldRetryOnError:!1})}(),null}function x(){return(0,s.default)(d),null}e.s(["HomeNewsFirstResolver",0,p,"default",0,p],748907)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3h5d4ldkyb10q.js"].map(t=>e.l(t))).then(()=>t(758048)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/1_1m3t3vq0g5t.js","static/chunks/2bvgoik0rnfb8.js","static/chunks/3nyq4ag8s09j9.js","static/chunks/26ekd69fwo06r.js","static/chunks/3ro2x1-9un_0i.js","static/chunks/0iizpj4yrs-uh.js","static/chunks/0h8--5fzb08zz.js","static/chunks/337rd_qlr-_cw.js","static/chunks/03qstko5721ib.js","static/chunks/3ez2p7_irinam.js","static/chunks/1uk8hwgpq-une.js","static/chunks/3jpgtmc2s37xq.js"].map(t=>e.l(t))).then(()=>t(636705)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/2pz2-5xjnibsl.js"].map(t=>e.l(t))).then(()=>t(72990)))},467814,e=>{e.v(t=>Promise.all(["static/chunks/2erl34w6o_is1.css","static/chunks/176o4c59jnlae.js","static/chunks/1w7jl19-9vsh2.js","static/chunks/3nyq4ag8s09j9.js","static/chunks/03qstko5721ib.js","static/chunks/26ekd69fwo06r.js","static/chunks/3ro2x1-9un_0i.js","static/chunks/2b-s9c1yuats8.js","static/chunks/3ez2p7_irinam.js","static/chunks/337rd_qlr-_cw.js","static/chunks/0h8--5fzb08zz.js","static/chunks/33uf1mvn3rs13.js","static/chunks/3ofnmtpe1l9jx.js","static/chunks/0iizpj4yrs-uh.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);