(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,837879,e=>{"use strict";var t=e.i(592121),a=e.i(546446),r=e.i(961123),o=e.i(485737),l=e.i(739971),n=e.i(725296),i=e.i(394481),s=e.i(763886),c=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,a.useAtomValue)(l.subscriptionsEnabledAtom),u=(0,a.useAtomValue)(o.geoipCountry),d=(0,r.useParams)()?.locale,p=(0,a.useAtomValue)(i.privacyRegimeAtom)??n.Regime.EXEMPT,f=(0,a.useAtomValue)(s.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===u&&"en-US"===d&&n.US_REGIMES.includes(p)&&f!==c.Partner.OPPO,[e,u,d,p,f])}])},226602,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let o=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:o,...l},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":o,...l,children:[r?(0,t.jsx)("desc",{id:o,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Close"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),l=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:o,...e}));l.displayName="Close",e.s(["Close",0,l])},671525,e=>{"use strict";var t=e.i(961123);let a=()=>{let e=(0,t.useRouter)();return{navigate:(t,a={})=>{let{mpa:r=!0,replace:o=!1}=a;r?o?window.location.replace(t):window.location.href=t:o?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:a=!0}=t;a?window.location.reload():e.refresh()},router:e}};e.s(["default",0,a,"usePageNavigation",0,a])},756227,95870,391174,e=>{"use strict";var t=e.i(546446),a=e.i(284007),r=e.i(889753),o=e.i(310847),l=e.i(613646);e.s(["mutate",()=>l.j],95870);var l=l,n=e.i(318849);let i=()=>{(0,l.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1});try{localStorage.removeItem(n.SWR_CACHE_STORAGE_KEY)}catch{}};e.s(["invalidateUpsxCache",0,i],391174),e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(r.userProfileAtom),l=(0,t.useSetAtom)(o.wxuUserAccountUserAccountResponseAtom);return()=>{i(),e(a.RESET),l(null)}}],756227)},609858,674339,e=>{"use strict";var t=e.i(546446),a=e.i(592121);let r=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,r],674339),e.s(["useDebugSystem",0,function(){let[e,o]=(0,t.useAtom)(r),l=(0,a.useCallback)((e,t)=>{o(a=>{let r=a?.[e]||{},o="object"==typeof t&&null!==t&&"object"==typeof r?{...r,...t}:t;return{...a,[e]:o}})},[o]),n=(0,a.useCallback)((e,t)=>{o(a=>{let r=a||{timestamp:new Date().toISOString()},o=r.components||{};if(null===t){let t={...o};return delete t[e],{...r,components:t}}return{...r,components:{...o,[e]:t}}})},[o]),i=(0,a.useCallback)(e=>{l("page",e)},[l]),s=(0,a.useCallback)(e=>{l("route",e)},[l]),c=(0,a.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&l(e,t)})},[l]);return{debugData:e,updateSection:l,updateComponentData:n,setPageData:i,clearAllDebugData:(0,a.useCallback)(()=>{o({timestamp:new Date().toISOString()})},[o]),updateRouteInfo:s,updatePageDebug:c}}],609858)},752496,e=>{"use strict";var t=e.i(592121),a=e.i(609858);let r=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:o,page:l,onUpdateData:n,onSetPageData:i}){let{updateComponentData:s,setPageData:c}=(0,a.useDebugSystem)(),u=(0,t.useRef)(!1),d=n||s,p=i||c;return(0,t.useEffect)(()=>{if(o)return r.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(o),hasPerformance:!!o.performance,hasContext:!!o.context}),d(e,{...o,_collectedAt:new Date().toISOString()}),()=>{r.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,o,d]),(0,t.useEffect)(()=>{l&&!u.current&&(r.lifecycle("Setting page metadata",{title:l.title,assetName:l.assetName,collection:l.collection}),p({...l,_updatedAt:new Date().toISOString()}),u.current=!0)},[l,p]),null}])},18358,e=>{"use strict";var t=e.i(947118),a=e.i(737801),r=e.i(592121);e.s(["useTrackEvent",0,()=>{let e=(0,t.useIsInitialized)(),o=(0,a.useEventAttributes)(),l=(0,r.useCallback)((t,a={})=>{let r={...o,...a};if(!e)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(t,window.mParticle.EventType.Other,r),console.debug(`MParticle: Event "${t}" tracked`,r)}catch(e){console.error(`MParticle: Event "${t}" failed`,e)}return l},[o,e]);return l}])},367810,396817,634177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(543836),o=e.i(271359),l=e.i(855128),n=e.i(296994),i=e.i(803976),s=e.i(698900),c=e.i(546504),u=e.i(778469),d=e.i(312610),p=e.i(942928),f=e.i(235453),g=e.i(714035),m=e.i(621790),h=e.i(73772),v=e.i(982538),y=Object.defineProperty,w=(e,t)=>y(e,"name",{value:t,configurable:!0}),b="Dialog",[C,x]=(0,l.createContextScope)(b),[S,I]=C(b),R=w(e=>{let{__scopeDialog:r,children:o,open:l,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,d=a.useRef(null),p=a.useRef(null),[f,g]=(0,i.useControllableState)({prop:l,defaultProp:s??!1,onChange:c,caller:b}),[m,h]=a.useState(0),[v,y]=a.useState(0);return(0,t.jsx)(S,{scope:r,triggerRef:d,contentRef:p,contentId:(0,n.useId)(),titleId:(0,n.useId)(),descriptionId:(0,n.useId)(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:h,setDescriptionCount:y,open:f,onOpenChange:g,onOpenToggle:a.useCallback(()=>g(e=>!e),[g]),modal:u,children:o})},"Dialog"),E=a.forwardRef(w(function(e,a){let{__scopeDialog:l,...n}=e,i=I("DialogTrigger",l),s=(0,o.useComposedRefs)(a,i.triggerRef);return(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":G(i.open),...n,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)})},"DialogTrigger")),D="DialogPortal",[P,A]=C(D,{forceMount:void 0}),j=w(e=>{let{__scopeDialog:r,forceMount:o,children:l,container:n}=e,i=I(D,r);return(0,t.jsx)(P,{scope:r,forceMount:o,children:a.Children.map(l,e=>(0,t.jsx)(d.Presence,{present:o||i.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:n,children:e})}))})},"DialogPortal"),_="DialogOverlay",O=a.forwardRef(w(function(e,a){let r=A(_,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,n=I(_,e.__scopeDialog);return n.modal?(0,t.jsx)(d.Presence,{present:o||n.open,children:(0,t.jsx)(k,{...l,ref:a})}):null},"DialogOverlay")),T=(0,v.createSlot)("DialogOverlay.RemoveScroll"),k=a.forwardRef(w(function(e,a){let{__scopeDialog:r,...l}=e,n=I(_,r),i=(0,s.useDismissableLayerSurface)(),c=(0,o.useComposedRefs)(a,i);return(0,t.jsx)(m.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[n.contentRef],children:(0,t.jsx)(p.Primitive.div,{"data-state":G(n.open),...l,ref:c,style:{pointerEvents:"auto",...l.style}})})},"DialogOverlayImpl")),N="DialogContent",U=a.forwardRef(w(function(e,a){let r=A(N,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,n=I(N,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:o||n.open,children:n.modal?(0,t.jsx)(L,{...l,ref:a}):(0,t.jsx)(F,{...l,ref:a})})},"DialogContent")),L=a.forwardRef(w(function(e,l){let n=I(N,e.__scopeDialog),i=a.useRef(null),s=(0,o.useComposedRefs)(l,n.contentRef,i);return a.useEffect(()=>{let e=i.current;if(e)return(0,h.hideOthers)(e)},[]),(0,t.jsx)(H,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;(2===t.button||a)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),F=a.forwardRef(w(function(e,r){let o=I(N,e.__scopeDialog),l=a.useRef(!1),n=a.useRef(!1);return(0,t.jsx)(H,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(l.current||o.triggerRef.current?.focus(),t.preventDefault()),l.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(l.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let a=t.target;o.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})},"DialogContentNonModal")),H=a.forwardRef(w(function(e,a){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:n,...i}=e,u=I(N,r);return(0,f.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:n,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":G(u.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),M=a.forwardRef(w(function(e,a){let{__scopeDialog:r,...o}=e,l=I("DialogTitle",r),{setTitleCount:n}=l;return(0,g.useLayoutEffect)(()=>(n(e=>e+1),()=>n(e=>e-1)),[n]),(0,t.jsx)(p.Primitive.h2,{id:l.titleId,...o,ref:a})},"DialogTitle")),V=a.forwardRef(w(function(e,a){let{__scopeDialog:r,...o}=e,l=I("DialogDescription",r),{setDescriptionCount:n}=l;return(0,g.useLayoutEffect)(()=>(n(e=>e+1),()=>n(e=>e-1)),[n]),(0,t.jsx)(p.Primitive.p,{id:l.descriptionId,...o,ref:a})},"DialogDescription")),B=a.forwardRef(w(function(e,a){let{__scopeDialog:o,...l}=e,n=I("DialogClose",o);return(0,t.jsx)(p.Primitive.button,{type:"button",...l,ref:a,onClick:(0,r.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})},"DialogClose"));function G(e){return e?"open":"closed"}w(G,"getState"),e.s(["Close",0,B,"Content",0,U,"Description",0,V,"Overlay",0,O,"Portal",0,j,"Root",0,R,"Title",0,M,"Trigger",0,E],396817);var $=e.i(226602),K=e.i(632137),W=e.i(877957),z=e.i(294237);e.i(368847);let X=(0,z.cva)("",{variants:{type:{overlay:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-overlay bg-black/50",content:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-overlay w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md p-6",header:"mb-4 text-center",footer:"mt-6 flex flex-col-reverse gap-2 text-center"}},defaultVariants:{type:"content"}});function Y({...e}){return(0,t.jsx)(j,{"data-slot":"dialog-portal",...e})}function J({className:e,...a}){return(0,t.jsx)(O,{"data-slot":"dialog-overlay",className:(0,K.cn)(X({type:"overlay"}),e),...a})}function Z({className:e,overlayClassName:a,children:r,showCloseButton:o=!0,...l}){return(0,t.jsxs)(Y,{"data-slot":"dialog-portal",children:[(0,t.jsx)(J,{className:a}),(0,t.jsxs)(U,{"data-slot":"dialog-content",className:(0,K.cn)(X({type:"content"}),e),...l,children:[r,o&&(0,t.jsxs)(B,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)($.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function q({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,K.cn)(X({type:"header"}),e),...a})}function Q({className:e,children:a,...r}){return(0,t.jsx)(M,{"data-slot":"dialog-title",className:(0,K.cn)("pt-4 text-center",e),...r,children:a})}function ee({className:e,children:a,...r}){return(0,t.jsx)(V,{"data-slot":"dialog-description",className:(0,K.cn)("pb-4 text-center",e),...r,children:a})}function et({primary:e,secondary:a,className:r}){return(0,t.jsxs)("div",{className:(0,K.cn)("flex flex-col-reverse gap-3",r),children:[a&&(0,t.jsx)(W.Button,{variant:"secondary",onClick:a.onClick,className:"w-full",children:a.label}),e&&(0,t.jsx)(W.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,X],634177),e.s(["BasicDialog",0,function({title:e,description:a,primaryAction:r,secondaryAction:o,showCloseButton:l=!0,className:n,children:i,...s}){return(0,t.jsxs)(Z,{showCloseButton:l,className:(0,K.cn)("p-6",n),...s,children:[(0,t.jsx)(q,{children:(0,t.jsx)(Q,{children:e})}),(0,t.jsx)(ee,{children:a}),i,(r||o)&&(0,t.jsx)(et,{primary:r,secondary:o})]})},"Dialog",0,function({...e}){return(0,t.jsx)(R,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(B,{"data-slot":"dialog-close",...e})},"DialogContent",0,Z,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,K.cn)(X({type:"footer"}),e),...a})},"DialogHeader",0,q,"DialogOverlay",0,J,"DialogPortal",0,Y,"DialogTitle",0,Q,"DialogTrigger",0,function({...e}){return(0,t.jsx)(E,{"data-slot":"dialog-trigger",...e})}],367810)},438335,e=>{"use strict";var t=e.i(546584);let a=/^[a-z][a-z0-9+.-]*:\/\//i,r=/[?#]/,o=/\/{2,}/g,l=e=>{if(!e)return e;let t=e.match(a),l=t?t[0].length:0,n=e.slice(0,l),i=e.slice(l),s=i.search(r),c=-1===s?i:i.slice(0,s),u=-1===s?"":i.slice(s);return n+c.replace(o,"/")+u},n=/\/+$/;e.s(["getPublicProductionURL",0,e=>{let a=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",r=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"weather.com",o=`https://${a??r}`;return(o=o.replace(n,""),e)?l(new URL(e,o).toString()):o},"getPublicURL",0,e=>{let a,r=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),o=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch2026-08-21.vercel.weather.com",i=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",s="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(r){case"preview":a=`https://${o}`;break;case"development":a=s?`http://${i}`:`https://${i}`;break;default:a=`https://${i}`}return(a=a.replace(n,""),e)?l(new URL(e,a).toString()):a}],438335)},611540,e=>{"use strict";e.i(438335);let t=(e,...t)=>{if(!e)return"";let[a={},r=!1]=t,o=Object.entries(a).reduce((e,[t,a])=>void 0===a?e:e.replaceAll(`{${t}}`,a),e);return r?o:"/en-US"===o?"/":o.replace("/en-US/","/")};e.s(["URLS",0,{BannerTextHref:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&tpcc=mktg-{pageKey}-mainmenu-mobilebanner",activityHubCamping:"/{locale}/activity-hub/camping/{locId}",activityHubCycling:"/{locale}/activity-hub/cycling/{locId}",activityHubGardening:"/{locale}/activity-hub/gardening/{locId}",activityHubGolf:"/{locale}/activity-hub/golf/{locId}",activityHubHiking:"/{locale}/activity-hub/hiking/{locId}",activityHubPage:"/{locale}/activity-hub/{locId}",activityHubRunning:"/{locale}/activity-hub/running/{locId}",activityHubTennis:"/{locale}/activity-hub/tennis/{locId}",airQuality:"/{locale}/forecast/air-quality/l/{locId}",alertDetails:"/{locale}/weather/alerts/localalerts/l/{locId}",alerts:"/{locale}/weather/alerts/localalerts/l/{locId}",allergy:"/{locale}/forecast/allergy/l/{locId}",apps:"/{locale}/{collectionId}/{assetName}",article:"/{locale}/{collectionId}/news/{articleTitle}",atmosphere:"/atmosphere",betterDecisions:"/mission",boatBeach:"/{locale}/forecast/boat-beach/l/{locId}",breathing:"/{locale}/forecast/breathing/l/{locId}",callforcode:"/callforcode",christmasCountdown:"/forecast/christmas-countdown/l/{locId}",coldFlu:"/{locale}/forecast/cold-flu/l/{locId}",covid19:"/{locale}/coronavirus/l/{locId}",covid19map:"/{locale}/coronavirus/map/l/{locId}",dataDefinitions:"/{locale}/data-definitions",dataInventory:"/{locale}/data-inventory",dataPartners:"/{locale}/data-partners",dataRights:"/{locale}/data-rights",explore:"/explore",farming:"/{locale}/forecast/agriculture/l/{locId}",fishing:"/{locale}/forecast/fishing/l/{locId}",fiveday:"/{locale}/weather/5day/l/{locId}",flights:"/flights",forgotPassword:"/{locale}/forgot-password",goRun:"/{locale}/forecast/gorun/l/{locId}",grilling:"/home-garden/grilling",home:"/{locale}",homeGarden:"/home-garden",hourly:"/{locale}/weather/hourbyhour/l/{locId}",hurricane:"/{locale}/hurricane",hurricaneCentral:"/storms/hurricane-central",hurricaneHub:"/hurricane/ian-2022",hurricaneNicole:"/hurricane/nicole-2022",hurricaneRetro:"/hurricane/sandy-2012",interactiveMap:"/{locale}/weather/radar/interactive/l/{locId}",legal:"/{locale}/{collectionId}/{assetName}",maps:"/maps/{collectionId}",memberLogin:"/{locale}/login",memberSettings:"/{locale}/member/settings",memberSignup:"/{locale}/signup",memberSubscription:"/{locale}/member/subscription",memorialdayCountdown:"/forecast/memorial-day-countdown/l/{locId}",mlbCountdown:"/{locale}/forecast/opening-day-countdown/l/{locId}",monthly:"/{locale}/weather/monthly/l/{locId}",myDashboard:"/{locale}/mydashboard",news:"/news",newsletter:"/{locale}/newsletter",notification:"/{locale}/life/manage-notifications",pets:"/pets",precipitation:"/{locale}/precipitation/l/{locId}",premiumOnboarding:"/{locale}/premium/onboarding",privacyPolicy:"/{locale}/privacy/privacy-policy",privacyPolicyDirectory:"/{locale}/privacy-policy-directory",privacySettings:"/{locale}/privacy-settings",radar:"/{locale}/weather/radar/interactive/l/{locId}",recipes:"/home-garden/recipes",resetPassword:"/{locale}/reset-password",rss:"/rss",safetyIndex:"/safety/index",samsungWeatherConditions:"/{locale}/weather-conditions/l/{locId}",scienceEnvironment:"/science/environment",search:"/{locale}/search/enhancedlocalsearch",shop:"https://shop.weather.com/",ski:"/{locale}/forecast/ski/l/{locId}",skinHealth:"/health/skin-health",slideshows:"/{locale}/slideshows",spaceSkywatching:"/science/space",stormRadar:"//apps.apple.com/us/app/storm-radar-weather-tracker/id1216396545",stormRadarFeatures:"/storm-radar",subsBundles:"/subscribe/bundle",subscriptionPhase2:"/{locale}/subscribe/phase2",tenday:"/{locale}/weather/tenday/l/{locId}",termsOfUse:"/{locale}/privacy/terms-of-use",thanksgivingCountdown:"/forecast/thanksgiving-countdown/l/{locId}",today:"/{locale}/weather/today/l/{locId}",tornadoCentral:"/storms/tornado-central",travel:"/travel",unsubscribe:"/{locale}/life/alerts/unsubscribe",usForecast:"/maps/currentusweather",usHealth:"/maps/health/allergies/treepollen",usSatAndRadar:"/maps/ussatellitemap",usSevereAlerts:"/maps/severealerts",usTravel:"/maps/travel/airport-delays",userSubscription:"/{locale}/subscribe",video:"/{locale}/{collectionId}/video/{videoTitle}",weatherAsProviderExplainer:"https://theweathercompany.info/{locale}/partners",weekend:"/{locale}/weather/weekend/l/{locId}",worldSatellite:"/maps/satellite/caribbeanweathermap",wu:"//www.wunderground.com",yesterday:"//www.wunderground.com/history/daily/{locId}/yesterday"},"interpolateLocationUrl",0,(e,{locale:a,locId:r,featureId:o})=>t(e,{locale:a,locId:(o?.startsWith("address.")?void 0:o)??r}),"interpolateUrl",0,t],611540)},806262,e=>{"use strict";e.i(592121);var t=e.i(546446);e.i(284007),e.i(981030);let a=new WeakMap;e.s(["useHydrateAtoms",0,function(e,r){var o;let l,n=(0,t.useStore)(r),i=(o=n,(l=a.get(o))||(l=new WeakSet,a.set(o,l)),l);for(let[t,...a]of e)(!i.has(t)||(null==r?void 0:r.dangerouslyForceHydrate))&&(i.add(t),n.set(t,...a))}])},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let a=(0,t.atom)(null),r=(0,t.atom)(null);e.s(["activeEventAtom",0,r,"layoutStateAtom",0,a])},991511,e=>{"use strict";var t=e.i(592121),a=e.i(806262),r=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,a.useHydrateAtoms)(e);let o=(0,r.useStore)(),l=(0,t.useRef)(e);l.current=e,(0,t.useEffect)(()=>{for(let[e,t]of l.current)o.get(e)!==t&&o.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},553329,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])},776169,809991,e=>{"use strict";var t=e.i(546446),a=e.i(889753),r=e.i(301904),o=e.i(901351),l=e.i(310847),n=e.i(528600),i=e.i(617874),s=e.i(858040),c=e.i(553329),u=e.i(592121),d=e.i(245943);let p=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:t}}=(0,n.useUser)();return{saveMapSettings:(0,u.useCallback)(async a=>{if(!t)return!1;let{error:r}=await (0,c.tryCatch)(o.upsxClient.preference.updateMapSettings(e,a));if(!r)return!0;if(r instanceof d.APIError&&404===r.code){let{error:t}=await (0,c.tryCatch)(o.upsxClient.preference.createMapSettings(e,a));return!t||(p.warn("Failed to create map settings",t),!1)}return p.warn("Failed to update map settings",r),!1},[t,e])}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,n.useUser)(),[u,d]=(0,t.useAtom)(a.userPreferencesAtom),[p,f]=(0,t.useAtom)(l.wxuUserPreferenceAtom),g=async()=>{let{data:e,error:t}=await (0,c.tryCatch)(o.upsxClient.preference.getMapSettings("twc"));if(t||!e)return null;let{animationSpeed:a,autoplay:r,opacity:l,roadOverlay:n,style:i}=e,s={...void 0!==a&&{animationSpeed:a},...void 0!==r&&{autoplay:r},...void 0!==l&&{opacity:l},...void 0!==n&&{roadOverlay:n},...void 0!==i&&{style:i}};return Object.keys(s).length>0?s:null},m=async e=>{try{await o.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},h=async(t,a=!0)=>{try{let r,o=(r={...u,...t},d(r),f({...p,...t,locations:r.locations}),r);if(t?.unit){let e=(0,i.unitsSystemByName)(t.unit),a=e?.code||"e";(0,s.setCookie)(i.UNITS_COOKIE_KEY,a,{domain:"weather.com"})}return a&&e&&await m(o),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([o.upsxClient.preference.getPreference(),g()]);if(!e?.userID)return null;let{mapSettings:a,...l}=e,n={...l,mapSettings:{...r.DEFAULT_MAP_SETTINGS,...t}};return h(n,!1),n}catch{return null}},updatePreferences:h}}],776169)},318849,e=>{"use strict";let t=!1,a="upsx-recent-purchase-at";e.s(["SWR_CACHE_LEGACY_STORAGE_KEY",0,"app-cache","SWR_CACHE_STORAGE_KEY",0,"wxu-swr-cache-v1","disableSwrPersist",0,()=>{t=!0},"hasRecentPurchase",0,e=>{try{let t=localStorage.getItem(a);if(!t)return!1;let r=Number(t);if(!Number.isFinite(r))return!1;return Date.now()-rt,"markRecentPurchase",0,()=>{try{localStorage.setItem(a,String(Date.now()))}catch{}}])},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},491045,e=>{"use strict";var t=e.i(284007);let a=(0,t.createJSONStorage)(()=>sessionStorage),r=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,a);e.s(["purchaseSourceAttributionAtom",0,r])},185312,(e,t,a)=>{t.exports=e.r(16129)},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])}]);