(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,991511,e=>{"use strict";var t=e.i(592121),n=e.i(806262),r=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,n.useHydrateAtoms)(e);let a=(0,r.useStore)(),l=(0,t.useRef)(e);l.current=e,(0,t.useEffect)(()=>{for(let[e,t]of l.current)a.get(e)!==t&&a.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},752496,e=>{"use strict";var t=e.i(592121),n=e.i(609858);let r=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:a,page:l,onUpdateData:i,onSetPageData:o}){let{updateComponentData:s,setPageData:c}=(0,n.useDebugSystem)(),d=(0,t.useRef)(!1),u=i||s,x=o||c;return(0,t.useEffect)(()=>{if(a)return r.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(a),hasPerformance:!!a.performance,hasContext:!!a.context}),u(e,{...a,_collectedAt:new Date().toISOString()}),()=>{r.lifecycle(`Cleaning up data for ${e}`),u(e,null)}},[e,a,u]),(0,t.useEffect)(()=>{l&&!d.current&&(r.lifecycle("Setting page metadata",{title:l.title,assetName:l.assetName,collection:l.collection}),x({...l,_updatedAt:new Date().toISOString()}),d.current=!0)},[l,x]),null}])},367810,396817,634177,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(543836),a=e.i(271359),l=e.i(855128),i=e.i(296994),o=e.i(803976),s=e.i(698900),c=e.i(546504),d=e.i(778469),u=e.i(312610),x=e.i(942928),g=e.i(235453),f=e.i(714035),p=e.i(621790),m=e.i(73772),v=e.i(982538),h=Object.defineProperty,b=(e,t)=>h(e,"name",{value:t,configurable:!0}),y="Dialog",[w,j]=(0,l.createContextScope)(y),[C,S]=w(y),D=b(e=>{let{__scopeDialog:r,children:a,open:l,defaultOpen:s,onOpenChange:c,modal:d=!0}=e,u=n.useRef(null),x=n.useRef(null),[g,f]=(0,o.useControllableState)({prop:l,defaultProp:s??!1,onChange:c,caller:y}),[p,m]=n.useState(0),[v,h]=n.useState(0);return(0,t.jsx)(C,{scope:r,triggerRef:u,contentRef:x,contentId:(0,i.useId)(),titleId:(0,i.useId)(),descriptionId:(0,i.useId)(),titlePresent:p>0,descriptionPresent:v>0,setTitleCount:m,setDescriptionCount:h,open:g,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:d,children:a})},"Dialog"),k=n.forwardRef(b(function(e,n){let{__scopeDialog:l,...i}=e,o=S("DialogTrigger",l),s=(0,a.useComposedRefs)(n,o.triggerRef);return(0,t.jsx)(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":U(o.open),...i,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"DialogTrigger")),R="DialogPortal",[E,B]=w(R,{forceMount:void 0}),N=b(e=>{let{__scopeDialog:r,forceMount:a,children:l,container:i}=e,o=S(R,r);return(0,t.jsx)(E,{scope:r,forceMount:a,children:n.Children.map(l,e=>(0,t.jsx)(u.Presence,{present:a||o.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),P="DialogOverlay",L=n.forwardRef(b(function(e,n){let r=B(P,e.__scopeDialog),{forceMount:a=r.forceMount,...l}=e,i=S(P,e.__scopeDialog);return i.modal?(0,t.jsx)(u.Presence,{present:a||i.open,children:(0,t.jsx)(_,{...l,ref:n})}):null},"DialogOverlay")),A=(0,v.createSlot)("DialogOverlay.RemoveScroll"),_=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...l}=e,i=S(P,r),o=(0,s.useDismissableLayerSurface)(),c=(0,a.useComposedRefs)(n,o);return(0,t.jsx)(p.RemoveScroll,{as:A,allowPinchZoom:!0,shards:[i.contentRef],children:(0,t.jsx)(x.Primitive.div,{"data-state":U(i.open),...l,ref:c,style:{pointerEvents:"auto",...l.style}})})},"DialogOverlayImpl")),O="DialogContent",T=n.forwardRef(b(function(e,n){let r=B(O,e.__scopeDialog),{forceMount:a=r.forceMount,...l}=e,i=S(O,e.__scopeDialog);return(0,t.jsx)(u.Presence,{present:a||i.open,children:i.modal?(0,t.jsx)(I,{...l,ref:n}):(0,t.jsx)(M,{...l,ref:n})})},"DialogContent")),I=n.forwardRef(b(function(e,l){let i=S(O,e.__scopeDialog),o=n.useRef(null),s=(0,a.useComposedRefs)(l,i.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,m.hideOthers)(e)},[]),(0,t.jsx)(z,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),M=n.forwardRef(b(function(e,r){let a=S(O,e.__scopeDialog),l=n.useRef(!1),i=n.useRef(!1);return(0,t.jsx)(z,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(l.current||a.triggerRef.current?.focus(),t.preventDefault()),l.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(l.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let n=t.target;a.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),z=n.forwardRef(b(function(e,n){let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:i,...o}=e,d=S(O,r);return(0,g.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:i,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionPresent?d.descriptionId:void 0,"aria-labelledby":d.titlePresent?d.titleId:void 0,"data-state":U(d.open),...o,ref:n,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)})})})},"DialogContentImpl")),F=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...a}=e,l=S("DialogTitle",r),{setTitleCount:i}=l;return(0,f.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(x.Primitive.h2,{id:l.titleId,...a,ref:n})},"DialogTitle")),$=n.forwardRef(b(function(e,n){let{__scopeDialog:r,...a}=e,l=S("DialogDescription",r),{setDescriptionCount:i}=l;return(0,f.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(x.Primitive.p,{id:l.descriptionId,...a,ref:n})},"DialogDescription")),V=n.forwardRef(b(function(e,n){let{__scopeDialog:a,...l}=e,i=S("DialogClose",a);return(0,t.jsx)(x.Primitive.button,{type:"button",...l,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function U(e){return e?"open":"closed"}b(U,"getState"),e.s(["Close",0,V,"Content",0,T,"Description",0,$,"Overlay",0,L,"Portal",0,N,"Root",0,D,"Title",0,F,"Trigger",0,k],396817);var X=e.i(226602),H=e.i(632137),W=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 Z({...e}){return(0,t.jsx)(N,{"data-slot":"dialog-portal",...e})}function q({className:e,...n}){return(0,t.jsx)(L,{"data-slot":"dialog-overlay",className:(0,H.cn)(K({type:"overlay"}),e),...n})}function Y({className:e,overlayClassName:n,children:r,showCloseButton:a=!0,...l}){return(0,t.jsxs)(Z,{"data-slot":"dialog-portal",children:[(0,t.jsx)(q,{className:n}),(0,t.jsxs)(T,{"data-slot":"dialog-content",className:(0,H.cn)(K({type:"content"}),e),...l,children:[r,a&&(0,t.jsxs)(V,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(X.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function J({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,H.cn)(K({type:"header"}),e),...n})}function Q({className:e,children:n,...r}){return(0,t.jsx)(F,{"data-slot":"dialog-title",className:(0,H.cn)("pt-4 text-center",e),...r,children:n})}function ee({className:e,children:n,...r}){return(0,t.jsx)($,{"data-slot":"dialog-description",className:(0,H.cn)("pb-4 text-center",e),...r,children:n})}function et({primary:e,secondary:n,className:r}){return(0,t.jsxs)("div",{className:(0,H.cn)("flex flex-col-reverse gap-3",r),children:[n&&(0,t.jsx)(W.Button,{variant:"secondary",onClick:n.onClick,className:"w-full",children:n.label}),e&&(0,t.jsx)(W.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:r,secondaryAction:a,showCloseButton:l=!0,className:i,children:o,...s}){return(0,t.jsxs)(Y,{showCloseButton:l,className:(0,H.cn)("p-6",i),...s,children:[(0,t.jsx)(J,{children:(0,t.jsx)(Q,{children:e})}),(0,t.jsx)(ee,{children:n}),o,(r||a)&&(0,t.jsx)(et,{primary:r,secondary:a})]})},"Dialog",0,function({...e}){return(0,t.jsx)(D,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(V,{"data-slot":"dialog-close",...e})},"DialogContent",0,Y,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,H.cn)(K({type:"footer"}),e),...n})},"DialogHeader",0,J,"DialogOverlay",0,q,"DialogPortal",0,Z,"DialogTitle",0,Q,"DialogTrigger",0,function({...e}){return(0,t.jsx)(k,{"data-slot":"dialog-trigger",...e})}],367810)},294237,e=>{"use strict";var t=e.i(7284);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>a=>{var l;if((null==t?void 0:t.variants)==null)return r(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(e=>{let t=null==a?void 0:a[e],r=null==o?void 0:o[e];if(null===t)return null;let l=n(t)||n(r);return i[e][l]}),c=a&&Object.entries(a).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,s,null==t||null==(l=t.compoundVariants)?void 0:l.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):({...o,...c})[t]===n})?[...e,n,r]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}])},747961,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(294237),a=e.i(789876);let l=(0,r.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"}}),i=n.default.forwardRef(({icon:e,size:n,color:r,title:i,desc:o,className:s,ariaHidden:c,...d},u)=>(0,t.jsx)(e,{ref:u,className:(0,a.cn)(l({size:n,color:r}),s),title:i,desc:o,...c&&{"aria-hidden":c},...d}));i.displayName="BaseIcon",e.s(["BaseIcon",0,i])},632137,e=>{"use strict";var t=e.i(7284);let n=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});e.s(["cn",0,function(...e){return n((0,t.clsx)(e))}])},683903,e=>{"use strict";var t=e.i(730921);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=n(0,t.useTranslations),a=n(0,t.useFormatter);e.s(["useFormatter",0,a,"useTranslations",0,r])},368847,341669,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(294237),a=e.i(632137);let l=({skeletonClassName:e,elementType:n="span"})=>(0,t.jsx)(n,{className:(0,a.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,l],341669);let i={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:i[e],value:String(e)}));let o=n.default.forwardRef(({className:e,isLoading:n,skeletonClassName:r,variant:i,elementType:o,lineClamp:c,color:d,responsive:u,children:x,...g},f)=>{if(n)return(0,t.jsx)(l,{skeletonClassName:r||""});let p=o||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:i}),m=(0,t.jsx)(p,{className:(0,a.cn)(s({variant:i,color:d,lineClamp:c,responsive:u}),e),ref:f,...g,children:x});return u?(0,t.jsx)("div",{className:"@container/text",children:m}):m});o.displayName="Text";let s=(0,r.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.L.ExtraBold":["text-lg","leading-loose","tracking-normal","font-extrabold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.M.ExtraBold":["text-base","leading-loose","tracking-tight","font-extrabold"],"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.M.Bold":["text-xs","leading-normal","tracking-normal","font-bold"],"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.L.ExtraBold",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.M.ExtraBold",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.M.Bold",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",0,o,"default",0,o,"textVariants",0,s],368847)},982538,e=>{"use strict";var t=e.i(592121);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(e){let r=t.forwardRef((r,a)=>{var o;let x,g,{children:f,...p}=r,m=null,v=!1,h=[];s(f)&&"function"==typeof u&&(f=u(f._payload)),t.Children.forEach(f,e=>{var n;if(n=e,t.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===l){v=!0;let t="child"in e.props?e.props.child:e.props.children;s(t)&&"function"==typeof u&&(t=u(t._payload)),m=i(e,t),h.push(m?.props?.children)}else h.push(e)}),m?m=t.cloneElement(m,void 0,h):!v&&1===t.Children.count(f)&&t.isValidElement(f)&&(m=f);let b=m?(o=m,(g=(x=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in x&&x.isReactWarning)?o.ref:(g=(x=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in x&&x.isReactWarning)?o.props.ref:o.props.ref||o.ref):void 0,y=function(...e){return t.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t{let t=l(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...l}:"className"===r&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}(p,m.props??{});return m.type!==t.Fragment&&(w.ref=a?y:b),t.cloneElement(m,w)});return r.displayName=`${e}.Slot`,r}var a=r("Slot"),l=Symbol.for("radix.slottable"),i=(e,n)=>{if("child"in e.props){let n=e.props.child;return t.isValidElement(n)?t.cloneElement(n,void 0,e.props.children(n.props.children)):null}return t.isValidElement(n)?n:null},o=Symbol.for("react.lazy");function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,u=t[" use ".trim().toString()];e.s(["Slot",0,a,"createSlot",0,r,"createSlottable",0,function(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=l,t}],982538)},877957,564993,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(982538),a=e.i(294237),l=e.i(632137),i=e.i(747961);let o=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:a,...l},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":n,"aria-describedby":a,...l,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:n,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=n.default.forwardRef((e,n)=>(0,t.jsx)(i.BaseIcon,{ref:n,icon:o,...e}));s.displayName="LoaderCircle",e.s(["LoaderCircle",0,s],564993);let c=(0,a.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}}),d=n.forwardRef(({className:e,variant:n="default",size:a,asChild:i=!1,disabled:o=!1,loading:d=!1,children:u,...x},g)=>{let f=i?r.Slot:"button";return(0,t.jsx)(f,{...x,className:(0,l.cn)(c({variant:n,size:a,loading:d,disabled:o}),"inline-flex items-center justify-center",e),ref:g,disabled:o||d,children:i?u:(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)(s,{size:"sm",className:"mr-2 animate-spin",color:"default"===n||"destructive"===n?"inverse":"primary"}),u]})})});d.displayName="Button",e.s(["Button",0,d],877957)},226602,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(747961);let a=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:a,...l},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":n,"aria-describedby":a,...l,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Close"}):e?(0,t.jsx)("title",{id:n,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=n.default.forwardRef((e,n)=>(0,t.jsx)(r.BaseIcon,{ref:n,icon:a,...e}));l.displayName="Close",e.s(["Close",0,l])},671525,e=>{"use strict";var t=e.i(961123);let n=()=>{let e=(0,t.useRouter)();return{navigate:(t,n={})=>{let{mpa:r=!0,replace:a=!1}=n;r?a?window.location.replace(t):window.location.href=t:a?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:n=!0}=t;n?window.location.reload():e.refresh()},router:e}};e.s(["default",0,n,"usePageNavigation",0,n])},837879,e=>{"use strict";var t=e.i(592121),n=e.i(546446),r=e.i(961123),a=e.i(485737),l=e.i(739971),i=e.i(725296),o=e.i(394481),s=e.i(763886),c=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,n.useAtomValue)(l.subscriptionsEnabledAtom),d=(0,n.useAtomValue)(a.geoipCountry),u=(0,r.useParams)()?.locale,x=(0,n.useAtomValue)(o.privacyRegimeAtom)??i.Regime.EXEMPT,g=(0,n.useAtomValue)(s.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===d&&"en-US"===u&&i.US_REGIMES.includes(x)&&g!==c.Partner.OPPO,[e,d,u,x,g])}])},756227,95870,391174,e=>{"use strict";var t=e.i(546446),n=e.i(284007),r=e.i(889753),a=e.i(310847),l=e.i(613646);e.s(["mutate",()=>l.j],95870);var l=l,i=e.i(318849);let o=()=>{(0,l.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1});try{localStorage.removeItem(i.SWR_CACHE_STORAGE_KEY)}catch{}};e.s(["invalidateUpsxCache",0,o],391174),e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(r.userProfileAtom),l=(0,t.useSetAtom)(a.wxuUserAccountUserAccountResponseAtom);return()=>{o(),e(n.RESET),l(null)}}],756227)},235577,e=>{"use strict";var t=e.i(699173),n=e.i(523084),r=e.i(47524),a=e.i(632137),l=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:i,hidden:o,size:s="default",variant:c="light",className:d}){let u="sm"===s,x=(0,a.cn)("text-current",u?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(l.Button,{type:"button",onClick:i,"aria-hidden":"true",tabIndex:-1,className:(0,a.cn)("group absolute top-1/2 z-10 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",u?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",o&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",o&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",o&&"pointer-events-none opacity-0",d),children:"left"===e?(0,t.jsx)(n.ChevronLeft,{className:x}):(0,t.jsx)(r.ChevronRight,{className:x})})}])},457492,e=>{"use strict";var t=e.i(699173),n=e.i(147732),r=e.i(592121),a=e.i(632137),l=e.i(546446),i=e.i(663333),o=e.i(235577),s=e.i(240058);let c=(0,a.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),d=e=>{let{activeIndex:n,index:r,link:l}=e,i=n===r,o=(0,a.cn)(c,{"bg-gray-100 text-blue-500":i});if(e.onSelect){let{onSelect:n}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>n(r,l),className:(0,a.cn)("cursor-pointer",o),"aria-current":i?"page":void 0,children:l.label})}let{basePath:d,mpa:u}=e,x=l.href??("/"===l.slug?d||"/":`${d}/${l.slug}`);return(0,t.jsx)(s.default,{href:x,mpa:u,className:o,"aria-current":i?"page":void 0,sourceModule:"subnavigation",children:l.label})},u=(0,r.memo)(e=>{let{links:s,activeIndex:c,className:u,constrained:x=!0}=e,[g,f]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!1),v=(0,r.useRef)(null),h=(0,r.useRef)(null),b=(0,r.useRef)(!1),y=(0,l.useAtomValue)(i.deviceClassAtom),w="mobile"!==y&&"tablet"!==y,j=(0,r.useCallback)(()=>{let e=v.current;if(!e||!w){f(!1),m(!1);return}let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e,a=Math.abs(t),l=a>2,i=a+r(0,n.debounce)(j,150),[j]),S=(0,r.useCallback)(()=>{null===h.current&&(h.current=requestAnimationFrame(()=>{j(),h.current=null}))},[j]);(0,r.useEffect)(()=>{let e=v.current;e&&(b.current="rtl"===getComputedStyle(e).direction),j();let t=v.current;return t&&(t.addEventListener("scroll",S),window.addEventListener("resize",C)),()=>{null!==h.current&&(cancelAnimationFrame(h.current),h.current=null),t&&t.removeEventListener("scroll",S),C.cancel(),window.removeEventListener("resize",C)}},[s,j,S,C]);let D=(0,r.useCallback)(()=>{v.current?.scrollBy({left:-200,behavior:"smooth"})},[]),k=(0,r.useCallback)(()=>{v.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsxs)("div",{className:(0,a.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",x&&"md:mr-auto md:max-w-[min(958px,100%)]",u),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,a.cn)("pointer-events-none absolute top-0 -left-25 z-[5] h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":g}),"aria-hidden":"true"}),(0,t.jsx)(o.ScrollButton,{hidden:!g,onClick:D,direction:"left"}),(0,t.jsx)("div",{ref:v,className:(0,a.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:s.map((n,r)=>e.onSelect?(0,t.jsx)(d,{link:n,index:r,activeIndex:c,onSelect:e.onSelect},`${n.label}_${n.slug}`):(0,t.jsx)(d,{link:n,index:r,activeIndex:c,basePath:e.basePath,mpa:e.mpa},`${n.label}_${n.slug}`))}),(0,t.jsx)("div",{className:(0,a.cn)("pointer-events-none absolute top-0 -right-25 z-[5] h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":p}),"aria-hidden":"true"}),(0,t.jsx)(o.ScrollButton,{hidden:!p,onClick:k,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,n)=>e.label===t.links[n]?.label&&e.slug===t.links[n]?.slug&&e.href===t.links[n]?.href));u.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,u],457492)}]);