(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,402820,e=>{e.i(247167);var t=e.i(271645),r=e.i(108821),n=e.i(552245),o=e.i(405005);let l=t.forwardRef(function(e,t){let{render:l,className:i,style:s,forceRender:a=!1,...u}=e,f=(0,r.x)(),c=f.useState("open"),d=f.useState("nested"),p=f.useState("mounted"),g=f.useState("transitionStatus");return(0,n.f)("div",e,{state:{open:c,transitionStatus:g},ref:[f.context.backdropRef,t],stateAttributesMapping:o.M,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:a||!d})});e.s(["f",0,l])},156736,209793,784324,264951,e=>{var t=e.i(271645),r=e.i(108821),n=e.i(552245),o=e.i(540886),l=e.i(675606),i=e.i(957749);let s=t.forwardRef(function(e,t){let{render:s,className:a,style:u,disabled:f=!1,nativeButton:c=!0,...d}=e,p=(0,r.x)(),g=p.useState("open"),{getButtonProps:h,buttonRef:v}=(0,o.f)({disabled:f,native:c});return(0,n.f)("button",e,{state:{disabled:f},ref:[t,v],props:[{onClick:function(e){g&&p.setOpen(!1,(0,l.j)(i.f.closePress,e.nativeEvent))}},d,h]})});e.s(["f",0,s],156736);var a=e.i(788015);let u=t.forwardRef(function(e,t){let{render:o,className:l,style:i,id:s,...u}=e,f=(0,r.x)(),c=(0,a.f)(s);return f.useSyncedValueWithCleanup("descriptionElementId",c),(0,n.f)("p",e,{ref:t,props:[{id:c},u]})});e.s(["f",0,u],209793);var f=e.i(61487),c=e.i(733332);let d=t.createContext(void 0);var p=e.i(137584),g=e.i(673327),h=e.i(264111),v=e.i(209407);let b={...e.i(405005).E,...v.T,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};var m=e.i(843476);let y=t.forwardRef(function(e,o){let{render:l,className:i,style:s,finalFocus:a,initialFocus:u,...v}=e,y=(0,r.x)(),x=y.useState("descriptionElementId"),w=y.useState("disablePointerDismissal"),R=y.useState("floatingRootContext"),S=y.useState("popupProps"),C=y.useState("modal"),E=y.useState("mounted"),k=y.useState("nested"),T=y.useState("nestedOpenDialogCount"),P=y.useState("open"),O=y.useState("openMethod"),A=y.useState("titleElementId"),I=y.useState("transitionStatus"),M=y.useState("role"),W=R.useState("floatingId");!function(){if(void 0===t.useContext(d))throw Error((0,c.f)(26))}(),(0,p.f)({open:P,ref:y.context.popupRef,onComplete(){P&&y.context.onOpenChangeComplete?.(!0)}});let D=void 0===u?(0,h.H)(y.context.popupRef):u,L=y.useStateSetter("popupElement"),F=(0,n.f)("div",e,{state:{open:P,nested:k,transitionStatus:I,nestedDialogOpen:T>0},props:[S,{id:W,"aria-labelledby":A,"aria-describedby":x,role:M,...h.X,hidden:!E,onKeyDown(e){g.J.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":T}},v],ref:[o,y.context.popupRef,L],stateAttributesMapping:b});return(0,m.jsx)(f.f,{context:R,openInteractionType:O,disabled:!E,closeOnFocusOut:!w,initialFocus:D,returnFocus:a,modal:!1!==C,restoreFocus:"popup",children:F})});e.s(["f",0,y],784324);var x=e.i(144394),w=e.i(726674),R=e.i(426);let S=t.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,l=(0,r.x)(),i=l.useState("mounted"),s=l.useState("modal"),a=l.useState("open");return i||n?(0,m.jsx)(d.Provider,{value:n,children:(0,m.jsxs)(w.r,{ref:t,...o,children:[i&&!0===s&&(0,m.jsx)(R.f,{ref:l.context.internalBackdropRef,inert:(0,x.f)(!a)}),e.children]})}):null});e.s(["f",0,S],264951)},108821,e=>{e.i(247167);var t=e.i(733332),r=e.i(271645);let n=r.createContext(void 0);e.s(["R",0,n,"x",0,function(e){let o=r.useContext(n);if(!e&&void 0===o)throw Error((0,t.f)(27));return o}])},67530,e=>{var t=e.i(271645),r=e.i(146376),n=e.i(145484),o=e.i(17989),l=e.i(647554),i=e.i(264111);e.s(["f",0,function({store:e,parentContext:s,isDrawer:a}){let u=e.useState("open"),f=e.useState("disablePointerDismissal"),c=e.useState("modal"),d=e.useState("popupElement"),p=e.useState("floatingRootContext"),[g,h]=t.useState(0),[v,b]=t.useState(0),m=0===g,y=(0,o.f)(p,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===c?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let r=(0,l.Z)(t);if(m&&!f){if(c){let t=e.context.internalBackdropRef.current,n=e.context.backdropRef.current;return!t&&!n||t===r||n===r||(0,l.I)(r,d)&&!r?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:m});return(0,n.f)(u&&!0===c,d),e.useContextCallback("onNestedDialogOpen",(e,t)=>{h(e),b(t)}),(0,r.f)(()=>(s?.onNestedDialogOpen&&(u?s.onNestedDialogOpen(g+1,v+ +!!a):s.onNestedDialogOpen(0,0)),()=>{s?.onNestedDialogOpen&&u&&s.onNestedDialogOpen(0,0)}),[a,u,g,v,s]),(0,i.y)(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:g,nestedOpenDrawerCount:v}),null}])},366250,e=>{var t=e.i(271645),r=e.i(67530),n=e.i(108821),o=e.i(301252),l=e.i(116786),i=e.i(990627),s=e.i(264111);let a={...l.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class u extends o.f{constructor(e,r,n){var o;let s=new i.f;super(function(e,t,r,n=!1){let o={...(0,l.i)(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return o.floatingRootContext=(0,l.c)(t,r,n),o}(e,s,r,n),(o=s,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0}),a)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let r={open:e};(0,s.s)(r,e,t.trigger),this.update(r)}}var f=e.i(675606),c=e.i(268765),d=e.i(843476);e.s(["f",0,function(e,o){let{children:l,open:i,defaultOpen:a=!1,onOpenChange:p,onOpenChangeComplete:g,disablePointerDismissal:h=!1,modal:v=!0,actionsRef:b,handle:m,triggerId:y,defaultTriggerId:x=null}=o,w="alert-dialog"===e,R=(0,n.x)(!0),S={modal:!!w||v,disablePointerDismissal:w||h,nested:null!=R,role:w?"alertdialog":"dialog"},C=(0,s._)((e,t)=>new u({open:a,openProp:i,activeTriggerId:x,triggerIdProp:y,...S},e,t),!0);C.useControlledProp("openProp",i),C.useControlledProp("triggerIdProp",y),C.useSyncedValues(S),C.useContextCallback("onOpenChange",p),C.useContextCallback("onOpenChangeComplete",g);let E=C.useState("open"),k=C.useState("mounted"),T=C.useState("payload");(0,s.e)(C,E),(0,s.z)(C);let{forceUnmount:P}=(0,s.L)(E,C);t.useImperativeHandle(b,()=>({unmount:P,close:()=>C.setOpen(!1,(0,f.j)(c.f.imperativeAction))}),[P,C]);let O=E||k;return(0,d.jsxs)(n.R.Provider,{value:C,children:[m&&(0,d.jsx)(s.d,{handle:m,store:C}),O&&(0,d.jsx)(r.f,{store:C,parentContext:R?.context,isDrawer:"drawer"===e}),"function"==typeof l?l({payload:T}):l]})}],366250)},77173,e=>{e.i(247167);var t=e.i(271645),r=e.i(108821),n=e.i(552245),o=e.i(788015);let l=t.forwardRef(function(e,t){let{render:l,className:i,style:s,id:a,...u}=e,f=(0,r.x)(),c=(0,o.f)(a);return f.useSyncedValueWithCleanup("titleElementId",c),(0,n.f)("h2",e,{ref:t,props:[{id:c},u]})});e.s(["f",0,l])},61487,e=>{var t=e.i(271645),r=e.i(229315),n=e.i(574735),o=e.i(365420),l=e.i(828918),i=e.i(446265),s=e.i(667865),a=e.i(146376),u=e.i(439957),f=e.i(818663),c=e.i(708445),d=e.i(108868),p=e.i(333848),g=e.i(152535),h=e.i(647554),v=e.i(596296),b=e.i(157940),m=e.i(383976),y=e.i(958408),x=e.i(621082),w=e.i(675606),R=e.i(6304),S=e.i(422428),C=e.i(790098),E=e.i(451321),k=e.i(503596);let T={inert:new WeakMap,"aria-hidden":new WeakMap},P="data-base-ui-inert",O={inert:new WeakSet,"aria-hidden":new WeakSet},A=new WeakMap,I=0,M=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,r.R)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),W=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},D=(e,t,n)=>{let o=[],l=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,r.A)(e)&&(t.has(e)?l(e):o.push(e))})};return l(e),o};function L(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:o=!0}=t,l=(0,d.f)(e[0]).body;return function(e,t,r,n,{mark:o=!0}){let l=null;n?l="inert":r&&(l="aria-hidden");let i=null,s=null,a=M(t,e),u=o?D(t,W(a),new Set(a)):[],f=[],c=[];if(l){let e=T[l],r=O[l];s=r,i=e;let n=M(t,Array.from(t.querySelectorAll("[aria-live]"))),o=a.concat(n);D(t,W(o),new Set(o)).forEach(t=>{let n=t.getAttribute(l),o=null!==n&&"false"!==n,i=(e.get(t)||0)+1;e.set(t,i),f.push(t),1===i&&o&&r.add(t),o||t.setAttribute(l,"inert"===l?"":"true")})}return o&&u.forEach(e=>{let t=(A.get(e)||0)+1;A.set(e,t),c.push(e),1===t&&e.setAttribute(P,"")}),I+=1,()=>{i&&f.forEach(e=>{let t=(i.get(e)||0)-1;i.set(e,t),t||(!s?.has(e)&&l&&e.removeAttribute(l),s?.delete(e))}),o&&c.forEach(e=>{let t=(A.get(e)||0)-1;A.set(e,t),t||e.removeAttribute(P)}),(I-=1)||(T.inert=new WeakMap,T["aria-hidden"]=new WeakMap,O.inert=new WeakSet,O["aria-hidden"]=new WeakSet,A=new WeakMap)}}(e,l,r,n,{mark:o})}var F=e.i(726674),B=e.i(46420),j=e.i(638396),Y=e.i(594603),N=e.i(843476);let $=[];function X(){$=$.filter(e=>e.deref()?.isConnected)}function H(e){X(),e&&"body"!==(0,r.A)(e)&&($.push(new WeakRef(e)),$.length>20&&($=$.slice(-20)))}function U(){return X(),$[$.length-1]?.deref()}function q(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,m.J)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,m.m)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["f",0,function(e){let{context:T,children:P,disabled:O=!1,initialFocus:A=!0,returnFocus:I=!0,restoreFocus:M=!1,modal:W=!0,closeOnFocusOut:D=!0,openInteractionType:$="",nextFocusableElement:G,previousFocusableElement:V,beforeContentFocusGuardRef:z,externalTree:Z,getInsideElements:J}=e,K="rootStore"in T?T.rootStore:T,Q=K.useState("open"),_=K.useState("domReferenceElement"),ee=K.useState("floatingElement"),{events:et,dataRef:er}=K.context,en=(0,s.f)(()=>er.current.floatingContext?.nodeId),eo=(0,v.J)(_)&&!1===A,el=(0,i.f)(A),ei=(0,i.f)(I),es=(0,i.f)($),ea=(0,i.f)(Q),eu=(0,B.$)(Z),ef=(0,F.M)(),ec=t.useRef(!1),ed=t.useRef(!1),ep=t.useRef(!1),eg=t.useRef(null),eh=t.useRef(""),ev=t.useRef(""),eb=t.useRef(null),em=t.useRef(null),ey=(0,l.A)(eb,z,ef?.beforeInsideRef),ex=(0,l.A)(em,ef?.afterInsideRef),ew=(0,u.e)(),eR=(0,u.e)(),eS=(0,c.z)(),eC=null!=ef,eE=(0,v.G)(ee),ek=(0,s.f)((e=eE)=>e?(0,m.T)(e):[]),eT=(0,s.f)(()=>J?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(O||!W)return;let e=(0,d.f)(eE);return(0,n.f)(e,"keydown",function(e){"Tab"===e.key&&(0,h.I)(eE,(0,h.T)((0,d.f)(eE)))&&0===ek().length&&!eo&&(0,b.Y)(e)})},[O,eE,W,eo,ek]),t.useEffect(()=>{if(O||!Q)return;let e=(0,d.f)(eE);function t(){ep.current=!1}return(0,o.f)((0,n.f)(e,"pointerdown",function(e){let t=(0,h.Z)(e),r=eT();ep.current=!((0,h.I)(ee,t)||(0,h.I)(_,t)||(0,h.I)(ef?.portalNode,t)||r.some(e=>e===t||(0,h.I)(e,t))),ev.current=e.pointerType||"keyboard",t?.closest(`[${j.j}]`)&&(ed.current=!0,eR.start(0,()=>{ed.current=!1}))},!0),(0,n.f)(e,"pointerup",t,!0),(0,n.f)(e,"pointercancel",t,!0),(0,n.f)(e,"keydown",function(){ev.current="keyboard"},!0),t)},[O,ee,_,eE,Q,ef,eR,eT]),t.useEffect(()=>{if(O||!D)return;let e=(0,d.f)(eE);function t(t){let n=t.relatedTarget,o=t.currentTarget,l=(0,h.Z)(t);W&&null==n&&null!=l&&(0,h.I)(ee,l)&&H(l),queueMicrotask(()=>{let i=en(),s=K.context.triggerElements,a=eT(),u=n?.hasAttribute((0,E.f)("focus-guard"))&&[eb.current,em.current,ef?.beforeInsideRef.current,ef?.afterInsideRef.current,ef?.beforeOutsideRef.current,ef?.afterOutsideRef.current,(0,Y.f)(V),(0,Y.f)(G)].includes(n),f=!((0,h.I)(_,n)||(0,h.I)(ee,n)||(0,h.I)(n,ee)||(0,h.I)(ef?.portalNode,n)||a.some(e=>e===n||(0,h.I)(e,n))||s.hasMatchingElement(e=>(0,h.I)(e,n))||u||eu&&((0,y.Q)(eu.nodesRef.current,i).find(e=>(0,h.I)(e.context?.elements.floating,n)||(0,h.I)(e.context?.elements.domReference,n))||(0,y.V)(eu.nodesRef.current,i).find(e=>[e.context?.elements.floating,(0,v.G)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(o===_&&eE&&q(eE),M&&o!==_&&!(0,x.v)(l)&&(0,h.T)(e)===e.body){if((0,r.E)(eE)&&(eE.focus(),"popup"===M))return void eS.request(()=>{eE.focus()});let e=ek(),t=eg.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||eE;(0,r.E)(n)&&n.focus()}if(er.current.insideReactTree){er.current.insideReactTree=!1;return}(eo||!W)&&n&&f&&!ed.current&&(eo||n!==U())&&(ec.current=!0,K.setOpen(!1,(0,w.j)(R.f.focusOut,t)))})}let l=(0,r.E)(_)?_:null;if(ee||l)return(0,o.f)(l&&(0,n.f)(l,"focusout",t),l&&(0,n.f)(l,"pointerdown",function(){ed.current=!0,eR.start(0,()=>{ed.current=!1})}),ee&&(0,n.f)(ee,"focusin",function(e){let t=(0,h.Z)(e);(0,m.m)(t)&&(eg.current=t)}),ee&&(0,n.f)(ee,"focusout",t),ee&&ef&&(0,n.f)(ee,"focusout",function(){ep.current||(er.current.insideReactTree=!0,ew.start(0,()=>{er.current.insideReactTree=!1}))},!0))},[O,_,ee,eE,W,eu,ef,K,D,M,ek,eo,en,er,ew,eR,eS,G,V,eT]),t.useEffect(()=>{if(O||!ee||!Q)return;let e=Array.from(ef?.portalNode?.querySelectorAll(`[${(0,E.f)("portal")}]`)||[]),t=eu?(0,y.V)(eu.nodesRef.current,en()):[],r=t.find(e=>(0,v.J)(e.context?.elements.domReference||null))?.context?.elements.domReference,n=L([ee,...e,eb.current,em.current,ef?.beforeOutsideRef.current,ef?.afterOutsideRef.current,...eT(),r,(0,Y.f)(V),(0,Y.f)(G),eo?_:null].filter(e=>null!=e),{ariaHidden:W||eo,mark:!1}),o=L([ee,...e].filter(e=>null!=e));return()=>{o(),n()}},[Q,O,_,ee,W,ef,eo,eu,en,G,V,eT]),(0,a.f)(()=>{if(!Q||O||!(0,r.E)(eE))return;eh.current="",ev.current="";let e=(0,d.f)(eE),t=(0,h.T)(e);queueMicrotask(()=>{let r,n=el.current,o="function"==typeof n?n(es.current||""):n;if(void 0===o||!1===o||(0,h.I)(eE,t))return;let l=null,i=()=>(null==l&&(l=ek(eE)),l[0]||eE);r=(r=!0===o||null===o?i():(0,Y.f)(o))||i();let s=(0,h.I)(eE,(0,h.T)(e));(0,k.f)(r,{preventScroll:r===eE,shouldFocus(){if(!ea.current)return!1;if(s)return!0;let t=(0,h.T)(e);return!(t!==r&&(0,h.I)(eE,t))}})})},[O,Q,eE,ek,el,es,ea]),(0,a.f)(()=>{if(O||!eE)return;let e=(0,d.f)(eE),t=(0,h.T)(e),n=null==es.current;function o(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=ev.current,n=(0,p.f)((0,h.Z)(t)),eh.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),e.reason===S.f.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ec.current=!0),e.reason===C.f.outsidePress)if(e.nested)ec.current=!1;else if((0,b.E)(e.nativeEvent)||(0,b.$)(e.nativeEvent))ec.current=!1;else{let e=!1;(0,d.f)(eE).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ec.current=!1:ec.current=!0}}return H(t),et.on("openchange",o),()=>{et.off("openchange",o);let l=(0,h.T)(e),i=eT(),s=(0,h.I)(ee,l)||i.some(e=>e===l||(0,h.I)(e,l))||eu&&(0,y.Q)(eu.nodesRef.current,en(),!1).some(e=>(0,h.I)(e.context?.elements.floating,l)),a=ei.current,u=eh.current,f=function(e){let o=ei.current,l="function"==typeof o?o(e):o;if(void 0===l||!1===l)return null;null===l&&(l=!0);let i=_?.isConnected?_:null,s=t?.isConnected&&"body"!==(0,r.A)(t)?t:null,a=n?s||i:i||s;return(a||(a=U()||null),"boolean"==typeof l)?a:(0,Y.f)(l)||a||null}(u);queueMicrotask(()=>{let t=f?(0,m.m)(f)?f:(0,m.T)(f)[0]||f:null;if(a&&!ec.current&&(0,r.E)(t)&&("boolean"!=typeof a||t===l||l===e.body||s)){let e={preventScroll:!0};"keyboard"===u&&(e.focusVisible=!0),t.focus(e)}ec.current=!1})}},[O,ee,eE,ei,es,et,eu,_,en,eT]),(0,a.f)(()=>{if(!f.f.engine.webkit||Q||!ee)return;let e=(0,h.T)((0,d.f)(ee));(0,r.E)(e)&&(0,v.Q)(e)&&(0,h.I)(ee,e)&&e.blur()},[Q,ee]),(0,a.f)(()=>{if(!O&&ef)return ef.setFocusManagerState({modal:W,closeOnFocusOut:D,open:Q,onOpenChange:K.setOpen,domReference:_}),()=>{ef.setFocusManagerState(null)}},[O,ef,W,Q,K,D,_]),(0,a.f)(()=>{if(!O&&eE)return q(eE),()=>{queueMicrotask(X)}},[O,eE]);let eP=!O&&(!W||!eo)&&(eC||W);return(0,N.jsxs)(t.Fragment,{children:[eP&&(0,N.jsx)(g.f,{"data-type":"inside",ref:ey,onFocus:e=>{if(W){let e=ek();(0,k.f)(e[e.length-1])}else if(ef?.portalNode)if(ec.current=!1,(0,m.A)(e,ef.portalNode)){let e=(0,m.O)(_);e?.focus()}else(0,Y.f)(V??ef.beforeOutsideRef)?.focus()}}),P,eP&&(0,N.jsx)(g.f,{"data-type":"inside",ref:ex,onFocus:e=>{if(W)(0,k.f)(ek()[0]);else if(ef?.portalNode)if(D&&(ec.current=!0),(0,m.A)(e,ef.portalNode)){let e=(0,m.B)(_);e?.focus()}else(0,Y.f)(G??ef.afterOutsideRef)?.focus()}})]})}],61487)},503596,e=>{var t=e.i(956789);let r=0;e.s(["f",0,function(e,n={}){let{preventScroll:o=!1,sync:l=!1,shouldFocus:i}=n;function s(){(!i||i())&&e?.focus({preventScroll:o})}if(cancelAnimationFrame(r),l)return s(),t.x;let a=requestAnimationFrame(s);return r=a,()=>{r===a&&(cancelAnimationFrame(a),r=0)}}])},673327,e=>{var t=e.i(229315);let r="ArrowUp",n="ArrowDown",o="ArrowLeft",l="ArrowRight",i="Home",s=new Set([r,n,o,l,i,"End"]);function a(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);)t=t.offsetParent;return o}function u(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["e",0,n,"b",0,o,"q",0,l,"V",0,r,"J",0,s,"C",0,"End","Z",0,i,"a",0,["Shift","Control","Alt","Meta"],"I",0,"PageDown","v",0,"PageUp","X",0,function(e){return!!((0,t.E)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.E)(e)&&"TEXTAREA"===e.tagName)},"l",0,function(e,t,r,n){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,l=e.scrollTop,i=e.clientWidthe.scrollLeft+e.clientWidth-l.scrollPaddingRight?o=n+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight:n-i.scrollMarginLefte.scrollLeft+e.clientWidth-l.scrollPaddingRight&&(o=n+t.offsetWidth+i.scrollMarginRight-e.clientWidth+l.scrollPaddingRight))}if(s&&"horizontal"!==n){let r=a(e,t,"top"),n=u(e),o=u(t);r-o.scrollMarginTope.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(l=r+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:o,top:l,behavior:"auto"})}])},957749,e=>{var t=e.i(216856);e.s(["f",0,t])},426,e=>{e.i(247167);var t=e.i(271645),r=e.i(843476);let n=t.forwardRef(function(e,t){let n,{cutout:o,...l}=e;if(o){let e=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,r.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});e.s(["f",0,n])},144394,e=>{var t=e.i(958321);e.s(["f",0,function(e){return(0,t.f)(19)?e:e?"true":void 0}])},145484,e=>{var t=e.i(229315),r=e.i(574735),n=e.i(818663),o=e.i(522162),l=e.i(108868),i=e.i(333848),s=e.i(146376),a=e.i(439957),u=e.i(708445);let f={},c={},d="";function p(e,r){return(0,t.B)(e)?e:r}function g(e,t,r){return/hidden|clip/.test(e.getComputedStyle(p(t,r)).overflowY)}let h=new class{lockCount=0;restore=null;timeoutLock=a.U.create();timeoutUnlock=a.U.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,s,a;if(0===this.lockCount||null!==this.restore)return;let h=(0,l.f)(e),v=h.documentElement,b=h.body,m=(0,i.f)(v);if(g(m,v,b)){let t=new m.MutationObserver(()=>{g(m,v,b)||(t.disconnect(),this.restore=null,this.lock(e))}),r={attributes:!0};t.observe(v,r),t.observe(b,r),this.restore=()=>t.disconnect();return}let y=o.f.os.ios||!function(e){if("u"0}(e);this.restore=y?(a={overflowY:(s=p((t=(0,l.f)(e)).documentElement,t.body)).style.overflowY,overflowX:s.style.overflowX},Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,a)}):function(e){let t=(0,l.f)(e),o=t.documentElement,s=t.body,a=(0,i.f)(o),g=0,h=0,v=!1,b=u.$.create();if(n.f.engine.webkit&&(a.visualViewport?.scale??1)!==1)return()=>{};function m(){let t=a.getComputedStyle(o),r=a.getComputedStyle(s),n=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";g=o.scrollTop,h=o.scrollLeft,f={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},d=o.style.scrollBehavior,c={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};let i=o.scrollHeight>o.clientHeight,u=o.scrollWidth>o.clientWidth,b="scroll"===t.overflowY||"scroll"===r.overflowY,m="scroll"===t.overflowX||"scroll"===r.overflowX,y=Math.max(0,a.innerWidth-s.clientWidth),x=Math.max(0,a.innerHeight-s.clientHeight),w=parseFloat(r.marginTop)+parseFloat(r.marginBottom),R=parseFloat(r.marginLeft)+parseFloat(r.marginRight),S=p(o,s);if(v=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"{b.cancel(),y(),"function"==typeof a.removeEventListener&&x()}}(e)}};e.s(["f",0,function(e=!0,t=null){(0,s.f)(()=>{if(e)return h.acquire(t)},[e,t])}])}])})();