(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,543836,e=>{"use strict";var t=Object.defineProperty,r=(e,r)=>t(e,"name",{value:r,configurable:!0}),n=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return r(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function i(e){if(!n)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}r(o,"composeEventHandlers"),r(function(e){if(!n)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),r(i,"getOwnerDocument"),r(function e(t,r=!1){let{activeElement:n}=i(t);if(!n?.nodeName)return null;if(a(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=i(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),r(a,"isFrame"),e.s(["f",0,o])},899300,e=>{"use strict";e.s(["f",0,!1])},915335,e=>{"use strict";var t=e.i(538167),r=Object.defineProperty,n=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{"use strict";var t=e.i(538167),r=e.i(458201),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,n=[]){let s=[];function l(n,i){let a=t.createContext(i);a.displayName=n+"Context";let l=s.length;s=[...s,i];let u=o(n=>{let{scope:o,children:i,...s}=n,u=o?.[e]?.[l]||a,c=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(u.Provider,{value:c,children:i})},"Provider");function c(r,o,s={}){let{optional:u=!1}=s,f=o?.[e]?.[l]||a,d=t.useContext(f);if(d)return d;if(void 0!==i)return i;if(!u)throw Error(`\`${r}\` must be used within \`${n}\``)}return u.displayName=n+"Provider",o(c,"useContext"),[u,c]}o(l,"createContext");let u=o(()=>{let r=s.map(e=>t.createContext(e));return o(function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return u.scopeName=e,[l,a(u,...n)]}function a(...e){let r=e[0];if(1===e.length)return r;let n=o(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=r.scopeName,n}o(function(e,n){let i=t.createContext(n);i.displayName=e+"Context";let a=o(e=>{let{children:n,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(i.Provider,{value:a,children:n})},"Provider");function s(r,o={}){let{optional:a=!1}=o,l=t.useContext(i);if(l)return l;if(void 0!==n)return n;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",o(s,"useContext"),[a,s]},"createContext"),o(i,"createContextScope"),o(a,"composeContextScopes"),e.s(["f",0,i])},904816,e=>{"use strict";var t=e.i(538167),r=e.i(210767),n=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[n,a]=t.useState(o());return(0,r.f)(()=>{e||a(e=>e??String(i++))},[e]),e||(n?`radix-${n}`:"")}n(a,"name",{value:"useId",configurable:!0}),e.s(["f",0,a])},786884,e=>{"use strict";var t=e.i(538167),r=e.i(210767),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,r){return t.useReducer((e,t)=>r[e][t]??e,e)}o(i,"useStateMachine");var a=o(e=>{let{present:r,children:n}=e,o=s(r),i="function"==typeof n?n({present:o.isPresent}):t.Children.only(n),a=u(o.ref,f(i));return"function"==typeof n||o.isPresent?t.cloneElement(i,{ref:a}):null},"Presence");function s(e){let[n,a]=t.useState(),s=t.useRef(null),l=t.useRef(e),u=t.useRef("none"),f=t.useRef(void 0),[d,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===d?(u.current=f.current??c(s.current),f.current=void 0):u.current="none"},[d]),(0,r.f)(()=>{let t=s.current,r=l.current;if(r!==e){let n=u.current,o=c(t);e?(f.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):r&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,r.f)(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=o(r=>{let o=c(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(p("ANIMATION_END"),!l.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},"handleAnimationEnd"),i=o(e=>{e.target===n&&(u.current=c(s.current))},"handleAnimationStart");return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,f.current=c(t)}else s.current=null;a(e)},[])}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){let r=t.useRef(e);return r.current=e,t.useCallback(e=>{let t=r.current,n=!1,o=t.map(t=>{let r=l(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e{"use strict";var t=e.i(538167),r=e.i(2248),n=e.i(95927),o=e.i(458201),i=Object.defineProperty,a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,n.B)(`Primitive.${r}`),a=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(n?i:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});function s(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}i(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["V",0,a,"u",0,s])},218481,e=>{"use strict";var t=e.i(538167),r=e.i(899300),n=e.i(210767),o=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],a=t[" useInsertionEffect ".trim().toString()];function s(e){if("function"==typeof i)return i(e);let r=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof a?a(()=>{r.current=e}):(0,n.f)(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}o(s,"name",{value:"useEffectEvent",configurable:!0});var l=Object.defineProperty,u=(e,t)=>l(e,"name",{value:t,configurable:!0}),c=t[" useInsertionEffect ".trim().toString()]||n.f;function f({prop:e,defaultProp:n,onChange:o=u(()=>{},"onChange"),caller:i}){let[a,s,l]=d({defaultProp:n,onChange:o}),c=void 0!==e,m=c?e:a;if(r.f){let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} 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,i])}return[m,t.useCallback(t=>{if(c){let r=p(t)?t(e):t;r!==e&&l.current?.(r)}else s(t)},[c,e,s,l])]}function d({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),i=t.useRef(n),a=t.useRef(r);return c(()=>{a.current=r},[r]),t.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}function p(e){return"function"==typeof e}u(f,"useControllableState"),u(d,"useUncontrolledState"),u(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");u(function(e,n,o,i){let{prop:a,defaultProp:l,onChange:u,caller:c}=n,f=void 0!==a,d=s(u);if(r.f){let e=t.useRef(void 0!==a);t.useEffect(()=>{let t=e.current;if(t!==f){let e=f?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t?"controlled":"uncontrolled"} to ${e}. 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.`)}e.current=f},[f,c])}let p=[{...o,state:l}];i&&p.push(i);let[g,v]=t.useReducer((t,r)=>{if(r.type===m)return{...t,state:r.state};let n=e(t,r);return f&&!Object.is(n.state,t.state)&&d(n.state),n},...p),w=g.state,y=t.useRef(w);t.useEffect(()=>{y.current!==w&&(y.current=w,f||d(w))},[w,y,f]);let h=t.useMemo(()=>void 0!==a?{...g,state:a}:g,[g,a]);return t.useEffect(()=>{f&&!Object.is(a,g.state)&&v({type:m,state:a})},[a,g.state,f]),[h,v]},"useControllableStateReducer"),e.s(["f",0,f],218481)},210767,e=>{"use strict";var t=e.i(538167),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["f",0,r])},26752,e=>{"use strict";e.i(538167);var t=e.i(282446);e.i(74492),e.i(144683);let r=new WeakMap;e.s(["f",0,function(e,n){var o;let i,a=(0,t.f)(n),s=(o=a,(i=r.get(o))||(i=new WeakSet,r.set(o,i)),i);for(let[t,...r]of e)(!s.has(t)||(null==n?void 0:n.dangerouslyForceHydrate))&&(s.add(t),a.set(t,...r))}])},797770,e=>{"use strict";let t=(0,e.i(144683).g)("");e.s(["f",0,t])},604323,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},513539,e=>{"use strict";var t=e.i(144683);let r=(0,t.g)(null),n=(0,t.g)(null);e.s(["M",0,n,"D",0,r])},236433,e=>{"use strict";let t=(0,e.i(144683).g)(null);e.s(["f",0,t])},128541,e=>{"use strict";var t=e.i(74492);let r=(0,t.j)(()=>sessionStorage),n=(0,t.N)("wx-purchase-source-attribution",null,r);e.s(["f",0,n])},529603,e=>{"use strict";let t=null,r=null,n=e=>{if(t&&e.event.context){let n={...t,...r};e.event.context.traits=e.event.userId?{...n,twcId:String(e.event.userId)}:n}return e};e.s(["p",0,()=>r,"k",0,e=>{t=e},"E",0,e=>{r=e},"Y",0,{name:"traits-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:n,page:n}])},18358,e=>{"use strict";var t=e.i(487709),r=e.i(737801),n=e.i(538167);e.s(["f",0,()=>{let e=(0,r.f)(),o=(0,n.useCallback)((r,n={},i={})=>{let a={...e,...n};if(!(0,t.f)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent(r,window.mParticle.EventType.Other,a),i.flushImmediately)try{window.mParticle.upload?.()}catch{}console.debug(`MParticle: Event "${r}" tracked`,a)}catch(e){console.error(`MParticle: Event "${r}" failed`,e)}return o},[e]);return o}])},658547,e=>{"use strict";var t=e.i(538167),r=e.i(839315),n=e.i(491240);let o=(e,t)=>{let n,o=Date.now()+2e3;return(n=!1,Promise.race([new Promise(e=>{let t=()=>{if(!n){if(window.mParticle?.ready)return void window.mParticle.ready(()=>e());setTimeout(t,50)}};t()}),new Promise((e,t)=>{setTimeout(()=>{t(Error("MParticle did not become ready in time"))},2e3)})]).finally(()=>{n=!0})).then(()=>new Promise(n=>{let i=setTimeout(n,Math.max(0,o-Date.now()));window.mParticle?.Identity?.[e]?.(t,e=>{clearTimeout(i);let t=e?.getUser?.()?.getMPID?.();t&&(0,r._)(t),n()})}))};e.s(["f",0,()=>{let e=(0,t.useCallback)(e=>o("identify",{userIdentities:{customerid:e.customerid,email:e.email,other:(0,n.f)(e.other)}}),[]);return{identify:e,login:(0,t.useCallback)(e=>o("login",{userIdentities:{customerid:e.customerid,email:e.email,facebook:e.facebook,facebookcustomaudienceid:e.facebookcustomaudienceid,google:e.google,microsoft:e.microsoft,other:(0,n.f)(e.other),other2:(0,n.f)(e.other2),other3:(0,n.f)(e.other3),other4:(0,n.f)(e.other4),twitter:e.twitter,yahoo:e.yahoo}}),[]),logout:(0,t.useCallback)(()=>o("logout",{userIdentities:{}}),[])}}])},459598,e=>{"use strict";let t=()=>{let e,t=!1;return{suppressNext:()=>{t=!0,clearTimeout(e),e=setTimeout(()=>{t=!1},2e3)},consume:()=>!!t&&(t=!1,clearTimeout(e),!0)}},r=t(),n=t(),o=r.suppressNext,i=r.consume,a=n.suppressNext,s=n.consume;e.s(["R",0,s,"V",0,i,"M",0,a,"w",0,o])},710746,e=>{"use strict";var t=e.i(458201),r=e.i(538167),n=e.i(747961);let o=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:o,...i},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":o,...i,children:[n?(0,t.jsx)("desc",{id:o,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"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(n.f,{ref:r,icon:o,...e}));i.displayName="Close",e.s(["f",0,i])},671525,e=>{"use strict";var t=e.i(935251),r=e.i(652517);let n=()=>{let e=(0,t.useRouter)();return{navigate:(t,r={})=>{let{mpa:n=!0,replace:o=!1}=r;n?o?window.location.replace(t):window.location.href=t:o?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:n=!0}=t;n?(0,r.Q)():e.refresh()},router:e}};e.s(["U",0,n,"Z",0,n])},652517,e=>{"use strict";let t=null;e.s(["Q",0,function(e=()=>window.location.reload()){t?t(e):e()},"x",0,function(e){return t=e,()=>{t===e&&(t=null)}}])},763886,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},476592,e=>{"use strict";var t=e.i(538167),r=e.i(742436),n=e.i(495110),o=e.i(647232),i=e.i(439670);e.s(["f",0,function(){let e=(0,i.useOpenWebExperimentOverride)(),a=(0,t.useContext)(r.ExperimentContext),s=(0,n.f)(),[l,u]=(0,t.useState)(!1),c=!e&&!s&&!l&&!!a?.client&&!a.isFetchComplete;if((0,t.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>u(!0),o.b);return()=>clearTimeout(e)},[c]),e)return e;if(s)return"pending";if(l||!a?.client)return"unassigned";if(!a.isFetchComplete)return"pending";let{key:f,value:d}=a.variant(o.q),p=f??d;return(0,o.h)(p)?p:"unassigned"}])},394481,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},87809,358233,e=>{"use strict";var t,r=e.i(584169),n=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t);Object.values(n),e.s(["E",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Q",()=>n,"D",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"]],358233);let o={"usa-ut":n.USA},i=e=>e?o[e]??e:void 0;e.s(["U",0,n,"o",0,()=>(()=>{let e=(0,r.getCookie)("ci")?.toString();if(e)for(let t of e.split("&")){let e=t.indexOf("=");if(e>-1&&"TWC-Privacy"===t.slice(0,e))return i(t.slice(e+1))}})()??i((0,r.getCookie)("twc-privacy")?.toString())??n.EXEMPT],87809)},367810,709838,634177,e=>{"use strict";var t=e.i(458201),r=e.i(538167),n=e.i(543836),o=e.i(915335),i=e.i(162033),a=e.i(904816),s=e.i(218481),l=e.i(807660),u=e.i(526160),c=e.i(671495),f=e.i(786884),d=e.i(679076),p=e.i(707777),m=e.i(210767),g=e.i(345214),v=e.i(73772),w=e.i(95927),y=Object.defineProperty,h=(e,t)=>y(e,"name",{value:t,configurable:!0}),x="Dialog",[b,C]=(0,i.f)(x),[S,P]=b(x),D=h(e=>{let{__scopeDialog:n,children:o,open:i,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,f=r.useRef(null),d=r.useRef(null),[p,m]=(0,s.f)({prop:i,defaultProp:l??!1,onChange:u,caller:x}),[g,v]=r.useState(0),[w,y]=r.useState(0);return(0,t.jsx)(S,{scope:n,triggerRef:f,contentRef:d,contentId:(0,a.f)(),titleId:(0,a.f)(),descriptionId:(0,a.f)(),titlePresent:g>0,descriptionPresent:w>0,setTitleCount:v,setDescriptionCount:y,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),modal:c,children:o})},"Dialog"),I=r.forwardRef(h(function(e,r){let{__scopeDialog:i,...a}=e,s=P("DialogTrigger",i),l=(0,o.j)(r,s.triggerRef);return(0,t.jsx)(d.V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":W(s.open),...a,ref:l,onClick:(0,n.f)(e.onClick,s.onOpenToggle)})},"DialogTrigger")),j="DialogPortal",[O,E]=b(j,{forceMount:void 0}),N=h(e=>{let{__scopeDialog:n,forceMount:o,children:i,container:a}=e,s=P(j,n);return(0,t.jsx)(O,{scope:n,forceMount:o,children:r.Children.map(i,e=>(0,t.jsx)(f.f,{present:o||s.open,children:(0,t.jsx)(c.f,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),R="DialogOverlay",M=r.forwardRef(h(function(e,r){let n=E(R,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=P(R,e.__scopeDialog);return a.modal?(0,t.jsx)(f.f,{present:o||a.open,children:(0,t.jsx)(A,{...i,ref:r})}):null},"DialogOverlay")),k=(0,w.B)("DialogOverlay.RemoveScroll"),A=r.forwardRef(h(function(e,r){let{__scopeDialog:n,...i}=e,a=P(R,n),s=(0,l.y)(),u=(0,o.j)(r,s);return(0,t.jsx)(g.f,{as:k,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(d.V.div,{"data-state":W(a.open),...i,ref:u,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),T="DialogContent",_=r.forwardRef(h(function(e,r){let n=E(T,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=P(T,e.__scopeDialog);return(0,t.jsx)(f.f,{present:o||a.open,children:a.modal?(0,t.jsx)(F,{...i,ref:r}):(0,t.jsx)(U,{...i,ref:r})})},"DialogContent")),F=r.forwardRef(h(function(e,i){let a=P(T,e.__scopeDialog),s=r.useRef(null),l=(0,o.j)(i,a.contentRef,s);return r.useEffect(()=>{let e=s.current;if(e)return(0,v.f)(e)},[]),(0,t.jsx)(L,{...e,ref:l,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:(0,n.f)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.f)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,n.f)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),U=r.forwardRef(h(function(e,n){let o=P(T,e.__scopeDialog),i=r.useRef(!1),a=r.useRef(!1);return(0,t.jsx)(L,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),L=r.forwardRef(h(function(e,r){let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=P(T,n);return(0,p.f)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(u.f,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,t.jsx)(l.V,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":W(c.open),...s,ref:r,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},"DialogContentImpl")),$=r.forwardRef(h(function(e,r){let{__scopeDialog:n,...o}=e,i=P("DialogTitle",n),{setTitleCount:a}=i;return(0,m.f)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(d.V.h2,{id:i.titleId,...o,ref:r})},"DialogTitle")),V=r.forwardRef(h(function(e,r){let{__scopeDialog:n,...o}=e,i=P("DialogDescription",n),{setDescriptionCount:a}=i;return(0,m.f)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(d.V.p,{id:i.descriptionId,...o,ref:r})},"DialogDescription")),K=r.forwardRef(h(function(e,r){let{__scopeDialog:o,...i}=e,a=P("DialogClose",o);return(0,t.jsx)(d.V.button,{type:"button",...i,ref:r,onClick:(0,n.f)(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function W(e){return e?"open":"closed"}h(W,"getState"),e.s(["K",0,K,"c",0,_,"u",0,V,"k",0,M,"z",0,N,"F",0,D,"Z",0,$,"d",0,I],709838);var q=e.i(710746),B=e.i(632137),J=e.i(877957),Q=e.i(294237);e.i(368847);let z=(0,Q.f)("",{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 H({...e}){return(0,t.jsx)(N,{"data-slot":"dialog-portal",...e})}function X({className:e,...r}){return(0,t.jsx)(M,{"data-slot":"dialog-overlay",className:(0,B.f)(z({type:"overlay"}),e),...r})}function Z({className:e,overlayClassName:r,children:n,showCloseButton:o=!0,...i}){return(0,t.jsxs)(H,{"data-slot":"dialog-portal",children:[(0,t.jsx)(X,{className:r}),(0,t.jsxs)(_,{"data-slot":"dialog-content",className:(0,B.f)(z({type:"content"}),e),...i,children:[n,o&&(0,t.jsxs)(K,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(q.f,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Y({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,B.f)(z({type:"header"}),e),...r})}function G({className:e,children:r,...n}){return(0,t.jsx)($,{"data-slot":"dialog-title",className:(0,B.f)("pt-4 text-center",e),...n,children:r})}function ee({className:e,children:r,...n}){return(0,t.jsx)(V,{"data-slot":"dialog-description",className:(0,B.f)("pb-4 text-center",e),...n,children:r})}function et({primary:e,secondary:r,className:n}){return(0,t.jsxs)("div",{className:(0,B.f)("flex flex-col-reverse gap-3",n),children:[r&&(0,t.jsx)(J.f,{variant:"secondary",onClick:r.onClick,className:"w-full",children:r.label}),e&&(0,t.jsx)(J.f,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["f",0,z],634177),e.s(["J",0,function({title:e,description:r,primaryAction:n,secondaryAction:o,showCloseButton:i=!0,className:a,children:s,...l}){return(0,t.jsxs)(Z,{showCloseButton:i,className:(0,B.f)("p-6",a),...l,children:[(0,t.jsx)(Y,{children:(0,t.jsx)(G,{children:e})}),(0,t.jsx)(ee,{children:r}),s,(n||o)&&(0,t.jsx)(et,{primary:n,secondary:o})]})},"N",0,function({...e}){return(0,t.jsx)(D,{"data-slot":"dialog",...e})},"t",0,function({...e}){return(0,t.jsx)(K,{"data-slot":"dialog-close",...e})},"d",0,Z,"C",0,ee,"c",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,B.f)(z({type:"footer"}),e),...r})},"s",0,Y,"F",0,G,"a",0,function({...e}){return(0,t.jsx)(I,{"data-slot":"dialog-trigger",...e})}],367810)},756227,e=>{"use strict";var t=e.i(282446),r=e.i(74492),n=e.i(889753),o=e.i(905059),i=e.i(310847),a=e.i(960576),s=e.i(317298),l=e.i(839315),u=e.i(391174),c=e.i(735526),f=e.i(90543),d=e.i(529603);e.s(["f",0,function(){let e=(0,t.F)(n.Y),p=(0,t.F)(i.n),m=(0,t.F)(n.s),g=(0,t.F)(o.f);return()=>{(0,u.f)(),(0,s.n)(),e(r.s),p(null),m(r.s),g(r.s),(0,a.c)(),(0,c.K)(),(0,d.E)(null),(0,l.x)(),(0,f.$)()}}])},735526,e=>{"use strict";let t="wx-next/account-created";e.s(["K",0,function(){try{sessionStorage.removeItem(t)}catch{}},"q",0,function(){try{sessionStorage.setItem(t,"true")}catch{}},"$",0,function(){try{return"true"===sessionStorage.getItem(t)}catch{return!1}}])},90543,e=>{"use strict";var t=e.i(521350);let r="wxu-auth-epoch",n="wxu-rendered-tier";function o(e){return(0,t.isLocalStorageAvailable)()?localStorage.getItem(e):null}function i(e,r){(0,t.isLocalStorageAvailable)()&&localStorage.setItem(e,r)}e.s(["$",0,function(){i(r,String(Date.now()))},"T",0,function({renderedTier:e,recordedTier:t,epochAtLoad:r,currentEpoch:n}){return null!==t&&t!==e||void 0!==r&&r!==n},"R",0,function(){return o(r)},"J",0,function(){return o(n)},"K",0,function(e){i(n,e)}])},391174,184059,e=>{"use strict";var t=e.i(284981);e.s(["f",()=>t.j],184059);var t=t,r=e.i(892504);e.s(["f",0,()=>{(0,t.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,r.p)()}],391174)},45846,e=>{"use strict";e.i(199690);var t=e.i(245943),r=e.i(810564);let n=new t.UPSXClient({baseUrl:(0,r.Z)("https://upsx.weather.com")});e.s(["f",0,n])},143778,e=>{"use strict";let t=(0,e.i(74492).N)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["f",0,t])},905059,e=>{"use strict";let t=(0,e.i(74492).N)("wx-next/user:mapLayerOrder",null,void 0,{getOnInit:!0});e.s(["f",0,t])},739971,e=>{"use strict";let t=(0,e.i(144683).g)(null);e.s(["f",0,t])},398444,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},776169,809991,e=>{"use strict";var t=e.i(282446),r=e.i(889753),n=e.i(301904),o=e.i(905059),i=e.i(901351),a=e.i(310847),s=e.i(528600),l=e.i(617874),u=e.i(201542),c=e.i(553329),f=e.i(538167),d=e.i(245943);let p=(0,e.i(695881).createLogger)("useMapSettings");e.s(["y",0,"twc","b",0,function(e="twc"){let{user:{isUserLoggedIn:r}}=(0,s.f)(),n=(0,t.F)(o.f),a=(0,f.useCallback)(async t=>{if(!r)return!1;let{error:n}=await (0,c.f)(i.f.preference.updateMapSettings(e,t));if(!n)return!0;if(n instanceof d.APIError&&404===n.code){let{error:r}=await (0,c.f)(i.f.preference.createMapSettings(e,t));return!r||(p.warn("Failed to create map settings",r),!1)}return p.warn("Failed to update map settings",n),!1},[r,e]),l=(0,f.useCallback)((e,t)=>{n(e?.layerOrder??t)},[n]),u=(0,f.useCallback)(async t=>{if(!r||0===t.length)return!1;n(t);let{data:o,error:a}=await (0,c.f)(i.f.preference.reorderMapSettingsLayers(e,{order:t}));if(!a)return l(o,t),!0;if(a instanceof d.APIError&&404===a.code){let{data:r,error:n}=await (0,c.f)(i.f.preference.createMapSettings(e,{layerOrder:t}));if(!n)return l(r,t),!0;if(n instanceof d.APIError&&409===n.code){let{data:r,error:n}=await (0,c.f)(i.f.preference.reorderMapSettingsLayers(e,{order:t}));return n?(p.warn("Failed to reorder map layers after create",n),!1):(l(r,t),!0)}return p.warn("Failed to create map settings layer order",n),!1}return p.warn("Failed to reorder map layers",a),!1},[r,e,l,n]),m=(0,f.useCallback)(async(t,o,a)=>{if(!r)return!1;n(a);let{data:s,error:f}=await (0,c.f)(i.f.preference.moveMapSettingsLayer(e,t,{placement:o}));return f?f instanceof d.APIError&&(404===f.code||400===f.code)?u(a):(p.warn("Failed to move map layer",f),!1):(l(s,a),!0)},[r,e,l,u,n]);return{saveMapSettings:a,saveLayerOrder:u,moveLayer:m}}],809991),e.s(["f",0,function(){let{user:{isUserLoggedIn:e}}=(0,s.f)(),[f,d]=(0,t.q)(r.u),[p,m]=(0,t.q)(a.o),g=(0,t.F)(o.f),v=async()=>{let{data:e,error:t}=await (0,c.f)(i.f.preference.getMapSettings("twc"));if(t)return{ok:!1,mapSettings:null,layerOrder:null};if(!e)return{ok:!0,mapSettings:null,layerOrder:null};let{animationSpeed:r,autoplay:n,opacity:o,roadOverlay:a,style:s}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==n&&{autoplay:n},...void 0!==o&&{opacity:o},...void 0!==a&&{roadOverlay:a},...void 0!==s&&{style:s}};return{ok:!0,mapSettings:Object.keys(l).length>0?l:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},w=async e=>{try{await i.f.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},y=async(t,r=!0)=>{try{let n,o=(n={...f,...t},d(n),m({...p,...t,locations:n.locations}),n);if(t?.unit){let e=(0,l.H)(t.unit),r=e?.code||"e";(0,u.setCookie)(l.S,r,{domain:"weather.com"})}return r&&e&&await w(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([i.f.preference.getPreference(),v()]);if(!e?.userID)return null;let{mapSettings:r,layerOrder:o,ok:a}=t;a&&g(o);let{mapSettings:s,...l}=e,u={...l,mapSettings:{...n.f,...r}};return y(u,!1),u}catch{return null}},updatePreferences:y}}],776169)},837879,e=>{"use strict";var t=e.i(538167),r=e.i(282446),n=e.i(935251),o=e.i(485737),i=e.i(739971);e.i(87809);var a=e.i(358233),s=e.i(394481),l=e.i(763886),u=e.i(132084);e.s(["f",0,()=>{let e=(0,r.y)(i.f),c=(0,r.y)(o.i),f=(0,n.useParams)()?.locale,d=(0,r.y)(s.f)??a.Q.EXEMPT,p=(0,r.y)(l.f);return(0,t.useMemo)(()=>null!==e?e:"US"===c&&"en-US"===f&&a.D.includes(d)&&p!==u.p.OPPO,[e,c,f,d,p])}])},160317,e=>{"use strict";var t=e.i(543512);e.s(["f",0,function(e){return t.m[e]??t.m[t.H.none]}])},317298,e=>{"use strict";let t="wxu-next-session-intent",r=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["n",0,function(){try{localStorage.removeItem(t)}catch{}},"I",0,function(e){return!!e&&r.some(t=>{let r=e[t];return"string"==typeof r&&"radar"===r.trim().toLowerCase()})},"o",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let r=JSON.parse(e);if(r&&"object"==typeof r&&"promotesRadar"in r&&"boolean"==typeof r.promotesRadar)return{promotesRadar:r.promotesRadar};return null}catch{return null}},"d",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}catch{}}])},839315,e=>{"use strict";var t=e.i(584169);let r="wxu-web/keyval:mparticleUser";e.s(["x",0,()=>{try{localStorage.removeItem(r)}catch{}},"S",0,({upsxId:e,anonId:t})=>{let r="wxu-web/keyval:airlyticsUserAttributes"in localStorage,n="wxu-web/keyval:airlyticsEventQueue"in localStorage;return r&&n?e?`user:${e}`:`devices:${t}`:null},"d",0,()=>{let e=(0,t.getCookie)("s_vi")?.toString();if(!e||"string"!=typeof e)return null;let r=e.split("|");return r&&Array.isArray(r)&&"string"==typeof r[1]&&r[1].split("[")[0]||null},"t",0,()=>{let e,r,n=(e=window?.top,(r=e?._sp_?.metricData?.propertyId)||null),o=window?.top,i=o?._sp_?.config?.authId||(0,t.getCookie)("consentUUID")?.toString();return i&&n?`${n}:${i}`:null},"N",0,()=>{try{let e=JSON.parse(localStorage.getItem(r)||"{}");return e?.value?.mpid||null}catch{return null}},"H",0,()=>window?.mParticle?.Identity?.getCurrentUser?.()?.getUserIdentities?.()?.userIdentities?.customerid||null,"u",0,()=>{let e=window?.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.();return e||null},"_",0,e=>{try{localStorage.setItem(r,JSON.stringify({value:{mpid:e},updatedAt:Date.now()}))}catch{}}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["p",0,()=>{try{localStorage.removeItem(t)}catch{}},"q",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"r",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"use strict";var t=e.i(553329),r=e.i(901351);async function n(e){let{data:n,error:o}=await (0,t.f)(r.f.identity.resolve(e));return o||"string"!=typeof n?.twcID||!n.twcID?{twcId:null,error:o??null}:{twcId:{twcID:n.twcID,hashedTwcID:n.hashedTwcID,expiresAt:n.expiresAt,manifestVersion:n.manifestVersion,installationID:e},error:null}}e.s(["f",0,n],74874);let o=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["f",0,e=>"string"==typeof e&&e.length>256?(o.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e],491240)},991511,e=>{"use strict";var t=e.i(538167),r=e.i(26752),n=e.i(282446);e.s(["f",0,e=>{(0,r.f)(e);let o=(0,n.f)(),i=(0,t.useRef)(e);i.current=e,(0,t.useEffect)(()=>{for(let[e,t]of i.current)o.get(e)!==t&&o.set(e,t)})}])}]);