(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,789876,e=>{"use strict";var t=e.i(7284);let r=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function n(...e){return r((0,t.clsx)(e))}e.s(["cn",()=>n])},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>i=>{var o;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:a,defaultVariants:l}=t,s=Object.keys(a).map(e=>{let t=null==i?void 0:i[e],n=null==l?void 0:l[e];if(null===t)return null;let o=r(t)||r(n);return a[e][o]}),c=i&&Object.entries(i).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,s,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...c}[t]):({...l,...c})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},747961,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(294237),i=e.i(789876);let o=(0,n.cva)("inline-block",{variants:{size:{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-16 h-16",xxl:"w-32 h-32"},color:{primary:"text-gray-900",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white"}},defaultVariants:{size:"md",color:"primary"}}),a=r.default.forwardRef(({icon:e,size:r,color:n,title:a,desc:l,className:s,ariaHidden:c,...u},d)=>(0,t.jsx)(e,{ref:d,className:(0,i.cn)(o({size:r,color:n}),s),title:a,desc:l,...c&&{"aria-hidden":c},...u}));a.displayName="BaseIcon",e.s(["BaseIcon",0,a])},144977,e=>{"use strict";var t=e.i(477716);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;tn,"useComposedRefs",()=>i])},762073,e=>{"use strict";var t=e.i(477716),r=e.i(144977),n=e.i(297647),i=Symbol.for("react.lazy"),o=t[" use ".trim().toString()];function a(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function l(e){var i;let l,s=(i=e,(l=t.forwardRef((e,n)=>{let{children:i,...l}=e;if(a(i)&&"function"==typeof o&&(i=o(i._payload)),t.isValidElement(i)){var s;let e,o,a=(s=i,(o=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(o=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(l,i.props);return i.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,a):a),t.cloneElement(i,c)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${i}.SlotClone`,l),c=t.forwardRef((e,r)=>{let{children:i,...l}=e;a(i)&&"function"==typeof o&&(i=o(i._payload));let c=t.Children.toArray(i),d=c.find(u);if(d){let e=d.props.children,i=c.map(r=>r!==d?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(s,{...l,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,i):null})}return(0,n.jsx)(s,{...l,ref:r,children:i})});return c.displayName=`${e}.Slot`,c}var s=l("Slot"),c=Symbol("radix.slottable");function u(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}e.s(["Slot",()=>s,"createSlot",()=>l])},877957,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(762073),i=e.i(294237),o=e.i(632137),a=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...o},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,t.jsx)("desc",{id:i,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.65 2.926A5.335 5.335 0 1 0 13.335 8a.665.665 0 0 1 1.33 0 6.665 6.665 0 1 1-4.606-6.34.665.665 0 1 1-.41 1.266",clipRule:"evenodd"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:l,...e}));s.displayName="LoaderCircle";let c=(0,i.cva)("rounded-lg cursor-pointer",{variants:{variant:{default:"bg-brand-400 text-primary-foreground hover:bg-[#252C3F] active:bg-[#0C1226] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0",secondary:"bg-white text-gray-900 active:bg-[#E6E6E6] focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",destructive:"bg-alert-severe hover:bg-[#C1251A] active:bg-[#A70C00] text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",outline:"border-1 border-gray-500 hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",ghost:"hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",link:"text-primary underline-offset-3 underline focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",avatarAccountLink:"text-primary text-[14px]",avatarGoPremium:"bg-gray-900 text-white text-[14px]",avatarSignOut:"text-primary text-[16px]",ghostUI:""},size:{default:"h-10 px-4 py-3",lg:"h-10 px-8 py-3",sm:"h-8 px-3 py-2",xsm:"h-6 px-2",icon:"h-10 w-10",text:""},loading:{true:"pointer-events-none cursor-not-allowed opacity-50",false:""},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30",false:""}},defaultVariants:{variant:"default",size:"default",loading:!1,disabled:!1}}),u=r.forwardRef(({className:e,variant:r="default",size:i,asChild:a=!1,disabled:l=!1,loading:u=!1,children:d,...f},m)=>{let x=a?n.Slot:"button";return(0,t.jsx)(x,{...f,className:(0,o.cn)(c({variant:r,size:i,loading:u,disabled:l}),"inline-flex items-center justify-center",e),ref:m,disabled:l||u,children:a?d:(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsx)(s,{size:"sm",className:"mr-2 animate-spin",color:"default"===r||"destructive"===r?"inverse":"primary"}),d]})})});u.displayName="Button",e.s(["Button",()=>u],877957)},776169,e=>{"use strict";var t=e.i(475566),r=e.i(889753),n=e.i(901351),i=e.i(310847),o=e.i(528600),a=e.i(617874),l=e.i(589510);function s(){let{user:{isUserLoggedIn:e}}=(0,o.useUser)(),[s,c]=(0,t.useAtom)(r.userPreferencesAtom),[u,d]=(0,t.useAtom)(i.wxuUserPreferenceAtom),f=async e=>{try{await n.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},m=async(t,r=!0)=>{try{let n,i=(n={...s,...t},c(n),d({...u,...t,locations:n.locations}),n);if(t?.unit){let e=(0,a.unitsSystemByName)(t.unit),r=e?.code||"e";(0,l.setCookie)(a.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await f(i),{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=await n.upsxClient.preference.getPreference();if(!e?.userID)return null;return m(e,!1),e}catch{return null}},updatePreferences:m}}e.s(["usePreferences",()=>s])},368847,341669,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(294237),i=e.i(632137);let o=({skeletonClassName:e,elementType:r="span"})=>(0,t.jsx)(r,{className:(0,i.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,o],341669);let a={0:"No Clamp",1:"1 Line",2:"2 Lines",3:"3 Lines",4:"4 Lines",5:"5 Lines"};[0,1,2,3,4,5].map(e=>({label:a[e],value:String(e)}));let l=r.default.forwardRef(({className:e,isLoading:r,skeletonClassName:n,variant:a,elementType:l,lineClamp:c,color:u,responsive:d,children:f,...m},x)=>{if(r)return(0,t.jsx)(o,{skeletonClassName:n||""});let p=l||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":case"Title.S":return"h2";default:return"p"}}({variant:a}),g=(0,t.jsx)(p,{className:(0,i.cn)(s({variant:a,color:u,lineClamp:c,responsive:d}),e),ref:x,...m,children:f});return d?(0,t.jsx)("div",{className:"@container/text",children:g}):g});l.displayName="Text";let s=(0,n.cva)("",{variants:{variant:{"Display.XL":["text-6xl","leading-relaxed","tracking-tighter"],"Display.L":["text-5xl","leading-normal","tracking-tighter","font-medium"],"Display.M":["text-4xl","leading-tight","tracking-tight","font-medium"],"Display.S":["text-xl","leading-relaxed","tracking-tight","font-medium"],"Title.XL":["text-4xl","leading-snug","tracking-tight","font-extrabold"],"Title.L":["text-3xl","leading-normal","tracking-tight","font-extrabold"],"Title.M":["text-2xl","leading-normal","tracking-tight","font-extrabold"],"Title.S":["text-xl","leading-normal","tracking-tight","font-bold"],"Title.XS":["text-base","leading-relaxed","tracking-tight","font-bold"],"Body.L":["text-lg","leading-loose","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-loose","tracking-normal","font-bold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.S":["text-sm","leading-loose","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-loose","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"],"Caption.S.Bold":["text-xxs","leading-loose","tracking-normal","font-bold"]},responsive:{true:"",false:""},color:{primary:"text-gray-900",secondary:"text-gray-500",default:"text-gray-900",disabled:"text-gray-400",placeholder:"text-gray-600",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white",error:"text-[var(--color-alert-severe)]"},lineClamp:{0:"",1:"line-clamp-1 pb-0.5",2:"line-clamp-2 pb-0.5",3:"line-clamp-3 pb-0.5",4:"line-clamp-4 pb-0.5",5:"line-clamp-5 pb-0.5"}},compoundVariants:[{variant:"Display.XL",responsive:!0,class:"text-4xl @sm/text:text-5xl @lg/text:text-6xl"},{variant:"Display.L",responsive:!0,class:"text-2xl @sm/text:text-4xl @lg/text:text-5xl"},{variant:"Display.M",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-4xl"},{variant:"Display.S",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.XL",responsive:!0,class:"text-2xl @sm/text:text-3xl @lg/text:text-4xl"},{variant:"Title.L",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-3xl"},{variant:"Title.M",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.S",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Title.XS",responsive:!0,class:"text-sm @sm/text:text-base"},{variant:"Body.L",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.Bold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.M",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.Bold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.S",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Body.S.Bold",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Caption.M",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.S",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"},{variant:"Caption.S.Bold",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"}],defaultVariants:{variant:"Body.M",color:"default",responsive:!1}});e.s(["Text",()=>l,"default",0,l,"textVariants",()=>s],368847)},671525,e=>{"use strict";var t=e.i(375570);let r=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:n=!0,replace:i=!1}=r;n?i?window.location.replace(t):window.location.href=t:i?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:r=!0}=t;r?window.location.reload():e.refresh()},router:e}};e.s(["default",0,r,"usePageNavigation",0,r])},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},710746,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...o},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,t.jsx)("desc",{id:i,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Close"}):e?(0,t.jsx)("title",{id:r,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"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Close",e.s(["Close",0,o])},291967,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return r?.(t)}}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},156207,e=>{"use strict";var t=e.i(477716),r=e.i(297647);function n(e,n){let i=t.createContext(n),o=e=>{let{children:n,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(i.Provider,{value:a,children:n})};return o.displayName=e+"Provider",[o,function(r){let o=t.useContext(i);if(o)return o;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,n=[]){let o=[],a=()=>{let r=o.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(n,i){let a=t.createContext(i),l=o.length;o=[...o,i];let s=n=>{let{scope:i,children:o,...s}=n,c=i?.[e]?.[l]||a,u=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(c.Provider,{value:u,children:o})};return s.displayName=n+"Provider",[s,function(r,o){let s=o?.[e]?.[l]||a,c=t.useContext(s);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(a,...n)]}e.s(["createContext",()=>n,"createContextScope",()=>i])},93074,e=>{"use strict";var t=e.i(477716),r=e.i(144977),n=e.i(297647);function i(e){var i;let o,a=(i=e,(o=t.forwardRef((e,n)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var a;let e,l,s=(a=i,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,i.props);return i.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(i,c)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${i}.SlotClone`,o),s=t.forwardRef((e,r)=>{let{children:i,...o}=e,s=t.Children.toArray(i),c=s.find(l);if(c){let e=c.props.children,i=s.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(a,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,i):null})}return(0,n.jsx)(a,{...o,ref:r,children:i})});return s.displayName=`${e}.Slot`,s}var o=Symbol("radix.slottable");function a(e){let t=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}e.s(["createSlot",()=>i,"createSlottable",()=>a])},556872,e=>{"use strict";var t=e.i(477716),r=e.i(481938),n=e.i(93074),i=e.i(297647),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,n.createSlot)(`Primitive.${r}`),a=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?o:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});function a(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>o,"dispatchDiscreteCustomEvent",()=>a])},127864,e=>{"use strict";var t=e.i(477716),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},653747,e=>{"use strict";var t=e.i(477716),r=e.i(144977),n=e.i(127864),i=e=>{var i;let a,l,{present:s,children:c}=e,u=function(e){var r,i;let[a,l]=t.useState(),s=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=o(s.current);u.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=s.current,r=c.current;if(r!==e){let n=u.current,i=o(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=o(s.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(f("ANIMATION_END"),!c.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(u.current=o(s.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),f=(0,r.useComposedRefs)(u.ref,(i=d,(l=(a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.ref:(l=(a=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:f}):null};function o(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",()=>i])},534643,e=>{"use strict";var t=e.i(477716),r=e.i(127864);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function i({prop:e,defaultProp:r,onChange:i=()=>{},caller:o}){let[a,l,s]=function({defaultProp:e,onChange:r}){let[i,o]=t.useState(e),a=t.useRef(i),l=t.useRef(r);return n(()=>{l.current=r},[r]),t.useEffect(()=>{a.current!==i&&(l.current?.(i),a.current=i)},[i,a]),[i,o,l]}({defaultProp:r,onChange:i}),c=void 0!==e,u=c?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,o])}return[u,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else l(t)},[c,e,l,s])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>i],534643)},521350,e=>{"use strict";var t=e.i(333350);function r(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1}function n(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}e.s(["areCookiesEnabled",()=>r,"isLocalStorageAvailable",()=>n])},947118,e=>{"use strict";var t=e.i(477716);let r=e=>(window.mParticle?.ready?.(e),()=>{}),n=()=>!!window.mParticle?.isInitialized?.(),i=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(r,n,i)])},737801,358273,e=>{"use strict";e.i(694914);var t=e.i(475566),r=e.i(589510),n=e.i(521350),i=e.i(627897);let o="wxu-metrics-session",a="new-metrics-session",l="metric-session-last-active-time",s=()=>{let e=(0,r.getCookie)(o);if(!e)return null;let[t="",n="",i=""]=e.split(":"),a=parseInt(n,10);return{sessionId:t,sessionStartTime:a,pageCount:parseInt(i,10)}},c=e=>{let t=new Date().getTime(),n=e&&!u();n&&d(t);let a=n?e:{},l=a.sessionId||(0,i.v4)(),s=a.sessionStartTime||t,c=a.pageCount||0,f=`${l}:${s}:${c}`;(0,r.setCookie)(o,decodeURIComponent(f),{domain:".weather.com",path:"/",maxAge:1800})},u=(e=30)=>{try{let t=new Date().getTime(),r=f(),n=new Date(r).getTime(),i=new Date(t).getTime();if(Number.isNaN(n)||Number.isNaN(i))return console.error("Invalid timestamp"),!1;return Math.abs(n-i)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},d=e=>{(0,n.isLocalStorageAvailable)()&&localStorage.setItem(l,e.toString())},f=()=>{if(!(0,n.isLocalStorageAvailable)())return"";let e=localStorage.getItem(l);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,u,"deleteIsNewMestricsSession",0,()=>{(0,n.isLocalStorageAvailable)()&&localStorage.removeItem(a)},"getMetricsSession",0,s,"incrementMetricsSessionCount",0,()=>{let e=s();e&&c({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,n.isLocalStorageAvailable)())return localStorage.getItem(a)},"setIsNewMestricsSession",0,()=>{(0,n.isLocalStorageAvailable)()&&localStorage.setItem(a,"true")},"setMetricsSession",0,c],358273);var m=e.i(959194),x=e.i(537989),p=e.i(477716),g=e.i(827049),v=e.i(695203),y=e.i(375570),b=e.i(333350),h=e.i(472737);e.s(["useEventAttributes",0,()=>{let e=(0,m.getCampaign)(),i=(0,m.getTpcc)(),o=(0,m.getPartner)(),a=(0,n.areCookiesEnabled)(),l=(0,r.getCookie)("twc-location-country"),c=(0,r.getCookie)("twc-location-region"),u=s(),d=u?.pageCount?u?.pageCount+1:1,f=u?.sessionId||"",w=u?.sessionStartTime||0,S=(0,t.useAtomValue)(x.pageIdAtom)||"",C=(0,t.useAtomValue)(g.pageLocaleAtom),N=(0,t.useAtomValue)(v.deviceClassAtom),E=(0,y.usePathname)(),L=["article","video"].includes(S)?(0,m.stripLastPartOfSlug)(E):(0,m.getAnonymizedPath)(E),k=(0,m.getLinkReferral)(),I="u">typeof document?document.referrer:null,T=(0,h.useLocationSource)({}),M=T?.effectiveLocation?.city,R=T?.effectiveLocation?.adminDistrict,_=T?.effectiveLocation?.adminDistrictCode,A=new Date,D=A.getHours(),j=A.getDay(),O=m.WEEK_DAYS[j]||null,P=(0,r.getCookie)("twc-privacy"),B=b.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",$=b.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",U=!!b.default&&(window.navigator?.globalPrivacyControl??!1),V=$?.includes("functional-technology")??!1,F=$?.includes("geographically-relevant-advertising")??!1;return(0,p.useMemo)(()=>({campaign:e,tpcc:i,cookiesEnabled:a,physicalCountry:l??"",physicalState:c??"",pageId:S,partner:o,locale:C,deviceClass:N,url:L,linkReferral:k,referrer:I,pageCount:d,sessionId:f,sessionStartTime:w,schemaVersion:"nextgen",hourOfDay:D,dayOfWeek:O,wlocCity:M,wlocCountry:R,wlocState:_,privProducts:B,priv:$,gpcSignalOptOut:U,functionalTechnologies:V,geographicallyRelevantAds:F,regime:P??"",appVersion:"86eb2942161d7cb7913c2f681c77b35c98ab1fda",wlocDMA:m.geoIPDma||null,siteMode:"normal"}),[e,i,a,l,c,S,o,C,L,k,I,d,f,w,D,O,M,R,_,$,B,U,V,F,P,m.geoIPDma])}],737801)}]);