(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,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),o=!!("u">typeof window&&window.document&&window.document.createElement);function r(e,t,{checkForDefaultPrevented:o=!0}={}){return n(function(n){if(e?.(n),!1===o||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!o)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}n(r,"composeEventHandlers"),n(function(e){if(!o)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:o}=i(t);if(!o?.nodeName)return null;if(a(o)&&o.contentDocument)return e(o.contentDocument.body,n);if(n){let e=o.getAttribute("aria-activedescendant");if(e){let t=i(o).getElementById(e);if(t)return t}}return o},"getActiveElement"),n(a,"isFrame"),e.s(["composeEventHandlers",0,r])},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},271359,e=>{"use strict";var t=e.i(247865),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(247865),n=e.i(902875),o=Object.defineProperty,r=(e,t)=>o(e,"name",{value:t,configurable:!0});function i(e,o=[]){let s=[];function l(o,i){let a=t.createContext(i);a.displayName=o+"Context";let l=s.length;s=[...s,i];let u=r(o=>{let{scope:r,children:i,...s}=o,u=r?.[e]?.[l]||a,c=t.useMemo(()=>s,Object.values(s));return(0,n.jsx)(u.Provider,{value:c,children:i})},"Provider");function c(n,r,s={}){let{optional:u=!1}=s,d=r?.[e]?.[l]||a,f=t.useContext(d);if(f)return f;if(void 0!==i)return i;if(!u)throw Error(`\`${n}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",r(c,"useContext"),[u,c]}r(l,"createContext");let u=r(()=>{let n=s.map(e=>t.createContext(e));return r(function(o){let r=o?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...o,[e]:r}}),[o,r])},"useScope")},"createScope");return u.scopeName=e,[l,a(u,...o)]}function a(...e){let n=e[0];if(1===e.length)return n;let o=r(()=>{let o=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return r(function(e){let r=o.reduce((t,{useScope:n,scopeName:o})=>{let r=n(e)[`__scope${o}`];return{...t,...r}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return o.scopeName=n.scopeName,o}r(function(e,o){let i=t.createContext(o);i.displayName=e+"Context";let a=r(e=>{let{children:o,...r}=e,a=t.useMemo(()=>r,Object.values(r));return(0,n.jsx)(i.Provider,{value:a,children:o})},"Provider");function s(n,r={}){let{optional:a=!1}=r,l=t.useContext(i);if(l)return l;if(void 0!==o)return o;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",r(s,"useContext"),[a,s]},"createContext"),r(i,"createContextScope"),r(a,"composeContextScopes"),e.s(["createContextScope",0,i])},296994,e=>{"use strict";var t=e.i(247865),n=e.i(714035),o=Object.defineProperty,r=t[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[o,a]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}o(a,"name",{value:"useId",configurable:!0}),e.s(["useId",0,a])},312610,e=>{"use strict";var t=e.i(247865),n=e.i(714035),o=Object.defineProperty,r=(e,t)=>o(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}r(i,"useStateMachine");var a=r(e=>{let{present:n,children:o}=e,r=s(n),i="function"==typeof o?o({present:r.isPresent}):t.Children.only(o),a=u(r.ref,d(i));return"function"==typeof o||r.isPresent?t.cloneElement(i,{ref:a}):null},"Presence");function s(e){let[o,a]=t.useState(),s=t.useRef(null),l=t.useRef(e),u=t.useRef("none"),d=t.useRef(void 0),[f,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(u.current=d.current??c(s.current),d.current=void 0):u.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=s.current,n=l.current;if(n!==e){let o=u.current,r=c(t);e?(d.current=r,p("MOUNT")):"none"===r||t?.display==="none"?p("UNMOUNT"):n&&o!==r?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=r(n=>{let r=c(s.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(p("ANIMATION_END"),!l.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},"handleAnimationEnd"),i=r(e=>{e.target===o&&(u.current=c(s.current))},"handleAnimationStart");return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,d.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 n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,o=!1,r=t.map(t=>{let n=l(t,e);return o||"function"!=typeof n||(o=!0),n});if(o)return()=>{for(let e=0;e{"use strict";var t=e.i(247865),n=e.i(352825),o=e.i(982538),r=e.i(902875),i=Object.defineProperty,a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,o.createSlot)(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?i:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});function s(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}i(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,s])},803976,e=>{"use strict";var t=e.i(247865),n=e.i(899300),o=e.i(714035),r=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],a=t[" useInsertionEffect ".trim().toString()];function s(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof a?a(()=>{n.current=e}):(0,o.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}r(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()]||o.useLayoutEffect;function d({prop:e,defaultProp:o,onChange:r=u(()=>{},"onChange"),caller:i}){let[a,s,l]=f({defaultProp:o,onChange:r}),c=void 0!==e,m=c?e:a;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.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.`)}n.current=c},[c,i])}return[m,t.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&l.current?.(n)}else s(t)},[c,e,s,l])]}function f({defaultProp:e,onChange:n}){let[o,r]=t.useState(e),i=t.useRef(o),a=t.useRef(n);return c(()=>{a.current=n},[n]),t.useEffect(()=>{i.current!==o&&(a.current?.(o),i.current=o)},[o,i]),[o,r,a]}function p(e){return"function"==typeof e}u(d,"useControllableState"),u(f,"useUncontrolledState"),u(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");u(function(e,o,r,i){let{prop:a,defaultProp:l,onChange:u,caller:c}=o,d=void 0!==a,f=s(u);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==a);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"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=d},[d,c])}let p=[{...r,state:l}];i&&p.push(i);let[g,v]=t.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let o=e(t,n);return d&&!Object.is(o.state,t.state)&&f(o.state),o},...p),h=g.state,x=t.useRef(h);t.useEffect(()=>{x.current!==h&&(x.current=h,d||f(h))},[h,x,d]);let b=t.useMemo(()=>void 0!==a?{...g,state:a}:g,[g,a]);return t.useEffect(()=>{d&&!Object.is(a,g.state)&&v({type:m,state:a})},[a,g.state,d]),[b,v]},"useControllableStateReducer"),e.s(["useControllableState",0,d],803976)},714035,e=>{"use strict";var t=e.i(247865),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},598513,e=>{"use strict";var t=e.i(947118),n=e.i(737801),o=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",r=(0,t.useIsInitialized)(),i=(0,n.useEventAttributes)();return(0,o.useCallback)((t,n={})=>{let o={...i,...t};if(!r)return void console.warn("MParticle is not initialized");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,o),n.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,o)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[i,r])}])},18358,e=>{"use strict";var t=e.i(947118),n=e.i(737801),o=e.i(247865);e.s(["useTrackEvent",0,()=>{let e=(0,t.useIsInitialized)(),r=(0,n.useEventAttributes)(),i=(0,o.useCallback)((t,n={},o={})=>{let a={...r,...n};if(!e)return void console.warn("MParticle is not initialized");try{if(window.mParticle.logEvent(t,window.mParticle.EventType.Other,a),o.flushImmediately)try{window.mParticle.upload?.()}catch{}console.debug(`MParticle: Event "${t}" tracked`,a)}catch(e){console.error(`MParticle: Event "${t}" failed`,e)}return i},[r,e]);return i}])},62544,396817,634177,e=>{"use strict";var t=e.i(902875),n=e.i(247865),o=e.i(543836),r=e.i(271359),i=e.i(855128),a=e.i(296994),s=e.i(803976),l=e.i(698900),u=e.i(546504),c=e.i(778469),d=e.i(312610),f=e.i(942928),p=e.i(235453),m=e.i(714035),g=e.i(621790),v=e.i(73772),h=e.i(982538),x=Object.defineProperty,b=(e,t)=>x(e,"name",{value:t,configurable:!0}),y="Dialog",[w,E]=(0,i.createContextScope)(y),[C,P]=w(y),D=b(e=>{let{__scopeDialog:o,children:r,open:i,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,d=n.useRef(null),f=n.useRef(null),[p,m]=(0,s.useControllableState)({prop:i,defaultProp:l??!1,onChange:u,caller:y}),[g,v]=n.useState(0),[h,x]=n.useState(0);return(0,t.jsx)(C,{scope:o,triggerRef:d,contentRef:f,contentId:(0,a.useId)(),titleId:(0,a.useId)(),descriptionId:(0,a.useId)(),titlePresent:g>0,descriptionPresent:h>0,setTitleCount:v,setDescriptionCount:x,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:r})},"Dialog"),R=n.forwardRef(b(function(e,n){let{__scopeDialog:i,...a}=e,s=P("DialogTrigger",i),l=(0,r.useComposedRefs)(n,s.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":H(s.open),...a,ref:l,onClick:(0,o.composeEventHandlers)(e.onClick,s.onOpenToggle)})},"DialogTrigger")),j="DialogPortal",[S,N]=w(j,{forceMount:void 0}),O=b(e=>{let{__scopeDialog:o,forceMount:r,children:i,container:a}=e,s=P(j,o);return(0,t.jsx)(S,{scope:o,forceMount:r,children:n.Children.map(i,e=>(0,t.jsx)(d.Presence,{present:r||s.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),I="DialogOverlay",A=n.forwardRef(b(function(e,n){let o=N(I,e.__scopeDialog),{forceMount:r=o.forceMount,...i}=e,a=P(I,e.__scopeDialog);return a.modal?(0,t.jsx)(d.Presence,{present:r||a.open,children:(0,t.jsx)(T,{...i,ref:n})}):null},"DialogOverlay")),_=(0,h.createSlot)("DialogOverlay.RemoveScroll"),T=n.forwardRef(b(function(e,n){let{__scopeDialog:o,...i}=e,a=P(I,o),s=(0,l.useDismissableLayerSurface)(),u=(0,r.useComposedRefs)(n,s);return(0,t.jsx)(g.RemoveScroll,{as:_,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":H(a.open),...i,ref:u,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),M="DialogContent",L=n.forwardRef(b(function(e,n){let o=N(M,e.__scopeDialog),{forceMount:r=o.forceMount,...i}=e,a=P(M,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:r||a.open,children:a.modal?(0,t.jsx)(k,{...i,ref:n}):(0,t.jsx)(F,{...i,ref:n})})},"DialogContent")),k=n.forwardRef(b(function(e,i){let a=P(M,e.__scopeDialog),s=n.useRef(null),l=(0,r.useComposedRefs)(i,a.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(U,{...e,ref:l,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),F=n.forwardRef(b(function(e,o){let r=P(M,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(U,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.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 n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),U=n.forwardRef(b(function(e,n){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=P(M,o);return(0,p.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,t.jsx)(l.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":H(c.open),...s,ref:n,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},"DialogContentImpl")),$=n.forwardRef(b(function(e,n){let{__scopeDialog:o,...r}=e,i=P("DialogTitle",o),{setTitleCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...r,ref:n})},"DialogTitle")),z=n.forwardRef(b(function(e,n){let{__scopeDialog:o,...r}=e,i=P("DialogDescription",o),{setDescriptionCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...r,ref:n})},"DialogDescription")),W=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...i}=e,a=P("DialogClose",r);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:n,onClick:(0,o.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function H(e){return e?"open":"closed"}b(H,"getState"),e.s(["Close",0,W,"Content",0,L,"Description",0,z,"Overlay",0,A,"Portal",0,O,"Root",0,D,"Title",0,$,"Trigger",0,R],396817);var V=e.i(226602),B=e.i(632137),Y=e.i(877957),G=e.i(294237);e.i(368847);let K=(0,G.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 J({...e}){return(0,t.jsx)(O,{"data-slot":"dialog-portal",...e})}function X({className:e,...n}){return(0,t.jsx)(A,{"data-slot":"dialog-overlay",className:(0,B.cn)(K({type:"overlay"}),e),...n})}function Z({className:e,overlayClassName:n,children:o,showCloseButton:r=!0,...i}){return(0,t.jsxs)(J,{"data-slot":"dialog-portal",children:[(0,t.jsx)(X,{className:n}),(0,t.jsxs)(L,{"data-slot":"dialog-content",className:(0,B.cn)(K({type:"content"}),e),...i,children:[o,r&&(0,t.jsxs)(W,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(V.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function q({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,B.cn)(K({type:"header"}),e),...n})}function Q({className:e,children:n,...o}){return(0,t.jsx)($,{"data-slot":"dialog-title",className:(0,B.cn)("pt-4 text-center",e),...o,children:n})}function ee({className:e,children:n,...o}){return(0,t.jsx)(z,{"data-slot":"dialog-description",className:(0,B.cn)("pb-4 text-center",e),...o,children:n})}function et({primary:e,secondary:n,className:o}){return(0,t.jsxs)("div",{className:(0,B.cn)("flex flex-col-reverse gap-3",o),children:[n&&(0,t.jsx)(Y.Button,{variant:"secondary",onClick:n.onClick,className:"w-full",children:n.label}),e&&(0,t.jsx)(Y.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,K],634177),e.s(["BasicDialog",0,function({title:e,description:n,primaryAction:o,secondaryAction:r,showCloseButton:i=!0,className:a,children:s,...l}){return(0,t.jsxs)(Z,{showCloseButton:i,className:(0,B.cn)("p-6",a),...l,children:[(0,t.jsx)(q,{children:(0,t.jsx)(Q,{children:e})}),(0,t.jsx)(ee,{children:n}),s,(o||r)&&(0,t.jsx)(et,{primary:o,secondary:r})]})},"Dialog",0,function({...e}){return(0,t.jsx)(D,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(W,{"data-slot":"dialog-close",...e})},"DialogContent",0,Z,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,B.cn)(K({type:"footer"}),e),...n})},"DialogHeader",0,q,"DialogOverlay",0,X,"DialogPortal",0,J,"DialogTitle",0,Q,"DialogTrigger",0,function({...e}){return(0,t.jsx)(R,{"data-slot":"dialog-trigger",...e})}],62544)},429745,e=>{"use strict";var t=e.i(902875),n=e.i(62544),o=e.i(226602),r=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:i,title:a,headline:s,description:l,imageUrl:u,imageAlt:c="",imageContent:d,getAppHref:f,getAppLabel:p="Get the app",onGetAppClick:m,learnMoreHref:g,learnMoreLabel:v="Learn more",onLearnMoreClick:h,closeLabel:x="Close",onCloseClick:b,dismissLabel:y,onDismissClick:w})=>(0,t.jsx)(n.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(n.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget.focus()},className:(0,r.cn)("flex flex-col gap-6 overflow-y-auto border-0 border-b border-black/10 bg-white px-8 py-6","pb-[calc(1.5rem+env(safe-area-inset-bottom))]","fixed inset-x-0 top-auto bottom-0 max-h-[90dvh] w-full max-w-none translate-x-0 translate-y-0 sm:max-w-none","rounded-t-3xl rounded-b-none","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[(0,t.jsx)(n.DialogClose,{"aria-label":x,onClick:b,className:"absolute top-4 left-4 z-10 flex size-8 cursor-pointer items-center justify-center rounded-2xl bg-[#f5f5f5] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(o.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),a?(0,t.jsx)(n.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:a}):(0,t.jsx)(n.DialogTitle,{className:"sr-only",children:s}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[d||(u?(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsx)("img",{src:u,alt:c,className:"size-full rounded-lg object-cover"})}):null),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,t.jsx)("p",{className:"text-2xl font-extrabold text-[#252422]",children:s}),(0,t.jsx)("p",{className:"text-base font-medium text-[#676767]",children:l})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("a",{href:f,onClick:m,className:"flex h-12 w-40 items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:p}),g&&(0,t.jsx)("a",{href:g,onClick:h,className:"flex h-12 w-full max-w-60 items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:v}),!g&&y&&(0,t.jsx)(n.DialogClose,{onClick:w,className:"flex h-12 w-full max-w-60 cursor-pointer items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:y})]})]})})])},756227,95870,391174,e=>{"use strict";var t=e.i(546446),n=e.i(284007),o=e.i(889753),r=e.i(310847),i=e.i(317298),a=e.i(613646);e.s(["mutate",()=>a.j],95870);var a=a,s=e.i(892504);let l=()=>{(0,a.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1}),(0,s.clearPurchaseChecked)()};e.s(["invalidateUpsxCache",0,l],391174),e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(o.userProfileAtom),a=(0,t.useSetAtom)(r.wxuUserAccountUserAccountResponseAtom);return()=>{l(),(0,i.clearNextSessionIntent)(),e(n.RESET),a(null)}}],756227)},837879,e=>{"use strict";var t=e.i(247865),n=e.i(546446),o=e.i(725287),r=e.i(485737),i=e.i(739971),a=e.i(725296),s=e.i(394481),l=e.i(763886),u=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,n.useAtomValue)(i.subscriptionsEnabledAtom),c=(0,n.useAtomValue)(r.geoipCountry),d=(0,o.useParams)()?.locale,f=(0,n.useAtomValue)(s.privacyRegimeAtom)??a.Regime.EXEMPT,p=(0,n.useAtomValue)(l.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===c&&"en-US"===d&&a.US_REGIMES.includes(f)&&p!==u.Partner.OPPO,[e,c,d,f,p])}])},317298,e=>{"use strict";let t="wxu-next-session-intent",n=["fpdprobnsitop1intent","fpdprobnsitop2intent","fpdprobnsitop3intent"];e.s(["clearNextSessionIntent",0,function(){try{localStorage.removeItem(t)}catch{}},"hasRadarIntent",0,function(e){return!!e&&n.some(t=>{let n=e[t];return"string"==typeof n&&"radar"===n.trim().toLowerCase()})},"readNextSessionIntent",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let n=JSON.parse(e);if(n&&"object"==typeof n&&"promotesRadar"in n&&"boolean"==typeof n.promotesRadar)return{promotesRadar:n.promotesRadar};return null}catch{return null}},"writeNextSessionIntent",0,function(e){try{localStorage.setItem(t,JSON.stringify({promotesRadar:e.promotesRadar}))}catch{}}])},726812,16730,e=>{"use strict";let t="com.weather.Weather",n="id295646461",o="https://app.appsflyer.com",r="weather.com",i=`https://apps.apple.com/us/app/the-weather-channel/${n}`,a=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,r,"APPSFLYER_HOST",0,o,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,i,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,n,"PLAY_STORE_URL",0,a],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:i,currentUrl:a,allowAppsFlyer:s,deepLinkValue:l}){if(!s||!i||null===e)return"";let u="android"===e?t:n,c=encodeURIComponent(i.replace(/ /g,"_")),d=`${o}/${u}?pid=WWW&af_adset=${c}&c=${r}`;return l&&(d+=`&deep_link_value=${encodeURIComponent(l)}`),"ios"===e&&a&&(d+=`&af_ios_fallback=${encodeURIComponent(a)}`),d}],16730)},881282,e=>{"use strict";e.s(["getPlatform",0,function(e){return/iPhone|iPod|iPad/.test(e)?"ios":/Android/.test(e)?"android":null}])},677691,e=>{"use strict";var t=e.i(247865),n=e.i(726812),o=e.i(16730),r=e.i(881282);e.s(["useAppInstallLink",0,function(e,i){let[a,s]=(0,t.useState)(null),[l,u]=(0,t.useState)(null),[c,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s((0,r.getPlatform)(navigator.userAgent)),u(window.location.href),d(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)},[]);let f=(0,o.getAppsFlyerLink)({platform:a,trackAdset:e,currentUrl:l,allowAppsFlyer:c,deepLinkValue:i}),p="android"===a?n.PLAY_STORE_URL:n.APP_STORE_URL;return{href:f||p,platform:a}}])},792461,e=>{"use strict";var t=e.i(247865);e.s(["useRefMemo",0,e=>{let n=(0,t.useRef)(e);return n.current=e,n}])}]);