(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),s=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:r,refresh:n,getCustomAccountInfo:l}){let[o,c]=(0,s.useState)(""),[d,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),p=(0,s.useRef)([]);(0,s.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,s.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(i)})}catch{c(i)}},[r,i,n]),x=(0,s.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,s.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),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!l;x.admiral("after","visitor.latest",function(s){var i;if("account"===e.requirement)(t?l().registered:s.status.registered)||m||(c(a),u(!0));else if("benefits"===e.requirement){let s=[];if(t)s=l().benefits;else{let e=document.cookie.split(";");e&&(s=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(s){let t=e.benefits??[];if(0==t.length)return void g(!0);let i=!1;for(let e of t)s.includes(e)&&(i=!0);i?g(!0):(c(a),u(!0))}else c(a),u(!0)}})}}))},[]),(0,s.useEffect)(()=>{f&&(g(!1),w())},[f,w]),(0,s.useEffect)(()=>{m||!d||(h(!0),x.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,x]),(0,t.jsxs)("div",{children:[o||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var s=e.i(950771),i=e.i(695203),a=e.i(604323),r=e.i(797770),n=e.i(513539),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[s.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[n.layoutStateAtom,e.layoutState??null],[n.activeEventAtom,e.activeEvent??null]]),null)])},855602,e=>{"use strict";var t=e.i(699173),s=e.i(592121),i=e.i(1567),a=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:r,moduleKey:n,variant:l="frontend",children:o})=>{let c=(0,i.useTrackModuleViewed)(),d="admin"===l,u=(0,s.useCallback)(()=>{c({moduleId:e,modulePosition:r})},[c,e,r]),m=(0,s.useRef)(null),[h,f]=(0,s.useState)([]),g=(0,s.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];f(t=>t.length===e.length&&t.every((t,s)=>t===e[s])?t:e)},[]);return((0,s.useEffect)(()=>{let e=m.current;if(!e||(g(),"u"t.disconnect()},[g,d]),(0,a.useFullVisibilityOnce)(u,{targets:h,disabled:d}),d)?(0,t.jsx)(t.Fragment,{children:o}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":r,children:o})}])},115284,e=>{"use strict";var t=e.i(699173),s=e.i(592121),i=e.i(185312),a=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let n=(0,a.default)();return((0,s.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)(i.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),s=e.i(592121),i=e.i(185312),a=e.i(546446),r=e.i(683903),n=e.i(671525),l=e.i(901351),o=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,a.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:v,error:j,clearError:k}=function(){let e=(0,r.useTranslations)("GoogleLogin"),[t,i]=(0,s.useState)(null),h=(0,a.useSetAtom)(o.userHasLoggedInBeforeAtom),f=(0,a.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,s.useCallback)(async t=>{let{credential:s}=t;i(null);try{let e=await l.upsxClient.auth.loginWithGoogle({google_id_token:s}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:i,weekly:a,onYourRadar:r,marketing:n,alwaysSubscribe:o}=f||{};return(t||o)&&await g({newsletter:i,weekly:a,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 s=t?.data,a=s?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[h,w,p,x,b,g,f]),error:t,clearError:(0,s.useCallback)(()=>{i(null)},[])}}(),y=(0,g.useRefMemo)(v),I=(0,s.useRef)(null);j&&(I.current=j);let C=I.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.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=>{y.current?.(e)}}),b(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script"}),C&&(0,t.jsx)(f.Dialog,{open:!!j,onOpenChange:e=>!e&&k(),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:k}})})]})}],874905)},935762,e=>{"use strict";var t=e.i(699173);let s=["Topic","Topic","Topic"],i={background:"#f2f2f2",borderRadius:16,color:"#252422",fontSize:13,padding:"6px 12px",whiteSpace:"nowrap"};e.s(["TopicChipsAdminBlock",0,function({heading:e,wrapChips:a}){let r=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:[r&&(0,t.jsx)("strong",{style:{fontSize:16},children:r}),s.map((e,s)=>(0,t.jsx)("span",{style:i,children:e},s))]}),(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),s=e.i(592121),i=e.i(546446),a=e.i(145651),r=e.i(249725),n=e.i(292980),l=e.i(663333),o=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 j=(0,s.memo)(({identifier:e})=>{let a=(0,x.useParams)(),n=a?.locale||"en-US",l=(0,i.useAtomValue)(p.userUnitPreferenceAtom),o=(0,w.unitsSystemByName)(l)?.code,j=(0,r.useRecordFeatureId)(),k=e.placeId?void 0:e.geocode,{location:y,isLoading:I}=function(e,t){let{location:s,isLoading:i}=(0,b.useResolveCanonical)(e,t);return{location:s,isLoading:i}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,g.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:k});(0,s.useEffect)(()=>{y?.placeId&&j({placeId:y.placeId,geocode:y.geocode},y.featureId??null)},[y,j]);let{data:C,isLoading:A}=(0,c.default)(y&&["currentObservations",y.geocode,o,n],([e,t,s,i])=>(0,f.getCurrentObservations)({geocode:t,units:s,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4}),N=y?.placeId??e.placeId,{path:S,isGeolocationLoading:_}=(0,v.default)(N||"",{targetGeocode:y?.geocode??e.geocode,featureId:e.featureId??y?.featureId,canonicalID:y?.canonicalID}),L=I||A||!y||_,E=C?.temperature,T=C?.wxPhraseLong,z=C?.iconCode??-1,q=e.name||y?.name||y?.city||y?.displayName,R=(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":q?`${q} 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:L,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:q})}),(0,t.jsx)(u.WxIcon,{isLoading:L,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:z,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:L,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(m.Temperature,{value:E})})," ",(L||T)&&(0,t.jsx)(h.default,{isLoading:L,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:T})]})]}),(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:L,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:q})}),(L||T)&&(0,t.jsx)(h.default,{isLoading:L,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:T})]}),(0,t.jsx)(u.WxIcon,{isLoading:L,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:z,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:L,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 S?(0,t.jsx)(d.default,{href:S,className:"no-underline md:block md:w-full",children:R}):R},(e,t)=>{let s,i;return s=e.identifier,i=t.identifier,s.geocode===i.geocode&&s.placeId===i.placeId&&s.featureId===i.featureId&&s.name===i.name});var k=e.i(523084),y=e.i(47524),I=e.i(632137);let C={left:k.ChevronLeft,right:y.ChevronRight},A=({buttonClassName:e,containerClassName:i,onClick:a,tabIndex:r,direction:n,...l})=>{let[o,c]=(0,s.useState)(!1),d=C[n];return(0,t.jsx)("div",{className:(0,I.cn)("absolute",i),children:(0,t.jsx)("button",{className:(0,I.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",o&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),a?.()},tabIndex:r,...l,children:(0,t.jsx)(d,{className:(0,I.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",o&&"!h-6 !w-6")})})})},N=({locationIdentifiers:e,showScrollButtons:i})=>{let[a,r]=(0,s.useState)(!1),[n,l]=(0,s.useState)(!1),c=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useRef)(!1),m=(0,s.useCallback)(()=>{let e=c.current;if(!e||!i){r(!1),l(!1);return}let{scrollLeft:t,offsetWidth:s,scrollWidth:a}=e,n=Math.abs(t),o=n>0,d=n+s(0,o.debounce)(m,150),[m]);(0,s.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,s.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,s.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,s.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:[i&&(0,t.jsx)(A,{containerClassName:(0,I.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:"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,s)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(j,{identifier:e})},e.placeId??e.geocode??s))}),i&&(0,t.jsx)(A,{containerClassName:(0,I.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"})]})},S=()=>{let{favoriteLocations:e,recentLocations:o}=(0,a.default)(),{resolveFeatureId:c}=(0,r.useLocationFeatureIds)(),{resolveDetails:d}=(0,n.useRecentLocationDetails)(),u=(0,i.useAtomValue)(l.deviceClassAtom),m=(0,s.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:s,resolveDetails:i=()=>void 0}){let a=[],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 s=t.some(e=>r.has(e));for(let e of t)r.add(e);return!s};for(let t of e){if(a.length>=5)break;if(!t.coordinate)continue;let e=(0,g.formatGeocode)(t.coordinate),r=t.placeID??void 0,l=(r?i(r)?.featureId:void 0)??s({placeId:r,geocode:e});n({featureId:l,placeId:r,geocode:e})&&a.push({geocode:e,placeId:r,name:t.name??void 0,featureId:l})}for(let e of t){if(a.length>=5)break;let t=i(e),r=t?.featureId??s({placeId:e});n({featureId:r,placeId:e})&&a.push({placeId:e,name:t?.name,featureId:r})}return a})({favoriteLocations:e,recentLocations:o,resolveFeatureId:c,resolveDetails:d}),[e,o,c,d]);return 0===m.length?null:(0,t.jsx)(N,{locationIdentifiers:m,showScrollButtons:"mobile"!==u&&"tablet"!==u})};e.s(["ForecastModule",0,S,"default",0,S],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/2bqbjxorsplul.js","static/chunks/25v6-g2g4732g.js","static/chunks/0oz6wpni3qqor.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/40-ucou5e-s2-.js","static/chunks/06xt5pmddjmc1.js","static/chunks/12ss66w2jz5v6.js","static/chunks/1g9rt823dw_nm.js","static/chunks/3ez2p7_irinam.js","static/chunks/346zwbsmbxc-r.js","static/chunks/33g99s3__c2lb.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/1dp5t70rox4is.js","static/chunks/0blq8ymacdr_q.js","static/chunks/0oz6wpni3qqor.js","static/chunks/3e2zj48_0xxvm.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/3ez2p7_irinam.js","static/chunks/06xt5pmddjmc1.js","static/chunks/2xpk6gjlitq54.js","static/chunks/1g9rt823dw_nm.js","static/chunks/346zwbsmbxc-r.js","static/chunks/12ss66w2jz5v6.js","static/chunks/40-ucou5e-s2-.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);