(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:r,refresh:n,getCustomAccountInfo:l}){let[o,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),[f,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 x=(0,i.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(s)})}catch{c(s)}},[r,s,n]),w=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(w.admiral=w.admiral||function(...e){(w.admiral.q=w.admiral.q||[]).push(e)},w.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;w.admiral("after","visitor.latest",function(i){var s;if("account"===e.requirement)(t?l().registered:i.status.registered)||m||(c(a),u(!0));else if("benefits"===e.requirement){let i=[];if(t)i=l().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),u(!0))}else c(a),u(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(g(!1),x())},[f,x]),(0,i.useEffect)(()=>{m||!d||(h(!0),w.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,w]),(0,t.jsxs)("div",{children:[o||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),r=e.i(797770),n=e.i(513539),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[s.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),i=e.i(592121),s=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,s.useTrackModuleViewed)(),d="admin"===l,u=(0,i.useCallback)(()=>{c({moduleId:e,modulePosition:r})},[c,e,r]),m=(0,i.useRef)(null),[h,f]=(0,i.useState)([]),g=(0,i.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];f(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,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),i=e.i(592121),s=e.i(185312),a=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let n=(0,a.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)(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),i=e.i(592121),s=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:x}){let w=(0,r.useTranslations)("GoogleLogin"),v=(0,a.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:b,error:j,clearError:k}=function(){let e=(0,r.useTranslations)("GoogleLogin"),[t,s]=(0,i.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:x}=(0,c.usePreferences)(),{authSuccess:w,authRedirect:v}=(0,u.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;s(null);try{let e=await l.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await w({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:s,weekly:a,onYourRadar:r,marketing:n,alwaysSubscribe:o}=f||{};return(t||o)&&await g({newsletter:s,weekly:a,onYourRadar:r,marketing:n}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,a=i?.messageCode;if(!a)throw Error("No Error Message");switch(a){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,x,p,w,v,g,f]),error:t,clearError:(0,i.useCallback)(()=>{s(null)},[])}}(),A=(0,g.useRefMemo)(b),y=(0,i.useRef)(null);j&&(y.current=j);let I=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=>{A.current?.(e)}}),v(!0)),e?.(),!x&&p&&t?.prompt()},id:"google-gsi-script"}),I&&(0,t.jsx)(f.Dialog,{open:!!j,onOpenChange:e=>!e&&k(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:I.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I.body||""}}),primaryAction:{label:w("cancel"),onClick:k}})})]})}],874905)},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 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}),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"})}])},901178,e=>{e.q("/_next/static/media/severe-notification-2.0k1iof5yqx8fu.png")},974803,e=>{"use strict";let t={src:e.i(901178).default,width:1208,height:264,blurWidth:8,blurHeight:2,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAAR0lEQVR42i3KMQqAMAwF0J5DQgYJGYoSUgluegU373+B3OBDaenwtle248u9Pmju8EVEQERg5ix6/1nPF3E1RMQ0kplBVbMDCqEYPSwXi9AAAAAASUVORK5CYII="};e.s(["default",0,t])},764020,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(226602),a=e.i(632137);e.s(["SevereWeatherInstallBanner",0,({message:e,onClick:r,dismissLabel:n="Dismiss",className:l})=>{let[o,c]=(0,i.useState)(!1);return o?null:(0,t.jsxs)("div",{className:(0,a.cn)("flex items-center gap-3 rounded-lg border border-red-200 bg-red-50 px-4 py-3 shadow-md",l),children:[(0,t.jsx)("button",{type:"button",onClick:r,className:"flex-1 text-left text-sm font-medium text-gray-900",children:e}),(0,t.jsx)("button",{type:"button","aria-label":n,onClick:()=>c(!0),className:"shrink-0 text-gray-500 hover:text-gray-700",children:(0,t.jsx)(s.Close,{ariaHidden:!0,className:"size-4"})})]})}])},855356,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=e.i(64412),a=e.i(29287),r=e.i(928410),n=e.i(764020),l=e.i(429745),o=e.i(677691),c=e.i(974803);function d(){let{location:e}=(0,s.useLocation)(),{primaryAlert:d}=(0,a.useAlertHeadlinesData)({location:e}),{href:u}=(0,o.useAppInstallLink)("severe-home","severe-home"),[m,h]=(0,i.useState)(!1);return d&&(0,r.isAlertSevere)({productIdentifier:d.productIdentifier,phenomena:d.phenomena,significance:d.significance})?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SevereWeatherInstallBanner,{message:"Severe weather in your area — get real-time alerts in the app.",onClick:()=>h(!0)}),(0,t.jsx)(l.InstallPromptSheet,{open:m,onOpenChange:h,title:"Severe Weather Alerts",headline:"Severe Alert Notifications",description:"Don't go without the detailed information you need to stay safe. Be the first to know when dangerous weather approaches.",imageUrl:c.default.src,imageAlt:"Severe weather push notifications from The Weather Channel app",getAppHref:u,learnMoreHref:"/download/you#severe"})]}):null}e.s(["HomeSevereInstallBanner",0,d,"default",0,d])},499746,e=>{"use strict";var t=e.i(699173),i=e.i(592121),s=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),x=e.i(617874),w=e.i(961123),v=e.i(325974),b=e.i(525936);let j=(0,i.memo)(({identifier:e})=>{let a=(0,w.useParams)(),n=a?.locale||"en-US",l=(0,s.useAtomValue)(p.userUnitPreferenceAtom),o=(0,x.unitsSystemByName)(l)?.code,j=(0,r.useRecordFeatureId)(),k=e.placeId?void 0:e.geocode,{location:A,isLoading:y}=function(e,t){let{location:i,isLoading:s}=(0,v.useResolveCanonical)(e,t);return{location:i,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:k});(0,i.useEffect)(()=>{A?.placeId&&j({placeId:A.placeId,geocode:A.geocode},A.featureId??null)},[A,j]);let{data:I,isLoading:C}=(0,c.default)(A&&["currentObservations",A.geocode,o,n],([e,t,i,s])=>(0,f.getCurrentObservations)({geocode:t,units:i,language:s}),{revalidateOnFocus:!1,dedupingInterval:6e4}),S=A?.placeId??e.placeId,{path:N,isGeolocationLoading:L}=(0,b.default)(S||"",{targetGeocode:A?.geocode??e.geocode,featureId:e.featureId??A?.featureId,canonicalID:A?.canonicalID}),_=y||C||!A||L,E=I?.temperature,B=I?.wxPhraseLong,R=I?.iconCode??-1,q=e.name||A?.name||A?.city||A?.displayName,D=(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:_,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:_,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:R,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:_,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(m.Temperature,{value:E})})," ",(_||B)&&(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:B})]})]}),(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:_,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})}),(_||B)&&(0,t.jsx)(h.default,{isLoading:_,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:B})]}),(0,t.jsx)(u.WxIcon,{isLoading:_,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:R,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:_,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 N?(0,t.jsx)(d.default,{href:N,className:"no-underline md:block md:w-full",children:D}):D},(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 k=e.i(523084),A=e.i(47524),y=e.i(632137);let I={left:k.ChevronLeft,right:A.ChevronRight},C=({buttonClassName:e,containerClassName:s,onClick:a,tabIndex:r,direction:n,...l})=>{let[o,c]=(0,i.useState)(!1),d=I[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",o&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),a?.()},tabIndex:r,...l,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",o&&"!h-6 !w-6")})})})},S=({locationIdentifiers:e,showScrollButtons:s})=>{let[a,r]=(0,i.useState)(!1),[n,l]=(0,i.useState)(!1),c=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>{let e=c.current;if(!e||!s){r(!1),l(!1);return}let{scrollLeft:t,offsetWidth:i,scrollWidth:a}=e,n=Math.abs(t),o=n>0,d=n+i(0,o.debounce)(m,150),[m]);(0,i.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,i.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,i.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,i.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)(C,{containerClassName:(0,y.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,i)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(j,{identifier:e})},e.placeId??e.geocode??i))}),s&&(0,t.jsx)(C,{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"})]})},N=()=>{let{favoriteLocations:e,recentLocations:o}=(0,a.default)(),{resolveFeatureId:c}=(0,r.useLocationFeatureIds)(),{resolveDetails:d}=(0,n.useRecentLocationDetails)(),u=(0,s.useAtomValue)(l.deviceClassAtom),m=(0,i.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:i,resolveDetails:s=()=>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 i=t.some(e=>r.has(e));for(let e of t)r.add(e);return!i};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?s(r)?.featureId:void 0)??i({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=s(e),r=t?.featureId??i({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)(S,{locationIdentifiers:m,showScrollButtons:"mobile"!==u&&"tablet"!==u})};e.s(["ForecastModule",0,N,"default",0,N],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/2smeg_vf7rzch.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/06dms2brjp46_.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/0qys_xa9lj-uv.js","static/chunks/19qylbk8j9sds.js","static/chunks/0oz6wpni3qqor.js","static/chunks/40-ucou5e-s2-.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/1eshpp057bhu3.js","static/chunks/01rqq5rfjzr_8.js","static/chunks/06xt5pmddjmc1.js","static/chunks/1g9rt823dw_nm.js","static/chunks/346zwbsmbxc-r.js","static/chunks/3ez2p7_irinam.js","static/chunks/12ss66w2jz5v6.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);