(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,446265,e=>{"use strict";e.s(["useValueAsRef",()=>r]);var t=e.i(146376),n=e.i(388940);function r(e){let r=(0,n.useRefWithInit)(i,e).current;return r.next=e,(0,t.useIsoLayoutEffect)(r.effect),r}function i(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},502077,e=>{"use strict";e.s(["visuallyHidden",()=>n,"visuallyHiddenInput",()=>r]);let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"}},755838,(e,t,n)=>{"use strict";var r=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return l(function(){i.value=n,i.getSnapshot=t,a(i)&&c({inst:i})},[e,n,t]),s(function(){return a(i)&&c({inst:i}),e(function(){a(i)&&c({inst:i})})},[e]),u(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},802239,(e,t,n)=>{"use strict";t.exports=e.r(755838)},752822,(e,t,n)=>{"use strict";var r=e.r(271645),i=e.r(802239),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,l=r.useRef,u=r.useEffect,a=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=a(function(){function e(e){if(!u){if(u=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,l=n)}var s,l,u=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},430224,(e,t,n)=>{"use strict";t.exports=e.r(752822)},896499,e=>{"use strict";let t;e.s(["fastComponent",()=>l,"fastComponentRef",()=>u,"getInstance",()=>o,"register",()=>s]);var n=e.i(271645),r=e.i(388940);let i=[];function o(){return t}function s(e){i.push(e)}function l(e){let n=(n,o)=>{let s,l=(0,r.useRefWithInit)(a).current;try{for(let e of(t=l,i))e.before(l);for(let t of(s=e(n,o),i))t.after(l);l.didInitialize=!0}finally{t=void 0}return s};return n.displayName=e.displayName||e.name,n}function u(e){return n.forwardRef(l(e))}function a(){return{didInitialize:!1}}},714935,334346,e=>{"use strict";e.s(["Store",()=>u],714935),e.s(["useStore",()=>l],334346);var t=e.i(271645),n=e.i(802239),r=e.i(430224),i=e.i(958321),o=e.i(896499);let s=(0,i.isReactVersionAtLeast)(19)?function(e,r,i,s,l){let u,a=(0,o.getInstance)();if(!a){let o=t.useCallback(()=>r(e.getSnapshot(),i,s,l),[e,r,i,s,l]);return(0,n.useSyncExternalStore)(e.subscribe,o,o)}let c=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(u=a.syncHooks[c]).store===e&&u.selector===r&&Object.is(u.a1,i)&&Object.is(u.a2,s)&&Object.is(u.a3,l)||(u.store!==e&&(a.didChangeStore=!0),u.store=e,u.selector=r,u.a1=i,u.a2=s,u.a3=l,u.value=r(e.getSnapshot(),i,s,l)):(u={store:e,selector:r,a1:i,a2:s,a3:l,value:r(e.getSnapshot(),i,s,l)},a.syncHooks.push(u)),u.value}:function(e,t,n,i,o){return(0,r.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,i,o))};function l(e,t,n,r,i){return s(e,t,n,r,i)}(0,o.register)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class u{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return s(this,e,t,n,r)}}},365420,e=>{"use strict";function t(...e){return()=>{for(let t=0;tt])},108868,e=>{"use strict";function t(e){return e?.ownerDocument||document}e.s(["ownerDocument",()=>t])},46420,661286,379248,e=>{"use strict";e.s(["FloatingNode",()=>p,"FloatingTree",()=>g,"useFloatingNodeId",()=>f,"useFloatingParentNodeId",()=>c,"useFloatingTree",()=>d],46420),e.i(247167);var t=e.i(271645),n=e.i(883977),r=e.i(146376),i=e.i(388940);function o(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["FloatingTreeStore",()=>s],379248),e.s(["createEventEmitter",()=>o],661286);class s{nodesRef={current:[]};events=o();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}var l=e.i(843476);let u=t.createContext(null),a=t.createContext(null),c=()=>t.useContext(u)?.id||null,d=e=>{let n=t.useContext(a);return e??n};function f(e){let t=(0,n.useId)(),i=d(e),o=c();return(0,r.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:o};return i?.addNode(e),()=>{i?.removeNode(e)}},[i,t,o]),t}function p(e){let{children:n,id:r}=e,i=c();return(0,l.jsx)(u.Provider,{value:t.useMemo(()=>({id:r,parentId:i}),[r,i]),children:n})}function g(e){let{children:t,externalTree:n}=e,r=(0,i.useRefWithInit)(()=>n??new s).current;return(0,l.jsx)(a.Provider,{value:r,children:t})}},675606,e=>{"use strict";e.s(["createChangeEventDetails",()=>n,"createGenericEventDetails",()=>r]);var t=e.i(956789);function n(e,n,r,i){let o=!1,s=!1,l=i??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:r,...l}}function r(e,n,r){let i=r??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),...i}}},56434,e=>{"use strict";e.s(["REASONS",()=>D],56434),e.s(["cancelOpen",()=>I,"chipRemovePress",()=>c,"clearPress",()=>a,"closePress",()=>l,"closeWatcher",()=>S,"decrementPress",()=>p,"disabled",()=>A,"drag",()=>w,"escapeKey",()=>y,"focusOut",()=>E,"imperativeAction",()=>L,"incrementPress",()=>f,"initial",()=>M,"inputBlur",()=>m,"inputChange",()=>g,"inputClear",()=>h,"inputPaste",()=>v,"inputPress",()=>b,"itemPress",()=>s,"keyboard",()=>R,"linkPress",()=>u,"listNavigation",()=>T,"missing",()=>P,"none",()=>t,"outsidePress",()=>o,"pointer",()=>C,"scrub",()=>O,"siblingOpen",()=>k,"swipe",()=>N,"trackPress",()=>d,"triggerFocus",()=>i,"triggerHover",()=>r,"triggerPress",()=>n,"wheel",()=>x,"windowResize",()=>F],216856);let t="none",n="trigger-press",r="trigger-hover",i="trigger-focus",o="outside-press",s="item-press",l="close-press",u="link-press",a="clear-press",c="chip-remove-press",d="track-press",f="increment-press",p="decrement-press",g="input-change",h="input-clear",m="input-blur",v="input-paste",b="input-press",E="focus-out",y="escape-key",S="close-watcher",T="list-navigation",R="keyboard",C="pointer",w="drag",x="wheel",O="scrub",I="cancel-open",k="sibling-open",A="disabled",P="missing",M="initial",L="imperative-action",N="swipe",F="window-resize";var D=e.i(216856)},451321,e=>{"use strict";function t(e){return`data-base-ui-${e}`}e.s(["createAttribute",()=>t])},596296,449055,e=>{"use strict";e.s(["getFloatingFocusElement",()=>v,"isEventTargetWithin",()=>d,"isInteractiveElement",()=>g,"isRootElement",()=>f,"isTargetInsideEnabledTrigger",()=>c,"isTypeableCombobox",()=>h,"isTypeableElement",()=>p,"matchesFocusVisible",()=>m],596296);var t=e.i(229315),n=e.i(328744);e.s(["ARROW_DOWN",()=>u,"ARROW_LEFT",()=>o,"ARROW_RIGHT",()=>s,"ARROW_UP",()=>l,"FOCUSABLE_ATTRIBUTE",()=>r,"TYPEABLE_SELECTOR",()=>i],449055);let r="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",o="ArrowLeft",s="ArrowRight",l="ArrowUp",u="ArrowDown";var a=e.i(647554);function c(e,n){if(!(0,t.isElement)(e))return!1;if(n.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,t]of n.entries())if((0,a.contains)(t,e))return!t.hasAttribute("data-trigger-disabled");return!1}function d(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function f(e){return e.matches("html,body")}function p(e){return(0,t.isHTMLElement)(e)&&e.matches(i)}function g(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i}`)!=null}function h(e){return!!e&&"combobox"===e.getAttribute("role")&&p(e)}function m(e){if(!e||n.platform.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function v(e){return e?e.hasAttribute(r)?e:e.querySelector(`[${r}]`)||e:null}},157940,e=>{"use strict";e.s(["isClickLikeEvent",()=>l,"isMouseLikePointerType",()=>s,"isReactEvent",()=>r,"isVirtualClick",()=>i,"isVirtualPointerEvent",()=>o,"stopEvent",()=>n]);var t=e.i(328744);function n(e){e.preventDefault(),e.stopPropagation()}function r(e){return"nativeEvent"in e}function i(e){return""===e.pointerType&&!!e.isTrusted||(t.platform.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function o(e){return!t.platform.env.jsdom&&(!t.platform.os.android&&0===e.width&&0===e.height||t.platform.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function s(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function l(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},958408,e=>{"use strict";function t(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}e.s(["getNodeAncestors",()=>t,"getNodeChildren",()=>function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}])},17989,e=>{"use strict";e.s(["useDismiss",()=>b]);var t=e.i(271645),n=e.i(574735),r=e.i(365420),i=e.i(108868),o=e.i(667865),s=e.i(439957),l=e.i(229315),u=e.i(328744),a=e.i(46420),c=e.i(675606),d=e.i(56434),f=e.i(451321),p=e.i(647554),g=e.i(596296),h=e.i(157940),m=e.i(958408);function v(){return!1}function b(e,E={}){let{enabled:y=!0,escapeKey:S=!0,outsidePress:T=!0,outsidePressEvent:R="sloppy",referencePress:C=v,bubbles:w,externalTree:x}=E,O="rootStore"in e?e.rootStore:e,I=O.useState("open"),k=O.useState("floatingElement"),{dataRef:A}=O.context,P=(0,a.useFloatingTree)(x),M=(0,o.useStableCallback)("function"==typeof T?T:()=>!1),L="function"==typeof T?M:T,N=!1!==L,F=(0,o.useStableCallback)(()=>R),{escapeKey:D,outsidePress:W}={escapeKey:"boolean"==typeof w?w:w?.escapeKey??!1,outsidePress:"boolean"==typeof w?w:w?.outsidePress??!0},H=t.useRef(!1),B=t.useRef(!1),_=t.useRef(!1),V=t.useRef(!1),U=t.useRef(""),Y=t.useRef(null),j=(0,s.useTimeout)(),q=(0,s.useTimeout)(),K=(0,o.useStableCallback)(()=>{q.clear(),A.current.insideReactTree=!1}),G=(0,o.useStableCallback)(e=>{let t=A.current.floatingContext?.nodeId;return(P?(0,m.getNodeChildren)(P.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),X=(0,o.useStableCallback)(e=>(0,g.isEventTargetWithin)(e,O.select("floatingElement"))||(0,g.isEventTargetWithin)(e,O.select("domReferenceElement"))),$=(0,o.useStableCallback)(e=>{C()&&O.setOpen(!1,(0,c.createChangeEventDetails)(d.REASONS.triggerPress,e.nativeEvent))}),z=(0,o.useStableCallback)(e=>{if(!I||!y||!S||"Escape"!==e.key||V.current||!D&&G("__escapeKeyBubbles"))return;let t=(0,h.isReactEvent)(e)?e.nativeEvent:e,n=(0,c.createChangeEventDetails)(d.REASONS.escapeKey,t);O.setOpen(!1,n),n.isCanceled||e.preventDefault(),D||n.isPropagationAllowed||e.stopPropagation()}),J=(0,o.useStableCallback)(()=>{A.current.insideReactTree=!0,q.start(0,K)}),Q=(0,o.useStableCallback)(e=>{if(!I||!y||0!==e.button)return;let t=(0,p.getTarget)(e.nativeEvent);(0,p.contains)(O.select("floatingElement"),t)&&(H.current||(H.current=!0,B.current=!1))}),Z=(0,o.useStableCallback)(e=>{I&&y&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&H.current&&(B.current=!0)});t.useEffect(()=>{if(!I||!y)return K;A.current.__escapeKeyBubbles=D,A.current.__outsidePressBubbles=W;let e=new s.Timeout,t=new s.Timeout;function o(){_.current=!0,t.start(0,()=>{_.current=!1})}function a(){H.current=!1,B.current=!1}function h(){let e=U.current,t=F(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function v(e){let t=A.current.floatingContext?.nodeId,n=P&&(0,m.getNodeChildren)(P.nodesRef.current,t).some(t=>(0,g.isEventTargetWithin)(e,t.context?.elements.floating));return X(e)||n}function b(e){if(function(e){let t=h();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)){"click"===e.type||X(e)||(t.clear(),_.current=!1),K();return}if(A.current.insideReactTree)return void K();let n=(0,p.getTarget)(e),r=`[${(0,f.createAttribute)("inert")}]`,o=(0,l.isElement)(n)?n.getRootNode():null,s=Array.from(((0,l.isShadowRoot)(o)?o:(0,i.ownerDocument)(O.select("floatingElement"))).querySelectorAll(r)),u=O.context.triggerElements;if(n&&(u.hasElement(n)||u.hasMatchingElement(e=>(0,p.contains)(e,n))))return;let a=(0,l.isElement)(n)?n:null;for(;a&&!(0,l.isLastTraversableNode)(a);){let e=(0,l.getParentNode)(a);if((0,l.isLastTraversableNode)(e)||!(0,l.isElement)(e))break;a=e}if(s.length&&(0,l.isElement)(n)&&!(0,g.isRootElement)(n)&&!(0,p.contains)(n,O.select("floatingElement"))&&s.every(e=>!(0,p.contains)(a,e)))return;if((0,l.isHTMLElement)(n)&&!("touches"in e)){let t=(0,l.isLastTraversableNode)(n),r=(0,l.getComputedStyle)(n),i=/auto|scroll/,o=t||i.test(r.overflowX),s=t||i.test(r.overflowY),u=o&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,a=s&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,c="rtl"===r.direction,d=a&&(c?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),f=u&&e.offsetY>n.clientHeight;if(d||f)return}if(!v(e)){if("intentional"===h()&&_.current){t.clear(),_.current=!1;return}("function"!=typeof L||L(e))&&(G("__outsidePressBubbles")||(O.setOpen(!1,(0,c.createChangeEventDetails)(d.REASONS.outsidePress,e)),K()))}}function E(e){if("sloppy"!==h()||!O.select("open")||!y||X(e))return;let t=e.touches[0];t&&(Y.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},j.start(1e3,()=>{Y.current&&(Y.current.dismissOnTouchEnd=!1,Y.current.dismissOnMouseDown=!1)}))}function T(e,t){let r=(0,p.getTarget)(e);if(!r)return;let i=(0,n.addEventListener)(r,e.type,()=>{t(e),i()})}function R(e){j.clear(),"pointerdown"===e.type&&(U.current=e.pointerType),("mousedown"!==e.type||!Y.current||Y.current.dismissOnMouseDown)&&T(e,e=>{if("pointerdown"===e.type)"sloppy"!==h()||"touch"===e.pointerType||!O.select("open")||!y||X(e)||b(e);else b(e)})}function C(e){if(!H.current)return;let n=B.current;if(a(),"intentional"===h()){if("pointercancel"===e.type){n&&o();return}if(!v(e)){if(n)return void o();("function"!=typeof L||L(e))&&(t.clear(),_.current=!0,K())}}}function w(e){if("sloppy"!==h()||!Y.current||X(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-Y.current.startX),r=Math.abs(t.clientY-Y.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(Y.current.dismissOnTouchEnd=!0),i>10&&(b(e),j.clear(),Y.current=null)}function x(e){"sloppy"!==h()||!Y.current||X(e)||(Y.current.dismissOnTouchEnd&&b(e),j.clear(),Y.current=null)}let M=(0,i.ownerDocument)(k),q=(0,r.mergeCleanups)(S&&(0,r.mergeCleanups)((0,n.addEventListener)(M,"keydown",z),(0,n.addEventListener)(M,"compositionstart",function(){e.clear(),V.current=!0}),(0,n.addEventListener)(M,"compositionend",function(){e.start(5*!!u.platform.engine.webkit,()=>{V.current=!1})})),N&&(0,r.mergeCleanups)((0,n.addEventListener)(M,"click",R,!0),(0,n.addEventListener)(M,"pointerdown",R,!0),(0,n.addEventListener)(M,"pointerup",C,!0),(0,n.addEventListener)(M,"pointercancel",C,!0),(0,n.addEventListener)(M,"mousedown",R,!0),(0,n.addEventListener)(M,"mouseup",C,!0),(0,n.addEventListener)(M,"touchstart",function(e){U.current="touch",T(e,E)},!0),(0,n.addEventListener)(M,"touchmove",function(e){T(e,w)},!0),(0,n.addEventListener)(M,"touchend",function(e){T(e,x)},!0)));return()=>{q(),e.clear(),t.clear(),a(),_.current=!1,K()}},[A,k,S,N,L,I,y,D,W,z,K,F,G,X,P,O,j]);let ee=t.useMemo(()=>({onKeyDown:z,onPointerDown:$,onClick:$}),[z,$]),et=t.useMemo(()=>({onKeyDown:z,onPointerDown:Z,onMouseDown:Z,onClickCapture:J,onMouseDownCapture(e){J(),Q(e)},onPointerDownCapture(e){J(),Q(e)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[z,J,Q,Z]);return t.useMemo(()=>y?{reference:ee,floating:et,trigger:ee}:{},[y,ee,et])}},990627,e=>{"use strict";e.s(["PopupTriggerMap",()=>t]);class t{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},301252,e=>{"use strict";e.s(["ReactStore",()=>l]);var t=e.i(271645),n=e.i(714935),r=e.i(334346),i=e.i(667865),o=e.i(146376),s=e.i(956789);class l extends n.Store{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,n){t.useDebugValue(e);let r=this;(0,o.useIsoLayoutEffect)(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,t){let n=this;(0,o.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,o.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,n){t.useDebugValue(e);let r=this,i=void 0!==n;(0,o.useIsoLayoutEffect)(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,n,i,o){return t.useDebugValue(e),(0,r.useStore)(this,this.selectors[e],n,i,o)}useContextCallback(e,n){t.useDebugValue(e);let r=(0,i.useStableCallback)(n??s.NOOP);this.context[e]=r}useStateSetter(e){let n=t.useRef(void 0);return void 0===n.current&&(n.current=t=>{this.set(e,t)}),n.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}},156341,e=>{"use strict";e.s(["FloatingRootStore",()=>o]);var t=e.i(301252),n=e.i(661286),r=e.i(157940);let i={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class o extends t.ReactStore{constructor(e){let{syncOnly:t,nested:r,onOpenChange:o,triggerElements:s,...l}=e;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:(0,n.createEventEmitter)(),nested:r,triggerElements:s},i),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,r.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},708445,e=>{"use strict";e.s(["AnimationFrame",()=>i,"useAnimationFrame",()=>o]);var t=e.i(388940),n=e.i(626300);globalThis.requestAnimationFrame;let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function o(){let e=(0,t.useRefWithInit)(i.create).current;return(0,n.useOnMount)(e.disposeEffect),e}},343084,e=>{"use strict";e.s(["clamp",()=>a,"createCoords",()=>l,"evaluate",()=>c,"floor",()=>s,"getAlignment",()=>f,"getAlignmentAxis",()=>m,"getAlignmentSides",()=>v,"getAxisLength",()=>g,"getExpandedPlacements",()=>b,"getOppositeAlignmentPlacement",()=>E,"getOppositeAxis",()=>p,"getOppositeAxisPlacements",()=>C,"getOppositePlacement",()=>w,"getPaddingObject",()=>x,"getSide",()=>d,"getSideAxis",()=>h,"max",()=>i,"min",()=>r,"placements",()=>n,"rectToClientRect",()=>O,"round",()=>o,"sides",()=>t]);let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e,t,n){return i(e,r(t,n))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return p(h(e))}function v(e,t,n){void 0===n&&(n=!1);let r=f(e),i=m(e),o=g(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=w(s)),[s,w(s)]}function b(e){let t=w(e);return[E(e),t,E(t)]}function E(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],S=["right","left"],T=["top","bottom"],R=["bottom","top"];function C(e,t,n,r){let i=f(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:y;return t?y:S;case"left":case"right":return t?T:R;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(E)))),o}function w(e){let t=d(e);return u[t]+e.slice(t.length)}function x(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function O(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}},621082,e=>{"use strict";e.s(["findNonDisabledListIndex",()=>a,"getGridNavigatedIndex",()=>c,"getMaxListIndex",()=>u,"getMinListIndex",()=>l,"isElementVisible",()=>f,"isIndexOutOfListBounds",()=>s,"isListIndexDisabled",()=>d]);var t=e.i(343084),n=e.i(229315),r=e.i(157940),i=e.i(449055);function o(e,t,n){return Math.floor(e/t)!==n}function s(e,t){return t<0||t>=e.length}function l(e,t){return a(e.current,{disabledIndices:t})}function u(e,t){return a(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function a(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.length-1&&d(e,o,r))return o}function c(e,{event:n,orientation:l,loopFocus:u,onLoop:c,rtl:f,cols:p,disabledIndices:g,minIndex:h,maxIndex:m,prevIndex:v,stopEvent:b=!1}){let E,y=v;if(n.key===i.ARROW_UP?E="up":n.key===i.ARROW_DOWN&&(E="down"),E){let i=[],o=[],l=!1,f=0;{let t=null,n=-1;e.forEach((e,r)=>{if(null==e)return;f+=1;let s=e.closest('[role="row"]');s&&(l=!0),(s!==t||-1===n)&&(t=s,i[n+=1]=[]),i[n].push(r),o[r]=n})}let S=!1,T=0;if(l)for(let e of i){let t=e.length;t>T&&(T=t),t!==p&&(S=!0)}let R=S&&f{if(!S||-1===v)return;let r=o[v];if(null==r)return;let s=i[r].indexOf(v),l="up"===t?-1:1;for(let t=r+l,a=0;a=i.length){if(!u||R)return;if(t=t<0?i.length-1:0,c){let e=Math.min(s,i[t].length-1);t=o[c(n,v,i[t][e]??i[t][0])]??t}}let r=i[t];for(let t=Math.min(s,r.length-1);t>=0;t-=1){let n=r[t];if(!d(e,n,g))return n}}})(E)??(n=>{if(!R||-1===v)return;let r=v%C,i="up"===n?-C:C,o=m-m%C,s=(0,t.floor)(m/C)+1;for(let t=v-r+i,n=0;nm){if(!u)return;t=t<0?o:0}let n=Math.min(t+C-1,m);for(let i=Math.min(t+r,n);i>=t;i-=1)if(!d(e,i,g))return i}})(E);if(void 0!==w)y=w;else if(-1===v)y="up"===E?m:h;else if(y=a(e,{startingIndex:v,amount:C,decrement:"up"===E,disabledIndices:g}),u){if("up"===E&&(v-Ce?r:r-C,c&&(y=c(n,v,y))}"down"===E&&v+C>m&&(y=a(e,{startingIndex:v%C-C,amount:C,disabledIndices:g}),c&&(y=c(n,v,y)))}s(e,y)&&(y=v)}if("both"===l){let l=(0,t.floor)(v/p);n.key===(f?i.ARROW_LEFT:i.ARROW_RIGHT)&&(b&&(0,r.stopEvent)(n),v%p!=p-1?(y=a(e,{startingIndex:v,disabledIndices:g}),u&&o(y,p,l)&&(y=a(e,{startingIndex:v-v%p-1,disabledIndices:g}),c&&(y=c(n,v,y)))):u&&(y=a(e,{startingIndex:v-v%p-1,disabledIndices:g}),c&&(y=c(n,v,y))),o(y,p,l)&&(y=v)),n.key===(f?i.ARROW_RIGHT:i.ARROW_LEFT)&&(b&&(0,r.stopEvent)(n),v%p!=0?(y=a(e,{startingIndex:v,decrement:!0,disabledIndices:g}),u&&o(y,p,l)&&(y=a(e,{startingIndex:v+(p-v%p),decrement:!0,disabledIndices:g}),c&&(y=c(n,v,y)))):u&&(y=a(e,{startingIndex:v+(p-v%p),decrement:!0,disabledIndices:g}),c&&(y=c(n,v,y))),o(y,p,l)&&(y=v));let d=(0,t.floor)(m/p)===l;s(e,y)&&(u&&d?(y=n.key===(f?i.ARROW_RIGHT:i.ARROW_LEFT)?m:a(e,{startingIndex:v-v%p-1,disabledIndices:g}),c&&(y=c(n,v,y))):y=v)}return y}function d(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!!(!f(r)||r.matches(":disabled"))||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function f(e,t=e?(0,n.getComputedStyle)(e):null){var r;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},503596,e=>{"use strict";e.s(["enqueueFocus",()=>r]);var t=e.i(956789);let n=0;function r(e,i={}){let{preventScroll:o=!1,sync:s=!1,shouldFocus:l}=i;function u(){(!l||l())&&e?.focus({preventScroll:o})}if(cancelAnimationFrame(n),s)return u(),t.NOOP;let a=requestAnimationFrame(u);return n=a,()=>{n===a&&(cancelAnimationFrame(a),n=0)}}},385689,e=>{"use strict";e.s(["useClick",()=>c]);var t=e.i(271645),n=e.i(708445),r=e.i(439957),i=e.i(956789),o=e.i(647554),s=e.i(596296),l=e.i(157940),u=e.i(675606),a=e.i(56434);function c(e,d={}){let{enabled:f=!0,event:p="click",toggle:g=!0,ignoreMouse:h=!1,stickIfOpen:m=!0,touchOpenDelay:v=0,reason:b=a.REASONS.triggerPress}=d,E="rootStore"in e?e.rootStore:e,y=E.context.dataRef,S=t.useRef(void 0),T=(0,n.useAnimationFrame)(),R=(0,r.useTimeout)(),C=t.useMemo(()=>{function e(e,t,n,r){let i=(0,u.createChangeEventDetails)(b,t,n);e&&"touch"===r&&v>0?R.start(v,()=>{E.setOpen(!0,i)}):E.setOpen(e,i)}function t(e,t,n){let r=y.current.openEvent,i=E.select("domReferenceElement")!==t;return!!e&&!!i||!e||!g||!!r&&!!m&&!n(r.type)}return{onPointerDown(e){S.current=(0,l.isMouseLikePointerType)(e.pointerType,!0)&&(0,l.isVirtualPointerEvent)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(n){let r=S.current,i=n.nativeEvent,u=E.select("open");if(0!==n.button||"click"===p||(0,l.isMouseLikePointerType)(r,!0)&&h)return;let a=t(u,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,o.getTarget)(i);if((0,s.isTypeableElement)(c))return void e(a,i,c,r);let d=n.currentTarget;T.request(()=>{e(a,i,d,r)})},onClick(n){if("mousedown-only"===p)return;let r=S.current;if("mousedown"===p&&r){S.current=void 0;return}(0,l.isMouseLikePointerType)(r,!0)&&h||e(t(E.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){S.current=void 0}}},[y,p,h,b,E,m,g,T,R,v]);return t.useMemo(()=>f?{reference:C}:i.EMPTY_OBJECT,[f,C])}},594603,e=>{"use strict";function t(e){return null==e?e:"current"in e?e.current:e}e.s(["resolveRef",()=>t])},137584,222640,e=>{"use strict";e.s(["useOpenChangeComplete",()=>l],137584);var t=e.i(271645),n=e.i(667865);e.s(["useAnimationsFinished",()=>s],222640);var r=e.i(174080),i=e.i(708445),o=e.i(594603);function s(e,t=!1){let l=(0,i.useAnimationFrame)();return(0,n.useStableCallback)((n,i=null)=>{l.cancel();let s=(0,o.resolveRef)(e);if(null==s)return;let u=()=>{r.flushSync(n)};if("function"!=typeof s.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function a(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||u()},()=>{if(!i?.aborted){if(s.getAnimations().some(e=>e.pending||"finished"!==e.playState))return void a();u()}})}if(t){let e="data-starting-style";if(!s.hasAttribute(e))return void l.request(a);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),a())});return t.observe(s,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}l.request(a)})}function l(e){let{enabled:r=!0,open:i,ref:o,onComplete:l}=e,u=(0,n.useStableCallback)(l),a=s(o,i);t.useEffect(()=>{if(!r)return;let e=new AbortController;return a(u,e.signal),()=>{e.abort()}},[r,i,u,a])}},223910,e=>{"use strict";e.s(["useTransitionStatus",()=>i]);var t=e.i(271645),n=e.i(146376),r=e.i(708445);function i(e,o=!1,s=!1){let[l,u]=t.useState(e&&o?"idle":void 0),[a,c]=t.useState(e);return e&&!a&&(c(!0),u("starting")),e||!a||"ending"===l||s||u("ending"),e||a||"ending"!==l||u(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&a&&"ending"!==l&&s){let e=r.AnimationFrame.request(()=>{u("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,a,l,s]),(0,n.useIsoLayoutEffect)(()=>{if(!e||o)return;let t=r.AnimationFrame.request(()=>{u(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[o,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!o)return;e&&a&&"idle"!==l&&u("starting");let t=r.AnimationFrame.request(()=>{u("idle")});return()=>{r.AnimationFrame.cancel(t)}},[o,e,a,l]),{mounted:a,setMounted:c,transitionStatus:l}}},32199,427803,606039,e=>{"use strict";e.s(["useOpenInteractionType",()=>u,"useOpenMethodTriggerProps",()=>l],32199);var t=e.i(271645),n=e.i(667865);function r(e){let n=t.useRef(""),r=t.useCallback(t=>{t.defaultPrevented||(n.current=t.pointerType,e(t,t.pointerType))},[e]);return{onClick:t.useCallback(t=>{if(0===t.detail)return void e(t,"keyboard");"pointerType"in t?e(t,t.pointerType):e(t,n.current),n.current=""},[e]),onPointerDown:r}}e.s(["useEnhancedClickHandler",()=>r],427803);var i=e.i(328744);e.s(["useValueChanged",()=>s],606039);var o=e.i(146376);function s(e,r){let i=t.useRef(e),s=(0,n.useStableCallback)(r);(0,o.useIsoLayoutEffect)(()=>{i.current!==e&&s(i.current),i.current=e},[e,s])}function l(e,o){let{onClick:s,onPointerDown:l}=r((0,n.useStableCallback)((t,n)=>{("function"==typeof e?e():e)||o(n||(i.platform.os.ios?"touch":""))}));return t.useMemo(()=>({onClick:s,onPointerDown:l}),[s,l])}function u(e){let[n,r]=t.useState(null),i=l(e,r);return s(e,t=>{t&&!e&&r(null)}),t.useMemo(()=>({openMethod:n,triggerProps:i}),[n,i])}},350527,e=>{"use strict";e.s(["useSyncedFloatingRootContext",()=>o]);var t=e.i(271645),n=e.i(146376),r=e.i(229315),i=e.i(156341);function o(e){let{popupStore:o,treatPopupAsFloatingElement:s=!1,floatingRootContext:l,floatingId:u,nested:a,onOpenChange:c}=e,d=o.useState("open"),f=o.useState("activeTriggerElement"),p=o.useState(s?"popupElement":"positionerElement"),g=o.context.triggerElements,h=t.useRef(null);void 0===l&&null===h.current&&(h.current=new i.FloatingRootStore({open:d,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:g,onOpenChange:c,floatingId:u,syncOnly:!0,nested:a}));let m=l??h.current;return o.useSyncedValue("floatingId",u),(0,n.useIsoLayoutEffect)(()=>{let e={open:d,floatingId:u,referenceElement:f,floatingElement:p};(0,r.isElement)(f)&&(e.domReferenceElement=f),m.state.positionReference===m.state.referenceElement&&(e.positionReference=f),m.update(e)},[d,u,f,p,m]),m.context.onOpenChange=c,m.context.nested=a,m}},264111,e=>{"use strict";e.s(["FOCUSABLE_POPUP_PROPS",()=>h,"PopupHandleAttachment",()=>b,"applyPopupOpenChange",()=>T,"attachPreventUnmountOnClose",()=>S,"createDefaultInitialFocus",()=>m,"setPopupOpenState",()=>y,"useImplicitActiveTrigger",()=>C,"useOpenStateTransitions",()=>w,"usePopupInteractionProps",()=>x,"usePopupRootStore",()=>v,"usePopupRootSync",()=>O,"useTriggerDataForwarding",()=>R,"useTriggerRegistration",()=>E]);var t=e.i(271645),n=e.i(174080),r=e.i(956789),i=e.i(883977),o=e.i(667865),s=e.i(146376),l=e.i(388940),u=e.i(449055),a=e.i(46420),c=e.i(350527),d=e.i(223910),f=e.i(137584),p=e.i(675606),g=e.i(56434);let h={tabIndex:-1,[u.FOCUSABLE_ATTRIBUTE]:""};function m(e){return t=>"touch"!==t||e.current}function v(e,t=!1){let n=(0,i.useId)(),r=null!=(0,a.useFloatingParentNodeId)(),o=(0,l.useRefWithInit)(()=>e(n,r)).current;return(0,c.useSyncedFloatingRootContext)({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o}function b({handle:e,store:t}){return(0,s.useIsoLayoutEffect)(()=>e.attachStore(t),[e,t]),null}function E(e,n){let r=t.useRef(null),i=t.useRef(null);return t.useCallback(t=>{if(void 0===e)return;let o=!1;if(null!==r.current){let e=r.current,t=i.current,s=n.context.triggerElements.getById(e);t&&s===t&&(n.context.triggerElements.delete(e),o=!0),r.current=null,i.current=null}if(null!==t&&(r.current=e,i.current=t,n.context.triggerElements.add(e,t),o=!0),o){let e=n.context.triggerElements.size;n.select("open")&&n.state.triggerCount!==e&&n.set("triggerCount",e)}},[n,e])}function y(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function S(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function T(e,t,r,i={}){let o=r.reason,s=o===g.REASONS.triggerHover,l=t&&o===g.REASONS.triggerFocus,u=!t&&(o===g.REASONS.triggerPress||o===g.REASONS.escapeKey),a=S(r);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;i.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let c=()=>{let n={...i.extraState,open:t};l?n.instantType="focus":u?n.instantType="dismiss":s&&(n.instantType=void 0),y(n,t,r.trigger,a()),e.update(n)};s?n.flushSync(c):c()}function R(e,n,r,i){let l=r.useState("isMountedByTrigger",e),u=E(e,r),a=(0,o.useStableCallback)(t=>{let n=r.select("open"),o=r.select("activeTriggerId");if(o===e)return void r.update({activeTriggerElement:t,...n?i:null});null==o&&n&&r.update({activeTriggerId:e,activeTriggerElement:t,...i})}),c=t.useCallback(e=>{u(e),e&&a(e)},[u,a]);return(0,s.useIsoLayoutEffect)(()=>{l&&r.update({activeTriggerElement:n.current,...i})},[l,r,n,...Object.values(i)]),{registerTrigger:c,isMountedByThisTrigger:l}}function C(e,n={}){let{closeOnActiveTriggerUnmount:r=!1}=n,i=t.useRef(null),o=e.useState("open"),l=e.useState("triggerCount"),u=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");(0,s.useIsoLayoutEffect)(()=>{if(!o){i.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,n={};e.state.triggerCount!==t&&(n.triggerCount=t);let s=e.select("activeTriggerId"),l=null;if(s){let t=e.context.triggerElements.getById(s);if(t)i.current=s,t!==e.state.activeTriggerElement&&(n.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){n.activeTriggerId=t,n.activeTriggerElement=r,i.current=t;break}void 0===n.activeTriggerId&&(i.current===s?l=s:i.current=null)}}else i.current=null;if(!l&&!s&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;n.activeTriggerId=e,n.activeTriggerElement=r,i.current=e}}(void 0!==n.triggerCount||void 0!==n.activeTriggerId||void 0!==n.activeTriggerElement)&&e.update(n),l&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===l&&!e.context.triggerElements.getById(l)){let t=(0,p.createChangeEventDetails)(g.REASONS.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,l,u,a,r])}function w(e,t,n){let{mounted:r,setMounted:i,transitionStatus:s}=(0,d.useTransitionStatus)(e),l=t.useState("preventUnmountingOnClose"),u=!e&&l;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:u});let a=(0,o.useStableCallback)(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,f.useOpenChangeComplete)({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:s}}function x(e,t){e.useSyncedValues(t),(0,s.useIsoLayoutEffect)(()=>()=>{e.update({activeTriggerProps:r.EMPTY_OBJECT,inactiveTriggerProps:r.EMPTY_OBJECT,popupProps:r.EMPTY_OBJECT})},[e])}function O(e,t){(0,s.useIsoLayoutEffect)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,s.useIsoLayoutEffect)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])}},838452,690325,e=>{"use strict";e.s(["CompositeRootContext",()=>r,"useCompositeRootContext",()=>i],838452),e.i(247167);var t=e.i(733332),n=e.i(271645);let r=n.createContext(void 0);function i(e=!1){let o=n.useContext(r);if(void 0===o&&!e)throw Error((0,t.default)(16));return o}function o(e){let{focusableWhenDisabled:t,disabled:r,composite:i=!1,tabIndex:o=0,isNativeButton:s}=e,l=i&&!1!==t,u=i&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!s&&r&&(e.tabIndex=t?o:-1)),(s&&(t||l)||!s&&r)&&(e["aria-disabled"]=r),s&&(!t||u)&&(e.disabled=r),e},[i,r,t,l,u,s,o])}}e.s(["useFocusableWhenDisabled",()=>o],690325)},333848,e=>{"use strict";e.s(["ownerWindow",()=>t.getWindow]);var t=e.i(229315)},540886,64350,e=>{"use strict";e.s(["useButton",()=>c],540886);var t=e.i(271645),n=e.i(229315),r=e.i(667865),i=e.i(146376),o=e.i(176782),s=e.i(838452),l=e.i(690325);e.s(["dispatchClickWithModifiers",()=>a],64350);var u=e.i(333848);function a(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,u.ownerWindow)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function c(e={}){let{disabled:u=!1,focusableWhenDisabled:f,tabIndex:p=0,native:g=!0,composite:h}=e,m=t.useRef(null),v=(0,s.useCompositeRootContext)(!0),b=h??void 0!==v,{props:E}=(0,l.useFocusableWhenDisabled)({focusableWhenDisabled:f,disabled:u,composite:b,tabIndex:p,isNativeButton:g}),y=t.useCallback(()=>{let e=m.current;d(e)&&b&&u&&void 0===E.disabled&&e.disabled&&(e.disabled=!1)},[u,E.disabled,b]);return(0,i.useIsoLayoutEffect)(y,[y]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:s,onPointerDown:l,...c}=e;return(0,o.mergeProps)({onClick(e){if(u)return void e.preventDefault();t?.(e)},onMouseDown(e){u||r?.(e)},onKeyDown(e){var t;if(u||((0,o.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,l=d(i),c=!g&&(t=i,(0,n.isHTMLElement)(t)&&"A"===t.tagName&&!!t.href),f=r&&(g?l:!c),p="Enter"===e.key,h=" "===e.key,m=i.getAttribute("role"),v=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(r&&b&&h){if(e.defaultPrevented&&v)return;e.preventDefault(),(!g||l)&&(e.preventBaseUIHandler(),a(i,e));return}if(!f||g||!h&&!p){r&&c&&h&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),p&&(e.preventBaseUIHandler(),a(i,e)))},onKeyUp(e){if(!u){if((0,o.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&g&&b&&d(e.currentTarget)&&" "===e.key)return void e.preventDefault();!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||g||b||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),a(e.currentTarget,e)))}},onPointerDown(e){if(u)return void e.preventDefault();l?.(e)}},g?{type:"button"}:{role:"button"},E,c)},[u,E,b,g]),buttonRef:(0,r.useStableCallback)(e=>{m.current=e,y()})}}function d(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}},405005,209407,e=>{"use strict";e.s(["CommonPopupDataAttributes",()=>o,"popupStateMapping",()=>p,"popupTransitionStateMapping",()=>g,"pressableTriggerOpenStateMapping",()=>f,"triggerOpenStateMapping",()=>d],405005),e.s(["TransitionStatusDataAttributes",()=>t,"transitionStatusMapping",()=>i],209407);let t=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({}),n={"data-starting-style":""},r={"data-ending-style":""},i={transitionStatus:e=>"starting"===e?n:"ending"===e?r:null},o=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=t.startingStyle]="startingStyle",e[e.endingStyle=t.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e}({}),s={"data-popup-open":""},l={"data-popup-open":"","data-pressed":""},u={"data-open":""},a={"data-closed":""},c={"data-anchor-hidden":""},d={open:e=>e?s:null},f={open:e=>e?l:null},p={open:e=>e?u:a,anchorHidden:e=>e?c:null},g={...p,...i}},152535,e=>{"use strict";e.s(["FocusGuard",()=>s]);var t=e.i(271645),n=e.i(146376),r=e.i(328744),i=e.i(502077),o=e.i(843476);let s=t.forwardRef(function(e,s){let[l,u]=t.useState();return(0,n.useIsoLayoutEffect)(()=>{r.platform.screenReader.voiceOver&&r.platform.engine.webkit&&u("button")},[]),(0,o.jsx)("span",{...e,ref:s,style:i.visuallyHidden,"aria-hidden":!l||void 0,...{tabIndex:0,role:l},"data-base-ui-focus-guard":""})})},383976,e=>{"use strict";e.s(["disableFocusInside",()=>S,"enableFocusInside",()=>T,"focusable",()=>f,"getNextTabbable",()=>h,"getPreviousTabbable",()=>m,"getTabbableAfterElement",()=>b,"getTabbableBeforeElement",()=>E,"isOutsideEvent",()=>y,"isTabbable",()=>d,"tabbable",()=>p]);var t=e.i(229315),n=e.i(108868),r=e.i(647554),i=e.i(621082);function o(e){for(let n of Array.from(e.children))if("summary"===(0,t.getNodeName)(n))return n;return null}function s(e){let n=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&o(e.parentElement)===e)&&("details"!==n||null==o(e))&&("input"!==n||"hidden"!==e.type)}function l(e){if(!s(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,t.isShadowRoot)(r)?r.host:null}(n)){let s=n!==e,l="slot"===(0,t.getNodeName)(n);if(n.hasAttribute("inert")||s&&"details"===(0,t.getNodeName)(n)&&!n.open&&!function(e,t){let n=o(t);return!!n&&(e===n||(0,r.contains)(n,e))}(e,n)||n.hasAttribute("hidden")||!l&&!function(e,n){let r=(0,t.getComputedStyle)(e);return n?"none"!==r.display:(0,i.isElementVisible)(e,r)}(n,s))return!1}return!0}function u(e){let n=e.tabIndex;if(n<0){let n=(0,t.getNodeName)(e);if("details"===n||"audio"===n||"video"===n||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return n}function a(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function d(e){return l(e)&&u(e)>=0}function f(e){let t=[];return!function e(t,n){c(t).forEach(t=>{s(t)&&n.push(t),e(t,n)})}(e,t),t.filter(l)}function p(e){let t=f(e);return t.filter(e=>u(e)>=0&&function(e,t){let n=a(e);if(!n)return!0;let r=t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function g(e,t){let i=p(e),o=i.length;if(0===o)return;let s=(0,r.activeElement)((0,n.ownerDocument)(e)),l=i.indexOf(s);return i[-1===l?1===t?0:o-1:l+t]}function h(e){return g((0,n.ownerDocument)(e).body,1)||e}function m(e){return g((0,n.ownerDocument)(e).body,-1)||e}function v(e,t){if(!e)return null;let r=p((0,n.ownerDocument)(e).body),i=r.length;if(0===i)return null;let o=r.indexOf(e);return -1===o?null:r[(o+t+i)%i]}function b(e){return v(e,1)}function E(e){return v(e,-1)}function y(e,t){let n=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,r.contains)(n,i)}function S(e){p(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function T(e){let n=[];!function e(n,r,i){c(n).forEach(n=>{(0,t.isHTMLElement)(n)&&n.matches(r)&&i.push(n),e(n,r,i)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},726674,638396,e=>{"use strict";e.s(["FloatingPortal",()=>k,"useFloatingPortalNode",()=>I,"usePortalContext",()=>x],726674);var t=e.i(271645),n=e.i(174080),r=e.i(229315),i=e.i(574735),o=e.i(365420),s=e.i(883977),l=e.i(146376),u=e.i(667865),a=e.i(956789),c=e.i(152535),d=e.i(383976),f=e.i(675606),p=e.i(56434),g=e.i(451321),h=e.i(552245);e.s(["BASE_UI_SWIPE_IGNORE_SELECTOR",()=>y,"CLICK_TRIGGER_IDENTIFIER",()=>E,"DISABLED_TRANSITIONS_STYLE",()=>b,"DROPDOWN_COLLISION_AVOIDANCE",()=>S,"PATIENT_CLICK_THRESHOLD",()=>v,"POPUP_COLLISION_AVOIDANCE",()=>T,"TYPEAHEAD_RESET_MS",()=>m,"ownerVisuallyHidden",()=>R],638396);let m=500,v=500,b={style:{transition:"none"}},E="data-base-ui-click-trigger",y="[data-base-ui-swipe-ignore]",S={fallbackAxisSide:"none"},T={fallbackAxisSide:"end"},R={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var C=e.i(843476);let w=t.createContext(null),x=()=>t.useContext(w),O=(0,g.createAttribute)("portal");function I(e={}){let{ref:i,container:o,componentProps:c=a.EMPTY_OBJECT,elementProps:d}=e,f=(0,s.useId)(),p=x(),g=p?.portalNode,[m,v]=t.useState(null),[b,E]=t.useState(null),y=(0,u.useStableCallback)(e=>{null!==e&&E(e)}),S=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(null===o){S.current&&(S.current=null,E(null),v(null));return}let e=(o&&((0,r.isNode)(o)?o:o.current))??g??document.body;if(null==e){S.current&&(S.current=null,E(null),v(null));return}S.current!==e&&(S.current=e,E(null),v(e))},[o,g]);let T=(0,h.useRenderElement)("div",c,{ref:[i,y],props:[{id:f,[O]:""},d]}),R=m&&T?n.createPortal(T,m):null;return{node:b,nodeId:t.isValidElement(T)?T.props.id:void 0,subtree:R}}let k=t.forwardRef(function(e,r){let{render:s,className:u,style:a,children:g,container:h,...m}=e,{node:v,nodeId:b,subtree:E}=I({container:h,ref:r,componentProps:e,elementProps:m}),y=t.useRef(null),S=t.useRef(null),T=t.useRef(null),x=t.useRef(null),[O,k]=t.useState(null),A=t.useRef(!1),P=O?.modal,M=O?.open,L=!!O&&!O.modal&&O.open&&!!v;t.useEffect(()=>{if(v&&!P)return(0,o.mergeCleanups)((0,i.addEventListener)(v,"focusin",e,!0),(0,i.addEventListener)(v,"focusout",e,!0));function e(e){v&&e.relatedTarget&&(0,d.isOutsideEvent)(e)&&("focusin"===e.type?A.current&&((0,d.enableFocusInside)(v),A.current=!1):((0,d.disableFocusInside)(v),A.current=!0))}},[v,P]),(0,l.useIsoLayoutEffect)(()=>{v&&!0===M&&A.current&&((0,d.enableFocusInside)(v),A.current=!1)},[M,v]);let N=t.useMemo(()=>({beforeOutsideRef:y,afterOutsideRef:S,beforeInsideRef:T,afterInsideRef:x,portalNode:v,setFocusManagerState:k}),[v]);return(0,C.jsxs)(t.Fragment,{children:[E,(0,C.jsxs)(w.Provider,{value:N,children:[L&&v&&(0,C.jsx)(c.FocusGuard,{"data-type":"outside",ref:y,onFocus:e=>{if((0,d.isOutsideEvent)(e,v))T.current?.focus();else{let e=O?O.domReference:null,t=(0,d.getPreviousTabbable)(e);t?.focus()}}}),L&&v&&(0,C.jsx)("span",{"aria-owns":b,style:R}),v&&n.createPortal(g,v),L&&v&&(0,C.jsx)(c.FocusGuard,{"data-type":"outside",ref:S,onFocus:e=>{if((0,d.isOutsideEvent)(e,v))x.current?.focus();else{let t=O?O.domReference:null,n=(0,d.getNextTabbable)(t);n?.focus(),O?.closeOnFocusOut&&O?.onOpenChange(!1,(0,f.createChangeEventDetails)(p.REASONS.focusOut,e.nativeEvent))}}})]})]})})},144394,e=>{"use strict";e.s(["inertValue",()=>n]);var t=e.i(958321);function n(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}},426,145484,e=>{"use strict";e.s(["InternalBackdrop",()=>r],426),e.i(247167);var t=e.i(271645),n=e.i(843476);let r=t.forwardRef(function(e,t){let r,{cutout:i,...o}=e;if(i){let e=i.getBoundingClientRect();r=`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,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["useScrollLock",()=>E],145484);var i=e.i(229315),o=e.i(574735),s=e.i(328744),l=e.i(108868),u=e.i(333848),a=e.i(146376),c=e.i(439957),d=e.i(708445);let f={},p={},g="";function h(e,t){return(0,i.isOverflowElement)(e)?e:t}function m(e,t,n){return/hidden|clip/.test(e.getComputedStyle(h(t,n)).overflowY)}class v{lockCount=0;restore=null;timeoutLock=c.Timeout.create();timeoutUnlock=c.Timeout.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){if(0===this.lockCount||null!==this.restore)return;let t=(0,l.ownerDocument)(e),n=t.documentElement,r=t.body,i=(0,u.ownerWindow)(n);if(m(i,n,r)){let t=new i.MutationObserver(()=>{m(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),o={attributes:!0};t.observe(n,o),t.observe(r,o),this.restore=()=>t.disconnect();return}let a=s.platform.os.ios||!function(e){if("undefined"==typeof document)return!1;let t=(0,l.ownerDocument)(e);return(0,u.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=a?function(e){let t=(0,l.ownerDocument)(e),n=h(t.documentElement,t.body),r={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,r)}}(e):function(e){let t=(0,l.ownerDocument)(e),n=t.documentElement,r=t.body,i=(0,u.ownerWindow)(n),a=0,c=0,m=!1,v=d.AnimationFrame.create();if(s.platform.engine.webkit&&(i.visualViewport?.scale??1)!==1)return()=>{};function b(){let t=i.getComputedStyle(n),o=i.getComputedStyle(r),s=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";a=n.scrollTop,c=n.scrollLeft,f={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},g=n.style.scrollBehavior,p={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,v="scroll"===t.overflowY||"scroll"===o.overflowY,b="scroll"===t.overflowX||"scroll"===o.overflowX,E=Math.max(0,i.innerWidth-r.clientWidth),y=Math.max(0,i.innerHeight-r.clientHeight),S=parseFloat(o.marginTop)+parseFloat(o.marginBottom),T=parseFloat(o.marginLeft)+parseFloat(o.marginRight),R=h(n,r);if(m=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,l.ownerDocument)(e),n=t.documentElement,r=h(n,t.body),i=r.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",r.style.overflowY="scroll";let s=r.offsetWidth;r.style.overflowY="hidden";let u=r.offsetWidth;return r.style.overflowY=i,n.style.scrollbarGutter=o,s===u}(e)){n.style.scrollbarGutter=s,R.style.overflowY="hidden",R.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:s,overflowY:"hidden",overflowX:"hidden"}),(u||v)&&(n.style.overflowY="scroll"),(d||b)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:S||y?`calc(100dvh - ${S+y}px)`:"100dvh",width:T||E?`calc(100vw - ${T+E}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=a,r.scrollLeft=c,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function E(){Object.assign(n.style,f),Object.assign(r.style,p),m||(n.scrollTop=a,n.scrollLeft=c,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=g)}b();let y=(0,o.addEventListener)(i,"resize",function(){E(),v.request(b)});return()=>{v.cancel(),E(),"function"==typeof i.removeEventListener&&y()}}(e)}}let b=new v;function E(e=!0,t=null){(0,a.useIsoLayoutEffect)(()=>{if(e)return b.acquire(t)},[e,t])}},944659,e=>{"use strict";e.s(["markOthers",()=>d]);var t=e.i(229315),n=e.i(108868);let r={inert:new WeakMap,"aria-hidden":new WeakMap},i="data-base-ui-inert",o={inert:new WeakSet,"aria-hidden":new WeakSet},s=new WeakMap,l=0,u=(e,n)=>n.map(n=>{if(e.contains(n))return n;let r=function e(n){return n?(0,t.isShadowRoot)(n)?n.host:e(n.parentNode):null}(n);return e.contains(r)?r:null}).filter(e=>null!=e),a=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},c=(e,n,r)=>{let i=[],o=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,t.getNodeName)(e)&&(n.has(e)?o(e):i.push(e))})};return o(e),i};function d(e,t={}){let{ariaHidden:f=!1,inert:p=!1,mark:g=!0}=t,h=(0,n.ownerDocument)(e[0]).body;return function(e,t,n,d,{mark:f=!0}){let p=null;d?p="inert":n&&(p="aria-hidden");let g=null,h=null,m=u(t,e),v=f?c(t,a(m),new Set(m)):[],b=[],E=[];if(p){let e=r[p],n=o[p];h=n,g=e;let i=u(t,Array.from(t.querySelectorAll("[aria-live]"))),s=m.concat(i);c(t,a(s),new Set(s)).forEach(t=>{let r=t.getAttribute(p),i=null!==r&&"false"!==r,o=(e.get(t)||0)+1;e.set(t,o),b.push(t),1===o&&i&&n.add(t),i||t.setAttribute(p,"inert"===p?"":"true")})}return f&&v.forEach(e=>{let t=(s.get(e)||0)+1;s.set(e,t),E.push(e),1===t&&e.setAttribute(i,"")}),l+=1,()=>{g&&b.forEach(e=>{let t=(g.get(e)||0)-1;g.set(e,t),t||(!h?.has(e)&&p&&e.removeAttribute(p),h?.delete(e))}),f&&E.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||e.removeAttribute(i)}),(l-=1)||(r.inert=new WeakMap,r["aria-hidden"]=new WeakMap,o.inert=new WeakSet,o["aria-hidden"]=new WeakSet,s=new WeakMap)}}(e,h,f,p,{mark:g})}},61487,e=>{"use strict";e.s(["FloatingFocusManager",()=>D]);var t=e.i(271645),n=e.i(229315),r=e.i(574735),i=e.i(365420),o=e.i(828918),s=e.i(446265),l=e.i(667865),u=e.i(146376),a=e.i(439957),c=e.i(328744),d=e.i(708445),f=e.i(108868),p=e.i(333848),g=e.i(152535),h=e.i(647554),m=e.i(596296),v=e.i(157940),b=e.i(383976),E=e.i(958408),y=e.i(621082),S=e.i(675606),T=e.i(56434),R=e.i(451321),C=e.i(503596),w=e.i(944659),x=e.i(726674),O=e.i(46420),I=e.i(638396),k=e.i(594603),A=e.i(843476);let P=[];function M(){P=P.filter(e=>e.deref()?.isConnected)}function L(e){M(),e&&"body"!==(0,n.getNodeName)(e)&&(P.push(new WeakRef(e)),P.length>20&&(P=P.slice(-20)))}function N(){return M(),P[P.length-1]?.deref()}function F(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,b.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function D(e){let{context:P,children:D,disabled:W=!1,initialFocus:H=!0,returnFocus:B=!0,restoreFocus:_=!1,modal:V=!0,closeOnFocusOut:U=!0,openInteractionType:Y="",nextFocusableElement:j,previousFocusableElement:q,beforeContentFocusGuardRef:K,externalTree:G,getInsideElements:X}=e,$="rootStore"in P?P.rootStore:P,z=$.useState("open"),J=$.useState("domReferenceElement"),Q=$.useState("floatingElement"),{events:Z,dataRef:ee}=$.context,et=(0,l.useStableCallback)(()=>ee.current.floatingContext?.nodeId),en=(0,m.isTypeableCombobox)(J)&&!1===H,er=(0,s.useValueAsRef)(H),ei=(0,s.useValueAsRef)(B),eo=(0,s.useValueAsRef)(Y),es=(0,s.useValueAsRef)(z),el=(0,O.useFloatingTree)(G),eu=(0,x.usePortalContext)(),ea=t.useRef(!1),ec=t.useRef(!1),ed=t.useRef(!1),ef=t.useRef(null),ep=t.useRef(""),eg=t.useRef(""),eh=t.useRef(null),em=t.useRef(null),ev=(0,o.useMergedRefs)(eh,K,eu?.beforeInsideRef),eb=(0,o.useMergedRefs)(em,eu?.afterInsideRef),eE=(0,a.useTimeout)(),ey=(0,a.useTimeout)(),eS=(0,d.useAnimationFrame)(),eT=null!=eu,eR=(0,m.getFloatingFocusElement)(Q),eC=(0,l.useStableCallback)((e=eR)=>e?(0,b.tabbable)(e):[]),ew=(0,l.useStableCallback)(()=>X?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(W||!V)return;let e=(0,f.ownerDocument)(eR);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,h.contains)(eR,(0,h.activeElement)((0,f.ownerDocument)(eR)))&&0===eC().length&&!en&&(0,v.stopEvent)(e)})},[W,eR,V,en,eC]),t.useEffect(()=>{if(W||!z)return;let e=(0,f.ownerDocument)(eR);function t(){ed.current=!1}return(0,i.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,h.getTarget)(e),n=ew();ed.current=!((0,h.contains)(Q,t)||(0,h.contains)(J,t)||(0,h.contains)(eu?.portalNode,t)||n.some(e=>e===t||(0,h.contains)(e,t))),eg.current=e.pointerType||"keyboard",t?.closest(`[${I.CLICK_TRIGGER_IDENTIFIER}]`)&&(ec.current=!0,ey.start(0,()=>{ec.current=!1}))},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){eg.current="keyboard"},!0),t)},[W,Q,J,eR,z,eu,ey,ew]),t.useEffect(()=>{if(W||!U)return;let e=(0,f.ownerDocument)(eR);function t(t){let r=t.relatedTarget,i=t.currentTarget,o=(0,h.getTarget)(t);V&&null==r&&null!=o&&(0,h.contains)(Q,o)&&L(o),queueMicrotask(()=>{let s=et(),l=$.context.triggerElements,u=ew(),a=r?.hasAttribute((0,R.createAttribute)("focus-guard"))&&[eh.current,em.current,eu?.beforeInsideRef.current,eu?.afterInsideRef.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,(0,k.resolveRef)(q),(0,k.resolveRef)(j)].includes(r),c=!((0,h.contains)(J,r)||(0,h.contains)(Q,r)||(0,h.contains)(r,Q)||(0,h.contains)(eu?.portalNode,r)||u.some(e=>e===r||(0,h.contains)(e,r))||l.hasMatchingElement(e=>(0,h.contains)(e,r))||a||el&&((0,E.getNodeChildren)(el.nodesRef.current,s).find(e=>(0,h.contains)(e.context?.elements.floating,r)||(0,h.contains)(e.context?.elements.domReference,r))||(0,E.getNodeAncestors)(el.nodesRef.current,s).find(e=>[e.context?.elements.floating,(0,m.getFloatingFocusElement)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===J&&eR&&F(eR),_&&i!==J&&!(0,y.isElementVisible)(o)&&(0,h.activeElement)(e)===e.body){if((0,n.isHTMLElement)(eR)&&(eR.focus(),"popup"===_))return void eS.request(()=>{eR.focus()});let e=eC(),t=ef.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eR;(0,n.isHTMLElement)(r)&&r.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!V)&&r&&c&&!ec.current&&(en||r!==N())&&(ea.current=!0,$.setOpen(!1,(0,S.createChangeEventDetails)(T.REASONS.focusOut,t)))})}let o=(0,n.isHTMLElement)(J)?J:null;if(Q||o)return(0,i.mergeCleanups)(o&&(0,r.addEventListener)(o,"focusout",t),o&&(0,r.addEventListener)(o,"pointerdown",function(){ec.current=!0,ey.start(0,()=>{ec.current=!1})}),Q&&(0,r.addEventListener)(Q,"focusin",function(e){let t=(0,h.getTarget)(e);(0,b.isTabbable)(t)&&(ef.current=t)}),Q&&(0,r.addEventListener)(Q,"focusout",t),Q&&eu&&(0,r.addEventListener)(Q,"focusout",function(){ed.current||(ee.current.insideReactTree=!0,eE.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[W,J,Q,eR,V,el,eu,$,U,_,eC,en,et,ee,eE,ey,eS,j,q,ew]),t.useEffect(()=>{if(W||!Q||!z)return;let e=Array.from(eu?.portalNode?.querySelectorAll(`[${(0,R.createAttribute)("portal")}]`)||[]),t=el?(0,E.getNodeAncestors)(el.nodesRef.current,et()):[],n=t.find(e=>(0,m.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=[Q,...e,eh.current,em.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,...ew(),n,(0,k.resolveRef)(q),(0,k.resolveRef)(j),en?J:null].filter(e=>null!=e),i=(0,w.markOthers)(r,{ariaHidden:V||en,mark:!1}),o=[Q,...e].filter(e=>null!=e),s=(0,w.markOthers)(o);return()=>{s(),i()}},[z,W,J,Q,V,eu,en,el,et,j,q,ew]),(0,u.useIsoLayoutEffect)(()=>{if(!z||W||!(0,n.isHTMLElement)(eR))return;ep.current="",eg.current="";let e=(0,f.ownerDocument)(eR),t=(0,h.activeElement)(e);queueMicrotask(()=>{let n,r=er.current,i="function"==typeof r?r(eo.current||""):r;if(void 0===i||!1===i||(0,h.contains)(eR,t))return;let o=null,s=()=>(null==o&&(o=eC(eR)),o[0]||eR);n=(n=!0===i||null===i?s():(0,k.resolveRef)(i))||s();let l=(0,h.contains)(eR,(0,h.activeElement)(e));(0,C.enqueueFocus)(n,{preventScroll:n===eR,shouldFocus(){if(!es.current)return!1;if(l)return!0;let t=(0,h.activeElement)(e);return!(t!==n&&(0,h.contains)(eR,t))}})})},[W,z,eR,eC,er,eo,es]),(0,u.useIsoLayoutEffect)(()=>{if(W||!eR)return;let e=(0,f.ownerDocument)(eR),t=(0,h.activeElement)(e),r=null==eo.current;function i(e){if(e.open||(ep.current=function(e,t){let n=(0,p.ownerWindow)((0,h.getTarget)(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,eg.current)),e.reason===T.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ea.current=!0),e.reason===T.REASONS.outsidePress)if(e.nested)ea.current=!1;else if((0,v.isVirtualClick)(e.nativeEvent)||(0,v.isVirtualPointerEvent)(e.nativeEvent))ea.current=!1;else{let e=!1;(0,f.ownerDocument)(eR).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ea.current=!1:ea.current=!0}}return L(t),Z.on("openchange",i),()=>{Z.off("openchange",i);let o=(0,h.activeElement)(e),s=ew(),l=(0,h.contains)(Q,o)||s.some(e=>e===o||(0,h.contains)(e,o))||el&&(0,E.getNodeChildren)(el.nodesRef.current,et(),!1).some(e=>(0,h.contains)(e.context?.elements.floating,o)),u=ei.current,a=ep.current,c=function(e){let i=ei.current,o="function"==typeof i?i(e):i;if(void 0===o||!1===o)return null;null===o&&(o=!0);let s=J?.isConnected?J:null,l=t?.isConnected&&"body"!==(0,n.getNodeName)(t)?t:null,u=r?l||s:s||l;return(u||(u=N()||null),"boolean"==typeof o)?u:(0,k.resolveRef)(o)||u||null}(a);queueMicrotask(()=>{let t=c?(0,b.isTabbable)(c)?c:(0,b.tabbable)(c)[0]||c:null;if(u&&!ea.current&&(0,n.isHTMLElement)(t)&&("boolean"!=typeof u||t===o||o===e.body||l)){let e={preventScroll:!0};"keyboard"===a&&(e.focusVisible=!0),t.focus(e)}ea.current=!1})}},[W,Q,eR,ei,eo,Z,el,J,et,ew]),(0,u.useIsoLayoutEffect)(()=>{if(!c.platform.engine.webkit||z||!Q)return;let e=(0,h.activeElement)((0,f.ownerDocument)(Q));(0,n.isHTMLElement)(e)&&(0,m.isTypeableElement)(e)&&(0,h.contains)(Q,e)&&e.blur()},[z,Q]),(0,u.useIsoLayoutEffect)(()=>{if(!W&&eu)return eu.setFocusManagerState({modal:V,closeOnFocusOut:U,open:z,onOpenChange:$.setOpen,domReference:J}),()=>{eu.setFocusManagerState(null)}},[W,eu,V,z,$,U,J]),(0,u.useIsoLayoutEffect)(()=>{if(!W&&eR)return F(eR),()=>{queueMicrotask(M)}},[W,eR]);let ex=!W&&(!V||!en)&&(eT||V);return(0,A.jsxs)(t.Fragment,{children:[ex&&(0,A.jsx)(g.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(V){let e=eC();(0,C.enqueueFocus)(e[e.length-1])}else if(eu?.portalNode)if(ea.current=!1,(0,b.isOutsideEvent)(e,eu.portalNode)){let e=(0,b.getNextTabbable)(J);e?.focus()}else(0,k.resolveRef)(q??eu.beforeOutsideRef)?.focus()}}),D,ex&&(0,A.jsx)(g.FocusGuard,{"data-type":"inside",ref:eb,onFocus:e=>{if(V)(0,C.enqueueFocus)(eC()[0]);else if(eu?.portalNode)if(U&&(ea.current=!0),(0,b.isOutsideEvent)(e,eu.portalNode)){let e=(0,b.getPreviousTabbable)(J);e?.focus()}else(0,k.resolveRef)(j??eu.afterOutsideRef)?.focus()}})]})}},673327,e=>{"use strict";e.s(["ARROW_DOWN",()=>r,"ARROW_LEFT",()=>i,"ARROW_RIGHT",()=>o,"ARROW_UP",()=>n,"COMPOSITE_KEYS",()=>u,"END",()=>l,"HOME",()=>s,"MODIFIER_KEYS",()=>a,"isNativeInput",()=>c,"scrollIntoViewIfNeeded",()=>d]);var t=e.i(229315);let n="ArrowUp",r="ArrowDown",i="ArrowLeft",o="ArrowRight",s="Home",l="End",u=new Set([n,r,i,o,s,l]),a=["Shift","Control","Alt","Meta"];function c(e){return!!((0,t.isHTMLElement)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.isHTMLElement)(e)&&"TEXTAREA"===e.tagName)}function d(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,o=e.scrollTop,s=e.clientWidthe.scrollLeft+e.clientWidth-o.scrollPaddingRight?i=r+t.offsetWidth+s.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:r-s.scrollMarginLefte.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(i=r+t.offsetWidth+s.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(l&&"horizontal"!==r){let n=f(e,t,"top"),r=p(e),i=p(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(o=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:o,behavior:"auto"})}function f(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function p(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}}},18478,e=>{"use strict";e.s(["NullStore",()=>n]);var t=e.i(301252);class n extends t.ReactStore{setState(e){}update(e){}set(e,t){}notifyAll(){}}},116786,e=>{"use strict";e.s(["createInitialPopupStoreState",()=>i,"createPopupFloatingRootContext",()=>o,"popupStoreSelectors",()=>c],116786);var t=e.i(956789),n=e.i(156341),r=e.i(990627);function i(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new r.PopupTriggerMap,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.EMPTY_OBJECT,inactiveTriggerProps:t.EMPTY_OBJECT,popupProps:t.EMPTY_OBJECT}}function o(e,t,r=!1){return new n.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0})}let s=e=>e.triggerIdProp??e.activeTriggerId,l=e=>e.openProp??e.open,u=e=>(e.popupElement?.id??e.floatingId)||void 0;function a(e,t){return void 0!==t&&l(e)&&s(e)===t}let c={open:l,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:s,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:u,isTriggerActive:(e,t)=>void 0!==t&&s(e)===t,isOpenedByTrigger:(e,t)=>a(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&s(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>!function(e,t){return!!a(e,t)||void 0!==t&&l(e)&&null==s(e)&&1===e.triggerCount}(e,t)?void 0:u(e),popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}},459636,e=>{"use strict";e.s(["usePopupHandleStore",()=>i]);var t=e.i(271645),n=e.i(802239),r=e.i(956789);function i(e){let i=t.useCallback(t=>void 0===e?r.NOOP:e.subscribeStore(t),[e]),o=t.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,n.useSyncExternalStore)(i,o,()=>e?.serverStore)}},564170,e=>{"use strict";e.s(["BasePopupHandle",()=>i]);var t=e.i(733332),n=e.i(675606),r=e.i(56434);class i{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let t=this.attachedStores.lastIndexOf(e);-1!==t&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let i,o=this.attachedStore;if(null!==o){if(e){for(let t=this.attachedStores.length-1;t>=0&&!i;t-=1)i=this.attachedStores[t].context.triggerElements.getById(e);i??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!i&&this.throwOnMissingTrigger)throw Error((0,t.default)(99,this.componentName,e,this.componentName));o.setOpen(!0,(0,n.createChangeEventDetails)(r.REASONS.imperativeAction,void 0,i))}}closePopup(){let e=this.attachedStore;null!==e&&e.setOpen(!1,(0,n.createChangeEventDetails)(r.REASONS.imperativeAction))}}}]);