(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,778828,e=>{"use strict";var t=e.i(699173),a=e.i(632137),r=e.i(240058),n=e.i(592121),i=e.i(683903),l=e.i(546446),s=e.i(877957),o=e.i(616448),c=e.i(526456),d=e.i(527207),u=e.i(498076);let m=({animationStrings:e})=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsx)("span",{"data-nosnippet":!0,className:(0,a.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var p=e.i(436066);e.i(24959);var h=e.i(686557),f=e.i(64412),x=e.i(262453),g=e.i(214008);let v="bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500";function b({locale:e,className:r}){let w=(0,i.useTranslations)("Header"),y=(0,u.useIsMobile)(),j=(0,n.useRef)(null),S=(0,x.usePreciseGeocode)(),{location:C}=(0,f.useLocation)(),{location:k}=(0,f.useLocation)("geolocation"),N=C?.name||C?.city||C?.displayName,A=(0,g.isSameLocation)(C,k),[R,L]=(0,l.useAtom)(p.locationPickerOpenAtom),U=(0,n.useCallback)(()=>{L(!R)},[L,R]);return(0,n.useEffect)(()=>{if(!R||y)return;let e=e=>{j.current&&!j.current.contains(e.target)&&L(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[R,y,L]),(0,n.useEffect)(()=>{if(!R)return;let e=e=>{"Escape"===e.key&&L(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[R,L]),(0,t.jsxs)("div",{ref:j,className:(0,a.cn)("relative max-md:mr-auto",r),children:[(0,t.jsx)("div",{className:"rounded-4xl bg-white md:p-1 md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(s.Button,{type:"button",variant:"ghostUI",onClick:U,"aria-expanded":R,"aria-haspopup":"dialog","aria-label":N??w("searchPlaceholderText"),"data-state":R?"open":"closed","data-testid":"location-picker-trigger",className:(0,a.cn)("inline-flex h-10 items-center justify-center gap-2 rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none",v),children:[A&&S?(0,t.jsx)(c.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):A&&!S?(0,t.jsx)(o.CurrentLocation,{className:"size-3 shrink-0 text-white","aria-hidden":"true",title:""}):null,(0,t.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:N||(0,t.jsx)(m,{animationStrings:["Location"]})}),(0,t.jsx)(d.ChevronUp,{className:(0,a.cn)("size-3 shrink-0 text-white transition-transform duration-150",!R&&"rotate-180"),"aria-hidden":"true",title:""})]})}),(0,t.jsx)("div",{className:(0,a.cn)(!y&&"absolute start-0 top-full z-110 mt-3 w-[400px]"),children:(0,t.jsx)(h.Search,{locale:e,open:R,onOpenChange:L})})]})}var w=e.i(559421),y=e.i(528600),j=e.i(731672),S=e.i(792461),C=e.i(190344),k=e.i(296990),N=e.i(674885),A=e.i(336726),R=e.i(961123),L=e.i(357508);e.i(609717);var U=e.i(950771);e.i(647872);var E=e.i(494889),P=e.i(449172),_=e.i(316810);let I=({url:e,action:n,name:i,isNew:l,isExternal:s,isInGroup:o})=>{if(!e&&!n)return null;let c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex items-center",children:[i,l&&(0,t.jsx)(_.default,{})]}),s&&(0,t.jsx)(P.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),d=(0,a.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",o?"px-10":"px-6");return(0,t.jsx)("li",{className:o?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,t.jsx)(r.default,{href:e,className:d,target:s?"_blank":void 0,children:c}):(0,t.jsx)("button",{onClick:n,className:(0,a.cn)(d,"cursor-pointer"),children:c})},i)};var B=e.i(993269),$=e.i(859827);let O=({isExpanded:e,toggleCategory:r,name:n,links:i})=>(0,t.jsxs)("div",{className:"w-full md:mb-6",children:[(0,t.jsxs)("div",{className:(0,a.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:r,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,t.jsx)("h2",{className:(0,a.cn)("text-gray-900 md:font-bold"),children:n}),(0,t.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,t.jsx)(B.Minus,{size:"md",className:"text-black"}):(0,t.jsx)($.Plus,{size:"md",className:"text-black"})})]}),(0,t.jsx)("ul",{className:(0,a.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:i.map(e=>(0,t.jsx)(I,{...e,isInGroup:!0},e.name))})]},n);var M=e.i(611540);let T=(0,n.forwardRef)((e,r)=>{let[o,c]=(0,l.useAtom)(p.settingsMenuOpenAtom),u=(0,l.useAtomValue)(N.isImperialUnitsAtom),m=(0,R.useParams)(),h=(m?.locale||"en-US").split("-")[1],{location:x}=(0,f.useLocation)(),g=(0,w.useCanonicalBasePath)(),{user:{isUserLoggedIn:v}}=(0,y.useUser)(),b=(0,j.useUserLogout)(),P=(0,S.useRefMemo)(b),_=x?.placeId||"",B=(0,l.useAtomValue)(U.pageLocaleAtom),$=(0,l.useAtomValue)(E.newsHubEnabledAtom),T=(0,i.useTranslations)("SidebarNavigation"),F=(0,i.useTranslations)("UserRegistration"),z=(0,C.useVideoNavUrl)(),[H,D]=(0,n.useState)({}),V=(0,n.useMemo)(()=>[{name:T("weatherForecasts"),links:[{name:T("today"),url:g?`${g}/today`:(0,M.interpolateUrl)(M.URLS.today,{locale:B,locId:_})},{name:T("hourly"),url:g?`${g}/hourbyhour`:(0,M.interpolateUrl)(M.URLS.hourly,{locale:B,locId:_})},{name:T("tenday"),url:g?`${g}/tenday`:(0,M.interpolateUrl)(M.URLS.tenday,{locale:B,locId:_})}]},{name:T("radarAndMaps"),links:[{name:T("interactiveRadarMap"),url:`${(0,M.interpolateUrl)(M.URLS.interactiveMap,{locale:B,locId:_})}?animation=true`},..."en-US"===B?[{name:"US Forecast",url:M.URLS.usForecast},{name:"US Satellite & Radar",url:M.URLS.usSatAndRadar},{name:"World Satellite",url:M.URLS.worldSatellite},{name:"US Severe Alerts",url:M.URLS.usSevereAlerts},{name:"US Health",url:M.URLS.usHealth}]:[]]},..."en-US"===B?[{name:T("newsMedia"),links:[{name:"Top Weather Stories",url:"/news"},{name:T("hurricaneCentral"),url:"/storms/hurricane-central"},{name:T("tornadoCentral"),url:"/storms/tornado-central"},{name:T("safetyAndPrep"),url:"/safety/index"},{name:T("spaceAndSkywatching"),url:M.URLS.spaceSkywatching},...z?[{name:T("video"),url:z}]:[]]}]:z?[{name:T("video"),links:[{name:T("topStories"),url:z}]}]:[],{name:T("productAccount"),links:[..."en-US"===B?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...v?[{name:F("manageAccount"),url:(0,M.interpolateUrl)(M.URLS.memberSettings,{locale:B})},{name:F("logOut"),action:P.current}]:[{name:F("createAnAccount"),url:(0,M.interpolateUrl)(M.URLS.memberSignup,{locale:B})},{name:F("logIn"),url:(0,M.interpolateUrl)(M.URLS.memberLogin,{locale:B})}]]},{name:T("lifestyle"),links:[..."en-US"===B?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:T("recipes"),url:"/home-garden/recipes"},{name:T("homeAndGarden"),url:M.URLS.homeGarden},{name:T("travelAndOutdoors"),url:M.URLS.travel},{name:T("petsAndAnimals"),url:M.URLS.pets},{name:"Health",url:"/health"}]:[],{name:T("allergyTracker"),url:(0,M.interpolateUrl)(M.URLS.allergy,{locale:B,locId:_})},{name:T("airQualityIndex"),url:(0,M.interpolateUrl)(M.URLS.airQuality,{locale:B,locId:_})},{name:T("coldAndFluTracker"),url:(0,M.interpolateUrl)(M.URLS.coldFlu,{locale:B,locId:_})},..."en-US"===B?[{name:T("skinHealth"),url:M.URLS.skinHealth}]:[]]},..."en-US"===B?[...$?[{name:"News",url:M.URLS.news}]:[],{name:"Explore",url:"/explore"}]:[]],[v,P,_,z,g,B,$]);return(0,t.jsxs)("nav",{ref:r,className:(0,a.cn)("md:h-unset z-overlay absolute top-full right-0 left-0 h-[calc(100dvh-56px)] w-full overflow-y-auto bg-white pb-14 shadow-md md:py-8 md:pb-0"),"data-testid":"header-nav-menu",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,t.jsxs)(s.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":o,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>c(e=>!e),children:[(0,t.jsx)(k.Globe,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,t.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:h}),(0,t.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:u?"°F":"°C"}),o?(0,t.jsx)(d.ChevronUp,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,t.jsx)(A.ChevronDown,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,t.jsx)(L.default,{})]}),!o&&(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl flex-col justify-center md:flex-row md:gap-3 md:px-4","data-testid":"header-nav-content",children:V.map((e,a)=>(0,t.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,t.jsx)(O,{isExpanded:H[e.name],toggleCategory:()=>{var t;return t=e.name,void D(e=>({...e,[t]:!e[t]}))},...e}):(0,t.jsx)(I,{...e})},a))})]})});T.displayName="Navigation";var F=e.i(226602),z=e.i(747961);let H=(0,n.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":n,...i,children:[r?(0,t.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Hamburger"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})),D=n.default.forwardRef((e,a)=>(0,t.jsx)(z.BaseIcon,{ref:a,icon:H,...e}));function V(){let[e,a]=(0,l.useAtom)(p.menuOpenAtom),r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{e?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[e]),(0,n.useEffect)(()=>{function t(t){e&&r.current&&i.current&&!r.current.contains(t.target)&&!i.current.contains(t.target)&&a(!1)}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Button,{ref:r,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>a(!e),"data-testid":"header-menu-button",children:e?(0,t.jsx)(F.Close,{}):(0,t.jsx)(D,{})}),e&&(0,t.jsx)(T,{ref:i})]})}D.displayName="Hamburger";var q=e.i(368847),Q=e.i(809058),G=e.i(837879),Y=e.i(730921),W=e.i(864723),X=e.i(537989);let K=()=>{let e=(0,l.useAtomValue)(X.pageIdAtom);return(0,n.useCallback)(t=>{let a=`${e}_${t}`;(0,W.setCookie)("fromStr",a,{path:"/",domain:".weather.com"})},[e])};var J=e.i(683199);function Z(){let{user:e,userProfile:a}=(0,y.useUser)(),l=(0,j.useUserLogout)(),{isUserLoggedIn:o,isUserPremium:c}=e,[d,u]=(0,n.useState)(!1),m=(0,G.useSubscriptionsEnabled)(),p=(0,i.useTranslations)("UserRegistration"),h=(0,Y.useLocale)(),f=K(),x=(0,J.usePremiumSource)(),g="flex size-8 shrink-0 items-center justify-center rounded-full border-2 border-current text-sm leading-none font-bold text-inherit";return(0,t.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:o?(0,t.jsxs)(Q.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:d,onOpenChange:u,children:[(0,t.jsx)(Q.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":d,className:g,"data-testid":"header-profile-button",children:a?.firstName?.charAt(0)?.toUpperCase()})}),(0,t.jsx)(Q.PopoverContent,{className:"z-9996 p-0",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{href:(0,M.interpolateUrl)(M.URLS.memberSettings,{locale:h}),"data-testid":"header-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:g,children:a?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(q.default,{variant:"Body.S",children:a?.firstName}),(0,t.jsx)(q.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:p("manageAccount")})]})]})}),!c&&m&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(q.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(q.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(r.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>{f("user_flyout_go_premium"),x({sourceModule:"top-menu",sourceElement:"get-premium"})},children:(0,t.jsx)(s.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(s.Button,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:p("signOut")})})]})})]}):(0,t.jsx)(r.default,{href:(0,M.interpolateUrl)(M.URLS.memberLogin,{locale:h}),children:(0,t.jsx)(s.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:p("logIn")})})})}var ee=e.i(995113);function et(){let{user:e}=(0,y.useUser)(),{isUserPremium:n}=e,i=(0,G.useSubscriptionsEnabled)(),l=K(),s=(0,J.usePremiumSource)();return n||!i?null:(0,t.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,t.jsxs)(r.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,a.cn)("group relative inline-flex h-10 items-center justify-center gap-1 overflow-hidden rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>{l("header_go_premium"),s({sourceModule:"top-menu",sourceElement:"get-premium"})},children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(ee.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,t.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var ea=e.i(458645),er=e.i(523579);e.s(["default",0,function({locale:e,subnav:n,hideHeaderOnDesktop:i,hideLocationPicker:s,hideGoPremiumButton:o}){let c,d=(0,u.useIsMobile)(),m=(c=(0,u.useIsMobile)(),(0,R.usePathname)().includes("/subscribe")&&!c||i&&!d),h=(0,l.useAtomValue)(er.retroWeatherAtom),f=(0,l.useAtomValue)(p.menuOpenAtom),x=(0,l.useAtomValue)(p.locationPickerOpenAtom),g=h?"/retro":(0,M.interpolateUrl)(M.URLS.home,{locale:e});return m?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:"z-sticky relative top-0 w-full md:sticky",children:(0,t.jsx)("div",{className:"text-black max-md:bg-white","data-component":"header-main","data-testid":"header-main",children:(0,t.jsxs)("div",{className:"mx-auto flex items-center justify-between gap-2 px-3 py-2 md:gap-4 md:py-3 md:pl-0",children:[(0,t.jsx)("span",{className:"contents md:hidden",children:(0,t.jsx)(V,{})}),(0,t.jsx)("div",{className:(0,a.cn)("flex items-center md:hidden",s&&"max-md:mr-auto"),children:(0,t.jsx)(r.default,{href:g,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,t.jsx)(ea.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),!s&&(0,t.jsx)(b,{locale:e}),(0,t.jsx)("div",{className:"hidden md:contents",children:n}),!o&&(0,t.jsx)(et,{}),(0,t.jsx)(Z,{})]})})}),(0,t.jsx)("div",{className:(0,a.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",f||x?"hidden":"block"),children:n})]})}],778828)},718043,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},a.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},a.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},a.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:a}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${a}/${e}`}},a.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:a=0,limit:i=10,sort:l="-publishdate"}){let s={q:Object.keys(t).reduce((e,a)=>{let r=t[a];return r instanceof Array?[...e,...r.map(e=>n(a,e))]:[...e,n(a,r)]},[]).join(";"),pg:`${a},${i}`,format:"json",sort:l},o=(0,r.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},a.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:a=0,limit:n=10,sort:i="-publishdate"}){let l={q:t,pg:`${a},${n}`,format:"json",sort:i},s=(0,r.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},a.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:a=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${a}`}},a.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let r=e.r(678651);function n(e,t){let a=`'${t.$in}'`;return t.$in instanceof Array&&(a=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${a})`}},427977,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getQuickNav=void 0;let r=e.r(414655),n=e.r(678651),i=e.r(718043);a.getQuickNav=async()=>{let e=(0,n.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(t)}},867775,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(730921),n=e.i(683903),i=e.i(877957),l=e.i(367810),s=e.i(901351),o=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(611540);let m=({isUserLoggedIn:e,regime:m,deviceClass:p,experience:h,isPremiumUser:f})=>{let x=(0,n.useTranslations)("PrivacyConsentModal"),g=(0,r.useLocale)(),v=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:g}),[b,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(!1),[S,C]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||f||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),a=localStorage.getItem("saleOfDataConflict");t?(j(!0),w(!0)):e&&a&&(C(!0),w(!0))},[m,f,e]);let k=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},N=t=>{let a=window,r=window.top,n=a.DprSdk||r?.DprSdk;n?(n.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&k({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):S&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},A="",R="";if(y?(A="gpcConflictHeader",R="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(R+="_usa-ccpa")):S&&(A="saleOfDataConflictHeader",R="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(R+="_usa-ccpa")),R)return(0,t.jsx)(l.Dialog,{open:b,onOpenChange:w,children:(0,t.jsxs)(l.DialogContent,{className:`text-center ${"desktop"!==p?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===h?"wu-theme":""} `,onEscapeKeyDown:e=>{(S||y)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[A&&(0,t.jsx)(l.DialogHeader,{children:(0,t.jsx)(l.DialogTitle,{className:"text-xl font-semibold",children:x(A)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:x.rich(R,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:v,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(l.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(i.Button,{onClick:()=>{N(!0)},variant:"default",className:"w-full sm:w-auto",children:x("optInButtonText")}),(0,t.jsx)(i.Button,{onClick:()=>{N(!1)},variant:"secondary",className:"w-full sm:w-auto",children:x("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,m,"default",0,m])},10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},731672,e=>{"use strict";var t=e.i(546446),a=e.i(646341),r=e.i(671525),n=e.i(889753),i=e.i(45846),l=e.i(284007),s=e.i(756227),o=e.i(318849),c=e.i(358273);e.s(["useUserLogout",0,function(){let e=(0,t.useSetAtom)(n.userPreferencesAtom),d=(0,s.useResetAuthState)(),{refresh:u}=(0,r.usePageNavigation)();return async()=>{try{return(0,c.regenerateMetricsSession)(),await i.upsxClient.auth.logout(),d(),e(l.RESET),(0,a.deleteCookie)("twc-user",{domain:".weather.com"}),(0,o.disableSwrPersist)(),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}])},129932,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":n,...i,children:[r?(0,t.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",clipRule:"evenodd"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="SkincareBold",e.s(["SkincareBold",0,i])},800177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":n,...i,children:[r?(0,t.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Products"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M18 12a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9M12 1.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9",clipRule:"evenodd"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="SkincareBoldFilled",e.s(["SkincareBoldFilled",0,i])},677997,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let n=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:n,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":n,...i,children:[r?(0,t.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"lightning"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:n,...e}));i.displayName="Lightning",e.s(["Lightning",0,i])},460581,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(240058),n=e.i(64412),i=e.i(677997),l=e.i(995113),s=e.i(702957),o=e.i(489408),c=e.i(113016),d=e.i(312401),u=e.i(807215),m=e.i(876329),p=e.i(632137),h=e.i(546446);e.i(609717);var f=e.i(950771),x=e.i(537989),g=e.i(381477),v=e.i(190344),b=e.i(427977),w=e.i(961123),y=e.i(559421),j=e.i(388706),S=e.i(498076),C=e.i(683903),k=e.i(304116),N=e.i(269153),A=e.i(528600),R=e.i(837879),L=e.i(683199);e.s(["default",0,function(){let e=(0,S.useIsMobile)(),U=(0,w.usePathname)(),E=(0,y.useCanonicalBasePath)(),P=(0,N.useIsSamsungPartner)(),_=(0,h.useAtomValue)(x.pageIdAtom),I=(0,C.useTranslations)("SidebarNavigation"),{user:B}=(0,A.useUser)(),{isUserPremium:$}=B,O=(0,R.useSubscriptionsEnabled)(),M=(0,L.usePremiumSource)(),{location:T,isLoading:F}=(0,n.useLocation)(),z=(0,h.useAtomValue)(f.pageLocaleAtom),H=(0,v.useVideoNavUrl)(),{data:D}=(0,g.default)(["navigation/getQuickNav",z],()=>(0,b.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),V=(0,a.useMemo)(()=>{if(F||!T)return[];let e=T.placeId||"",a=T.featureId,r=T.canonicalID,n=(0,k.buildLocationPageHref)({pageType:"today",locale:z,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:E,skipCanonical:P}),p=(0,k.buildLocationPageHref)({pageType:"radar",locale:z,canonicalID:r,featureId:a,placeId:e,canonicalBasePath:E,skipCanonical:P}),h=E?U.split("/").pop():null,f=E?j.CANONICAL_PAGE_TYPES.includes(h):U.includes("/weather/today/")||U.includes("/weather/hourbyhour/")||U.includes("/weather/tenday/")||U.includes("/weather/monthly/")||U.includes("/forecast/allergy/")||U.includes("/forecast/air-quality/")||U.includes("/forecast/cold-flu/"),x=U.includes("/weather/radar/")||U.includes("/weather/maps/"),g=U.includes("/subscribe"),v="video"===_,b=D?.videoLinkLocaleInclude?.["en-US"],w=b?.override?`?${b?.adRef}`:"",y=H?`${H}${w}`:"",S="h-6 w-6 text-inherit";return[{name:I("forecast"),href:n,icon:(0,t.jsx)(s.PartlyCloudyBold,{className:S}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:S}),isActive:f},...H?[{name:I("video"),href:y,icon:(0,t.jsx)(c.VideoPlayerBold,{className:S}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:S}),isActive:v}]:[],{name:I("radar"),href:p,icon:(0,t.jsx)(u.RadarBold,{className:S}),activeIcon:(0,t.jsx)(m.RadarBoldFilled,{className:S}),isActive:x},...O&&!$&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(i.Lightning,{className:S}),activeIcon:(0,t.jsx)(l.LightningFilled,{className:S}),isActive:g,onClick:()=>M({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[F,T,z,U,_,H,D,E,M,P]);return e&&0!==V.length?(0,t.jsx)("nav",{className:"z-sticky fixed right-0 bottom-0 left-0 bg-white md:hidden","aria-label":"Mobile navigation","data-component":"localsuite-nav","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:V.map(e=>(0,t.jsxs)(r.default,{href:e.href,className:(0,p.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",onClick:e.onClick,children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:(0,p.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold"),children:e.name})]},e.name))})})}):null}])},567277,e=>{"use strict";var t=e.i(546584),a=e.i(592121),r=e.i(961123);function n(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,a.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let a=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let a=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${a}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=a,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),n()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${a}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});a&&(r.current=a.setRoute)}},[e.route]),null}function s(e){let n=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,a=(0,r.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!a||!n)return a;let l=a;try{let e=Object.entries(n);for(let[t,a]of e)if(!Array.isArray(a)){let e=i(a);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,a]of e)if(Array.isArray(a)){let e=i(a.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return a}})();return a.default.createElement(l,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return a.default.createElement(a.Suspense,{fallback:null},a.default.createElement(s,{...e}))}])},540039,e=>{"use strict";var t,a=e.i(546584),r={scriptHostname:("u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof a.default?a.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof a.default?"dpl_4P162mRM9ypQ9BqWYMfMGE7cSmVi":void 0},n=e.i(592121),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:a}){return(0,n.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let a=document.createElement("script");for(let[n,i]of(a.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,a.setAttribute("data-explicit-opt-in","true"),e.nonce&&a.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))i&&a.setAttribute(n,i);(document.head||document.documentElement).appendChild(a)}}({nonce:a}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},520362,e=>{"use strict";var t=e.i(699173),a=e.i(592121);let r=e=>{let{apiRoute:t,depth:r,refresh:n,serverURL:i}=e,l=(0,a.useRef)(!1),s=(0,a.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof n?n():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[n,i]);return(0,a.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),l.current||(l.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:i}),n()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[i,s,r,t,n]),null};var n=e.i(961123);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),l={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let a=(0,n.useRouter)();return(0,t.jsx)(r,{...e,refresh:a.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,a.useRef)(null),t=(0,a.useRef)(null),r=(0,a.useRef)(null),n=(0,a.useRef)(null),s=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{if("u"{let a=t.current,n=e.current;if(!a||!n)return;if(!a.isConnected){t.current=null,n.style.opacity="0",r.current?.disconnect();return}let i=a.getBoundingClientRect();n.style.top=`${i.top+window.scrollY}px`,n.style.left=`${i.left+window.scrollX}px`,n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.opacity="1"},[]),d=(0,a.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),u=(0,a.useCallback)(()=>{t.current&&null===n.current&&(n.current=requestAnimationFrame(()=>{n.current=null,c()}))},[c]),m=(0,a.useCallback)(e=>{if(e===s.current)return;let a=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!a)return void i.debug("No element found for block ID",{blockId:e});let n=(e=>{let t=e,a=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?m(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==n.current&&cancelAnimationFrame(n.current),r.current?.disconnect(),e.current?.remove()}},[m,d,u]),null},"LivePreviewListener",0,s],520362)},556441,e=>{"use strict";var t=e.i(699173),a=e.i(961123),r=e.i(240058),n=e.i(877957),i=e.i(368847),l=e.i(132084),s=e.i(528600),o=e.i(837879),c=e.i(498076),d=e.i(37429),u=e.i(683199);e.s(["default",0,()=>{let e=(0,a.useSearchParams)(),m=e.get("par")||e.get("partner"),p=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:f}=(0,s.useUser)(),{isUserPremium:x}=f,g=(0,u.usePremiumSource)();return m===l.Partner.TIKTOK&&p&&h&&!x?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(d.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(i.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(i.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(n.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(r.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>g({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])}]);