!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8aec730-5e1c-4650-b06b-0d777be4fe87",e._sentryDebugIdIdentifier="sentry-dbid-e8aec730-5e1c-4650-b06b-0d777be4fe87")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6029],{45461:(e,t,n)=>{n.d(t,{xf:()=>r,zF:()=>o});var r={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};r.easeOut,r.easeIn;var o={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:r.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:r.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:r.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:r.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:r.ease}},exit:{opacity:0,transition:{duration:.3,ease:r.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},82941:(e,t,n)=>{n.d(t,{i:()=>g});var r=n(44999),o=n(47191),i=n(96262),a=n(76508),s=n(7242),l=n(64231),u=n(76341),d=n(73831),c=n(10102),f=n(47794),p=n(1968),m=n(43247),v=n(81790),h=n(74687),b=n(78293);function g(e){var t,n,g,E;let y=(0,c.o)(),[w,x]=(0,f.rE)(e,r.n.variantKeys),{ref:N,as:T,children:C,anchorIcon:R,isExternal:k=!1,showAnchorIcon:L=!1,autoFocus:S=!1,className:P,onPress:D,onPressStart:F,onPressEnd:M,onClick:I,...O}=w,A=(0,p.zD)(N),B=null!=(n=null!=(t=null==e?void 0:e.disableAnimation)?t:null==y?void 0:y.disableAnimation)&&n,{linkProps:j}=function(e,t){let{elementType:n="a",onPress:r,onPressStart:c,onPressEnd:f,onClick:p,role:m,isDisabled:v,...h}=e,b={};"a"!==n&&(b={role:"link",tabIndex:v?void 0:0});let g=(0,o.un)()||(0,o.m0)();p&&"function"==typeof p&&"button"!==m&&(0,l.R)("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","useLink");let{focusableProps:E}=(0,u.W)(e,t),{pressProps:y,isPressed:w}=(0,d.d)({onPress:e=>{g&&(null==p||p(e)),null==r||r(e)},onPressStart:c,onPressEnd:f,isDisabled:v,ref:t}),x=(0,i.$)(h,{labelable:!0,isLink:"a"===n}),N=(0,a.v)(E,y),T=(0,s.rd)(),C=(0,s._h)(e);return{isPressed:w,linkProps:(0,a.v)(x,C,{...N,...b,"aria-disabled":v||void 0,"aria-current":e["aria-current"],onClick:t=>{var n;null==(n=y.onClick)||n.call(y,t),!g&&p&&p(t),!T.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,s.sU)(t.currentTarget,t)&&e.href&&(t.preventDefault(),T.open(t.currentTarget,t,e.href,e.routerOptions))}})}}({...O,onPress:D,onPressStart:F,onPressEnd:M,onClick:I,isDisabled:e.isDisabled,elementType:"".concat(T)},A),{isFocused:H,isFocusVisible:W,focusProps:z}=(0,m.o)({autoFocus:S});k&&(O.rel=null!=(g=O.rel)?g:"noopener noreferrer",O.target=null!=(E=O.target)?E:"_blank");let _=(0,b.useMemo)(()=>(0,r.n)({...x,disableAnimation:B,className:P}),[(0,v.t6)(x),B,P]);return{Component:T||"a",children:C,anchorIcon:R,showAnchorIcon:L,getLinkProps:(0,b.useCallback)(()=>({ref:A,className:_,"data-focus":(0,h.sE)(H),"data-disabled":(0,h.sE)(e.isDisabled),"data-focus-visible":(0,h.sE)(W),...(0,a.v)(z,j,O)}),[_,H,W,z,j,O])}}},14909:(e,t,n)=>{n.d(t,{h:()=>u});var r=n(82941),o=n(47794),i=n(55057),a=e=>(0,i.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,i.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,i.jsx)("path",{d:"M15 3h6v6"}),(0,i.jsx)("path",{d:"M10 14L21 3"})]}),s=n(44999),l=(0,o.Rf)((e,t)=>{let{Component:n,children:o,showAnchorIcon:l,anchorIcon:u=(0,i.jsx)(a,{className:s.A}),getLinkProps:d}=(0,r.i)({ref:t,...e});return(0,i.jsx)(n,{...d(),children:(0,i.jsxs)(i.Fragment,{children:[o,l&&u]})})});l.displayName="HeroUI.Link";var u=l},20968:(e,t,n)=>{n.d(t,{Y:()=>d});var r=n(70402),o=n(16007),i=n(1254),a=n(79837),s=n(47794),l=n(55057),u=(0,s.Rf)((e,t)=>{let{children:n,...s}=e,u=(0,r.h)({...s,ref:t}),d=(0,l.jsx)(a.hJ,{portalContainer:u.portalContainer,children:n});return(0,l.jsx)(o.Z,{value:u,children:u.disableAnimation&&u.isOpen?d:(0,l.jsx)(i.N,{children:u.isOpen?d:null})})});u.displayName="HeroUI.Modal";var d=u},51806:(e,t,n)=>{n.d(t,{h:()=>d});var r=n(16007),o=n(78293),i=n(47794),a=n(1968),s=n(45095),l=n(55057),u=(0,i.Rf)((e,t)=>{let{as:n,children:i,className:u,...d}=e,{slots:c,classNames:f,bodyId:p,setBodyMounted:m}=(0,r.k)(),v=(0,a.zD)(t);return(0,o.useEffect)(()=>(m(!0),()=>m(!1)),[m]),(0,l.jsx)(n||"div",{ref:v,className:c.body({class:(0,s.$)(null==f?void 0:f.body,u)}),id:p,...d,children:i})});u.displayName="HeroUI.ModalBody";var d=u},75635:(e,t,n)=>{n.d(t,{c:()=>d});var r=n(16007),o=n(78293),i=n(47794),a=n(1968),s=n(45095),l=n(55057),u=(0,i.Rf)((e,t)=>{let{as:n,children:i,className:u,...d}=e,{slots:c,classNames:f,headerId:p,setHeaderMounted:m}=(0,r.k)(),v=(0,a.zD)(t);return(0,o.useEffect)(()=>(m(!0),()=>m(!1)),[m]),(0,l.jsx)(n||"header",{ref:v,className:c.header({class:(0,s.$)(null==f?void 0:f.header,u)}),id:p,...d,children:i})});u.displayName="HeroUI.ModalHeader";var d=u},78991:(e,t,n)=>{n.d(t,{q:()=>u});var r=n(16007),o=n(47794),i=n(1968),a=n(45095),s=n(55057),l=(0,o.Rf)((e,t)=>{let{as:n,children:o,className:l,...u}=e,{slots:d,classNames:c}=(0,r.k)(),f=(0,i.zD)(t);return(0,s.jsx)(n||"footer",{ref:f,className:d.footer({class:(0,a.$)(null==c?void 0:c.footer,l)}),...u,children:o})});l.displayName="HeroUI.ModalFooter";var u=l},16482:(e,t,n)=>{n.d(t,{g:()=>y});var r=n(45461),o={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:r.xf.ease},opacity:{duration:.4,ease:r.xf.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:r.xf.ease}}},i=n(16007),a=n(78293),s=n(29855),l=n(46342),u=n(2245),d=n(72576),c=n(57426),f=n(20065);let p="undefined"!=typeof document&&window.visualViewport;function m(){return{width:p&&(null==p?void 0:p.width)||window.innerWidth,height:p&&(null==p?void 0:p.height)||window.innerHeight}}var v=n(76508),h=n(22155),b=n(55057),g=()=>Promise.all([n.e(8015),n.e(5747)]).then(n.bind(n,35747)).then(e=>e.default),E=e=>{let{as:t,children:n,role:E="dialog",...y}=e,{Component:w,domRef:x,slots:N,classNames:T,motionProps:C,backdrop:R,closeButton:k,hideCloseButton:L,disableAnimation:S,getDialogProps:P,getBackdropProps:D,getCloseButtonProps:F,onClose:M}=(0,i.k)(),I=function(){let e=(0,f.wR)(),[t,n]=(0,a.useState)(()=>e?{width:0,height:0}:m());return(0,a.useEffect)(()=>{let e=()=>{n(e=>{let t=m();return t.width===e.width&&t.height===e.height?e:t})};return p?p.addEventListener("resize",e):window.addEventListener("resize",e),()=>{p?p.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),t}(),{dialogProps:O}=(0,c.s)({role:E},x),A=(0,a.isValidElement)(k)?(0,a.cloneElement)(k,F()):(0,b.jsx)("button",{...F(),children:(0,b.jsx)(l.U,{})}),B=(0,a.useCallback)(e=>{"Tab"===e.key&&e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault())},[]),j=P((0,v.v)(O,y)),H=(0,b.jsxs)(t||w||"div",{...j,onKeyDown:(0,h.c)(j.onKeyDown,B),children:[(0,b.jsx)(s.R,{onDismiss:M}),!L&&A,"function"==typeof n?n(M):n,(0,b.jsx)(s.R,{onDismiss:M})]}),W=(0,a.useMemo)(()=>"transparent"===R?null:S?(0,b.jsx)("div",{...D()}):(0,b.jsx)(u.F,{features:g,children:(0,b.jsx)(d.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:r.zF.fade,...D()})}),[R,S,D]),z={"--visual-viewport-height":I.height+"px"},_=S?(0,b.jsx)("div",{className:N.wrapper({class:null==T?void 0:T.wrapper}),"data-slot":"wrapper",style:z,children:H}):(0,b.jsx)(u.F,{features:g,children:(0,b.jsx)(d.m.div,{animate:"enter",className:N.wrapper({class:null==T?void 0:T.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:o,...C,style:z,children:H})});return(0,b.jsxs)("div",{tabIndex:-1,children:[W,_]})};E.displayName="HeroUI.ModalContent";var y=E},16007:(e,t,n)=>{n.d(t,{Z:()=>r,k:()=>o});var[r,o]=(0,n(12982).q)({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"})},70402:(e,t,n)=>{n.d(t,{h:()=>y});var r=n(75398),o=n(53756),i=n(79837),a=n(90556),s=n(76508),l=n(78293),u=n(94742),d=n(10102),c=n(47794),f=n(37562),p=n(43247),m=n(45095),v=n(81790),h=n(74687),b=n(1968),g=n(99531),E=n(66638);function y(e){var t,n,y;let w=(0,d.o)(),[x,N]=(0,c.rE)(e,u.y.variantKeys),{ref:T,as:C,className:R,classNames:k,isOpen:L,defaultOpen:S,onOpenChange:P,motionProps:D,closeButton:F,isDismissable:M=!0,hideCloseButton:I=!1,shouldBlockScroll:O=!0,portalContainer:A,isKeyboardDismissDisabled:B=!1,onClose:j,...H}=x,W=(0,b.zD)(T),z=(0,l.useRef)(null),[_,K]=(0,l.useState)(!1),[U,$]=(0,l.useState)(!1),q=null!=(n=null!=(t=e.disableAnimation)?t:null==w?void 0:w.disableAnimation)&&n,J=(0,l.useId)(),V=(0,l.useId)(),Y=(0,l.useId)(),G=(0,g.T)({isOpen:L,defaultOpen:S,onOpenChange:e=>{null==P||P(e),e||null==j||j()}}),{modalProps:Z,underlayProps:X}=function(e={shouldBlockScroll:!0},t,n){let{overlayProps:u,underlayProps:d}=(0,r.e)({...e,isOpen:t.isOpen,onClose:t.close},n);return(0,o.H)({isDisabled:!t.isOpen||!e.shouldBlockScroll}),(0,i.Se)(),(0,l.useEffect)(()=>{if(t.isOpen&&n.current)return(0,a.h)([n.current])},[t.isOpen,n]),{modalProps:(0,s.v)(u),underlayProps:d}}({isDismissable:M,shouldBlockScroll:O,isKeyboardDismissDisabled:B},G,W),{buttonProps:Q}=(0,f.l)({onPress:G.close},z),{isFocusVisible:ee,focusProps:et}=(0,p.o)(),en=(0,m.$)(null==k?void 0:k.base,R),er=(0,l.useMemo)(()=>(0,u.y)({...N,disableAnimation:q}),[(0,v.t6)(N),q]),eo=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{className:er.backdrop({class:null==k?void 0:k.backdrop}),onClick:()=>G.close(),...X,...e}},[er,k,X]);return{Component:C||"section",slots:er,domRef:W,headerId:V,bodyId:Y,motionProps:D,classNames:k,isDismissable:M,closeButton:F,hideCloseButton:I,portalContainer:A,shouldBlockScroll:O,backdrop:null!=(y=e.backdrop)?y:"opaque",isOpen:G.isOpen,onClose:G.close,disableAnimation:q,setBodyMounted:$,setHeaderMounted:K,getDialogProps:function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{ref:(0,E.P)(r,W),...(0,s.v)(Z,H,n),className:er.base({class:(0,m.$)(en,n.className)}),id:J,"data-open":(0,h.sE)(G.isOpen),"data-dismissable":(0,h.sE)(M),"aria-modal":(0,h.sE)(!0),"data-placement":null!=(t=null==e?void 0:e.placement)?t:"right","aria-labelledby":_?V:void 0,"aria-describedby":U?Y:void 0}},getBackdropProps:eo,getCloseButtonProps:()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":(0,h.sE)(ee),className:er.closeButton({class:null==k?void 0:k.closeButton}),...(0,s.v)(Q,et)})}}},46342:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(55057),o=e=>{let{isSelected:t,isIndeterminate:n,disableAnimation:o,...i}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:(0,r.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})}},94742:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(76609),o=n(56782),i=(0,r.tv)({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-none","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-none","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...o.zb]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]})},44999:(e,t,n)=>{n.d(t,{A:()=>a,n:()=>i});var r=n(76609),o=n(56782),i=(0,r.tv)({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...o.zb],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),a="flex mx-1 text-current self-center"},55512:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(78293),o=n(52502);function i(e,t=[]){let n=(0,r.useRef)(e);return(0,o.U)(()=>{n.current=e}),(0,r.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}},95186:(e,t,n)=>{n.d(t,{j:()=>s});var r=n(22155),o=n(16294),i=n(55512),a=n(78293);function s(e={}){let{id:t,defaultOpen:n,isOpen:l,onClose:u,onOpen:d,onChange:c=()=>{}}=e,f=(0,i.c)(d),p=(0,i.c)(u),[m,v]=(0,o.P)(l,n||!1,c),h=(0,a.useId)(),b=t||h,g=void 0!==l,E=(0,a.useCallback)(()=>{g||v(!1),null==p||p()},[g,p]),y=(0,a.useCallback)(()=>{g||v(!0),null==f||f()},[g,f]),w=(0,a.useCallback)(()=>{(m?E:y)()},[m,y,E]);return{isOpen:!!m,onOpen:y,onClose:E,onOpenChange:w,isControlled:g,getButtonProps:(e={})=>({...e,"aria-expanded":m,"aria-controls":b,onClick:(0,r.c)(e.onClick,w)}),getDisclosureProps:(e={})=>({...e,hidden:!m,id:b})}}},43159:(e,t,n)=>{let r;n.d(t,{B:()=>a});let o=Symbol.for("react-aria.i18n.locale"),i=Symbol.for("react-aria.i18n.strings");class a{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[o];if(void 0===r){let e=window[i];if(!e)return null;for(let n in r={},e)r[n]=new a({[t]:e[n]},t)}let n=null==r?void 0:r[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}},77705:(e,t,n)=>{n.d(t,{J:()=>i});let r=new Map,o=new Map;class i{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let o=t["="+e];if(o)return"function"==typeof o?o():o;let i=this.locale+":"+n,a=r.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),r.set(i,a)),"function"==typeof(o=t[a.select(e)]||t.other)?o():o}number(e){let t=o.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),o.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}},57426:(e,t,n)=>{n.d(t,{s:()=>l});var r=n(43579),o=n(96262),i=n(92726),a=n(78293),s=n(79837);function l(e,t){let{role:n="dialog"}=e,l=(0,r.X1)();l=e["aria-label"]?void 0:l;let u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,i.l)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(u.current=!0,t.current&&(t.current.blur(),(0,i.l)(t.current)),u.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,s.Se)(),{dialogProps:{...(0,o.$)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||l,onBlur:e=>{u.current&&e.stopPropagation()}},titleProps:{id:l}}}},44583:(e,t,n)=>{n.d(t,{n1:()=>d,N$:()=>C,Pu:()=>g});var r=n(92726),o=n(42697),i=n(77732),a=n(78293);let s=a.createContext(null),l="react-aria-focus-scope-restore",u=null;function d(e){let t,n,{children:r,contain:d,restoreFocus:c,autoFocus:f}=e,p=(0,a.useRef)(null),g=(0,a.useRef)(null),R=(0,a.useRef)([]),{parentNode:S}=(0,a.useContext)(s)||{},P=(0,a.useMemo)(()=>new k({scopeRef:R}),[R]);(0,i.N)(()=>{let e=S||L.root;if(L.getTreeNode(e.scopeRef)&&u&&!E(u,e.scopeRef)){let t=L.getTreeNode(u);t&&(e=t)}e.addChild(P),L.addNode(P)},[P,S]),(0,i.N)(()=>{let e=L.getTreeNode(R);e&&(e.contain=!!d)},[d]),(0,i.N)(()=>{var e;let t=null===(e=p.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==g.current;)n.push(t),t.addEventListener(l,r),t=t.nextSibling;return R.current=n,()=>{for(let e of n)e.removeEventListener(l,r)}},[r]),(0,i.N)(()=>{if(c||d)return;let e=R.current,t=(0,o.T)(e?e[0]:void 0),n=e=>{let t=e.target;h(t,R.current)?u=R:b(t)||(u=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[R,c,d]),t=(0,a.useRef)(void 0),n=(0,a.useRef)(void 0),(0,i.N)(()=>{let e=R.current;if(!d){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let r=(0,o.T)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!v(R)||e.isComposing)return;let t=r.activeElement,n=R.current;if(!n||!h(t,n))return;let o=C(m(n),{tabbable:!0},n);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&y(i,!0)},a=e=>{(!u||E(u,R))&&h(e.target,R.current)?(u=R,t.current=e.target):v(R)&&!b(e.target,R)?t.current?t.current.focus():u&&u.current&&x(u.current):v(R)&&(t.current=e.target)},s=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(r.activeElement&&v(R)&&!b(r.activeElement,R)){if(u=R,r.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else u.current&&x(u.current)}})};return r.addEventListener("keydown",i,!1),r.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",s,!1)),()=>{r.removeEventListener("keydown",i,!1),r.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",s,!1))}},[R,d]),(0,i.N)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let r=(0,a.useRef)("undefined"!=typeof document?(0,o.T)(e.current?e.current[0]:void 0).activeElement:null);(0,i.N)(()=>{let r=e.current,i=(0,o.T)(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!u||E(u,e))&&h(i.activeElement,e.current)&&(u=e)};return i.addEventListener("focusin",a,!1),null==r||r.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,n]),(0,i.N)(()=>{let r=(0,o.T)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!v(e)||t.isComposing)return;let n=r.activeElement;if(!b(n,e)||!N(e))return;let o=L.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=C(r.body,{tabbable:!0});a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();if(i&&r.body.contains(i)&&i!==r.body||(i=void 0,o.nodeToRestore=void 0),(!s||!b(s,e))&&i){a.currentNode=i;do s=t.shiftKey?a.previousNode():a.nextNode();while(b(s,e));(t.preventDefault(),t.stopPropagation(),s)?y(s,!0):b(i)?y(i,!0):n.blur()}};return n||r.addEventListener("keydown",i,!0),()=>{n||r.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,i.N)(()=>{var n;let i=(0,o.T)(e.current?e.current[0]:void 0);if(!t)return;let a=L.getTreeNode(e);if(a)return a.nodeToRestore=null!==(n=r.current)&&void 0!==n?n:void 0,()=>{let n=L.getTreeNode(e);if(!n)return;let r=n.nodeToRestore;if(t&&r&&(i.activeElement&&b(i.activeElement,e)||i.activeElement===i.body&&N(e))){let t=L.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){T(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&L.getTreeNode(n.scopeRef)){T(w(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}(R,c,d),function(e,t){let n=a.useRef(t);(0,a.useEffect)(()=>{n.current&&(u=e,!h((0,o.T)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&x(e.current)),n.current=!1},[e])}(R,f),(0,a.useEffect)(()=>{let e=(0,o.T)(R.current?R.current[0]:void 0).activeElement,t=null;if(h(e,R.current)){for(let n of L.traverse())n.scopeRef&&h(e,n.scopeRef.current)&&(t=n);t===L.getTreeNode(R)&&(u=t.scopeRef)}},[R]),(0,i.N)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=L.getTreeNode(R))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(R===u||E(R,u))&&(!r||L.getTreeNode(r))&&(u=r),L.removeTreeNode(R)},[R]);let D=(0,a.useMemo)(()=>({focusNext(e={}){let t=R.current,{from:n,tabbable:r,wrap:i,accept:a}=e,s=n||(0,o.T)(t[0]).activeElement,l=t[0].previousElementSibling,u=C(m(t),{tabbable:r,accept:a},t);u.currentNode=h(s,t)?s:l;let d=u.nextNode();return!d&&i&&(u.currentNode=l,d=u.nextNode()),d&&y(d,!0),d},focusPrevious(e={}){let t=R.current,{from:n,tabbable:r,wrap:i,accept:a}=e,s=n||(0,o.T)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=C(m(t),{tabbable:r,accept:a},t);u.currentNode=h(s,t)?s:l;let d=u.previousNode();return!d&&i&&(u.currentNode=l,d=u.previousNode()),d&&y(d,!0),d},focusFirst(e={}){let t=R.current,{tabbable:n,accept:r}=e,o=C(m(t),{tabbable:n,accept:r},t);o.currentNode=t[0].previousElementSibling;let i=o.nextNode();return i&&y(i,!0),i},focusLast(e={}){let t=R.current,{tabbable:n,accept:r}=e,o=C(m(t),{tabbable:n,accept:r},t);o.currentNode=t[t.length-1].nextElementSibling;let i=o.previousNode();return i&&y(i,!0),i}}),[]),F=(0,a.useMemo)(()=>({focusManager:D,parentNode:P}),[P,D]);return a.createElement(s.Provider,{value:F},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:p}),r,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:g}))}let c=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=c.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let p=c.join(':not([hidden]):not([tabindex="-1"]),');function m(e){return e[0].parentElement}function v(e){let t=L.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function h(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function b(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of L.traverse(L.getTreeNode(t)))if(n&&h(e,n.current))return!0;return!1}function g(e){return b(e,u)}function E(e,t){var n;let r=null===(n=L.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function y(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,r.l)(e)}catch{}}function w(e,t=!0){let n=e[0].previousElementSibling,r=m(e),o=C(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&((o=C(r=m(e),{tabbable:!1},e)).currentNode=n,i=o.nextNode()),i}function x(e,t=!0){y(w(e,t))}function N(e){let t=L.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function T(e){e.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))&&y(e)}function C(e,t,n){let r=(null==t?void 0:t.tabbable)?p:f,i=(0,o.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,o.m)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||h(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new k({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&h(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new R;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let L=new R},61935:(e,t,n)=>{n.d(t,{Y:()=>p});let r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var i=n(78293),a=n(20065);let s=Symbol.for("react-aria.i18n.locale");function l(){let e="undefined"!=typeof window&&window[s]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}(e)?"ltr":"rtl"}}let u=l(),d=new Set;function c(){for(let e of(u=l(),d))e(u)}let f=i.createContext(null);function p(){let e=function(){let e=(0,a.wR)(),[t,n]=(0,i.useState)(u);return((0,i.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",c),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",c)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}();return(0,i.useContext)(f)||e}},90583:(e,t,n)=>{n.d(t,{o:()=>l});var r=n(61935),o=n(43159),i=n(77705),a=n(78293);let s=new WeakMap;function l(e,t){let n,{locale:l}=(0,r.Y)(),u=t&&(0,o.B).getGlobalDictionaryForPackage(t)||((n=s.get(e))||(n=new o.B(e),s.set(e,n)),n);return(0,a.useMemo)(()=>new i.J(l,u),[l,u])}},21227:(e,t,n)=>{n.d(t,{R:()=>i});var r=n(54414),o=n(78293);function i(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:a}=e,s=(0,o.useRef)({isFocusWithin:!1}),l=(0,o.useCallback)(e=>{s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(e),a&&a(!1))},[n,a,s]),u=(0,r.y)(l),d=(0,o.useCallback)(e=>{s.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),a&&a(!0),s.current.isFocusWithin=!0,u(e))},[i,a,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}},54414:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(78293),o=n(95215),i=n(82241);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function s(e){let t=(0,r.useRef)({isFocused:!1,observer:null});(0,o.N)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=(0,i.J)(t=>{null==e||e(t)});return(0,r.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}},29855:(e,t,n)=>{n.d(t,{R:()=>l});var r={};r={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var o=n(78293),i=n(22120),a=n(90583),s=n(75296);function l(e){var t;let{onDismiss:n,...l}=e,u=(0,a.o)((t=r)&&t.__esModule?t.default:t,"@react-aria/overlays"),d=(0,i.b)(l,u.format("dismiss"));return o.createElement(s.s,null,o.createElement("button",{...d,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}},79837:(e,t,n)=>{n.d(t,{hJ:()=>f,Se:()=>p});var r=n(78293);let o=(0,r.createContext)({});var i=n(36900);function a({children:e}){let t=(0,r.useMemo)(()=>({register:()=>{}}),[]);return r.createElement(i.F.Provider,{value:t},e)}var s=n(44583),l=n(35448),u=n(20065),d=n(77732);let c=r.createContext(null);function f(e){var t;let n=(0,u.wR)(),{portalContainer:i=n?null:document.body,isExiting:d}=e,[f,p]=(0,r.useState)(!1),m=(0,r.useMemo)(()=>({contain:f,setContain:p}),[f,p]),{getContainer:v}=null!==(t=(0,r.useContext)(o))&&void 0!==t?t:{};if(!e.portalContainer&&v&&(i=v()),!i)return null;let h=e.children;return e.disableFocusManagement||(h=r.createElement(s.n1,{restoreFocus:!0,contain:f&&!d},h)),h=r.createElement(c.Provider,{value:m},r.createElement(a,null,h)),l.createPortal(h,i)}function p(){let e=(0,r.useContext)(c),t=null==e?void 0:e.setContain;(0,d.N)(()=>{null==t||t(!0)},[t])}},90556:(e,t,n)=>{n.d(t,{h:()=>i});let r=new WeakMap,o=[];function i(e,t=document.body){let n=new Set(e),a=new Set,s=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&a.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&l(e),o!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)l(e),e=r.nextNode()}},l=e=>{var t;let n=null!==(t=r.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==n)&&(0===n&&e.setAttribute("aria-hidden","true"),a.add(e),r.set(e,n+1))};o.length&&o[o.length-1].disconnect(),s(t);let u=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...a].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),a.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?n.add(e):e instanceof Element&&s(e)}});u.observe(t,{childList:!0,subtree:!0});let d={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return o.push(d),()=>{for(let e of(u.disconnect(),a)){let t=r.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),r.delete(e)):r.set(e,t-1))}d===o[o.length-1]?(o.pop(),o.length&&o[o.length-1].observe()):o.splice(o.indexOf(d),1)}}},75398:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(44583),o=n(78293),i=n(54636),a=n(42697);function s(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var l=n(69523);let u=[];function d(e,t){let{onClose:n,shouldCloseOnBlur:d,isOpen:c,isDismissable:f=!1,isKeyboardDismissDisabled:p=!1,shouldCloseOnInteractOutside:m}=e;(0,o.useEffect)(()=>(c&&u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}),[c,t]);let v=()=>{u[u.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:l}=e,u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),d=(0,i.J)(e=>{n&&s(e,t)&&(l&&l(e),u.current.isPointerDown=!0)}),c=(0,i.J)(e=>{n&&n(e)});(0,o.useEffect)(()=>{let e=u.current;if(r)return;let n=t.current,o=(0,a.T)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&s(n,t)&&c(n),e.isPointerDown=!1};return o.addEventListener("pointerdown",d,!0),o.addEventListener("pointerup",n,!0),()=>{o.removeEventListener("pointerdown",d,!0),o.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&s(n,t)&&c(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&s(n,t)&&c(n),e.isPointerDown=!1};return o.addEventListener("mousedown",d,!0),o.addEventListener("mouseup",n,!0),o.addEventListener("touchstart",d,!0),o.addEventListener("touchend",r,!0),()=>{o.removeEventListener("mousedown",d,!0),o.removeEventListener("mouseup",n,!0),o.removeEventListener("touchstart",d,!0),o.removeEventListener("touchend",r,!0)}}},[t,r,d,c])}({ref:t,onInteractOutside:f&&c?e=>{(!m||m(e.target))&&(u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault()),v())}:void 0,onInteractOutsideStart:e=>{(!m||m(e.target))&&u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:h}=(0,l.R)({isDisabled:!d,onBlurWithin:e=>{!(!e.relatedTarget||(0,r.Pu)(e.relatedTarget))&&(!m||m(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||p||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),v())},...h},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},53756:(e,t,n)=>{let r;n.d(t,{H:()=>c});var o=n(77732),i=n(47191),a=n(22155),s=n(93191);let l="undefined"!=typeof document&&window.visualViewport,u=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),d=0;function c(e={}){let{isDisabled:t}=e;(0,o.N)(()=>{if(!t){let e,t,n,o,u;return 1==++d&&(r=(0,i.un)()?(n=null,o=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=(0,a.c)(p(window,"scroll",()=>{window.scrollTo(0,0)}),f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"),f(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},u=(0,a.c)(p(document,"touchstart",n=>{((e=(0,s.m)(n.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=f(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),p(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),p(document,"touchend",e=>{let n=e.target;v(n)&&n!==document.activeElement&&(e.preventDefault(),o(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame(()=>{n.style.transform=""})),t&&t()},{passive:!1,capture:!0}),p(document,"focus",e=>{let t=e.target;v(t)&&(o(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",l&&(l.height{m(t)}):l.addEventListener("resize",()=>m(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==n||n(),u()}):(0,a.c)(f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"))),()=>{0==--d&&r()}}},[t])}function f(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function p(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function m(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=(0,s.m)(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function v(e){return e instanceof HTMLInputElement&&!u.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},93191:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(23629);function o(e,t){let n=e;for((0,r.o)(n,t)&&(n=n.parentElement);n&&!(0,r.o)(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}},23629:(e,t,n)=>{n.d(t,{o:()=>r});function r(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}},66638:(e,t,n)=>{n.d(t,{P:()=>r});function r(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}},22120:(e,t,n)=>{n.d(t,{b:()=>o});var r=n(43579);function o(e,t){let{id:n,"aria-label":o,"aria-labelledby":i}=e;return n=(0,r.Bi)(n),i&&o?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),o||i||!t||(o=t),{id:n,"aria-label":o,"aria-labelledby":i}}},94284:(e,t,n)=>{n.d(t,{c:()=>r});function r(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}},60057:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(94284),o=n(83102),i=n(61957);function a(...e){let t={...e[0]};for(let n=1;n=65&&90>=e.charCodeAt(2)?t[e]=(0,r.c)(n,s):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof s?t[e]=(0,i.A)(n,s):"id"===e&&n&&s?t.id=(0,o.Tw)(n,s):t[e]=void 0!==s?s:n}}return t}},82241:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(95215),o=n(78293);function i(e){let t=(0,o.useRef)(null);return(0,r.N)(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}},83102:(e,t,n)=>{n.d(t,{Tw:()=>d,Bi:()=>u,X1:()=>c});var r=n(95215),o=n(82241),i=n(78293),a=n(20065);let s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,n]=(0,i.useState)(e),o=(0,i.useRef)(null),u=(0,a.Cc)(t),d=(0,i.useCallback)(e=>{o.current=e},[]);return s&&(l.has(u)&&!l.get(u).includes(d)?l.set(u,[...l.get(u),d]):l.set(u,[d])),(0,r.N)(()=>()=>{l.delete(u)},[u]),(0,i.useEffect)(()=>{let e=o.current;e&&(o.current=null,n(e))}),u}function d(e,t){if(e===t)return e;let n=l.get(e);if(n)return n.forEach(e=>e(t)),t;let r=l.get(t);return r?(r.forEach(t=>t(e)),e):t}function c(e=[]){let t=u(),[n,a]=function(e){let[t,n]=(0,i.useState)(e),a=(0,i.useRef)(null),s=(0,o.J)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}t===e.value?s():n(e.value)});(0,r.N)(()=>{a.current&&s()});let l=(0,o.J)(e=>{a.current=e(t),s()});return[t,l]}(t),s=(0,i.useCallback)(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return(0,r.N)(s,[t,s,...e]),n}},95215:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(78293);let o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},75296:(e,t,n)=>{n.d(t,{B:()=>s,s:()=>l});var r=n(60057),o=n(78293),i=n(21227);let a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e={}){let{style:t,isFocusable:n}=e,[r,l]=(0,o.useState)(!1),{focusWithinProps:u}=(0,i.R)({isDisabled:!n,onFocusWithinChange:e=>l(e)}),d=(0,o.useMemo)(()=>r?t:t?{...a,...t}:a,[r]);return{visuallyHiddenProps:{...u,style:d}}}function l(e){let{children:t,elementType:n="div",isFocusable:i,style:a,...l}=e,{visuallyHiddenProps:u}=s(e);return o.createElement(n,(0,r.v)(l,u),t)}},99531:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(78293),o=n(16294);function i(e){let[t,n]=(0,o.P)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),i=(0,r.useCallback)(()=>{n(!0)},[n]),a=(0,r.useCallback)(()=>{n(!1)},[n]),s=(0,r.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:s}}},16294:(e,t,n)=>{n.d(t,{P:()=>o});var r=n(78293);function o(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)(()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let l=s?e:o,u=(0,r.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((n,...o)=>{let i=e(s?l:n,...o);return(r(i,...t),s)?n:i})):(s||i(e),r(e,...t))},[s,l,n]);return[l,u]}}}]);