8154.js (197917B)
1 /*! For license information please see 8154.js.LICENSE.txt */ 2 (self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[8154],{"./node_modules/aria-hidden/dist/es2015/index.js"(e,t,n){"use strict";n.d(t,{Eq:()=>l});var r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,i=new WeakMap,s={},a=0,c=function(e){return e&&(e.host||c(e.parentNode))},u=function(e,t,n,r){var u=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);s[n]||(s[n]=new WeakMap);var l=s[n],d=[],f=new Set,p=new Set(u),m=function(e){e&&!f.has(e)&&(f.add(e),m(e.parentNode))};u.forEach(m);var v=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(r),s=null!==t&&"false"!==t,a=(o.get(e)||0)+1,c=(l.get(e)||0)+1;o.set(e,a),l.set(e,c),d.push(e),1===a&&s&&i.set(e,!0),1===c&&e.setAttribute(n,"true"),s||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),a++,function(){d.forEach(function(e){var t=o.get(e)-1,s=l.get(e)-1;o.set(e,t),l.set(e,s),t||(i.has(e)||e.removeAttribute(r),i.delete(e)),s||e.removeAttribute(n)}),--a||(o=new WeakMap,o=new WeakMap,i=new WeakMap,s={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||r(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),u(o,i,n,"aria-hidden")):function(){return null}}},"./node_modules/process/browser.js"(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,c=[],u=!1,l=-1;function d(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"./node_modules/react-dom/cjs/react-dom.production.js"(e,t,n){"use strict";var r=n("./node_modules/react/index.js");function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},a=Symbol.for("react.portal");var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=c.T,n=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.4"},"./node_modules/react-remove-scroll/dist/es2015/Combination.js"(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n("./node_modules/tslib/tslib.es6.mjs"),o=n("./node_modules/react/index.js"),i="right-scroll-bar-position",s="width-before-scroll-bar",a=n("./node_modules/use-callback-ref/dist/es2015/useMergeRef.js"),c=(0,n("./node_modules/use-sidecar/dist/es2015/medium.js").f)(),u=function(){},l=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),s=i[0],l=i[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,v=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,j=e.as,_=void 0===j?"div":j,E=e.gapMode,O=(0,r.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,R=(0,a.S)([n,t]),P=(0,r.Cl)((0,r.Cl)({},O),s);return o.createElement(o.Fragment,null,v&&o.createElement(C,{sideCar:c,removeScrollBar:m,shards:h,noRelative:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!x,lockRef:n,gapMode:E}),d?o.cloneElement(o.Children.only(f),(0,r.Cl)((0,r.Cl)({},P),{ref:R})):o.createElement(_,(0,r.Cl)({},P,{className:p,ref:R}),f))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:s,zeroRight:i};var d,f=function(e){var t=e.sideCar,n=(0,r.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,(0,r.Cl)({},n))};f.isSideCarExport=!0;function p(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}var m=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=p())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v=function(){var e,t=(e=m(),function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},h={left:0,top:0,right:0,gap:0},g=function(e){return parseInt(e||"",10)||0},y=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return h;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[g(n),g(r),g(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},b=v(),w="data-scroll-locked",x=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(w,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(s," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(w,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(w)||"0",10);return isFinite(e)?e:0},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;o.useEffect(function(){return document.body.setAttribute(w,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(w):document.body.setAttribute(w,e.toString())}},[]);var s=o.useMemo(function(){return y(i)},[i]);return o.createElement(b,{styles:x(s,!t,i,n?"":"!important")})},E=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return E=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){E=!1}var C=!!E&&{passive:!1},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},P=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),S(e,r)){var o=M(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},S=function(e,t){return"v"===e?function(e){return R(e,"overflowY")}(t):function(e){return R(e,"overflowX")}(t)},M=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},D=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},T=function(e){return[e.deltaX,e.deltaY]},A=function(e){return e&&"current"in e?e.current:e},k=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},N=0,I=[];function L(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const F=function(e,t){return e.useMedium(t),f}(c,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),s=o.useState(N++)[0],a=o.useState(v)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var t=(0,r.fX)([e.lockRef.current],(e.shards||[]).map(A),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,o=D(e),s=n.current,a="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],l=e.target,d=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(!!p&&(p===l||p.contains(l)))return!1;var m=P(d,l);if(!m)return!0;if(m?r=d:(r="v"===d?"h":"v",m=P(d,l)),!m)return!1;if(!i.current&&"changedTouches"in e&&(a||u)&&(i.current=r),!r)return!0;var v=i.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),u=!1,l=s>0,d=0,f=0;do{if(!a)break;var p=M(e,a),m=p[0],v=p[1]-p[2]-i*m;(m||v)&&S(e,a)&&(d+=v,f+=m);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(l&&(o&&Math.abs(d)<1||!o&&s>d)||!l&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u}(v,t,e,"h"===v?a:u,!0)},[]),l=o.useCallback(function(e){var n=e;if(I.length&&I[I.length-1]===a){var r="deltaY"in n?T(n):D(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(c.current.shards||[]).map(A).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?u(n,i[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:L(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=o.useCallback(function(e){n.current=D(e),i.current=void 0},[]),p=o.useCallback(function(t){d(t.type,T(t),t.target,u(t,e.lockRef.current))},[]),m=o.useCallback(function(t){d(t.type,D(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return I.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,C),document.addEventListener("touchmove",l,C),document.addEventListener("touchstart",f,C),function(){I=I.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,C),document.removeEventListener("touchmove",l,C),document.removeEventListener("touchstart",f,C)}},[]);var h=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(a,{styles:k(s)}):null,h?o.createElement(_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var $=o.forwardRef(function(e,t){return o.createElement(l,(0,r.Cl)({},e,{ref:t,sideCar:F}))});$.classNames=l.classNames;const B=$},"./node_modules/react/cjs/react-jsx-runtime.production.js"(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},"./node_modules/react/cjs/react.production.js"(e,t,n){"use strict";var r=n("./node_modules/process/browser.js"),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),h=Symbol.iterator;var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function x(){}function j(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var _=j.prototype=new x;_.constructor=j,y(_,w.prototype),_.isPureReactComponent=!0;var E=Array.isArray;function O(){}var C={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function P(e,t,n){var r=n.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:n}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var M=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function T(e,t,n,r,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c,u,l=!1;if(null===e)l=!0;else switch(a){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0;break;case m:return T((l=e._init)(e._payload),t,n,r,s)}}if(l)return s=s(e),l=""===r?"."+D(e,0):r,E(s)?(n="",null!=l&&(n=l.replace(M,"$&/")+"/"),T(s,t,n,"",function(e){return e})):null!=s&&(S(s)&&(c=s,u=n+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(M,"$&/")+"/")+l,s=P(c.type,u,c.props)),t.push(s)),1;l=0;var d,f=""===r?".":r+":";if(E(e))for(var p=0;p<e.length;p++)l+=T(r=e[p],t,n,a=f+D(r,p),s);else if("function"==typeof(p=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=p.call(e),p=0;!(r=e.next()).done;)l+=T(r=r.value,t,n,a=f+D(r,p++),s);else if("object"===a){if("function"==typeof e.then)return T(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(O,O):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",function(e){return t.call(n,e,o++)}),r}function k(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof r&&"function"==typeof r.emit)return void r.emit("uncaughtException",e);console.error(e)},I={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=v,t.Children=I,t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=j,t.StrictMode=a,t.Suspense=f,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=y({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!R.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}return P(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:u,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)R.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return P(e,i,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(O,N)}catch(e){N(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.4"},"./node_modules/react/jsx-runtime.js"(e,t,n){"use strict";e.exports=n("./node_modules/react/cjs/react-jsx-runtime.production.js")},"./node_modules/use-callback-ref/dist/es2015/useMergeRef.js"(e,t,n){"use strict";n.d(t,{S:()=>a});var r=n("./node_modules/react/index.js");function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,s=new WeakMap;function a(e,t){var n,a,c,u=(n=t||null,a=function(t){return e.forEach(function(e){return o(e,t)})},(c=(0,r.useState)(function(){return{value:n,callback:a,facade:{get current(){return c.value},set current(e){var t=c.value;t!==e&&(c.value=e,c.callback(e,t))}}}})[0]).callback=a,c.facade);return i(function(){var t=s.get(u);if(t){var n=new Set(t),r=new Set(e),i=u.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,i)})}s.set(u,e)},[e]),u}},"./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"(e,t,n){"use strict";n.d(t,{UE:()=>oe,ll:()=>J,rD:()=>se,UU:()=>te,jD:()=>re,ER:()=>ie,cY:()=>Q,BN:()=>ee,Ej:()=>ne});const r=["top","right","bottom","left"],o=Math.min,i=Math.max,s=Math.round,a=Math.floor,c=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function d(e,t,n){return i(e,o(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}const g=new Set(["top","bottom"]);function y(e){return g.has(p(e))?"y":"x"}function b(e){return v(y(e))}function w(e){return e.replace(/start|end/g,e=>l[e])}const x=["left","right"],j=["right","left"],_=["top","bottom"],E=["bottom","top"];function O(e,t,n,r){const o=m(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?j:x:t?x:j;case"left":case"right":return t?_:E;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function C(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function R(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function S(e,t,n){let{reference:r,floating:o}=e;const i=y(t),s=b(t),a=h(s),c=p(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let v;switch(c){case"top":v={x:l,y:r.y-o.height};break;case"bottom":v={x:l,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(m(t)){case"start":v[s]-=f*(n&&u?-1:1);break;case"end":v[s]+=f*(n&&u?-1:1)}return v}async function M(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=f(t,e),v=R(m),h=a[p?"floating"===d?"reference":"floating":d],g=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:c}):y);return{top:(g.top-x.top+v.top)/w.y,bottom:(x.bottom-g.bottom+v.bottom)/w.y,left:(g.left-x.left+v.left)/w.x,right:(x.right-g.right+v.right)/w.x}}function D(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return r.some(t=>e[t]>=0)}const A=new Set(["left","top"]);var k=n("./node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs");function N(e){const t=(0,k.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,k.sb)(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=s(n)!==i||s(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function I(e){return(0,k.vq)(e)?e:e.contextElement}function L(e){const t=I(e);if(!(0,k.sb)(t))return c(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=N(t);let a=(i?s(n.width):n.width)/r,u=(i?s(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const F=c(0);function $(e){const t=(0,k.zk)(e);return(0,k.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:F}function B(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=I(e);let s=c(1);t&&(r?(0,k.vq)(r)&&(s=L(r)):s=L(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,k.zk)(e))&&t}(i,n,r)?$(i):c(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const e=(0,k.zk)(i),t=r&&(0,k.vq)(r)?(0,k.zk)(r):r;let n=e,o=(0,k._m)(n);for(;o&&r&&t!==n;){const e=L(o),t=o.getBoundingClientRect(),r=(0,k.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,d*=e.x,f*=e.y,u+=i,l+=s,n=(0,k.zk)(o),o=(0,k._m)(n)}}return P({width:d,height:f,x:u,y:l})}function W(e,t){const n=(0,k.CP)(e).scrollLeft;return t?t.left+n:B((0,k.ep)(e)).left+n}function U(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-W(e,n),y:n.top+t.scrollTop}}const q=new Set(["absolute","fixed"]);function K(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,k.zk)(e),r=(0,k.ep)(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=(0,k.Tc)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}const u=W(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else u<=25&&(i+=u);return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=(0,k.ep)(e),n=(0,k.CP)(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+W(e);const c=-n.scrollTop;return"rtl"===(0,k.L9)(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}((0,k.ep)(e));else if((0,k.vq)(t))r=function(e,t){const n=B(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,k.sb)(e)?L(e):c(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return P(r)}function H(e,t){const n=(0,k.$4)(e);return!(n===t||!(0,k.vq)(n)||(0,k.eu)(n))&&("fixed"===(0,k.L9)(n).position||H(n,t))}function z(e,t,n){const r=(0,k.sb)(t),o=(0,k.ep)(t),i="fixed"===n,s=B(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=c(0);function l(){u.x=W(o)}if(r||!r&&!i)if(("body"!==(0,k.mq)(t)||(0,k.ZU)(o))&&(a=(0,k.CP)(t)),r){const e=B(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=!o||r||i?c(0):U(o,a);return{x:s.left+a.scrollLeft-u.x-d.x,y:s.top+a.scrollTop-u.y-d.y,width:s.width,height:s.height}}function V(e){return"static"===(0,k.L9)(e).position}function G(e,t){if(!(0,k.sb)(e)||"fixed"===(0,k.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,k.ep)(e)===n&&(n=n.ownerDocument.body),n}function Y(e,t){const n=(0,k.zk)(e);if((0,k.Tf)(e))return n;if(!(0,k.sb)(e)){let t=(0,k.$4)(e);for(;t&&!(0,k.eu)(t);){if((0,k.vq)(t)&&!V(t))return t;t=(0,k.$4)(t)}return n}let r=G(e,t);for(;r&&(0,k.Lv)(r)&&V(r);)r=G(r,t);return r&&(0,k.eu)(r)&&V(r)&&!(0,k.sQ)(r)?n:r||(0,k.gJ)(e)||n}const X={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=(0,k.ep)(r),a=!!t&&(0,k.Tf)(t.floating);if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},l=c(1);const d=c(0),f=(0,k.sb)(r);if((f||!f&&!i)&&(("body"!==(0,k.mq)(r)||(0,k.ZU)(s))&&(u=(0,k.CP)(r)),(0,k.sb)(r))){const e=B(r);l=L(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!s||f||i?c(0):U(s,u);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-u.scrollTop*l.y+d.y+p.y}},getDocumentElement:k.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[..."clippingAncestors"===n?(0,k.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,k.v9)(e,[],!1).filter(e=>(0,k.vq)(e)&&"body"!==(0,k.mq)(e)),o=null;const i="fixed"===(0,k.L9)(e).position;let s=i?(0,k.$4)(e):e;for(;(0,k.vq)(s)&&!(0,k.eu)(s);){const t=(0,k.L9)(s),n=(0,k.sQ)(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&q.has(o.position)||(0,k.ZU)(s)&&!n&&H(e,s))?r=r.filter(e=>e!==s):o=t,s=(0,k.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((e,n)=>{const r=K(t,n,s);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},K(t,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:Y,getElementRects:async function(e){const t=this.getOffsetParent||Y,n=this.getDimensions,r=await n(e.floating);return{reference:z(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=N(e);return{width:t,height:n}},getScale:L,isElement:k.vq,isRTL:function(e){return"rtl"===(0,k.L9)(e).direction}};function Z(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function J(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=I(e),p=s||c?[...f?(0,k.v9)(f):[],...(0,k.v9)(t)]:[];p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});const m=f&&l?function(e,t){let n,r=null;const s=(0,k.ep)(e);function c(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function u(l,d){void 0===l&&(l=!1),void 0===d&&(d=1),c();const f=e.getBoundingClientRect(),{left:p,top:m,width:v,height:h}=f;if(l||t(),!v||!h)return;const g={rootMargin:-a(m)+"px "+-a(s.clientWidth-(p+v))+"px "+-a(s.clientHeight-(m+h))+"px "+-a(p)+"px",threshold:i(0,o(1,d))||1};let y=!0;function b(t){const r=t[0].intersectionRatio;if(r!==d){if(!y)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||Z(f,e.getBoundingClientRect())||u(),y=!1}try{r=new IntersectionObserver(b,{...g,root:s.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),c}(f,n):null;let v,h=-1,g=null;u&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),f&&!d&&g.observe(f),g.observe(t));let y=d?B(e):null;return d&&function t(){const r=B(e);y&&!Z(y,r)&&n();y=r,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(v)}}const Q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=p(n),a=m(n),c="y"===y(n),u=A.has(s)?-1:1,l=i&&c?-1:1,d=f(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(h="end"===a?-1*g:g),c?{x:h*l,y:v*u}:{x:v*u,y:h*l}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},ee=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=f(e,t),l={x:n,y:r},m=await i.detectOverflow(t,u),h=y(p(o)),g=v(h);let b=l[g],w=l[h];if(s){const e="y"===g?"bottom":"right";b=d(b+m["y"===g?"top":"left"],b,b-m[e])}if(a){const e="y"===h?"bottom":"right";w=d(w+m["y"===h?"top":"left"],w,w-m[e])}const x=c.fn({...t,[g]:b,[h]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:s,[h]:a}}}}}},te=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:j=!0,..._}=f(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const E=p(o),R=y(a),P=p(a)===a,S=await(null==c.isRTL?void 0:c.isRTL(u.floating)),M=v||(P||!j?[C(a)]:function(e){const t=C(e);return[w(e),t,w(t)]}(a)),D="none"!==x;!v&&D&&M.push(...O(a,j,x,S));const T=[a,...M],A=await c.detectOverflow(t,_),k=[];let N=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&k.push(A[E]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=m(e),o=b(e),i=h(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=C(s)),[s,C(s)]}(o,s,S);k.push(A[e[0]],A[e[1]])}if(N=[...N,{placement:o,overflows:k}],!k.every(e=>e<=0)){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=T[e];if(t){if(!("alignment"===d&&R!==y(t))||N.every(e=>y(e.placement)!==R||e.overflows[0]>0))return{data:{index:e,overflows:N},reset:{placement:t}}}let n=null==(L=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:L.placement;if(!n)switch(g){case"bestFit":{var F;const e=null==(F=N.filter(e=>{if(D){const t=y(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ne=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:a,platform:c,elements:u}=t,{apply:l=()=>{},...d}=f(e,t),v=await c.detectOverflow(t,d),h=p(s),g=m(s),b="y"===y(s),{width:w,height:x}=a.floating;let j,_;"top"===h||"bottom"===h?(j=h,_=g===(await(null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(_=h,j="end"===g?"top":"bottom");const E=x-v.top-v.bottom,O=w-v.left-v.right,C=o(x-v[j],E),R=o(w-v[_],O),P=!t.middlewareData.shift;let S=C,M=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(M=O),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=E),P&&!g){const e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);b?M=w-2*(0!==e||0!==t?e+t:i(v.left,v.right)):S=x-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await l({...t,availableWidth:M,availableHeight:S});const D=await c.getDimensions(u.floating);return w!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}},re=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=f(e,t);switch(o){case"referenceHidden":{const e=D(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{const e=D(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},oe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:c,middlewareData:u}=t,{element:l,padding:p=0}=f(e,t)||{};if(null==l)return{};const v=R(p),g={x:n,y:r},y=b(i),w=h(y),x=await a.getDimensions(l),j="y"===y,_=j?"top":"left",E=j?"bottom":"right",O=j?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[y]-g[y]-s.floating[w],P=g[y]-s.reference[y],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let M=S?S[O]:0;M&&await(null==a.isElement?void 0:a.isElement(S))||(M=c.floating[O]||s.floating[w]);const D=C/2-P/2,T=M/2-x[w]/2-1,A=o(v[_],T),k=o(v[E],T),N=A,I=M-x[w]-k,L=M/2-x[w]/2+D,F=d(N,L,I),$=!u.arrow&&null!=m(i)&&L!==F&&s.reference[w]/2-(L<N?A:k)-x[w]/2<0,B=$?L<N?L-N:L-I:0;return{[y]:g[y]+B,data:{[y]:F,centerOffset:L-F-B,...$&&{alignmentOffset:B}},reset:$}}}),ie=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=f(e,t),l={x:n,y:r},d=y(o),m=v(d);let h=l[m],g=l[d];const b=f(a,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+w.mainAxis,n=i.reference[m]+i.reference[e]-w.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var x,j;const e="y"===m?"width":"height",t=A.has(p(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(x=s.offset)?void 0:x[d])||0)+(t?0:w.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(j=s.offset)?void 0:j[d])||0)-(t?w.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[m]:h,[d]:g}}}},se=(e,t,n)=>{const r=new Map,o={platform:X,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=S(u,r,c),f=r,p={},m=0;for(let n=0;n<a.length;n++){var v;const{name:i,fn:h}=a[n],{x:g,y,data:b,reset:w}=await h({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:{...s,detectOverflow:null!=(v=s.detectOverflow)?v:M},elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:l,y:d}=S(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})}},"./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"(e,t,n){"use strict";n.d(t,{BN:()=>m,ER:()=>v,Ej:()=>g,UE:()=>b,UU:()=>h,cY:()=>p,jD:()=>y,we:()=>d});var r=n("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),o=n("./node_modules/react/index.js"),i=n("./node_modules/react-dom/index.js"),s="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!a(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function l(e){const t=o.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(d);a(w,d)||x(d);const[j,_]=o.useState(null),[E,O]=o.useState(null),C=o.useCallback(e=>{e!==M.current&&(M.current=e,_(e))},[]),R=o.useCallback(e=>{e!==D.current&&(D.current=e,O(e))},[]),P=p||j,S=m||E,M=o.useRef(null),D=o.useRef(null),T=o.useRef(y),A=null!=h,k=l(h),N=l(f),I=l(g),L=o.useCallback(()=>{if(!M.current||!D.current)return;const e={placement:t,strategy:n,middleware:w};N.current&&(e.platform=N.current),(0,r.rD)(M.current,D.current,e).then(e=>{const t={...e,isPositioned:!1!==I.current};F.current&&!a(T.current,t)&&(T.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,N,I]);s(()=>{!1===g&&T.current.isPositioned&&(T.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);const F=o.useRef(!1);s(()=>(F.current=!0,()=>{F.current=!1}),[]),s(()=>{if(P&&(M.current=P),S&&(D.current=S),P&&S){if(k.current)return k.current(P,S,L);L()}},[P,S,L,k,A]);const $=o.useMemo(()=>({reference:M,floating:D,setReference:C,setFloating:R}),[C,R]),B=o.useMemo(()=>({reference:P,floating:S}),[P,S]),W=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=u(B.floating,y.x),r=u(B.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...c(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,B.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:L,refs:$,elements:B,floatingStyles:W}),[y,L,$,B,W])}const f=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var i}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),v=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),h=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),g=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),b=(e,t)=>({...f(e),options:[e,t]})},"./node_modules/@floating-ui/react/dist/floating-ui.react.mjs"(e,t,n){"use strict";n.d(t,{ie:()=>fe,T3:()=>Ce,XF:()=>Ae,ck:()=>Re,s9:()=>Fe,we:()=>$e,iQ:()=>We,Mk:()=>_e,Bi:()=>de,bv:()=>qe,SV:()=>Z,It:()=>He});var r=n("./node_modules/react/index.js"),o=n.t(r,2),i=n("./node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"),s=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],a=s.join(","),c="undefined"==typeof Element,u=c?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!c&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},d=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):d(e.parentNode))},f=function(e,t,n){if(d(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&u.call(e,a)&&r.unshift(e),r=r.filter(n)},p=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!d(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),c=s.length?s:i.children,l=p(c,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:i,candidates:l})}else{u.call(i,a)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var f=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),m=!d(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(f&&m){var v=p(!0===f?i.children:f.children,!0,n);n.flatten?r.push.apply(r,v):r.push({scopeParent:i,candidates:v})}else o.unshift.apply(o,i.children)}}return r},m=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!m(e)?0:e.tabIndex},h=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},y=function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||l(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},w=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=u.call(e,"details>summary:first-of-type")?e.parentElement:e;if(u.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=l(e);if(s&&!s.shadowRoot&&!0===r(s))return b(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&l(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var c,u,d;a=!(null===(u=s=null===(c=i=l(s))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},x=function(e,t){return!(t.disabled||function(e){return g(e)&&"hidden"===e.type}(t)||w(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!u.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},j=function(e,t){return!(y(t)||v(t)<0||!x(e,t))},_=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,s=function(e,t){var n=v(e);return n<0&&t&&!m(e)?0:n}(i,o),a=o?E(e.candidates):i;0===s?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:s,item:e,isScope:o,content:a})}),n.sort(h).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},O=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:j.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:_}):f(e,t.includeContainer,j.bind(null,t)),E(n)};function C(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function R(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function P(){return/apple/i.test(navigator.vendor)}function S(){return R().includes("jsdom/")}const M="data-floating-ui-focusable";function D(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function T(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function A(e){return"composedPath"in e?e.composedPath()[0]:e.target}function k(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function N(e){return(null==e?void 0:e.ownerDocument)||document}function I(e){return(0,i.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function L(e,t,n){void 0===n&&(n=!0);return e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...L(e,t.id,n)])}function F(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var $="undefined"!=typeof document?r.useLayoutEffect:function(){};function B(e){const t=r.useRef(e);return $(()=>{t.current=e}),t}const W={...o}.useInsertionEffect||(e=>e());function U(e){const t=r.useRef(()=>{0});return W(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const q=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function K(e,t){const n=O(e,q()),r=n.length;if(0===r)return;const o=D(N(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function H(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!T(n,r)}function z(e){O(e,q()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function V(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var G=n("./node_modules/react/jsx-runtime.js"),Y=n("./node_modules/react-dom/index.js"),X=n("./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs");function Z(e){const t=r.useRef(void 0),n=r.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return r.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const J="data-floating-ui-focusable",Q="active",ee="selected",te="ArrowLeft",ne="ArrowRight",re="ArrowUp",oe="ArrowDown";const ie=[te,ne],se=[re,oe],ae={...o};let ce=!1,ue=0;const le=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ue++;const de=ae.useId||function(){const[e,t]=r.useState(()=>ce?le():void 0);return $(()=>{null==e&&t(le())},[]),r.useEffect(()=>{ce=!0},[]),e};const fe=r.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:s,shift:a}},width:c=14,height:u=7,tipRadius:l=0,strokeWidth:d=0,staticOffset:f,stroke:p,d:m,style:{transform:v,...h}={},...g}=e;const y=de(),[b,w]=r.useState(!1);if($(()=>{if(!o)return;"rtl"===(0,i.L9)(o).direction&&w(!0)},[o]),!o)return null;const[x,j]=n.split("-"),_="top"===x||"bottom"===x;let E=f;(_&&null!=a&&a.x||!_&&null!=a&&a.y)&&(E=null);const O=2*d,C=O/2,R=c/2*(l/-8+1),P=u/2*l/4,S=!!m,M=E&&"end"===j?"bottom":"top";let D=E&&"end"===j?"right":"left";E&&b&&(D="end"===j?"left":"right");const T=null!=(null==s?void 0:s.x)?E||s.x:"",A=null!=(null==s?void 0:s.y)?E||s.y:"",k=m||"M0,0 H"+c+" L"+(c-R)+","+(u-P)+" Q"+c/2+","+u+" "+R+","+(u-P)+" Z",N={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[x];return(0,G.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:S?c:c+O,height:c,viewBox:"0 0 "+c+" "+(u>c?u:c),style:{position:"absolute",pointerEvents:"none",[D]:T,[M]:A,[x]:_||S?"100%":"calc(100% - "+O/2+"px)",transform:[N,v].filter(e=>!!e).join(" "),...h},children:[O>0&&(0,G.jsx)("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:O+(m?0:1),d:k}),(0,G.jsx)("path",{stroke:O&&!m?g.fill:"none",d:k}),(0,G.jsx)("clipPath",{id:y,children:(0,G.jsx)("rect",{x:-C,y:C*(S?-1:1),width:c+O,height:c})})]})});function pe(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}const me=r.createContext(null),ve=r.createContext(null),he=()=>{var e;return(null==(e=r.useContext(me))?void 0:e.id)||null},ge=()=>r.useContext(ve);function ye(e){return"data-floating-ui-"+e}function be(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const we=ye("safe-polygon");function xe(e,t,n){if(n&&!F(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function je(e){return"function"==typeof e?e():e}function _e(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:s,events:a,elements:c}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:m=!0}=t,v=ge(),h=he(),g=B(d),y=B(l),b=B(n),w=B(p),x=r.useRef(),j=r.useRef(-1),_=r.useRef(),E=r.useRef(-1),O=r.useRef(!0),C=r.useRef(!1),R=r.useRef(()=>{}),P=r.useRef(!1),S=U(()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});r.useEffect(()=>{if(u)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(be(j),be(E),O.current=!0,P.current=!1)}},[u,a]),r.useEffect(()=>{if(!u)return;if(!g.current)return;if(!n)return;function e(e){S()&&o(!1,e,"hover")}const t=N(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,n,o,u,g,S]);const M=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=xe(y.current,"close",x.current);r&&!_.current?(be(j),j.current=window.setTimeout(()=>o(!1,e,n),r)):t&&(be(j),o(!1,e,n))},[y,o]),D=U(()=>{R.current(),_.current=void 0}),A=U(()=>{if(C.current){const e=N(c.floating).body;e.style.pointerEvents="",e.removeAttribute(we),C.current=!1}}),k=U(()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type));r.useEffect(()=>{if(u&&(0,i.vq)(c.domReference)){const o=c.domReference,i=c.floating;return n&&o.addEventListener("mouseleave",r),m&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",r),i.addEventListener("mouseenter",a),i.addEventListener("mouseleave",l)),()=>{n&&o.removeEventListener("mouseleave",r),m&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",r),i.removeEventListener("mouseenter",a),i.removeEventListener("mouseleave",l))}}function e(e){if(be(j),O.current=!1,f&&!F(x.current)||je(w.current)>0&&!xe(y.current,"open"))return;const t=xe(y.current,"open",x.current);t?j.current=window.setTimeout(()=>{b.current||o(!0,e,"hover")},t):n||o(!0,e,"hover")}function t(e){if(k())return void A();R.current();const t=N(c.floating);if(be(E),P.current=!1,g.current&&s.current.floatingContext){n||be(j),_.current=g.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){A(),D(),k()||M(e,!0,"safe-polygon")}});const r=_.current;return t.addEventListener("mousemove",r),void(R.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==x.current||!T(c.floating,e.relatedTarget))&&M(e)}function r(e){k()||s.current.floatingContext&&(null==g.current||g.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){A(),D(),k()||M(e)}})(e))}function a(){be(j)}function l(e){k()||M(e,!1)}},[c,u,e,f,m,M,D,A,o,n,b,v,y,g,s,k,w]),$(()=>{var e;if(u&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&S()){C.current=!0;const e=c.floating;if((0,i.vq)(c.domReference)&&e){var t;const n=N(c.floating).body;n.setAttribute(we,"");const r=c.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[u,n,h,c,v,g,S]),$(()=>{n||(x.current=void 0,P.current=!1,D(),A())},[n,D,A]),r.useEffect(()=>()=>{D(),be(j),be(E),A()},[u,c.domReference,D,A]);const I=r.useMemo(()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){O.current||b.current||o(!0,t,"hover")}f&&!F(x.current)||n||0===je(w.current)||P.current&&e.movementX**2+e.movementY**2<2||(be(E),"touch"===x.current?r():(P.current=!0,E.current=window.setTimeout(r,je(w.current))))}}},[f,o,n,b,w]);return r.useMemo(()=>u?{reference:I}:{},[u,I])}const Ee=()=>{},Oe=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Ee,setState:Ee,isInstantPhase:!1});function Ce(e){const{children:t,delay:n,timeoutMs:o=0}=e,[i,s]=r.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),a=r.useRef(null),c=r.useCallback(e=>{s({currentId:e})},[]);return $(()=>{i.currentId?null===a.current?a.current=i.currentId:i.isInstantPhase||s({isInstantPhase:!0}):(i.isInstantPhase&&s({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),(0,G.jsx)(Oe.Provider,{value:r.useMemo(()=>({...i,setState:s,setCurrentId:c}),[i,c]),children:t})}function Re(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,floatingId:i}=e,{id:s,enabled:a=!0}=t,c=null!=s?s:i,u=r.useContext(Oe),{currentId:l,setCurrentId:d,initialDelay:f,setState:p,timeoutMs:m}=u;return $(()=>{a&&l&&(p({delay:{open:1,close:xe(f,"close")}}),l!==c&&o(!1))},[a,c,o,p,l,f]),$(()=>{function e(){o(!1),p({delay:f,currentId:null})}if(a&&l&&!n&&l===c){if(m){const t=window.setTimeout(e,m);return()=>{clearTimeout(t)}}e()}},[a,n,p,l,c,o,f,m]),$(()=>{a&&d!==Ee&&n&&d(c)},[a,n,d,c]),u}const Pe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Se=r.forwardRef(function(e,t){const[n,o]=r.useState();$(()=>{P()&&o("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ye("focus-guard")]:"",style:Pe};return(0,G.jsx)("span",{...e,...i})}),Me={clipPath:"inset(50%)",position:"fixed",top:0,left:0},De=r.createContext(null),Te=ye("portal");function Ae(e){const{children:t,id:n,root:o,preserveTabOrder:s=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,o=de(),s=ke(),[a,c]=r.useState(null),u=r.useRef(null);return $(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{u.current=null})},[a]),$(()=>{if(!o)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Te,""),e.appendChild(n),u.current=n,c(n)},[t,o]),$(()=>{if(null===n)return;if(!o)return;if(u.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const a=document.createElement("div");a.id=o,a.setAttribute(Te,""),e=r||e,e.appendChild(a),u.current=a,c(a)},[t,n,o,s]),a}({id:n,root:o}),[c,u]=r.useState(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=null==c?void 0:c.modal,v=null==c?void 0:c.open,h=!!c&&!c.modal&&c.open&&s&&!(!o&&!a);return r.useEffect(()=>{if(a&&s&&!m)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&H(e)){("focusin"===e.type?V:z)(a)}}},[a,s,m]),r.useEffect(()=>{a&&(v||V(a))},[v,a]),(0,G.jsxs)(De.Provider,{value:r.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:a,setFocusManagerState:u}),[s,a]),children:[h&&a&&(0,G.jsx)(Se,{"data-type":"outside",ref:l,onFocus:e=>{if(H(e,a)){var t;null==(t=f.current)||t.focus()}else{const e=c?c.domReference:null,t=K(N(n=e).body,-1)||n;null==t||t.focus()}var n}}),h&&a&&(0,G.jsx)("span",{"aria-owns":a.id,style:Me}),a&&Y.createPortal(t,a),h&&a&&(0,G.jsx)(Se,{"data-type":"outside",ref:d,onFocus:e=>{if(H(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=c?c.domReference:null,r=K(N(n=t).body,1)||n;null==r||r.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}var n}})]})}const ke=()=>r.useContext(De);const Ne={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ie={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Le=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Fe(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,elements:s,dataRef:a}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:l=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:h}=t,g=ge(),y=U("function"==typeof l?l:()=>!1),b="function"==typeof l?y:l,w=r.useRef(!1),{escapeKey:x,outsidePress:j}=Le(v),{escapeKey:_,outsidePress:E}=Le(h),O=r.useRef(!1),C=U(e=>{var t;if(!n||!c||!u||"Escape"!==e.key)return;if(O.current)return;const r=null==(t=a.current.floatingContext)?void 0:t.nodeId,i=g?L(g.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),R=U(e=>{var t;const n=()=>{var t;C(e),null==(t=A(e))||t.removeEventListener("keydown",n)};null==(t=A(e))||t.addEventListener("keydown",n)}),P=U(e=>{var t;const n=a.current.insideReactTree;a.current.insideReactTree=!1;const r=w.current;if(w.current=!1,"click"===d&&r)return;if(n)return;if("function"==typeof b&&!b(e))return;const c=A(e),u="["+ye("inert")+"]",l=N(s.floating).querySelectorAll(u);let f=(0,i.vq)(c)?c:null;for(;f&&!(0,i.eu)(f);){const e=(0,i.$4)(f);if((0,i.eu)(e)||!(0,i.vq)(e))break;f=e}if(l.length&&(0,i.vq)(c)&&!c.matches("html,body")&&!T(c,s.floating)&&Array.from(l).every(e=>!T(f,e)))return;if((0,i.sb)(c)&&D){const t=(0,i.eu)(c),n=(0,i.L9)(c),r=/auto|scroll/,o=t||r.test(n.overflowX),s=t||r.test(n.overflowY),a=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,u=s&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,l="rtl"===n.direction,d=u&&(l?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),f=a&&e.offsetY>c.clientHeight;if(d||f)return}const p=null==(t=a.current.floatingContext)?void 0:t.nodeId,m=g&&L(g.nodesRef.current,p).some(t=>{var n;return k(e,null==(n=t.context)?void 0:n.elements.floating)});if(k(e,s.floating)||k(e,s.domReference)||m)return;const v=g?L(g.nodesRef.current,p):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}o(!1,e,"outside-press")}),S=U(e=>{var t;const n=()=>{var t;P(e),null==(t=A(e))||t.removeEventListener(d,n)};null==(t=A(e))||t.addEventListener(d,n)});r.useEffect(()=>{if(!n||!c)return;a.current.__escapeKeyBubbles=x,a.current.__outsidePressBubbles=j;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),O.current=!0}function l(){e=window.setTimeout(()=>{O.current=!1},(0,i.Tc)()?5:0)}const f=N(s.floating);u&&(f.addEventListener("keydown",_?R:C,_),f.addEventListener("compositionstart",r),f.addEventListener("compositionend",l)),b&&f.addEventListener(d,E?S:P,E);let p=[];return m&&((0,i.vq)(s.domReference)&&(p=(0,i.v9)(s.domReference)),(0,i.vq)(s.floating)&&(p=p.concat((0,i.v9)(s.floating))),!(0,i.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(p=p.concat((0,i.v9)(s.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{u&&(f.removeEventListener("keydown",_?R:C,_),f.removeEventListener("compositionstart",r),f.removeEventListener("compositionend",l)),b&&f.removeEventListener(d,E?S:P,E),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[a,s,u,b,d,n,o,m,c,x,j,C,_,R,P,E,S]),r.useEffect(()=>{a.current.insideReactTree=!1},[a,b,d]);const M=r.useMemo(()=>({onKeyDown:C,...f&&{[Ne[p]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[C,o,f,p]),D=r.useMemo(()=>({onKeyDown:C,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Ie[d]]:()=>{a.current.insideReactTree=!0}}),[C,d,a]);return r.useMemo(()=>c?{reference:M,floating:D}:{},[c,M,D])}function $e(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=de(),s=r.useRef({}),[a]=r.useState(()=>pe()),c=null!=he(),[u,l]=r.useState(o.reference),d=U((e,t,r)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),f=r.useMemo(()=>({setPositionReference:l}),[]),p=r.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return r.useMemo(()=>({dataRef:s,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,s=o.elements,[a,c]=r.useState(null),[u,l]=r.useState(null),d=(null==s?void 0:s.domReference)||a,f=r.useRef(null),p=ge();$(()=>{d&&(f.current=d)},[d]);const m=(0,X.we)({...e,elements:{...s,...u&&{reference:u}}}),v=r.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),m.refs.setReference(t)},[m.refs]),h=r.useCallback(e=>{((0,i.vq)(e)||null===e)&&(f.current=e,c(e)),((0,i.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,i.vq)(e))&&m.refs.setReference(e)},[m.refs]),g=r.useMemo(()=>({...m.refs,setReference:h,setPositionReference:v,domReference:f}),[m.refs,h,v]),y=r.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=r.useMemo(()=>({...m,...o,refs:g,elements:y,nodeId:t}),[m,g,y,t,o]);return $(()=>{o.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),r.useMemo(()=>({...m,context:b,refs:g,elements:y}),[m,g,y,b])}function Be(){return C().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&P()}function We(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:s,dataRef:a,elements:c}=e,{enabled:u=!0,visibleOnly:l=!0}=t,d=r.useRef(!1),f=r.useRef(-1),p=r.useRef(!0);r.useEffect(()=>{if(!u)return;const e=(0,i.zk)(c.domReference);function t(){!n&&(0,i.sb)(c.domReference)&&c.domReference===D(N(c.domReference))&&(d.current=!0)}function r(){p.current=!0}function o(){p.current=!1}return e.addEventListener("blur",t),Be()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),Be()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[c.domReference,n,u]),r.useEffect(()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}},[s,u]),r.useEffect(()=>()=>{be(f)},[]);const m=r.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=A(e.nativeEvent);if(l&&(0,i.vq)(t))if(Be()&&!e.relatedTarget){if(!p.current&&!I(t))return}else if(!function(e){if(!e||S())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;o(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,i.vq)(t)&&t.hasAttribute(ye("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout(()=>{var e;const i=D(c.domReference?c.domReference.ownerDocument:document);(t||i!==c.domReference)&&(T(null==(e=a.current.floatingContext)?void 0:e.refs.floating.current,i)||T(c.domReference,i)||r||o(!1,n,"focus"))})}}),[a,c.domReference,o,l]);return r.useMemo(()=>u?{reference:m}:{},[u,m])}function Ue(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Q]:t,[ee]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[J]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var s;o&&[Q,ee].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function qe(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>Ue(t,e,"reference"),t),s=r.useCallback(t=>Ue(t,e,"floating"),n),a=r.useCallback(t=>Ue(t,e,"item"),o);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const Ke=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function He(e,t){var n,o;void 0===t&&(t={});const{open:i,elements:s,floatingId:a}=e,{enabled:c=!0,role:u="dialog"}=t,l=de(),d=(null==(n=s.domReference)?void 0:n.id)||l,f=r.useMemo(()=>{var e,t;return(null==(e=(t=s.floating)?t.hasAttribute(M)?t:t.querySelector("["+M+"]")||t:null)?void 0:e.id)||a},[s.floating,a]),p=null!=(o=Ke.get(u))?o:u,m=null!=he(),v=r.useMemo(()=>"tooltip"===p||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:i?f:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?f:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&m&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}},[p,f,m,i,d,u]),h=r.useMemo(()=>{const e={id:f,...p&&{role:p}};return"tooltip"===p||"label"===u?e:{...e,..."menu"===p&&{"aria-labelledby":d}}},[p,f,d,u]),g=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:f+"-fui-option"}};switch(u){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[f,u]);return r.useMemo(()=>c?{reference:v,floating:h,item:g}:{},[c,v,h,g])}},"./node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function l(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{$4:()=>R,CP:()=>C,L9:()=>O,Ll:()=>a,Lv:()=>m,Ng:()=>l,Tc:()=>j,Tf:()=>h,ZU:()=>f,_m:()=>M,ep:()=>s,eu:()=>E,gJ:()=>x,mq:()=>o,sQ:()=>w,sb:()=>u,v9:()=>S,vq:()=>c,zk:()=>i});const d=new Set(["inline","contents"]);function f(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(o)}const p=new Set(["table","td","th"]);function m(e){return p.has(o(e))}const v=[":popover-open",":modal"];function h(e){return v.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const g=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function w(e){const t=j(),n=c(e)?O(e):e;return g.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function x(e){let t=R(e);for(;u(t)&&!E(t);){if(w(t))return t;if(h(t))return null;t=R(t)}return null}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const _=new Set(["html","body","#document"]);function E(e){return _.has(o(e))}function O(e){return i(e).getComputedStyle(e)}function C(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||l(e)&&e.host||s(e);return l(t)?t.host:t}function P(e){const t=R(e);return E(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&f(t)?t:P(t)}function S(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=P(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),a=i(o);if(s){const e=M(a);return t.concat(a,a.visualViewport||[],f(o)?o:[],e&&n?S(e):[])}return t.concat(o,S(o,[],n))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},"./node_modules/@radix-ui/primitive/dist/index.mjs"(e,t,n){"use strict";n.d(t,{mK:()=>r});"undefined"==typeof window||!window.document||window.document.createElement;function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},"./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"(e,t,n){"use strict";n.d(t,{s:()=>s,t:()=>i});var r=n("./node_modules/react/index.js");function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1;const r=e.map(e=>{const r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function s(...e){return r.useCallback(i(...e),e)}},"./node_modules/@radix-ui/react-context/dist/index.mjs"(e,t,n){"use strict";n.d(t,{A:()=>s,q:()=>i});var r=n("./node_modules/react/index.js"),o=n("./node_modules/react/jsx-runtime.js");function i(e,t){const n=r.createContext(t),i=e=>{const{children:t,...i}=e,s=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:s,children:t})};return i.displayName=e+"Provider",[i,function(o){const i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}]}function s(e,t=[]){let n=[];const i=()=>{const t=n.map(e=>r.createContext(e));return function(n){const o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){const s=r.createContext(i),a=n.length;n=[...n,i];const c=t=>{const{scope:n,children:i,...c}=t,u=n?.[e]?.[a]||s,l=r.useMemo(()=>c,Object.values(c));return(0,o.jsx)(u.Provider,{value:l,children:i})};return c.displayName=t+"Provider",[c,function(n,o){const c=o?.[e]?.[a]||s,u=r.useContext(c);if(u)return u;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},a(i,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}},"./node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"(e,t,n){"use strict";n.d(t,{qW:()=>m});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/primitive/dist/index.mjs"),i=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),a=n("./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs");var c,u=n("./node_modules/react/jsx-runtime.js"),l="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside",p=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=r.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:w,...x}=e,j=r.useContext(p),[_,E]=r.useState(null),O=_?.ownerDocument??globalThis?.document,[,C]=r.useState({}),R=(0,s.s)(t,e=>E(e)),P=Array.from(j.layers),[S]=[...j.layersWithOutsidePointerEventsDisabled].slice(-1),M=P.indexOf(S),D=_?P.indexOf(_):-1,T=j.layersWithOutsidePointerEventsDisabled.size>0,A=D>=M,k=function(e,t=globalThis?.document){const n=(0,a.c)(e),o=r.useRef(!1),i=r.useRef(()=>{});return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let r=function(){g(d,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...j.branches].some(e=>e.contains(t));A&&!n&&(v?.(e),b?.(e),e.defaultPrevented||w?.())},O),N=function(e,t=globalThis?.document){const n=(0,a.c)(e),o=r.useRef(!1);return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){g(f,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...j.branches].some(e=>e.contains(t))||(y?.(e),b?.(e),e.defaultPrevented||w?.())},O);return function(e,t=globalThis?.document){const n=(0,a.c)(e);r.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D===j.layers.size-1&&(m?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},O),r.useEffect(()=>{if(_)return n&&(0===j.layersWithOutsidePointerEventsDisabled.size&&(c=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),j.layersWithOutsidePointerEventsDisabled.add(_)),j.layers.add(_),h(),()=>{n&&1===j.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=c)}},[_,O,n,j]),r.useEffect(()=>()=>{_&&(j.layers.delete(_),j.layersWithOutsidePointerEventsDisabled.delete(_),h())},[_,j]),r.useEffect(()=>{const e=()=>C({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,u.jsx)(i.sG.div,{...x,ref:R,style:{pointerEvents:T?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,k.onPointerDownCapture)})});m.displayName="DismissableLayer";var v=r.forwardRef((e,t)=>{const n=r.useContext(p),o=r.useRef(null),a=(0,s.s)(t,o);return r.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(i.sG.div,{...e,ref:a})});function h(){const e=new CustomEvent(l);document.dispatchEvent(e)}function g(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,i.hO)(o,s):o.dispatchEvent(s)}v.displayName="DismissableLayerBranch"},"./node_modules/@radix-ui/react-focus-guards/dist/index.mjs"(e,t,n){"use strict";n.d(t,{Oh:()=>i});var r=n("./node_modules/react/index.js"),o=0;function i(){r.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s()),document.body.insertAdjacentElement("beforeend",e[1]??s()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function s(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},"./node_modules/@radix-ui/react-focus-scope/dist/index.mjs"(e,t,n){"use strict";n.d(t,{n:()=>d});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),i=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"),a=n("./node_modules/react/jsx-runtime.js"),c="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{const{loop:n=!1,trapped:d=!1,onMountAutoFocus:m,onUnmountAutoFocus:g,...y}=e,[b,w]=r.useState(null),x=(0,s.c)(m),j=(0,s.c)(g),_=r.useRef(null),E=(0,o.s)(t,e=>w(e)),O=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(O.paused||!b)return;const t=e.target;b.contains(t)?_.current=t:v(_.current,{select:!0})},t=function(e){if(O.paused||!b)return;const t=e.relatedTarget;null!==t&&(b.contains(t)||v(_.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&v(b)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,O.paused]),r.useEffect(()=>{if(b){h.add(O);const t=document.activeElement;if(!b.contains(t)){const n=new CustomEvent(c,l);b.addEventListener(c,x),b.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(v(r,{select:t}),document.activeElement!==n)return}((e=f(b),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&v(b))}return()=>{b.removeEventListener(c,x),setTimeout(()=>{const e=new CustomEvent(u,l);b.addEventListener(u,j),b.dispatchEvent(e),e.defaultPrevented||v(t??document.body,{select:!0}),b.removeEventListener(u,j),h.remove(O)},0)}}var e},[b,x,j,O]);const C=r.useCallback(e=>{if(!n&&!d)return;if(O.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=f(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&v(i,{select:!0})):(e.preventDefault(),n&&v(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,O.paused]);return(0,a.jsx)(i.sG.div,{tabIndex:-1,...y,ref:E,onKeyDown:C})});function f(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(const n of e)if(!m(n,{upTo:t}))return n}function m(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function v(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}d.displayName="FocusScope";var h=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=g(e,t),e.unshift(t)},remove(t){e=g(e,t),e[0]?.resume()}}}();function g(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}},"./node_modules/@radix-ui/react-id/dist/index.mjs"(e,t,n){"use strict";var r;n.d(t,{B:()=>c});var o=n("./node_modules/react/index.js"),i=n("./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"),s=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>{}),a=0;function c(e){const[t,n]=o.useState(s());return(0,i.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},"./node_modules/@radix-ui/react-menu/dist/index.mjs"(e,t,n){"use strict";n.d(t,{Mz:()=>Ct,i3:()=>Lt,H_:()=>Tt,UC:()=>Pt,YJ:()=>St,q7:()=>Dt,VF:()=>Nt,JU:()=>Mt,ZL:()=>Rt,z6:()=>At,hN:()=>kt,bL:()=>Ot,wv:()=>It,Pb:()=>Ft,G5:()=>Bt,ZP:()=>$t,UE:()=>Re});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/primitive/dist/index.mjs"),i=n("./node_modules/@radix-ui/react-context/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),a=n("./node_modules/@radix-ui/react-slot/dist/index.mjs"),c=n("./node_modules/react/jsx-runtime.js");function u(e){const t=e+"CollectionProvider",[n,o]=(0,i.A)(t),[u,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{const{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,c.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;const f=e+"CollectionSlot",p=(0,a.TL)(f),m=r.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=l(f,n),i=(0,s.s)(t,o.collectionRef);return(0,c.jsx)(p,{ref:i,children:r})});m.displayName=f;const v=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,a.TL)(v),y=r.forwardRef((e,t)=>{const{scope:n,children:o,...i}=e,a=r.useRef(null),u=(0,s.s)(t,a),d=l(v,n);return r.useEffect(()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)})),(0,c.jsx)(g,{[h]:"",ref:u,children:o})});return y.displayName=v,[{Provider:d,Slot:m,ItemSlot:y},function(t){const n=l(e+"CollectionConsumer",t);return r.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}var l=new WeakMap;Map;function d(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=f(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function f(e){return e!=e||0===e?0:Math.trunc(e)}var p=r.createContext(void 0);function m(e){const t=r.useContext(p);return e||t||"ltr"}var v=n("./node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"),h=n("./node_modules/@radix-ui/react-focus-guards/dist/index.mjs"),g=n("./node_modules/@radix-ui/react-focus-scope/dist/index.mjs"),y=n("./node_modules/@radix-ui/react-id/dist/index.mjs"),b=n("./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"),w=n("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),x=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),j=r.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(x.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});j.displayName="Arrow";var _=j,E=n("./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"),O=n("./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs");var C="Popper",[R,P]=(0,i.A)(C),[S,M]=R(C),D=e=>{const{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,c.jsx)(S,{scope:t,anchor:o,onAnchorChange:i,children:n})};D.displayName=C;var T="PopperAnchor",A=r.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,a=M(T,n),u=r.useRef(null),l=(0,s.s)(t,u),d=r.useRef(null);return r.useEffect(()=>{const e=d.current;d.current=o?.current||u.current,e!==d.current&&a.onAnchorChange(d.current)}),o?null:(0,c.jsx)(x.sG.div,{...i,ref:l})});A.displayName=T;var k="PopperContent",[N,I]=R(k),L=r.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:u=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:g,...y}=e,j=M(k,n),[_,C]=r.useState(null),R=(0,s.s)(t,e=>C(e)),[P,S]=r.useState(null),D=function(e){const[t,n]=r.useState(void 0);return(0,O.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(P),T=D?.width??0,A=D?.height??0,I=o+("center"!==a?"-"+a:""),L="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},F=Array.isArray(f)?f:[f],$=F.length>0,B={padding:L,boundary:F.filter(W),altBoundary:$},{refs:K,floatingStyles:H,placement:z,isPositioned:V,middlewareData:G}=(0,b.we)({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>(0,w.ll)(...e,{animationFrame:"always"===h}),elements:{reference:j.anchor},middleware:[(0,b.cY)({mainAxis:i+A,alignmentAxis:u}),d&&(0,b.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?(0,b.ER)():void 0,...B}),d&&(0,b.UU)({...B}),(0,b.Ej)({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),P&&(0,b.UE)({element:P,padding:l}),U({arrowWidth:T,arrowHeight:A}),v&&(0,b.jD)({strategy:"referenceHidden",...B})]}),[Y,X]=q(z),Z=(0,E.c)(g);(0,O.N)(()=>{V&&Z?.()},[V,Z]);const J=G.arrow?.x,Q=G.arrow?.y,ee=0!==G.arrow?.centerOffset,[te,ne]=r.useState();return(0,O.N)(()=>{_&&ne(window.getComputedStyle(_).zIndex)},[_]),(0,c.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:V?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(N,{scope:n,placedSide:Y,onArrowChange:S,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,c.jsx)(x.sG.div,{"data-side":Y,"data-align":X,...y,ref:R,style:{...y.style,animation:V?void 0:"none"}})})})});L.displayName=k;var F="PopperArrow",$={top:"bottom",right:"left",bottom:"top",left:"right"},B=r.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=I(F,n),i=$[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(_,{...r,ref:t,style:{...r.style,display:"block"}})})});function W(e){return null!==e}B.displayName=F;var U=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,u]=q(n),l={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+a/2;let p="",m="";return"bottom"===c?(p=i?l:`${d}px`,m=-a+"px"):"top"===c?(p=i?l:`${d}px`,m=`${r.floating.height+a}px`):"right"===c?(p=-a+"px",m=i?l:`${f}px`):"left"===c&&(p=`${r.floating.width+a}px`,m=i?l:`${f}px`),{data:{x:p,y:m}}}});function q(e){const[t,n="center"]=e.split("-");return[t,n]}var K=D,H=A,z=L,V=B,G=n("./node_modules/@radix-ui/react-portal/dist/index.mjs"),Y=n("./node_modules/@radix-ui/react-presence/dist/index.mjs"),X=n("./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),Z="rovingFocusGroup.onEntryFocus",J={bubbles:!1,cancelable:!0},Q="RovingFocusGroup",[ee,te,ne]=u(Q),[re,oe]=(0,i.A)(Q,[ne]),[ie,se]=re(Q),ae=r.forwardRef((e,t)=>(0,c.jsx)(ee.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(ee.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(ce,{...e,ref:t})})}));ae.displayName=Q;var ce=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:a=!1,dir:u,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...h}=e,g=r.useRef(null),y=(0,s.s)(t,g),b=m(u),[w,j]=(0,X.i)({prop:l,defaultProp:d??null,onChange:f,caller:Q}),[_,O]=r.useState(!1),C=(0,E.c)(p),R=te(n),P=r.useRef(!1),[S,M]=r.useState(0);return r.useEffect(()=>{const e=g.current;if(e)return e.addEventListener(Z,C),()=>e.removeEventListener(Z,C)},[C]),(0,c.jsx)(ie,{scope:n,orientation:i,dir:b,loop:a,currentTabStopId:w,onItemFocus:r.useCallback(e=>j(e),[j]),onItemShiftTab:r.useCallback(()=>O(!0),[]),onFocusableItemAdd:r.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>M(e=>e-1),[]),children:(0,c.jsx)(x.sG.div,{tabIndex:_||0===S?-1:0,"data-orientation":i,...h,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{const t=!P.current;if(e.target===e.currentTarget&&t&&!_){const t=new CustomEvent(Z,J);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=R().filter(e=>e.focusable);fe([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),v)}}P.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>O(!1))})})}),ue="RovingFocusGroupItem",le=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:a,children:u,...l}=e,d=(0,y.B)(),f=a||d,p=se(ue,n),m=p.currentTabStopId===f,v=te(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:b}=p;return r.useEffect(()=>{if(i)return h(),()=>g()},[i,h,g]),(0,c.jsx)(ee.ItemSlot,{scope:n,id:f,focusable:i,active:s,children:(0,c.jsx)(x.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:de[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=p.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>fe(o))}var n,r}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=b}):u})})});le.displayName=ue;var de={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fe(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var pe=ae,me=le,ve=n("./node_modules/aria-hidden/dist/es2015/index.js"),he=n("./node_modules/react-remove-scroll/dist/es2015/Combination.js"),ge=["Enter"," "],ye=["ArrowUp","PageDown","End"],be=["ArrowDown","PageUp","Home",...ye],we={ltr:[...ge,"ArrowRight"],rtl:[...ge,"ArrowLeft"]},xe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},je="Menu",[_e,Ee,Oe]=u(je),[Ce,Re]=(0,i.A)(je,[Oe,P,oe]),Pe=P(),Se=oe(),[Me,De]=Ce(je),[Te,Ae]=Ce(je),ke=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:s,modal:a=!0}=e,u=Pe(t),[l,d]=r.useState(null),f=r.useRef(!1),p=(0,E.c)(s),v=m(i);return r.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,c.jsx)(K,{...u,children:(0,c.jsx)(Me,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:(0,c.jsx)(Te,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:a,children:o})})})};ke.displayName=je;var Ne=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Pe(n);return(0,c.jsx)(H,{...o,...r,ref:t})});Ne.displayName="MenuAnchor";var Ie="MenuPortal",[Le,Fe]=Ce(Ie,{forceMount:void 0}),$e=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=De(Ie,t);return(0,c.jsx)(Le,{scope:t,forceMount:n,children:(0,c.jsx)(Y.C,{present:n||i.open,children:(0,c.jsx)(G.Z,{asChild:!0,container:o,children:r})})})};$e.displayName=Ie;var Be="MenuContent",[We,Ue]=Ce(Be),qe=r.forwardRef((e,t)=>{const n=Fe(Be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=De(Be,e.__scopeMenu),s=Ae(Be,e.__scopeMenu);return(0,c.jsx)(_e.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(Y.C,{present:r||i.open,children:(0,c.jsx)(_e.Slot,{scope:e.__scopeMenu,children:s.modal?(0,c.jsx)(Ke,{...o,ref:t}):(0,c.jsx)(He,{...o,ref:t})})})})}),Ke=r.forwardRef((e,t)=>{const n=De(Be,e.__scopeMenu),i=r.useRef(null),a=(0,s.s)(t,i);return r.useEffect(()=>{const e=i.current;if(e)return(0,ve.Eq)(e)},[]),(0,c.jsx)(Ve,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),He=r.forwardRef((e,t)=>{const n=De(Be,e.__scopeMenu);return(0,c.jsx)(Ve,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ze=(0,a.TL)("MenuContent.ScrollLock"),Ve=r.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:x,...j}=e,_=De(Be,n),E=Ae(Be,n),O=Pe(n),C=Se(n),R=Ee(n),[P,S]=r.useState(null),M=r.useRef(null),D=(0,s.s)(t,M,_.onContentChange),T=r.useRef(0),A=r.useRef(""),k=r.useRef(0),N=r.useRef(null),I=r.useRef("right"),L=r.useRef(0),F=x?he.A:r.Fragment,$=x?{as:ze,allowPinchZoom:!0}:void 0,B=e=>{const t=A.current+e,n=R().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,i=n?e.indexOf(n):-1;let s=(a=e,c=Math.max(i,0),a.map((e,t)=>a[(c+t)%a.length]));var a,c;1===o.length&&(s=s.filter(e=>e!==n));const u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),s=n.find(e=>e.textValue===i)?.ref.current;!function e(t){A.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(t),s&&setTimeout(()=>s.focus())};r.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,h.Oh)();const W=r.useCallback(e=>I.current===N.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],a=t[i],c=s.x,u=s.y,l=a.x,d=a.y;u>r!=d>r&&n<(l-c)*(r-u)/(d-u)+c&&(o=!o)}return o}(n,t)}(e,N.current?.area),[]);return(0,c.jsx)(We,{scope:n,searchRef:A,onItemEnter:r.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:r.useCallback(e=>{W(e)||(M.current?.focus(),S(null))},[W]),onTriggerLeave:r.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:k,onPointerGraceIntentChange:r.useCallback(e=>{N.current=e},[]),children:(0,c.jsx)(F,{...$,children:(0,c.jsx)(g.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,o.mK)(u,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,c.jsx)(v.qW,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:(0,c.jsx)(pe,{asChild:!0,...C,dir:E.dir,orientation:"vertical",loop:i,currentTabStopId:P,onCurrentTabStopIdChange:S,onEntryFocus:(0,o.mK)(f,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(z,{role:"menu","aria-orientation":"vertical","data-state":xt(_.open),"data-radix-menu-content":"",dir:E.dir,...O,...j,ref:D,style:{outline:"none",...j.style},onKeyDown:(0,o.mK)(j.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&B(e.key));const o=M.current;if(e.target!==o)return;if(!be.includes(e.key))return;e.preventDefault();const i=R().filter(e=>!e.disabled).map(e=>e.ref.current);ye.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),A.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,Et(e=>{const t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>L.current?"right":"left";I.current=t,L.current=e.clientX}}))})})})})})})});qe.displayName=Be;var Ge=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,c.jsx)(x.sG.div,{role:"group",...r,ref:t})});Ge.displayName="MenuGroup";var Ye=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,c.jsx)(x.sG.div,{...r,ref:t})});Ye.displayName="MenuLabel";var Xe="MenuItem",Ze="menu.itemSelect",Je=r.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...a}=e,u=r.useRef(null),l=Ae(Xe,e.__scopeMenu),d=Ue(Xe,e.__scopeMenu),f=(0,s.s)(t,u),p=r.useRef(!1);return(0,c.jsx)(Qe,{...a,ref:f,disabled:n,onClick:(0,o.mK)(e.onClick,()=>{const e=u.current;if(!n&&e){const t=new CustomEvent(Ze,{bubbles:!0,cancelable:!0});e.addEventListener(Ze,e=>i?.(e),{once:!0}),(0,x.hO)(e,t),t.defaultPrevented?p.current=!1:l.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{const t=""!==d.searchRef.current;n||t&&" "===e.key||ge.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Je.displayName=Xe;var Qe=r.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:a,...u}=e,l=Ue(Xe,n),d=Se(n),f=r.useRef(null),p=(0,s.s)(t,f),[m,v]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{const e=f.current;e&&g((e.textContent??"").trim())},[u.children]),(0,c.jsx)(_e.ItemSlot,{scope:n,disabled:i,textValue:a??h,children:(0,c.jsx)(me,{asChild:!0,...d,focusable:!i,children:(0,c.jsx)(x.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:p,onPointerMove:(0,o.mK)(e.onPointerMove,Et(e=>{if(i)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:(0,o.mK)(e.onPointerLeave,Et(e=>l.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>v(!0)),onBlur:(0,o.mK)(e.onBlur,()=>v(!1))})})})}),et=r.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return(0,c.jsx)(ct,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(Je,{role:"menuitemcheckbox","aria-checked":jt(n)?"mixed":n,...i,ref:t,"data-state":_t(n),onSelect:(0,o.mK)(i.onSelect,()=>r?.(!!jt(n)||!n),{checkForDefaultPrevented:!1})})})});et.displayName="MenuCheckboxItem";var tt="MenuRadioGroup",[nt,rt]=Ce(tt,{value:void 0,onValueChange:()=>{}}),ot=r.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=(0,E.c)(r);return(0,c.jsx)(nt,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,c.jsx)(Ge,{...o,ref:t})})});ot.displayName=tt;var it="MenuRadioItem",st=r.forwardRef((e,t)=>{const{value:n,...r}=e,i=rt(it,e.__scopeMenu),s=n===i.value;return(0,c.jsx)(ct,{scope:e.__scopeMenu,checked:s,children:(0,c.jsx)(Je,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":_t(s),onSelect:(0,o.mK)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});st.displayName=it;var at="MenuItemIndicator",[ct,ut]=Ce(at,{checked:!1}),lt=r.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=ut(at,n);return(0,c.jsx)(Y.C,{present:r||jt(i.checked)||!0===i.checked,children:(0,c.jsx)(x.sG.span,{...o,ref:t,"data-state":_t(i.checked)})})});lt.displayName=at;var dt=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,c.jsx)(x.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});dt.displayName="MenuSeparator";var ft=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Pe(n);return(0,c.jsx)(V,{...o,...r,ref:t})});ft.displayName="MenuArrow";var pt="MenuSub",[mt,vt]=Ce(pt),ht=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,s=De(pt,t),a=Pe(t),[u,l]=r.useState(null),[d,f]=r.useState(null),p=(0,E.c)(i);return r.useEffect(()=>(!1===s.open&&p(!1),()=>p(!1)),[s.open,p]),(0,c.jsx)(K,{...a,children:(0,c.jsx)(Me,{scope:t,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,c.jsx)(mt,{scope:t,contentId:(0,y.B)(),triggerId:(0,y.B)(),trigger:u,onTriggerChange:l,children:n})})})};ht.displayName=pt;var gt="MenuSubTrigger",yt=r.forwardRef((e,t)=>{const n=De(gt,e.__scopeMenu),i=Ae(gt,e.__scopeMenu),a=vt(gt,e.__scopeMenu),u=Ue(gt,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},m=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>m,[m]),r.useEffect(()=>{const e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,c.jsx)(Ne,{asChild:!0,...p,children:(0,c.jsx)(Qe,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":xt(n.open),...e,ref:(0,s.t)(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,Et(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(u.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,Et(e=>{m();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,s=t[o?"left":"right"],a=t[o?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:s,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,t=>{const r=""!==u.searchRef.current;e.disabled||r&&" "===t.key||we[i.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});yt.displayName=gt;var bt="MenuSubContent",wt=r.forwardRef((e,t)=>{const n=Fe(Be,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,u=De(Be,e.__scopeMenu),l=Ae(Be,e.__scopeMenu),d=vt(bt,e.__scopeMenu),f=r.useRef(null),p=(0,s.s)(t,f);return(0,c.jsx)(_e.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(Y.C,{present:i||u.open,children:(0,c.jsx)(_e.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(Ve,{id:d.contentId,"aria-labelledby":d.triggerId,...a,ref:p,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=xe[l.dir].includes(e.key);t&&n&&(u.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function xt(e){return e?"open":"closed"}function jt(e){return"indeterminate"===e}function _t(e){return jt(e)?"indeterminate":e?"checked":"unchecked"}function Et(e){return t=>"mouse"===t.pointerType?e(t):void 0}wt.displayName=bt;var Ot=ke,Ct=Ne,Rt=$e,Pt=qe,St=Ge,Mt=Ye,Dt=Je,Tt=et,At=ot,kt=st,Nt=lt,It=dt,Lt=ft,Ft=ht,$t=yt,Bt=wt},"./node_modules/@radix-ui/react-portal/dist/index.mjs"(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-dom/index.js"),i=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"),a=n("./node_modules/react/jsx-runtime.js"),c=r.forwardRef((e,t)=>{const{container:n,...c}=e,[u,l]=r.useState(!1);(0,s.N)(()=>l(!0),[]);const d=n||u&&globalThis?.document?.body;return d?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),d):null});c.displayName="Portal"},"./node_modules/@radix-ui/react-presence/dist/index.mjs"(e,t,n){"use strict";n.d(t,{C:()=>s});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),i=n("./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs");var s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=r.useState(),o=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),u=e?"mounted":"unmounted",[l,d]=function(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const e=a(o.current);c.current="mounted"===l?e:"none"},[l]),(0,i.N)(()=>{const t=o.current,n=s.current;if(n!==e){const r=c.current,o=a(t);if(e)d("MOUNT");else if("none"===o||"none"===t?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,d]),(0,i.N)(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const i=a(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d("ANIMATION_END"),!s.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(c.current=a(o.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(t),c="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),u=(0,o.s)(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof n||s.isPresent?r.cloneElement(c,{ref:u}):null};function a(e){return e?.animationName||"none"}s.displayName="Presence"},"./node_modules/@radix-ui/react-primitive/dist/index.mjs"(e,t,n){"use strict";n.d(t,{hO:()=>c,sG:()=>a});var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-dom/index.js"),i=n("./node_modules/@radix-ui/react-slot/dist/index.mjs"),s=n("./node_modules/react/jsx-runtime.js"),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function c(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},"./node_modules/@radix-ui/react-slot/dist/index.mjs"(e,t,n){"use strict";n.d(t,{TL:()=>s});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),i=n("./node_modules/react/jsx-runtime.js");function s(e){const t=a(e),n=r.forwardRef((e,n)=>{const{children:o,...s}=e,a=r.Children.toArray(o),c=a.find(u);if(c){const e=c.props.children,o=a.map(t=>t===c?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(t,{...s,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...s,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}function a(e){const t=r.forwardRef((e,t)=>{const{children:n,...i}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),s=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,o.t)(t,e):e),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},"./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"(e,t,n){"use strict";n.d(t,{c:()=>o});var r=n("./node_modules/react/index.js");function o(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},"./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"(e,t,n){"use strict";var r;n.d(t,{i:()=>a});var o=n("./node_modules/react/index.js"),i=n("./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"),s=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,c]=function({defaultProp:e,onChange:t}){const[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return s(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:i;{const t=o.useRef(void 0!==e);o.useEffect(()=>{const e=t.current;if(e!==u){const t=e?"controlled":"uncontrolled",n=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}const d=o.useCallback(t=>{if(u){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&c.current?.(n)}else a(t)},[u,e,a,c]);return[l,d]}Symbol("RADIX:SYNC_STATE")},"./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"(e,t,n){"use strict";n.d(t,{N:()=>o});var r=n("./node_modules/react/index.js"),o=globalThis?.document?r.useLayoutEffect:()=>{}},"./node_modules/@vector-im/compound-web/dist/components/ActivityMarker/Unread.js"(e,t,n){"use strict";n.d(t,{I:()=>c});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/react/jsx-runtime.js");const i="_unread_cti0f_8";function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return(0,o.jsx)("div",a(a({},e),{},{className:i,children:(0,o.jsx)("div",{})}))}},"./node_modules/@vector-im/compound-web/dist/components/ActivityMarker/UnreadCounter.js"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js");const s="_unread-counter_1147r_8",a=["count"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){let{count:t}=e,n=(0,o.A)(e,a);return null===t?(0,i.jsx)("div",u(u({},n),{},{className:s})):(0,i.jsx)("span",u(u({},n),{},{className:s,children:t}))}},"./node_modules/@vector-im/compound-web/dist/components/Button/IconButton/IconButton.js"(e,t,n){"use strict";n.d(t,{K:()=>g});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/react/index.js"),a=n("./node_modules/classnames/index.js");const c="_icon-button_1215g_8",u="_no-background_1215g_42",l="_destructive_1215g_95";var d=n("./node_modules/@vector-im/compound-web/dist/components/Button/UnstyledButton.js"),f=n("./node_modules/@vector-im/compound-web/dist/components/Icon/IndicatorIcon/IndicatorIcon.js"),p=n("./node_modules/@vector-im/compound-web/dist/components/Tooltip/Tooltip.js");const m=["kind","children","className","indicator","size","style","disabled","destructive","tooltip","noBackground"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const g=(0,s.forwardRef)(function(e,t){let{kind:n="primary",children:r,className:v,indicator:g,size:y="32px",style:b,disabled:w,destructive:x,tooltip:j,noBackground:_=!1}=e,E=(0,o.A)(e,m);const O=a(c,v,{[l]:x,[u]:_}),C=(0,i.jsx)(d.N,h(h({as:"button",ref:t,className:O,style:h({"--cpd-icon-button-size":y},b),disabled:w},E),{},{"data-indicator":g,"data-kind":n,children:(0,i.jsx)(f.N,{indicator:g,colour:w?"var(--cpd-color-icon-disabled)":void 0,children:s.Children.only(r)})}));return j?(0,i.jsx)(p.m,{label:j,children:C}):C})},"./node_modules/@vector-im/compound-web/dist/components/Button/UnstyledButton.js"(e,t,n){"use strict";n.d(t,{N:()=>d});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/react/index.js");const a=["as","children","className","disabled"],c=["onClick","onSubmit","onPointerDown","onPointerUp","onKeyDown","onKeyUp","onKeyPress"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=(0,s.forwardRef)(function(e,t){let{as:n,children:r,className:s,disabled:u}=e,d=(0,o.A)(e,a);const f=n||"button",{onClick:p,onSubmit:m,onPointerDown:v,onPointerUp:h,onKeyDown:g,onKeyUp:y,onKeyPress:b}=d,w=(0,o.A)(d,c),x=u?{}:{onClick:p,onSubmit:m,onPointerDown:v,onPointerUp:h,onKeyDown:g,onKeyUp:y,onKeyPress:b};return(0,i.jsx)(f,l(l(l({ref:t,className:s,role:"a"===n?"link":"button",tabIndex:0,"aria-disabled":u},w),x),{},{children:r}))})},"./node_modules/@vector-im/compound-web/dist/components/Form/Controls/Toggle/Toggle.module.css.js"(e,t,n){"use strict";n.d(t,{Ay:()=>r});const r={container:"_container_udcm8_10",input:"_input_udcm8_24",ui:"_ui_udcm8_34"}},"./node_modules/@vector-im/compound-web/dist/components/Icon/IndicatorIcon/IndicatorIcon.js"(e,t,n){"use strict";n.d(t,{N:()=>a});var r=n("./node_modules/react/jsx-runtime.js"),o=n("./node_modules/react/index.js"),i=n("./node_modules/classnames/index.js");const s="_indicator-icon_147l5_17",a=(0,o.forwardRef)(function({children:e,className:t,size:n="100%",colour:a,indicator:c},u){const l=i(s,t);return(0,r.jsx)("div",{ref:u,className:l,"data-indicator":c,style:{"--cpd-icon-button-size":n,"--cpd-color-icon-tertiary":a},children:o.Children.only(e)})})},"./node_modules/@vector-im/compound-web/dist/components/Menu/ContextMenu.js"(e,t,n){"use strict";n.d(t,{t:()=>Y});var r=n("./node_modules/react/jsx-runtime.js"),o=n("./node_modules/react/index.js"),i=n("./node_modules/@radix-ui/primitive/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-context/dist/index.mjs"),a=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),c=n("./node_modules/@radix-ui/react-menu/dist/index.mjs"),u=n("./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"),l=n("./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),d="ContextMenu",[f,p]=(0,s.A)(d,[c.UE]),m=(0,c.UE)(),[v,h]=f(d),g=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:i,dir:s,modal:a=!0}=e,[l,d]=o.useState(!1),f=m(t),p=(0,u.c)(i),h=o.useCallback(e=>{d(e),p(e)},[p]);return(0,r.jsx)(v,{scope:t,open:l,onOpenChange:h,modal:a,children:(0,r.jsx)(c.bL,{...f,dir:s,open:l,onOpenChange:h,modal:a,children:n})})};g.displayName=d;var y="ContextMenuTrigger",b=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:s=!1,...u}=e,l=h(y,n),d=m(n),f=o.useRef({x:0,y:0}),p=o.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...f.current})}),v=o.useRef(0),g=o.useCallback(()=>window.clearTimeout(v.current),[]),b=e=>{f.current={x:e.clientX,y:e.clientY},l.onOpenChange(!0)};return o.useEffect(()=>g,[g]),o.useEffect(()=>{s&&g()},[s,g]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Mz,{...d,virtualRef:p}),(0,r.jsx)(a.sG.span,{"data-state":l.open?"open":"closed","data-disabled":s?"":void 0,...u,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:s?e.onContextMenu:(0,i.mK)(e.onContextMenu,e=>{g(),b(e),e.preventDefault()}),onPointerDown:s?e.onPointerDown:(0,i.mK)(e.onPointerDown,I(e=>{g(),v.current=window.setTimeout(()=>b(e),700)})),onPointerMove:s?e.onPointerMove:(0,i.mK)(e.onPointerMove,I(g)),onPointerCancel:s?e.onPointerCancel:(0,i.mK)(e.onPointerCancel,I(g)),onPointerUp:s?e.onPointerUp:(0,i.mK)(e.onPointerUp,I(g))})]})});b.displayName=y;var w=e=>{const{__scopeContextMenu:t,...n}=e,o=m(t);return(0,r.jsx)(c.ZL,{...o,...n})};w.displayName="ContextMenuPortal";var x="ContextMenuContent",j=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,s=h(x,n),a=m(n),u=o.useRef(!1);return(0,r.jsx)(c.UC,{...a,...i,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&u.current&&t.preventDefault(),u.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||s.modal||(u.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});j.displayName=x;var _=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.YJ,{...i,...o,ref:t})});_.displayName="ContextMenuGroup";var E=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.JU,{...i,...o,ref:t})});E.displayName="ContextMenuLabel";var O=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.q7,{...i,...o,ref:t})});O.displayName="ContextMenuItem";var C=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.H_,{...i,...o,ref:t})});C.displayName="ContextMenuCheckboxItem";var R=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.z6,{...i,...o,ref:t})});R.displayName="ContextMenuRadioGroup";var P=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.hN,{...i,...o,ref:t})});P.displayName="ContextMenuRadioItem";var S=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.VF,{...i,...o,ref:t})});S.displayName="ContextMenuItemIndicator";var M=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.wv,{...i,...o,ref:t})});M.displayName="ContextMenuSeparator";var D=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.i3,{...i,...o,ref:t})});D.displayName="ContextMenuArrow";var T="ContextMenuSub",A=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,open:i,defaultOpen:s}=e,a=m(t),[u,d]=(0,l.i)({prop:i,defaultProp:s??!1,onChange:o,caller:T});return(0,r.jsx)(c.Pb,{...a,open:u,onOpenChange:d,children:n})};A.displayName=T;var k=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.ZP,{...i,...o,ref:t})});k.displayName="ContextMenuSubTrigger";var N=o.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,i=m(n);return(0,r.jsx)(c.G5,{...i,...o,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function I(e){return t=>"mouse"!==t.pointerType?e(t):void 0}N.displayName="ContextMenuSubContent";var L=g,F=b,$=w,B=j,W=n("./node_modules/@vector-im/compound-web/dist/components/Menu/FloatingMenu.js"),U=n("./node_modules/vaul/dist/index.mjs"),q=n("./node_modules/classnames/index.js"),K=n("./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.module.css.js"),H=n("./node_modules/@vector-im/compound-web/dist/components/Menu/MenuContext.js"),z=n("./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.js"),V=n("./node_modules/@vector-im/compound-web/dist/utils/platform.js");const G=({onSelect:e,children:t})=>(0,r.jsx)(O,{onSelect:null!=e?e:void 0,asChild:!0,children:t}),Y=({title:e,showTitle:t=!0,onOpenChange:n,trigger:i,hasAccessibleAlternative:s,children:a})=>{const[c,u]=(0,o.useState)(!1),l=(0,o.useCallback)(e=>{u(e),null==n||n(e)},[u,n]),d=(0,V.u)(),f="android"===d||"ios"===d,p=(0,o.useMemo)(()=>({MenuItemWrapper:f?null:G,onOpenChange:l}),[l]),m=(0,r.jsx)(H.x.Provider,{value:p,children:a}),v=(0,r.jsx)(F,{"aria-haspopup":"menu",tabIndex:s?void 0:0,asChild:!0,children:i});return f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L,{onOpenChange:l,children:v}),(0,r.jsx)(U._s.Root,{open:c,onOpenChange:l,children:(0,r.jsxs)(U._s.Portal,{children:[(0,r.jsx)(U._s.Overlay,{className:q(K.Ay.bg)}),(0,r.jsx)(U._s.Content,{asChild:!0,children:(0,r.jsx)(z.Z,{title:e,children:m})})]})})]}):(0,r.jsxs)(L,{onOpenChange:l,children:[v,(0,r.jsx)($,{children:(0,r.jsx)(B,{asChild:!0,children:(0,r.jsx)(W.y,{showTitle:t,title:e,children:m})})})]})}},"./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.js"(e,t,n){"use strict";n.d(t,{Z:()=>p});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/react/index.js"),a=n("./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.module.css.js"),c=n("./node_modules/@vector-im/compound-web/dist/utils/platform.js"),u=n("./node_modules/classnames/index.js");const l=["title","children","className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const p=(0,s.forwardRef)((e,t)=>{let{title:n,children:r,className:s}=e,d=(0,o.A)(e,l);return(0,i.jsx)("div",f(f({ref:t,className:u(s,a.Ay.drawer),"aria-label":n,"data-platform":(0,c.u)()},d),{},{role:"menu",children:(0,i.jsx)("div",{className:a.Ay.body,children:r})}))});p.displayName="DrawerMenu"},"./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.module.css.js"(e,t,n){"use strict";n.d(t,{Ay:()=>r});const r={bg:"_bg_610zp_8",drawer:"_drawer_610zp_17",body:"_body_610zp_51"}},"./node_modules/@vector-im/compound-web/dist/components/Menu/FloatingMenu.js"(e,t,n){"use strict";n.d(t,{y:()=>m});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/classnames/index.js"),a=n("./node_modules/react/index.js");const c="_menu_1w1u7_8",u="_title_1w1u7_63";var l=n("./node_modules/@vector-im/compound-web/dist/components/Menu/MenuTitle.js");const d=["title","showTitle","className","children"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const m=(0,a.forwardRef)((e,t)=>{let{title:n,showTitle:r=!0,className:f,children:m}=e,v=(0,o.A)(e,d);const h=(0,a.useId)();return(0,i.jsxs)("div",p(p({role:"menu",ref:t,"aria-label":r?void 0:n,"aria-labelledby":r?h:void 0,className:s(f,c)},v),{},{children:[r&&(0,i.jsx)(l.e,{className:u,title:n,id:h}),m]}))});m.displayName="FloatingMenu"},"./node_modules/@vector-im/compound-web/dist/components/Menu/Menu.js"(e,t,n){"use strict";n.d(t,{W:()=>V});var r=n("./node_modules/react/jsx-runtime.js"),o=n("./node_modules/react/index.js"),i=n("./node_modules/@radix-ui/primitive/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),a=n("./node_modules/@radix-ui/react-context/dist/index.mjs"),c=n("./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),u=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),l=n("./node_modules/@radix-ui/react-menu/dist/index.mjs"),d=n("./node_modules/@radix-ui/react-id/dist/index.mjs"),f="DropdownMenu",[p,m]=(0,a.A)(f,[l.UE]),v=(0,l.UE)(),[h,g]=p(f),y=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:s,defaultOpen:a,onOpenChange:u,modal:p=!0}=e,m=v(t),g=o.useRef(null),[y,b]=(0,c.i)({prop:s,defaultProp:a??!1,onChange:u,caller:f});return(0,r.jsx)(h,{scope:t,triggerId:(0,d.B)(),triggerRef:g,contentId:(0,d.B)(),open:y,onOpenChange:b,onOpenToggle:o.useCallback(()=>b(e=>!e),[b]),modal:p,children:(0,r.jsx)(l.bL,{...m,open:y,onOpenChange:b,dir:i,modal:p,children:n})})};y.displayName=f;var b="DropdownMenuTrigger",w=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,c=g(b,n),d=v(n);return(0,r.jsx)(l.Mz,{asChild:!0,...d,children:(0,r.jsx)(u.sG.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:(0,s.t)(t,c.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{o||0!==e.button||!1!==e.ctrlKey||(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{o||(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});w.displayName=b;var x=e=>{const{__scopeDropdownMenu:t,...n}=e,o=v(t);return(0,r.jsx)(l.ZL,{...o,...n})};x.displayName="DropdownMenuPortal";var j="DropdownMenuContent",_=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...s}=e,a=g(j,n),c=v(n),u=o.useRef(!1);return(0,r.jsx)(l.UC,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...s,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_.displayName=j;var E=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.YJ,{...i,...o,ref:t})});E.displayName="DropdownMenuGroup";var O=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.JU,{...i,...o,ref:t})});O.displayName="DropdownMenuLabel";var C=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.q7,{...i,...o,ref:t})});C.displayName="DropdownMenuItem";var R=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.H_,{...i,...o,ref:t})});R.displayName="DropdownMenuCheckboxItem";var P=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.z6,{...i,...o,ref:t})});P.displayName="DropdownMenuRadioGroup";var S=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.hN,{...i,...o,ref:t})});S.displayName="DropdownMenuRadioItem";var M=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.VF,{...i,...o,ref:t})});M.displayName="DropdownMenuItemIndicator";var D=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.wv,{...i,...o,ref:t})});D.displayName="DropdownMenuSeparator";var T=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.i3,{...i,...o,ref:t})});T.displayName="DropdownMenuArrow";var A=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.ZP,{...i,...o,ref:t})});A.displayName="DropdownMenuSubTrigger";var k=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=v(n);return(0,r.jsx)(l.G5,{...i,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k.displayName="DropdownMenuSubContent";var N=y,I=w,L=x,F=_,$=n("./node_modules/@vector-im/compound-web/dist/components/Menu/FloatingMenu.js"),B=n("./node_modules/vaul/dist/index.mjs"),W=n("./node_modules/classnames/index.js"),U=n("./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.module.css.js"),q=n("./node_modules/@vector-im/compound-web/dist/components/Menu/MenuContext.js"),K=n("./node_modules/@vector-im/compound-web/dist/components/Menu/DrawerMenu.js"),H=n("./node_modules/@vector-im/compound-web/dist/utils/platform.js");const z=({onSelect:e,children:t})=>(0,r.jsx)(C,{onSelect:null!=e?e:void 0,asChild:!0,children:t}),V=({title:e,showTitle:t=!0,open:n,onOpenChange:i,trigger:s,children:a,side:c="bottom",align:u="center"})=>{const l=(0,H.u)(),d="android"===l||"ios"===l,f=(0,o.useMemo)(()=>({MenuItemWrapper:d?null:z,onOpenChange:i}),[i]),p=(0,r.jsx)(q.x.Provider,{value:f,children:a});return d?(0,r.jsxs)(B._s.Root,{open:n,onOpenChange:i,children:[(0,r.jsx)(B._s.Trigger,{asChild:!0,children:s}),(0,r.jsxs)(B._s.Portal,{children:[(0,r.jsx)(B._s.Overlay,{className:W(U.Ay.bg)}),(0,r.jsx)(B._s.Content,{asChild:!0,children:(0,r.jsx)(K.Z,{title:e,children:p})})]})]}):(0,r.jsxs)(N,{open:n,onOpenChange:i,children:[(0,r.jsx)(I,{asChild:!0,children:s}),(0,r.jsx)(L,{children:(0,r.jsx)(F,{asChild:!0,side:c,align:u,sideOffset:8,children:(0,r.jsx)($.y,{title:e,showTitle:t,children:p})})})]})}},"./node_modules/@vector-im/compound-web/dist/components/Menu/MenuContext.js"(e,t,n){"use strict";n.d(t,{x:()=>r});const r=(0,n("./node_modules/react/index.js").createContext)(null)},"./node_modules/@vector-im/compound-web/dist/components/Menu/MenuItem.js"(e,t,n){"use strict";n.d(t,{D:()=>T});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/classnames/index.js"),a=n("./node_modules/react/index.js"),c=n.t(a,2);const u="_item_lqfwq_8",l="_interactive_lqfwq_26",d="_no-label_lqfwq_30",f="_label_lqfwq_34",p="_no-icon_lqfwq_41",m="_icon_lqfwq_50",v="_nav-hint_lqfwq_59",h="_disabled_lqfwq_118";var g=n("./node_modules/@vector-im/compound-web/dist/components/Typography/Text.js"),y=n("./node_modules/@vector-im/compound-design-tokens/assets/web/icons/chevron-right.js"),b=n("./node_modules/@vector-im/compound-web/dist/components/Menu/MenuContext.js"),w=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),x=Symbol.for("react.lazy"),j=c[" use ".trim().toString()];function _(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===x&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function E(e){const t=C(e),n=a.forwardRef((e,n)=>{let{children:r,...o}=e;_(r)&&"function"==typeof j&&(r=j(r._payload));const s=a.Children.toArray(r),c=s.find(P);if(c){const e=c.props.children,r=s.map(t=>t===c?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(t,{...o,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,i.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var O=E("Slot");function C(e){const t=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(_(n)&&"function"==typeof j&&(n=j(n._payload)),a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?(0,w.t)(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R=Symbol("radix.slottable");function P(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===R}const S=["as","className","Icon","label","labelProps","onSelect","kind","children","onClick","disabled","hideChevron"];function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const T=e=>{let{as:t,className:n,Icon:r,label:c,labelProps:w,onSelect:x,kind:j="primary",children:_,onClick:E,disabled:C,hideChevron:R}=e,P=(0,o.A)(e,S);const M=null!=t?t:"button",T=(0,a.useContext)(b.x),A=(0,a.useCallback)(e=>{if(null==E||E(e),null!==x&&null==(null==T?void 0:T.MenuItemWrapper)){const e=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0});x(e),e.defaultPrevented||null==T||T.onOpenChange(!1)}},[T,x]),k=(0,a.isValidElement)(r),N=r,I=r,L=(0,i.jsxs)(M,D(D({role:"menuitem"},P),{},{className:s(n,u,{[l]:null!==x,[d]:null===c,[p]:!r,[h]:C}),"data-kind":j,onClick:A,disabled:"button"===M?C:void 0,"aria-disabled":"button"===M?void 0:C,children:[r&&(k?(0,i.jsx)(O,{className:m,children:N}):(0,i.jsx)(I,{width:24,height:24,className:m,"aria-hidden":!0})),null!==c&&(0,i.jsx)(g.E,D(D({className:f,size:"md",weight:"medium",as:"span"},w),{},{children:c})),!R&&("button"===M||"a"===M)&&(0,i.jsx)(y.A,{width:8,height:24,className:v,"aria-hidden":!0,viewBox:"8 0 8 24"}),_]}));return null==(null==T?void 0:T.MenuItemWrapper)||null===x?L:(0,i.jsx)(T.MenuItemWrapper,{onSelect:x,children:L})}},"./node_modules/@vector-im/compound-web/dist/components/Menu/MenuTitle.js"(e,t,n){"use strict";n.d(t,{e:()=>a});var r=n("./node_modules/react/jsx-runtime.js"),o=n("./node_modules/@vector-im/compound-web/dist/components/Typography/Text.js");const i="_menu-title_1sgvx_8";var s=n("./node_modules/classnames/index.js");const a=({title:e,id:t,className:n})=>{const a=s(i,n);return(0,r.jsx)(o.E,{as:"h3",id:t,className:a,size:"sm",weight:"semibold",children:e})}},"./node_modules/@vector-im/compound-web/dist/components/Menu/ToggleMenuItem.js"(e,t,n){"use strict";n.d(t,{X:()=>a});var r=n("./node_modules/react/jsx-runtime.js"),o=n("./node_modules/react/index.js"),i=n("./node_modules/@vector-im/compound-web/dist/components/Menu/MenuItem.js"),s=n("./node_modules/@vector-im/compound-web/dist/components/Form/Controls/Toggle/Toggle.js");const a=(0,o.forwardRef)(function({className:e,Icon:t,label:n,onSelect:a,checked:c,disabled:u,onClick:l},d){const f=(0,o.useId)(),p=(0,o.useCallback)(()=>{},[]);return(0,r.jsx)(i.D,{as:"button",role:"menuitemcheckbox","aria-checked":c,className:e,Icon:t,label:n,hideChevron:!0,onSelect:a,disabled:u,onClick:l,children:(0,r.jsx)(s.l,{id:f,ref:d,"aria-hidden":!0,tabIndex:-1,checked:c,disabled:u,onChange:p})})})},"./node_modules/@vector-im/compound-web/dist/components/Separator/Separator.js"(e,t,n){"use strict";n.d(t,{w:()=>P});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/classnames/index.js"),a=n("./node_modules/react/index.js"),c=n.t(a,2),u=(n("./node_modules/react-dom/index.js"),n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs")),l=Symbol.for("react.lazy"),d=c[" use ".trim().toString()];function f(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function p(e){const t=m(e),n=a.forwardRef((e,n)=>{let{children:r,...o}=e;f(r)&&"function"==typeof d&&(r=d(r._payload));const s=a.Children.toArray(r),c=s.find(h);if(c){const e=c.props.children,r=s.map(t=>t===c?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(t,{...o,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,i.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function m(e){const t=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(f(n)&&"function"==typeof d&&(n=d(n._payload)),a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?(0,u.t)(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v=Symbol("radix.slottable");function h(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=p(`Primitive.${t}`),r=a.forwardRef((e,r)=>{const{asChild:o,...s}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var y="horizontal",b=["horizontal","vertical"],w=a.forwardRef((e,t)=>{const{decorative:n,orientation:r=y,...o}=e,s=function(e){return b.includes(e)}(r)?r:y,a=n?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return(0,i.jsx)(g.div,{"data-orientation":s,...a,...o,ref:t})});w.displayName="Separator";var x=w;const j="_separator_cqpyv_8";var _=n("./node_modules/@floating-ui/react/dist/floating-ui.react.mjs");const E=["className","spacing","kind"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const R="--cpd-separator-spacing",P=(0,a.forwardRef)((e,t)=>{let{className:n,spacing:r,kind:c="primary"}=e,u=(0,o.A)(e,E);const l=s(j,n),d=(0,a.useRef)(null),f=(0,_.SV)([d,t]);return(0,a.useEffect)(()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.style;r?null==t||t.setProperty(R,r):null==t||t.removeProperty(R)},[r]),(0,i.jsx)(x,C(C({},u),{},{className:l,ref:f,"data-kind":c}))});P.displayName="Separator"},"./node_modules/@vector-im/compound-web/dist/components/Tooltip/Tooltip.js"(e,t,n){"use strict";n.d(t,{m:()=>R});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/react/index.js");const a=(0,s.createContext)(null);function c(){const e=(0,s.useContext)(a);if(null==e)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e}var u=n("./node_modules/@floating-ui/react/dist/floating-ui.react.mjs"),l=n("./node_modules/classnames/index.js");const d="_tooltip_1nqnq_8",f="_invisible_1nqnq_21",p="_caption_1nqnq_28",m="_arrow_1nqnq_33";var v=n("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),h=n("./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"),g=n("./node_modules/@vector-im/compound-web/dist/components/Tooltip/TooltipProvider.js");const y=["open","disabled","onOpenChange","placement","isTriggerInteractive","caption","aria-atomic","aria-live"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const x=["children","isTriggerInteractive","nonInteractiveTriggerTabIndex"],j=["context","open","arrowRef","purpose"],_=["aria-labelledby","aria-describedby"];function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const C=e=>"label"in e&&!!e.label;function R(e){let{children:t,isTriggerInteractive:n=!0,nonInteractiveTriggerTabIndex:r=0}=e,c=(0,o.A)(e,x);const l=function(e){let{open:t,disabled:n=!1,onOpenChange:r,placement:i="bottom",isTriggerInteractive:a,caption:c,"aria-atomic":l,"aria-live":d}=e,f=(0,o.A)(e,y);const p=(0,u.Bi)(),m=(0,u.Bi)(),b=(0,s.useRef)(null),[x,j]=(0,s.useState)(!1),_=!n&&(null!=t?t:x),E=(e,n,o)=>{null==r||r(e,n,o),void 0===t&&j(e)},O=(0,u.we)({placement:i,open:_,onOpenChange:E,whileElementsMounted:v.ll,middleware:[(0,h.cY)(6),(0,h.UU)({crossAxis:i.includes("-"),fallbackAxisSideDirection:"start",padding:5}),(0,h.BN)({padding:5}),(0,h.UE)({element:b})]}),C=O.context,{delay:R,initialDelay:P}=(0,u.ck)(C);if(P!==g.k)throw new Error("Tooltips must be wrapped in a global <TooltipProvider>");const S=(0,u.Mk)(C,{move:!1,enabled:void 0===t,delay:a?R:{},mouseOnly:!0}),M=(0,u.iQ)(C,{enabled:void 0===t}),D=(0,s.useRef)(void 0);(0,s.useEffect)(()=>()=>window.clearTimeout(D.current),[]);const T=(0,s.useMemo)(()=>{const e=()=>{void 0===D.current?D.current=window.setTimeout(()=>{E(!1),D.current=void 0},1500):window.clearTimeout(D.current)};return{reference:{onTouchStart:()=>{void 0!==D.current&&window.clearTimeout(D.current),D.current=window.setTimeout(()=>{E(!0),D.current=void 0},500)},onTouchEnd:e,onTouchCancel:e}}},[]),A=(0,u.s9)(C),k="label"in f?"label":"description",N=(0,u.It)(C,{enabled:"description"===k,role:"tooltip"}),I=(0,s.useMemo)(()=>"label"===k?{reference:{"aria-labelledby":p,"aria-describedby":c?m:void 0}}:{},[k,p,m]),L=(0,u.bv)([S,M,T,A,N,I]);return(0,s.useMemo)(()=>w(w(w({labelId:p,captionId:c?m:void 0,caption:c,purpose:k,open:_,setOpen:E,tooltipProps:{"aria-atomic":l,"aria-live":d}},L),O),{},{arrowRef:b}),[p,m,c,N,_,E,L,O,b])}(O({isTriggerInteractive:n},c));return(0,i.jsxs)(a.Provider,{value:l,children:[(0,i.jsx)(M,{isTriggerInteractive:n,nonInteractiveTriggerTabIndex:r,children:t}),(0,i.jsxs)(S,{children:[(0,i.jsx)("span",{id:l.labelId,children:C(c)?c.label:c.description}),(0,i.jsx)(P,{})]})]})}function P(){const{caption:e,captionId:t}=c();if(!e)return null;const n="string"==typeof e?"span":"div";return(0,i.jsx)(n,{id:t,className:l(p,"cpd-theme-dark"),children:e})}function S({children:e}){const t=c(),{context:n,open:r,arrowRef:s,purpose:a}=t,p=(0,o.A)(t,j);return r||"label"===a?(0,i.jsx)(u.XF,{children:(0,i.jsxs)("div",O(O(O({ref:p.refs.setFloating,style:p.floatingStyles},p.tooltipProps),p.getFloatingProps()),{},{className:l(d,{[f]:"label"===a&&!r}),children:[(0,i.jsx)(u.ie,{ref:s,context:n,width:10,height:6,className:m}),e]}))}):null}const M=({children:e,isTriggerInteractive:t,nonInteractiveTriggerTabIndex:n})=>{const r=c(),a=null==e?void 0:e.ref,l=(0,u.SV)([r.refs.setReference,a]),d=(0,s.useMemo)(()=>{if((0,s.isValidElement)(e)){if(t){const t=r.getReferenceProps(O(O({},"object"==typeof e.props?e.props:{}),{},{ref:l}));return(0,s.cloneElement)(e,t)}{const t=r.getReferenceProps({ref:l,tabIndex:n}),{"aria-labelledby":a,"aria-describedby":c}=t,u=(0,o.A)(t,_);return(0,i.jsx)("span",O(O({tabIndex:n},u),{},{children:(0,s.cloneElement)(e,{"aria-labelledby":a,"aria-describedby":c})}))}}},[r,l,e]);if(!d)throw new Error("Tooltip anchor must be a single valid React element");return d}},"./node_modules/@vector-im/compound-web/dist/components/Typography/Text.js"(e,t,n){"use strict";n.d(t,{E:()=>l});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/@vector-im/compound-web/dist/components/Typography/Typography.js");const a=["as","children"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const l=e=>{let{as:t="p",children:n}=e,r=(0,o.A)(e,a);return(0,i.jsx)(s.o,u(u({as:t,type:"body"},r),{},{children:n}))}},"./node_modules/@vector-im/compound-web/dist/components/Typography/Typography.js"(e,t,n){"use strict";n.d(t,{o:()=>d});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/react/jsx-runtime.js"),s=n("./node_modules/classnames/index.js");const a={"font-body-xs-regular":"_font-body-xs-regular_6v6n8_12","font-body-xs-semibold":"_font-body-xs-semibold_6v6n8_17","font-body-xs-medium":"_font-body-xs-medium_6v6n8_22","font-body-sm-regular":"_font-body-sm-regular_6v6n8_31","font-body-sm-semibold":"_font-body-sm-semibold_6v6n8_36","font-body-sm-medium":"_font-body-sm-medium_6v6n8_41","font-body-md-regular":"_font-body-md-regular_6v6n8_50","font-body-md-semibold":"_font-body-md-semibold_6v6n8_55","font-body-md-medium":"_font-body-md-medium_6v6n8_60","font-body-lg-regular":"_font-body-lg-regular_6v6n8_69","font-body-lg-semibold":"_font-body-lg-semibold_6v6n8_74","font-body-lg-medium":"_font-body-lg-medium_6v6n8_79","font-heading-sm-regular":"_font-heading-sm-regular_6v6n8_88","font-heading-sm-semibold":"_font-heading-sm-semibold_6v6n8_93","font-heading-sm-medium":"_font-heading-sm-medium_6v6n8_98","font-heading-md-regular":"_font-heading-md-regular_6v6n8_107","font-heading-md-semibold":"_font-heading-md-semibold_6v6n8_112","font-heading-lg-regular":"_font-heading-lg-regular_6v6n8_121","font-heading-lg-semibold":"_font-heading-lg-semibold_6v6n8_126","font-heading-xl-regular":"_font-heading-xl-regular_6v6n8_135","font-heading-xl-semibold":"_font-heading-xl-semibold_6v6n8_140",typography:"_typography_6v6n8_153"},c=["as","children","type","weight","size","className"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=e=>{let{as:t,children:n,type:r="body",weight:u="regular",size:d="md",className:f}=e,p=(0,o.A)(e,c);const m=t||"p";return(0,i.jsx)(m,l(l({},p),{},{className:s(a.typography,a[`font-${r}-${d}-${u}`],f),children:n}))}},"./node_modules/@vector-im/compound-web/dist/utils/platform.js"(e,t,n){"use strict";function r(){var e;const t=null===(e=globalThis.navigator)||void 0===e?void 0:e.userAgent;return/android/i.test(t)?"android":/iPad|iPhone|iPod|Mac/.test(t)&&"ontouchend"in document?"ios":"other"}n.d(t,{u:()=>r})},"./node_modules/@vector-im/compound-design-tokens/assets/web/icons/chevron-right.js"(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n("./node_modules/react/index.js"),o=n("./node_modules/react/jsx-runtime.js");function i(e,t){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...e,children:(0,o.jsx)("path",{d:"M8.7 17.3a.95.95 0 0 1-.275-.7q0-.425.275-.7l3.9-3.9-3.9-3.9a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.275l4.6 4.6q.15.15.213.325.062.175.062.375t-.062.375a.9.9 0 0 1-.213.325l-4.6 4.6a.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275"})})}i.displayName="ChevronRightIcon";const s=(0,r.forwardRef)(i)},"./node_modules/tslib/tslib.es6.mjs"(e,t,n){"use strict";n.d(t,{Cl:()=>r,Tt:()=>o,fX:()=>i});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},"./node_modules/vaul/dist/index.mjs"(e,t,n){"use strict";n.d(t,{_s:()=>Be});var r=n("./node_modules/react/index.js"),o=n("./node_modules/@radix-ui/primitive/dist/index.mjs"),i=n("./node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),s=n("./node_modules/@radix-ui/react-context/dist/index.mjs"),a=n("./node_modules/@radix-ui/react-id/dist/index.mjs"),c=n("./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),u=n("./node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"),l=n("./node_modules/@radix-ui/react-focus-scope/dist/index.mjs"),d=n("./node_modules/@radix-ui/react-portal/dist/index.mjs"),f=n("./node_modules/@radix-ui/react-presence/dist/index.mjs"),p=n("./node_modules/@radix-ui/react-primitive/dist/index.mjs"),m=n("./node_modules/@radix-ui/react-focus-guards/dist/index.mjs"),v=n("./node_modules/react-remove-scroll/dist/es2015/Combination.js"),h=n("./node_modules/aria-hidden/dist/es2015/index.js"),g=n("./node_modules/@radix-ui/react-slot/dist/index.mjs"),y=n("./node_modules/react/jsx-runtime.js"),b="Dialog",[w,x]=(0,s.A)(b),[j,_]=w(b),E=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,l=r.useRef(null),d=r.useRef(null),[f,p]=(0,c.i)({prop:o,defaultProp:i??!1,onChange:s,caller:b});return(0,y.jsx)(j,{scope:t,triggerRef:l,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};E.displayName=b;var O="DialogTrigger",C=r.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=_(O,n),a=(0,i.s)(t,s.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":z(s.open),...r,ref:a,onClick:(0,o.mK)(e.onClick,s.onOpenToggle)})});C.displayName=O;var R="DialogPortal",[P,S]=w(R,{forceMount:void 0}),M=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:i}=e,s=_(R,t);return(0,y.jsx)(P,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||s.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};M.displayName=R;var D="DialogOverlay",T=r.forwardRef((e,t)=>{const n=S(D,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_(D,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(k,{...o,ref:t})}):null});T.displayName=D;var A=(0,g.TL)("DialogOverlay.RemoveScroll"),k=r.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_(D,n);return(0,y.jsx)(v.A,{as:A,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":z(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),N="DialogContent",I=r.forwardRef((e,t)=>{const n=S(N,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_(N,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(L,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=N;var L=r.forwardRef((e,t)=>{const n=_(N,e.__scopeDialog),s=r.useRef(null),a=(0,i.s)(t,n.contentRef,s);return r.useEffect(()=>{const e=s.current;if(e)return(0,h.Eq)(e)},[]),(0,y.jsx)($,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{const n=_(N,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const r=t.target,s=n.triggerRef.current?.contains(r);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),$=r.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,...c}=e,d=_(N,n),f=r.useRef(null),p=(0,i.s)(t,f);return(0,m.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":z(d.open),...c,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(X,{titleId:d.titleId}),(0,y.jsx)(Z,{contentRef:f,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",W=r.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_(B,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});W.displayName=B;var U="DialogDescription",q=r.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_(U,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});q.displayName=U;var K="DialogClose",H=r.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_(K,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function z(e){return e?"open":"closed"}H.displayName=K;var V="DialogTitleWarning",[G,Y]=(0,s.q)(V,{contentName:N,titleName:B,docsSlug:"dialog"}),X=({titleId:e})=>{const t=Y(V),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},Z=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Y("DialogDescriptionWarning").contentName}}.`;return r.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},J=E,Q=C,ee=M,te=T,ne=I,re=W,oe=q,ie=H;const se=r.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ae=()=>{const e=r.useContext(se);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};function ce(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ue(){return de(/^iPad/)||de(/^Mac/)&&navigator.maxTouchPoints>1}function le(){return de(/^iPhone/)||ue()}function de(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");const fe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function pe(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const me="undefined"!=typeof document&&window.visualViewport;function ve(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function he(e){for(ve(e)&&(e=e.parentElement);e&&!ve(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const ge=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ye,be=0;function we(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return be++,1===be&&le()&&(ye=function(){let e,t=0,n=n=>{e=he(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)},o=e=>{let t=e.target;_e(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},i=e=>{let t=e.target;_e(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",me&&(me.height<window.innerHeight?requestAnimationFrame(()=>{je(t)}):me.addEventListener("resize",()=>je(t),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},a=window.pageXOffset,c=window.pageYOffset,u=pe(function(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let l=pe(xe(document,"touchstart",n,{passive:!1,capture:!0}),xe(document,"touchmove",r,{passive:!1,capture:!0}),xe(document,"touchend",o,{passive:!1,capture:!0}),xe(document,"focus",i,!0),xe(window,"scroll",s));return()=>{u(),l(),window.scrollTo(a,c)}}()),()=>{be--,0===be&&(null==ye||ye())}},[t])}function xe(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function je(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=he(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function _e(e){return e instanceof HTMLInputElement&&!ge.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Ee(...e){return r.useCallback(function(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}(...e),e)}const Oe=new WeakMap;function Ce(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)}),n||Oe.set(e,r)}const Re=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Pe(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Re(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Re(t)?5:4]):null)}function Se(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}const Me={DURATION:.5,EASE:[.32,.72,0,1]},De=16,Te="vaul-dragging";function Ae(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>null==t.current?void 0:t.current.call(t,...e),[])}function ke({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),s=Ae(t);return r.useEffect(()=>{i.current!==o&&(s(o),i.current=o)},[o,i,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,a=s?e:o,c=Ae(n),u=r.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&c(n)}else i(t)},[s,e,i,c]);return[a,u]}let Ne=null;function Ie({open:e,onOpenChange:t,children:n,onDrag:o,onRelease:i,snapPoints:s,shouldScaleBackground:a=!1,setBackgroundColorOnScale:c=!0,closeThreshold:u=.25,scrollLockTimeout:l=100,dismissible:d=!0,handleOnly:f=!1,fadeFromIndex:p=s&&s.length-1,activeSnapPoint:m,setActiveSnapPoint:v,fixed:h,modal:g=!0,onClose:y,nested:b,noBodyStyles:w=!1,direction:x="bottom",defaultOpen:j=!1,disablePreventScroll:_=!0,snapToSequentialPoint:E=!1,preventScrollRestoration:O=!1,repositionInputs:C=!0,onAnimationEnd:R,container:P,autoFocus:S=!1}){var M,D;const[T=!1,A]=ke({defaultProp:j,prop:e,onChange:e=>{null==t||t(e),e||b||me(),setTimeout(()=>{null==R||R(e)},1e3*Me.DURATION),e&&!g&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[k,N]=r.useState(!1),[I,L]=r.useState(!1),[F,$]=r.useState(!1),B=r.useRef(null),W=r.useRef(null),U=r.useRef(null),q=r.useRef(null),K=r.useRef(null),H=r.useRef(!1),z=r.useRef(null),V=r.useRef(0),G=r.useRef(!1),Y=r.useRef(!j),X=r.useRef(0),Z=r.useRef(null),Q=r.useRef((null==(M=Z.current)?void 0:M.getBoundingClientRect().height)||0),ee=r.useRef((null==(D=Z.current)?void 0:D.getBoundingClientRect().width)||0),te=r.useRef(0),ne=r.useCallback(e=>{s&&e===ue.length-1&&(W.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:oe,setActiveSnapPoint:ie,onRelease:ae,snapPointsOffset:ue,onDrag:de,shouldFade:fe,getPercentageDragged:pe}=function({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:s,onSnapPointChange:a,direction:c="bottom",container:u,snapToSequentialPoint:l}){const[d,f]=ke({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[p,m]=r.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);r.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const v=r.useMemo(()=>d===(null==n?void 0:n[n.length-1])||null,[n,d]),h=r.useMemo(()=>{var e;return null!=(e=null==n?void 0:n.findIndex(e=>e===d))?e:null},[n,d]),g=n&&n.length>0&&(s||0===s)&&!Number.isNaN(s)&&n[s]===d||!n,y=r.useMemo(()=>{const e=u?{width:u.getBoundingClientRect().width,height:u.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map(t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Re(c)){const o=n?r:p?t*e.height:0;return p?"bottom"===c?e.height-o:-e.height+o:o}const o=n?r:p?t*e.width:0;return p?"right"===c?e.width-o:-e.width+o:o}))?t:[]},[n,p,u]),b=r.useMemo(()=>null!==h?null==y?void 0:y[h]:null,[y,h]),w=r.useCallback(e=>{var t;const r=null!=(t=null==y?void 0:y.findIndex(t=>t===e))?t:null;a(r),Ce(o.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Re(c)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),y&&r!==y.length-1&&void 0!==s&&r!==s&&r<s?Ce(i.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"0"}):Ce(i.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"1"}),f(null==n?void 0:n[Math.max(r,0)])},[o.current,n,y,s,i,f]);return r.useEffect(()=>{if(d||e){var t;const r=null!=(t=null==n?void 0:n.findIndex(t=>t===e||t===d))?t:-1;y&&-1!==r&&"number"==typeof y[r]&&w(y[r])}},[d,e,n,y,w]),{isLastSnapPoint:v,activeSnapPoint:d,shouldFade:g,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!y||void 0===s)return null;const r=h===s-1;if(h>=s&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;const o=r?h+1:h-1,i=r?y[o]-y[o-1]:y[o+1]-y[o],a=e/Math.abs(i);return r?1-a:a},setActiveSnapPoint:f,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(void 0===s)return;const a="bottom"===c||"right"===c?(null!=b?b:0)-e:(null!=b?b:0)+e,u=0===h,d=e>0;if(h===s-1&&Ce(i.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`}),!l&&r>2&&!d)return void(o?t():w(y[0]));if(!l&&r>2&&d&&y&&n)return void w(y[n.length-1]);const f=null==y?void 0:y.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-a)<Math.abs(e-a)?t:e),p=Re(c)?window.innerHeight:window.innerWidth;if(r>.4&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&v&&n)return void w(y[n.length-1]);if(u&&e<0&&o&&t(),null===h)return;return void w(y[h+e])}w(f)},onDrag:function({draggedDistance:e}){if(null===b)return;const t="bottom"===c||"right"===c?b-e:b+e;("bottom"===c||"right"===c)&&t<y[y.length-1]||("top"===c||"left"===c)&&t>y[y.length-1]||Ce(o.current,{transform:Re(c)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:y}}({snapPoints:s,activeSnapPointProp:m,setActiveSnapPointProp:v,drawerRef:Z,fadeFromIndex:p,overlayRef:B,onSnapPointChange:ne,direction:x,container:P,snapToSequentialPoint:E});we({isDisabled:!T||I||!g||F||!k||!C||!_});const{restorePositionSetting:me}=function({isOpen:e,modal:t,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:s}){const[a,c]=r.useState(()=>"undefined"!=typeof window?window.location.href:""),u=r.useRef(0),l=r.useCallback(()=>{if(ce()&&null===Ne&&e&&!s){Ne={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-u.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const e=t-window.innerHeight;e&&u.current>=t&&(document.body.style.top=-(u.current+e)+"px")}),300)}},[e]),d=r.useCallback(()=>{if(ce()&&null!==Ne&&!s){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Ne),window.requestAnimationFrame(()=>{i&&a!==window.location.href?c(window.location.href):window.scrollTo(t,e)}),Ne=null}},[a]);return r.useEffect(()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),r.useEffect(()=>{if(t)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||d())}},[t,d]),r.useEffect(()=>{!n&&o&&(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{d()},500)):d())},[e,o,a,t,n,l,d]),{restorePositionSetting:d}}({isOpen:T,modal:g,nested:null!=b&&b,hasBeenOpened:k,preventScrollRestoration:O,noBodyStyles:w});function ve(){return(window.innerWidth-26)/window.innerWidth}function he(e,t){var n;let r=e;const o=null==(n=window.getSelection())?void 0:n.toString(),i=Z.current?Pe(Z.current,x):null,s=new Date;if("SELECT"===r.tagName)return!1;if(r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;if("right"===x||"left"===x)return!0;if(W.current&&s.getTime()-W.current.getTime()<500)return!1;if(null!==i&&("bottom"===x?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(K.current&&s.getTime()-K.current.getTime()<l&&0===i)return K.current=s,!1;if(t)return K.current=s,!1;for(;r;){if(r.scrollHeight>r.clientHeight){if(0!==r.scrollTop)return K.current=new Date,!1;if("dialog"===r.getAttribute("role"))return!0}r=r.parentNode}return!0}function ge(e){!function(){if(!I||!Z.current)return;Z.current.classList.remove(Te),H.current=!1,L(!1),q.current=new Date}(),null==y||y(),e||A(!1),setTimeout(()=>{s&&ie(s[0])},1e3*Me.DURATION)}function ye(){if(!Z.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Pe(Z.current,x);Ce(Z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`}),Ce(B.current,{transition:`opacity ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&T&&Ce(e,{borderRadius:"8px",overflow:"hidden",...Re(x)?{transform:`scale(${ve()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ve()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Me.EASE.join(",")})`},!0)}return r.useEffect(()=>{window.requestAnimationFrame(()=>{Y.current=!0})},[]),r.useEffect(()=>{var e;function t(){if(!Z.current||!C)return;if(_e(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Z.current.getBoundingClientRect().height||0,i=o>.8*n;te.current||(te.current=o);const a=Z.current.getBoundingClientRect().top;if(Math.abs(X.current-r)>60&&(G.current=!G.current),s&&s.length>0&&ue&&oe){r+=ue[oe]||0}if(X.current=r,o>t||G.current){const e=Z.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?a:26)),Z.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-a)}px`}else(function(){const e=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))})()||(Z.current.style.height=`${te.current}px`);s&&s.length>0&&!G.current?Z.current.style.bottom="0px":Z.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[oe,s,ue]),r.useEffect(()=>(T&&(Ce(document.documentElement,{scrollBehavior:"auto"}),W.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let n=Oe.get(e);n&&(e.style[t]=n[t])}(document.documentElement,"scrollBehavior")}),[T]),r.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[g]),r.createElement(J,{defaultOpen:j,onOpenChange:e=>{(d||e)&&(e?N(!0):ge(!0),A(e))},open:T},r.createElement(se.Provider,{value:{activeSnapPoint:re,snapPoints:s,setActiveSnapPoint:ie,drawerRef:Z,overlayRef:B,onOpenChange:t,onPress:function(e){var t,n;(d||s)&&(Z.current&&!Z.current.contains(e.target)||(Q.current=(null==(t=Z.current)?void 0:t.getBoundingClientRect().height)||0,ee.current=(null==(n=Z.current)?void 0:n.getBoundingClientRect().width)||0,L(!0),U.current=new Date,le()&&window.addEventListener("touchend",()=>H.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),V.current=Re(x)?e.pageY:e.pageX))},onRelease:function(e){if(!I||!Z.current)return;Z.current.classList.remove(Te),H.current=!1,L(!1),q.current=new Date;const t=Pe(Z.current,x);if(!e||!he(e.target,!1)||!t||Number.isNaN(t))return;if(null===U.current)return;const n=q.current.getTime()-U.current.getTime(),r=V.current-(Re(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&($(!0),setTimeout(()=>{$(!1)},200)),s){return ae({draggedDistance:r*("bottom"===x||"right"===x?1:-1),closeDrawer:ge,velocity:o,dismissible:d}),void(null==i||i(e,!0))}if("bottom"===x||"right"===x?r>0:r<0)return ye(),void(null==i||i(e,!0));if(o>.4)return ge(),void(null==i||i(e,!1));var a;const c=Math.min(null!=(a=Z.current.getBoundingClientRect().height)?a:0,window.innerHeight);var l;const f=Math.min(null!=(l=Z.current.getBoundingClientRect().width)?l:0,window.innerWidth),p="left"===x||"right"===x;if(Math.abs(t)>=(p?f:c)*u)return ge(),void(null==i||i(e,!1));null==i||i(e,!0),ye()},onDrag:function(e){var t;if(Z.current&&I){const n="bottom"===x||"right"===x?1:-1,r=(V.current-(Re(x)?e.pageY:e.pageX))*n,i=r>0,c=s&&!d&&!i;if(c&&0===oe)return;const u=Math.abs(r),l=document.querySelector("[data-vaul-drawer-wrapper]");let f=u/("bottom"===x||"top"===x?Q.current:ee.current);const m=pe(u,i);if(null!==m&&(f=m),c&&f>=1)return;if(!H.current&&!he(e.target,i))return;if(Z.current.classList.add(Te),H.current=!0,Ce(Z.current,{transition:"none"}),Ce(B.current,{transition:"none"}),s&&de({draggedDistance:r}),i&&!s){const e=(t=r,8*(Math.log(t+1)-2)),o=Math.min(-1*e,0)*n;return void Ce(Z.current,{transform:Re(x)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}const v=1-f;if((fe||p&&oe===p-1)&&(null==o||o(e,f),Ce(B.current,{opacity:`${v}`,transition:"none"},!0)),l&&B.current&&a){const e=Math.min(ve()+f*(1-ve()),1),t=8-8*f,n=Math.max(0,14-14*f);Ce(l,{borderRadius:`${t}px`,transform:Re(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!s){const e=u*n;Ce(Z.current,{transform:Re(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:d,shouldAnimate:Y,handleOnly:f,isOpen:T,isDragging:I,shouldFade:fe,closeDrawer:ge,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-De)/window.innerWidth,r=n+t*(1-n),o=t*De-16;Ce(Z.current,{transform:Re(x)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-De)/window.innerWidth:1,n=e?-16:0;z.current&&window.clearTimeout(z.current),Ce(Z.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Re(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&Z.current&&(z.current=setTimeout(()=>{const e=Pe(Z.current,x);Ce(Z.current,{transition:"none",transform:Re(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){const n=Re(x)?window.innerHeight:window.innerWidth,r=t?(n-De)/n:1,o=t?-16:0;t&&Ce(Z.current,{transition:`transform ${Me.DURATION}s cubic-bezier(${Me.EASE.join(",")})`,transform:Re(x)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:g,snapPointsOffset:ue,activeSnapPointIndex:oe,direction:x,shouldScaleBackground:a,setBackgroundColorOnScale:c,noBodyStyles:w,container:P,autoFocus:S}},n))}const Le=r.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:s,isOpen:a,modal:c,shouldAnimate:u}=ae(),l=Ee(t,n),d=o&&o.length>0;if(!c)return null;const f=r.useCallback(e=>i(e),[i]);return r.createElement(te,{onMouseUp:f,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":a&&d?"true":"false","data-vaul-snap-points-overlay":a&&s?"true":"false","data-vaul-animate":(null==u?void 0:u.current)?"true":"false",...e})});Le.displayName="Drawer.Overlay";const Fe=r.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...o},i){const{drawerRef:s,onPress:a,onRelease:c,onDrag:u,keyboardIsOpen:l,snapPointsOffset:d,activeSnapPointIndex:f,modal:p,isOpen:m,direction:v,snapPoints:h,container:g,handleOnly:y,shouldAnimate:b,autoFocus:w}=ae(),[x,j]=r.useState(!1),_=Ee(i,s),E=r.useRef(null),O=r.useRef(null),C=r.useRef(!1),R=h&&h.length>0;!function(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=ae(),s=r.useRef(null),a=(0,r.useMemo)(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-26)/window.innerWidth}r.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;o&&!i&&Se(document.body,{background:"black"}),Se(t,{transformOrigin:Re(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Me.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Me.EASE.join(",")})`});const n=Se(t,{borderRadius:"8px",overflow:"hidden",...Re(e)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),s.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},1e3*Me.DURATION)}}},[t,n,a])}();function P(e){E.current=null,C.current=!1,c(e)}return r.useEffect(()=>{R&&window.requestAnimationFrame(()=>{j(!0)})},[]),r.createElement(ne,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":x?"true":"false","data-vaul-snap-points":m&&R?"true":"false","data-vaul-custom-container":g?"true":"false","data-vaul-animate":(null==b?void 0:b.current)?"true":"false",...o,ref:_,style:d&&d.length>0?{"--snap-point-height":`${d[null!=f?f:0]}px`,...t}:t,onPointerDown:e=>{y||(null==o.onPointerDown||o.onPointerDown.call(o,e),E.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),w||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),p&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{p||e.preventDefault()},onPointerMove:e=>{if(O.current=e,y)return;if(null==o.onPointerMove||o.onPointerMove.call(o,e),!E.current)return;const t=e.pageY-E.current.y,n=e.pageX-E.current.x,r="touch"===e.pointerType?10:2,i=((e,t,n=0)=>{if(C.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,s=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*s<0)&&o>=0&&o<=n)return i}else if(!(e.y*s<0)&&r>=0&&r<=n)return!i;return C.current=!0,!0})({x:n,y:t},v,r);i?u(e):(Math.abs(n)>r||Math.abs(t)>r)&&(E.current=null)},onPointerUp:e=>{null==o.onPointerUp||o.onPointerUp.call(o,e),E.current=null,C.current=!1,c(e)},onPointerOut:e=>{null==o.onPointerOut||o.onPointerOut.call(o,e),P(O.current)},onContextMenu:e=>{null==o.onContextMenu||o.onContextMenu.call(o,e),O.current&&P(O.current)}})});Fe.displayName="Drawer.Content";const $e=r.forwardRef(function({preventCycle:e=!1,children:t,...n},o){const{closeDrawer:i,isDragging:s,snapPoints:a,activeSnapPoint:c,setActiveSnapPoint:u,dismissible:l,handleOnly:d,isOpen:f,onPress:p,onDrag:m}=ae(),v=r.useRef(null),h=r.useRef(!1);function g(){v.current&&window.clearTimeout(v.current),h.current=!1}return r.createElement("div",{onClick:function(){h.current?g():window.setTimeout(()=>{!function(){if(s||e||h.current)return void g();if(g(),!a||0===a.length)return void(l||i());if(c===a[a.length-1]&&l)return void i();const t=a.findIndex(e=>e===c);if(-1===t)return;const n=a[t+1];u(n)}()},120)},onPointerCancel:g,onPointerDown:e=>{d&&p(e),v.current=window.setTimeout(()=>{h.current=!0},250)},onPointerMove:e=>{d&&m(e)},ref:o,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},r.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});$e.displayName="Drawer.Handle";const Be={Root:Ie,NestedRoot:function({onDrag:e,onOpenChange:t,open:n,...o}){const{onNestedDrag:i,onNestedOpenChange:s,onNestedRelease:a}=ae();if(!i)throw new Error("Drawer.NestedRoot must be placed in another drawer");return r.createElement(Ie,{nested:!0,open:n,onClose:()=>{s(!1)},onDrag:(t,n)=>{i(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&s(e),null==t||t(e)},onRelease:a,...o})},Content:Fe,Overlay:Le,Trigger:Q,Portal:function(e){const t=ae(),{container:n=t.container,...o}=e;return r.createElement(ee,{container:n,...o})},Handle:$e,Close:ie,Title:re,Description:oe}}}]); 3 //# sourceMappingURL=8154.js.map