(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),a=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:s="Authentication failed. Please try again.",protectMessage:i="Remove your adblocker.",fetch:r,refresh:n,getCustomAccountInfo:o}){let[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),p=(0,a.useRef)([]);(0,a.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,a.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(s)})}catch{c(s)}},[r,s,n]),x=(0,a.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,a.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(i),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;x.admiral("after","visitor.latest",function(a){var s;if("account"===e.requirement)(t?o().registered:a.status.registered)||m||(c(i),u(!0));else if("benefits"===e.requirement){let a=[];if(t)a=o().benefits;else{let e=document.cookie.split(";");e&&(a=(null==(s=e.find(e=>e.startsWith("admbenefits=")))?void 0:s.split(","))??[])}if(a){let t=e.benefits??[];if(0==t.length)return void g(!0);let s=!1;for(let e of t)a.includes(e)&&(s=!0);s?g(!0):(c(i),u(!0))}else c(i),u(!0)}})}}))},[]),(0,a.useEffect)(()=>{f&&(g(!1),w())},[f,w]),(0,a.useEffect)(()=>{m||!d||(h(!0),x.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,x]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),a=e.i(827049),s=e.i(695203),i=e.i(604323),r=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[a.pageLocaleAtom,e.pageLocale],[s.deviceClassAtom,e.deviceClass],[i.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},855602,e=>{"use strict";var t=e.i(699173),a=e.i(592121),s=e.i(1567),i=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:r,moduleKey:n,variant:o="frontend",children:l})=>{let c=(0,a.useRef)(null),[d,u]=(0,a.useState)(!1),m=(0,a.useRef)(null),h=(0,s.useTrackModuleViewed)();return"admin"===o?(0,t.jsx)(t.Fragment,{children:l}):((0,a.useEffect)(()=>{if(d||!i.default||!c.current)return;let t=c.current,a=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{h({moduleId:e,modulePosition:r}),u(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});a.observe(t);let s=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return s.top>=0&&s.left>=0&&s.bottom{h({moduleId:e,modulePosition:r}),u(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),a.disconnect()}},[d,e,r,h]),(0,t.jsx)("div",{ref:c,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":r,children:l}))}])},115284,e=>{"use strict";var t=e.i(699173),a=e.i(592121),s=e.i(185312),i=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let n=(0,i.default)();return((0,a.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)(s.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,r,"default",0,r])},703123,e=>{"use strict";let t=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(546584);var t=e.i(699173),a=e.i(592121),s=e.i(185312),i=e.i(546446),r=e.i(683903),n=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),f=e.i(367810),g=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:w}){let x=(0,r.useTranslations)("GoogleLogin"),b=(0,i.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:v,error:k,clearError:j}=function(){let e=(0,r.useTranslations)("GoogleLogin"),[t,s]=(0,a.useState)(null),h=(0,i.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,i.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:g}=(0,d.useEmailPreferences)({skipStatus:!0}),{refresh:p}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:w}=(0,c.usePreferences)(),{authSuccess:x,authRedirect:b}=(0,u.useUserLogin)();return{loginWithGoogle:(0,a.useCallback)(async t=>{let{credential:a}=t;s(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:a}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:s,weekly:i,onYourRadar:r,marketing:n,alwaysSubscribe:l}=f||{};return(t||l)&&await g({newsletter:s,weekly:i,onYourRadar:r,marketing:n}).catch(e=>{console.error("Failed to update email subscriptions",e)}),b(),!0}catch(t){console.error("Failed to login with Google",t);try{let a=t?.data,i=a?.messageCode;if(!i)throw Error("No Error Message");switch(i){case 1e3:case 1026:case 1033:s({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:s({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){s({header:e("somethingWentWrong")})}return!1}},[h,w,p,x,b,g,f]),error:t,clearError:(0,a.useCallback)(()=>{s(null)},[])}}(),I=(0,g.useRefMemo)(v),y=(0,a.useRef)(null);k&&(y.current=k);let C=y.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=>{I.current?.(e)}}),b(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script"}),C&&(0,t.jsx)(f.Dialog,{open:!!k,onOpenChange:e=>!e&&j(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:C.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:C.body||""}}),primaryAction:{label:x("cancel"),onClick:j}})})]})}],874905)},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),a=e.i(592121),s=e.i(546446),i=e.i(145651),r=e.i(249725),n=e.i(292980),o=e.i(663333),l=e.i(147732),c=e.i(381477),d=e.i(240058),u=e.i(316078),m=e.i(180193),h=e.i(368847),f=e.i(889951),g=e.i(726249),p=e.i(674885),w=e.i(617874),x=e.i(961123),b=e.i(325974),v=e.i(525936);let k=(0,a.memo)(({identifier:e})=>{let i=(0,x.useParams)(),n=i?.locale||"en-US",o=(0,s.useAtomValue)(p.userUnitPreferenceAtom),l=(0,w.unitsSystemByName)(o)?.code,k=(0,r.useRecordFeatureId)(),j=e.placeId?void 0:e.geocode,{location:I,isLoading:y}=function(e,t){let{location:a,isLoading:s}=(0,b.useResolveCanonical)(e,t);return{location:a,isLoading:s}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,g.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:j});(0,a.useEffect)(()=>{I?.placeId&&k({placeId:I.placeId,geocode:I.geocode},I.featureId??null)},[I,k]);let{data:C,isLoading:N}=(0,c.default)(I&&["currentObservations",I.geocode,l,n],([e,t,a,s])=>(0,f.getCurrentObservations)({geocode:t,units:a,language:s}),{revalidateOnFocus:!1,dedupingInterval:6e4}),A=I?.placeId??e.placeId,{path:_,isGeolocationLoading:L}=(0,v.default)(A||"",{targetGeocode:I?.geocode??e.geocode,featureId:e.featureId??I?.featureId,canonicalID:I?.canonicalID}),S=y||N||!I||L,E=C?.temperature,R=C?.wxPhraseLong,T=C?.iconCode??-1,z=e.name||I?.name||I?.city||I?.displayName,B=(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":z?`${z} 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)(h.default,{isLoading:S,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:z})}),(0,t.jsx)(u.WxIcon,{isLoading:S,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:T,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(m.Temperature,{value:E})})," ",(S||R)&&(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:R})]})]}),(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)(h.default,{isLoading:S,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:z})}),(S||R)&&(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:R})]}),(0,t.jsx)(u.WxIcon,{isLoading:S,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:T,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(m.Temperature,{value:E})})]})]});return _?(0,t.jsx)(d.default,{href:_,className:"no-underline md:block md:w-full",children:B}):B},(e,t)=>{let a,s;return a=e.identifier,s=t.identifier,a.geocode===s.geocode&&a.placeId===s.placeId&&a.featureId===s.featureId&&a.name===s.name});var j=e.i(523084),I=e.i(47524),y=e.i(632137);let C={left:j.ChevronLeft,right:I.ChevronRight},N=({buttonClassName:e,containerClassName:s,onClick:i,tabIndex:r,direction:n,...o})=>{let[l,c]=(0,a.useState)(!1),d=C[n];return(0,t.jsx)("div",{className:(0,y.cn)("absolute",s),children:(0,t.jsx)("button",{className:(0,y.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),i?.()},tabIndex:r,...o,children:(0,t.jsx)(d,{className:(0,y.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")})})})},A=({locationIdentifiers:e,showScrollButtons:s})=>{let[i,r]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!1),c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{let e=c.current;if(!e||!s){r(!1),o(!1);return}let{scrollLeft:t,offsetWidth:a,scrollWidth:i}=e,n=Math.abs(t),l=n>0,d=n+a(0,l.debounce)(m,150),[m]);(0,a.useEffect)(()=>{let e=c.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",h),()=>{null!==d.current&&cancelAnimationFrame(d.current),h.cancel(),window.removeEventListener("resize",h)}},[m,h]);let f=(0,a.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,a.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,a.useCallback)(()=>{c.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[s&&(0,t.jsx)(N,{containerClassName:(0,y.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":i}),onClick:g,tabIndex:i?0:-1,"aria-hidden":!i,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",role:"list","data-testid":"forecast-module",onScroll:f,ref:c,children:e.map((e,a)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(k,{identifier:e})},e.placeId??e.geocode??a))}),s&&(0,t.jsx)(N,{containerClassName:(0,y.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":n}),onClick:p,tabIndex:n?0:-1,"aria-hidden":!n,"aria-label":"Scroll right",direction:"right"})]})},_=()=>{let{favoriteLocations:e,recentLocations:l}=(0,i.default)(),{resolveFeatureId:c}=(0,r.useLocationFeatureIds)(),{resolveDetails:d}=(0,n.useRecentLocationDetails)(),u=(0,s.useAtomValue)(o.deviceClassAtom),m=(0,a.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:a,resolveDetails:s=()=>void 0}){let i=[],r=new Set,n=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,g.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let a=t.some(e=>r.has(e));for(let e of t)r.add(e);return!a};for(let t of e){if(i.length>=5)break;if(!t.coordinate)continue;let e=(0,g.formatGeocode)(t.coordinate),r=t.placeID??void 0,o=(r?s(r)?.featureId:void 0)??a({placeId:r,geocode:e});n({featureId:o,placeId:r,geocode:e})&&i.push({geocode:e,placeId:r,name:t.name??void 0,featureId:o})}for(let e of t){if(i.length>=5)break;let t=s(e),r=t?.featureId??a({placeId:e});n({featureId:r,placeId:e})&&i.push({placeId:e,name:t?.name,featureId:r})}return i})({favoriteLocations:e,recentLocations:l,resolveFeatureId:c,resolveDetails:d}),[e,l,c,d]);return 0===m.length?null:(0,t.jsx)(A,{locationIdentifiers:m,showScrollButtons:"mobile"!==u&&"tablet"!==u})};e.s(["ForecastModule",0,_,"default",0,_],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3ulw-v-wqqzid.js"].map(t=>e.l(t))).then(()=>t(171714)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/065vkvwffw_kh.js","static/chunks/3z-hm61whmv7z.js","static/chunks/0sgw10bv3m1wr.js","static/chunks/1g9rt823dw_nm.js","static/chunks/00cycl48jrw9g.js","static/chunks/2-916_ez485np.js","static/chunks/3ez2p7_irinam.js","static/chunks/0ddma8lx4gaku.js","static/chunks/2r4lgx7woy7mq.js","static/chunks/3u40opytfu3al.js","static/chunks/1u6m0razmb56c.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/2rwx-m1d-dcw-.js","static/chunks/00cycl48jrw9g.js","static/chunks/3z-hm61whmv7z.js","static/chunks/0sgw10bv3m1wr.js","static/chunks/1u6m0razmb56c.js","static/chunks/1g9rt823dw_nm.js","static/chunks/2-916_ez485np.js","static/chunks/0ddma8lx4gaku.js","static/chunks/3ryahola27ls6.js","static/chunks/3u40opytfu3al.js","static/chunks/38ag59k-4gk89.js","static/chunks/3ez2p7_irinam.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);