@datacrest/dcuikit 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,5 +50,5 @@ object-assign
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var hx=(fx||(fx=1,"production"===process.env.NODE_ENV?ux.exports=function(){if(cx)return px;cx=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case n:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return m}}case r:return m}}}return e=Symbol.for("react.module.reference"),px.ContextConsumer=s,px.ContextProvider=a,px.Element=t,px.ForwardRef=c,px.Fragment=n,px.Lazy=f,px.Memo=d,px.Portal=r,px.Profiler=i,px.StrictMode=o,px.Suspense=u,px.SuspenseList=p,px.isAsyncMode=function(){return!1},px.isConcurrentMode=function(){return!1},px.isContextConsumer=function(e){return h(e)===s},px.isContextProvider=function(e){return h(e)===a},px.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},px.isForwardRef=function(e){return h(e)===c},px.isFragment=function(e){return h(e)===n},px.isLazy=function(e){return h(e)===f},px.isMemo=function(e){return h(e)===d},px.isPortal=function(e){return h(e)===r},px.isProfiler=function(e){return h(e)===i},px.isStrictMode=function(e){return h(e)===o},px.isSuspense=function(e){return h(e)===u},px.isSuspenseList=function(e){return h(e)===p},px.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},px.typeOf=h,px}():ux.exports=(dx||(dx=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case n:case i:case o:case u:case p:return h;default:var v=h&&h.$$typeof;switch(v){case l:case s:case c:case f:case d:case a:return v;default:return m}}case r:return m}}}e=Symbol.for("react.module.reference");var v=s,y=a,g=t,b=c,w=n,x=f,O=d,E=r,k=i,j=o,P=u,S=p,C=!1,N=!1;mx.ContextConsumer=v,mx.ContextProvider=y,mx.Element=g,mx.ForwardRef=b,mx.Fragment=w,mx.Lazy=x,mx.Memo=O,mx.Portal=E,mx.Profiler=k,mx.StrictMode=j,mx.Suspense=P,mx.SuspenseList=S,mx.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},mx.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},mx.isContextConsumer=function(e){return h(e)===s},mx.isContextProvider=function(e){return h(e)===a},mx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},mx.isForwardRef=function(e){return h(e)===c},mx.isFragment=function(e){return h(e)===n},mx.isLazy=function(e){return h(e)===f},mx.isMemo=function(e){return h(e)===d},mx.isPortal=function(e){return h(e)===r},mx.isProfiler=function(e){return h(e)===i},mx.isStrictMode=function(e){return h(e)===o},mx.isSuspense=function(e){return h(e)===u},mx.isSuspenseList=function(e){return h(e)===p},mx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},mx.typeOf=h}()),mx)),ux.exports);var vx=Symbol.for("react.element"),yx=Symbol.for("react.transitional.element"),gx=Symbol.for("react.fragment");function bx(e){return e&&"object"===Yw(e)&&(e.$$typeof===vx||e.$$typeof===yx)&&e.type===gx}var wx=Number(u.split(".")[0]),xx=function(e,t){"function"==typeof e?e(t):"object"===Yw(e)&&e&&"current"in e&&(e.current=t)},Ox=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){t.forEach(function(t){xx(t,e)})}},Ex=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return o=function(){return Ox.apply(void 0,r)},i=r,a=function(e,t){return e.length!==t.length||e.every(function(e,r){return e!==t[r]})},"value"in(s=e.useRef({})).current&&!a(s.current.condition,i)||(s.current.value=o(),s.current.condition=i),s.current.value;var o,i,a,s},kx=function(e){var t,r;if(!e)return!1;if(jx(e)&&wx>=19)return!0;var n=hx.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===hx.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===hx.ForwardRef)};function jx(e){return p(e)&&!bx(e)}var Px=function(e){if(e&&jx(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Sx=e.createContext(null);function Cx(e){return function(e){if(Array.isArray(e))return Jw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nx="test"!==process.env.NODE_ENV&&rx()?e.useLayoutEffect:e.useEffect,Tx=function(t,r){var n=e.useRef(!0);Nx(function(){return t(n.current)},r),Nx(function(){return n.current=!1,function(){n.current=!0}},[])},zx=[];var Lx="data-rc-order",Mx="data-rc-priority",Dx=new Map;function Ax(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Rx(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ix(e){return Array.from((Dx.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function Bx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!rx())return null;var r=t.csp,n=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Lx,a),s&&i&&l.setAttribute(Mx,"".concat(i)),null!=r&&r.nonce&&(l.nonce=null==r?void 0:r.nonce),l.innerHTML=e;var c=Rx(t),u=c.firstChild;if(n){if(s){var p=(t.styles||Ix(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Lx)))return!1;var t=Number(e.getAttribute(Mx)||0);return i>=t});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function _x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Rx(t);return(t.styles||Ix(r)).find(function(r){return r.getAttribute(Ax(t))===e})}function Wx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=_x(e,t);r&&Rx(t).removeChild(r)}function Fx(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Rx(r),o=Ix(n),i=Zw(Zw({},r),{},{styles:o});!function(e,t){var r=Dx.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){var n=Bx("",t),o=n.parentNode;Dx.set(e,o),e.removeChild(n)}}(n,i);var a=_x(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Bx(e,i);return u.setAttribute(Ax(i),t),u}function Vx(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n,o,i=r.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",p=c?"height: ".concat(s.height,";"):"";Fx("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(p,"\n}"),t)}catch(e){console.error(e),n=l,o=c}}document.body.appendChild(r);var d=e&&n&&!isNaN(n)?n:r.offsetWidth-r.clientWidth,f=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Wx(t),{width:d,height:f}}(e):{width:0,height:0}}var $x="rc-util-locker-".concat(Date.now()),Hx=0;function qx(t){var r=!!t,n=tx(e.useState(function(){return Hx+=1,"".concat($x,"_").concat(Hx)}),1)[0];Tx(function(){if(r){var e=Vx(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Fx("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Wx(n);return function(){Wx(n)}},[r,n])}var Ux=function(e){return!1!==e&&(rx()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Yx=e.forwardRef(function(t,r){var n=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=tx(e.useState(n),2),p=u[0],d=u[1],f=p||n;"production"!==process.env.NODE_ENV&&lx(rx()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect(function(){(l||n)&&d(n)},[n,l]);var m=tx(e.useState(function(){return Ux(i)}),2),h=m[0],v=m[1];e.useEffect(function(){var e=Ux(i);v(null!=e?e:null)});var y=function(t,r){var n=tx(e.useState(function(){if(!rx())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&r&&e.setAttribute("data-debug",r),e}),1)[0],o=e.useRef(!1),i=e.useContext(Sx),a=tx(e.useState(zx),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l(function(t){return[e].concat(Cx(t))})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function p(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Tx(function(){return t?i?i(u):u():p(),p},[t]),Tx(function(){s.length&&(s.forEach(function(e){return e()}),l(zx))},[s]),[n,c]}(f&&!h,a),g=tx(y,2),b=g[0],w=g[1],x=null!=h?h:b;qx(o&&n&&rx()&&(x===b||x===document.body));var O=null;c&&kx(c)&&r&&(O=c.ref);var E=Ex(O,r);if(!f||!rx()||void 0===h)return null;var k=!1===x||!1,j=c;return r&&(j=e.cloneElement(c,{ref:E})),e.createElement(Sx.Provider,{value:w},k?j:C(j,x))});function Gx(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return t.Children.forEach(e,function(e){(null!=e||r.keepEmpty)&&(Array.isArray(e)?n=n.concat(Gx(e)):bx(e)&&e.props?n=n.concat(Gx(e.props.children,r)):n.push(e))}),n}function Xx(e){return e instanceof HTMLElement||e instanceof SVGElement}function Kx(e){var r,n=function(e){return e&&"object"===Yw(e)&&Xx(e.nativeElement)?e.nativeElement:Xx(e)?e:null}(e);return n||(e instanceof t.Component?null===(r=S.findDOMNode)||void 0===r?void 0:r.call(S,e):null)}"production"!==process.env.NODE_ENV&&(Yx.displayName="Portal");var Zx=e.createContext(null);var Qx=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),Jx="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,eO="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),tO="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(eO):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var rO=["top","right","bottom","left","width","height","size","weight"],nO="undefined"!=typeof MutationObserver,oO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){tO(i)}function s(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Jx&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Jx&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;rO.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),iO=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},aO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||eO},sO=fO(0,0,0,0);function lO(e){return parseFloat(e)||0}function cO(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+lO(e["border-"+r+"-width"])},0)}function uO(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return sO;var n=aO(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=lO(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=lO(n.width),l=lO(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=cO(n,"left","right")+i),Math.round(l+a)!==r&&(l-=cO(n,"top","bottom")+a)),!function(e){return e===aO(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return fO(o.left,o.top,s,l)}var pO="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof aO(e).SVGGraphicsElement}:function(e){return e instanceof aO(e).SVGElement&&"function"==typeof e.getBBox};function dO(e){return Jx?pO(e)?function(e){var t=e.getBBox();return fO(0,0,t.width,t.height)}(e):uO(e):sO}function fO(e,t,r,n){return{x:e,y:t,width:r,height:n}}var mO=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fO(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=dO(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),hO=function(e,t){var r,n,o,i,a,s,l,c=(n=(r=t).x,o=r.y,i=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),iO(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);iO(this,{target:e,contentRect:c})},vO=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new Qx,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof aO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new mO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof aO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new hO(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),yO="undefined"!=typeof WeakMap?new WeakMap:new Qx,gO=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=oO.getInstance(),n=new vO(t,r,this);yO.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){gO.prototype[e]=function(){var t;return(t=yO.get(this))[e].apply(t,arguments)}});var bO=void 0!==eO.ResizeObserver?eO.ResizeObserver:gO,wO=new Map;function xO(e){e.forEach(function(e){var t,r=e.target;null===(t=wO.get(r))||void 0===t||t.forEach(function(e){return e(r)})})}var OO=new bO(xO);function EO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gw(n.key),n)}}function jO(e,t,r){return t&&kO(e.prototype,t),r&&kO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PO(e,t)}function SO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PO(e,t)}function CO(e){return CO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CO(e)}function NO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(NO=function(){return!!e})()}function TO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zO(e){var t=NO();return function(){var r,n=CO(e);if(t){var o=CO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==Yw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TO(e)}(this,r)}}process.env.NODE_ENV,process.env.NODE_ENV;var LO=function(){SO(r,e.Component);var t=zO(r);function r(){return EO(this,r),t.apply(this,arguments)}return jO(r,[{key:"render",value:function(){return this.props.children}}]),r}();function MO(t,r){var n=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(Zx),l="function"==typeof n,c=l?n(i):n,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&e.isValidElement(c)&&kx(c),d=p?Px(c):null,f=Ex(d,i),m=function(){var e;return Kx(i.current)||(i.current&&"object"===Yw(i.current)?Kx(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Kx(a.current)};e.useImperativeHandle(r,function(){return m()});var h=e.useRef(t);h.current=t;var v=e.useCallback(function(e){var t=h.current,r=t.onResize,n=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,l=e.offsetWidth,c=e.offsetHeight,p=Math.floor(i),d=Math.floor(a);if(u.current.width!==p||u.current.height!==d||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:p,height:d,offsetWidth:l,offsetHeight:c};u.current=f;var m=l===Math.round(i)?i:l,v=c===Math.round(a)?a:c,y=Zw(Zw({},f),{},{offsetWidth:m,offsetHeight:v});null==s||s(y,e,n),r&&Promise.resolve().then(function(){r(y,e)})}},[]);return e.useEffect(function(){var e,t,r=m();return r&&!o&&(e=r,t=v,wO.has(e)||(wO.set(e,new Set),OO.observe(e)),wO.get(e).add(t)),function(){return function(e,t){wO.has(e)&&(wO.get(e).delete(t),wO.get(e).size||(OO.unobserve(e),wO.delete(e)))}(r,v)}},[i.current,o]),e.createElement(LO,{ref:a},p?e.cloneElement(c,{ref:f}):c)}var DO=e.forwardRef(MO);"production"!==process.env.NODE_ENV&&(DO.displayName="SingleObserver");function AO(t,r){var n=t.children,o="function"==typeof n?[n]:Gx(n);return"production"!==process.env.NODE_ENV&&(o.length>1?ix(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&ix(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map(function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(DO,Uw({},t,{key:i,ref:0===o?r:void 0}),n)})}var RO=e.forwardRef(AO);function IO(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function BO(e){return function(e){return IO(e)instanceof ShadowRoot}(e)?IO(e):null}function _O(t){var r=e.useRef();r.current=t;var n=e.useCallback(function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r.current)||void 0===e?void 0:e.call.apply(e,[r].concat(n))},[]);return n}"production"!==process.env.NODE_ENV&&(RO.displayName="ResizeObserver"),RO.Collection=function(t){var r=t.children,n=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(Zx),s=e.useCallback(function(e,t,r){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then(function(){s===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,r)},[n,a]);return e.createElement(Zx.Provider,{value:s},r)};var WO=0,FO=Zw({},e).useId,VO=FO?function(e){var t=FO();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var r=tx(e.useState("ssr-id"),2),n=r[0],o=r[1];return e.useEffect(function(){var e=WO;WO+=1,o("rc_unique_".concat(e))},[]),t||("test"===process.env.NODE_ENV?"test-id":n)},$O=e.createContext({}),HO=function(){SO(r,e.Component);var t=zO(r);function r(){return EO(this,r),t.apply(this,arguments)}return jO(r,[{key:"render",value:function(){return this.props.children}}]),r}();function qO(t){var r=e.useRef(!1),n=tx(e.useState(t),2),o=n[0],i=n[1];return e.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]),[o,function(e,t){t&&r.current||i(e)}]}var UO="none",YO="appear",GO="enter",XO="leave",KO="none",ZO="prepare",QO="start",JO="active",eE="end",tE="prepared";function rE(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var nE,oE,iE,aE=(nE=rx(),oE="undefined"!=typeof window?window:{},iE={animationend:rE("Animation","AnimationEnd"),transitionend:rE("Transition","TransitionEnd")},nE&&("AnimationEvent"in oE||delete iE.animationend.animation,"TransitionEvent"in oE||delete iE.transitionend.transition),iE),sE={};if(rx()){var lE=document.createElement("div");sE=lE.style}var cE={};function uE(e){if(cE[e])return cE[e];var t=aE[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sE)return cE[e]=t[i],cE[e]}return""}var pE=uE("animationend"),dE=uE("transitionend"),fE=!(!pE||!dE),mE=pE||"animationend",hE=dE||"transitionend";function vE(e,t){if(!e)return null;if("object"===Yw(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var yE=rx()?d:a,gE=function(e){return+setTimeout(e,16)},bE=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(gE=function(e){return window.requestAnimationFrame(e)},bE=function(e){return window.cancelAnimationFrame(e)});var wE=0,xE=new Map;function OE(e){xE.delete(e)}var EE=function(e){var t=wE+=1;return function r(n){if(0===n)OE(t),e();else{var o=gE(function(){r(n-1)});xE.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};EE.cancel=function(e){var t=xE.get(e);return OE(e),bE(t)},"production"!==process.env.NODE_ENV&&(EE.ids=function(){return xE});var kE=[ZO,QO,JO,eE],jE=[ZO,tE],PE=!1;function SE(e){return e===JO||e===eE}var CE=function(t,r,n){var o=tx(qO(KO),2),i=o[0],a=o[1],s=function(){var t=e.useRef(null);function r(){EE.cancel(t.current)}return e.useEffect(function(){return function(){r()}},[]),[function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;r();var i=EE(function(){o<=1?n({isCanceled:function(){return i!==t.current}}):e(n,o-1)});t.current=i},r]}(),l=tx(s,2),c=l[0],u=l[1];var p=r?jE:kE;return yE(function(){if(i!==KO&&i!==eE){var e=p.indexOf(i),t=p[e+1],r=n(i);r===PE?a(t,!0):t&&c(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[t,i]),e.useEffect(function(){return function(){u()}},[]),[function(){a(ZO,!0)},i]};function NE(t,r,n,o){var i,s,l,u=o.motionEnter,p=void 0===u||u,d=o.motionAppear,f=void 0===d||d,m=o.motionLeave,h=void 0===m||m,v=o.motionDeadline,y=o.motionLeaveImmediately,g=o.onAppearPrepare,b=o.onEnterPrepare,w=o.onLeavePrepare,x=o.onAppearStart,O=o.onEnterStart,E=o.onLeaveStart,k=o.onAppearActive,j=o.onEnterActive,P=o.onLeaveActive,S=o.onAppearEnd,C=o.onEnterEnd,N=o.onLeaveEnd,T=o.onVisibleChanged,z=tx(qO(),2),L=z[0],M=z[1],D=(i=UO,s=tx(e.useReducer(function(e){return e+1},0),2)[1],l=e.useRef(i),[_O(function(){return l.current}),_O(function(e){l.current="function"==typeof e?e(l.current):e,s()})]),A=tx(D,2),R=A[0],I=A[1],B=tx(qO(null),2),_=B[0],W=B[1],F=R(),V=c(!1),$=c(null);function H(){return n()}var q=c(!1);function U(){I(UO),W(null,!0)}var Y=_O(function(e){var t=R();if(t!==UO){var r=H();if(!e||e.deadline||e.target===r){var n,o=q.current;t===YO&&o?n=null==S?void 0:S(r,e):t===GO&&o?n=null==C?void 0:C(r,e):t===XO&&o&&(n=null==N?void 0:N(r,e)),o&&!1!==n&&U()}}}),G=function(t){var r=c();function n(e){e&&(e.removeEventListener(hE,t),e.removeEventListener(mE,t))}return e.useEffect(function(){return function(){n(r.current)}},[]),[function(e){r.current&&r.current!==e&&n(r.current),e&&e!==r.current&&(e.addEventListener(hE,t),e.addEventListener(mE,t),r.current=e)},n]}(Y),X=tx(G,1)[0],K=function(e){switch(e){case YO:return Xw(Xw(Xw({},ZO,g),QO,x),JO,k);case GO:return Xw(Xw(Xw({},ZO,b),QO,O),JO,j);case XO:return Xw(Xw(Xw({},ZO,w),QO,E),JO,P);default:return{}}},Z=e.useMemo(function(){return K(F)},[F]),Q=tx(CE(F,!t,function(e){if(e===ZO){var t=Z[ZO];return t?t(H()):PE}var r;ee in Z&&W((null===(r=Z[ee])||void 0===r?void 0:r.call(Z,H(),null))||null);return ee===JO&&F!==UO&&(X(H()),v>0&&(clearTimeout($.current),$.current=setTimeout(function(){Y({deadline:!0})},v))),ee===tE&&U(),true}),2),J=Q[0],ee=Q[1],te=SE(ee);q.current=te;var re=c(null);yE(function(){if(!V.current||re.current!==r){M(r);var e,n=V.current;V.current=!0,!n&&r&&f&&(e=YO),n&&r&&p&&(e=GO),(n&&!r&&h||!n&&y&&!r&&h)&&(e=XO);var o=K(e);e&&(t||o[ZO])?(I(e),J()):I(UO),re.current=r}},[r]),a(function(){(F===YO&&!f||F===GO&&!p||F===XO&&!h)&&I(UO)},[f,p,h]),a(function(){return function(){V.current=!1,clearTimeout($.current)}},[]);var ne=e.useRef(!1);a(function(){L&&(ne.current=!0),void 0!==L&&F===UO&&((ne.current||L)&&(null==T||T(L)),ne.current=!0)},[L,F]);var oe=_;return Z[ZO]&&ee===QO&&(oe=Zw({transition:"none"},oe)),[F,ee,oe,null!=L?L:r]}var TE=function(t){var r=t;"object"===Yw(t)&&(r=t.transitionSupport);var n=e.forwardRef(function(t,n){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,l=t.forceRender,u=t.children,p=t.motionName,d=t.leavedClassName,f=t.eventProps,m=function(e,t){return!(!e.motionName||!r||!1===t)}(t,e.useContext($O).motion),h=c(),v=c();var y=tx(NE(m,i,function(){try{return h.current instanceof HTMLElement?h.current:Kx(v.current)}catch(e){return null}},t),4),g=y[0],b=y[1],w=y[2],x=y[3],O=e.useRef(x);x&&(O.current=!0);var E,k=e.useCallback(function(e){h.current=e,xx(n,e)},[n]),j=Zw(Zw({},f),{},{visible:i});if(u)if(g===UO)E=x?u(Zw({},j),k):!s&&O.current&&d?u(Zw(Zw({},j),{},{className:d}),k):l||!s&&!d?u(Zw(Zw({},j),{},{style:{display:"none"}}),k):null;else{var P;b===ZO?P="prepare":SE(b)?P="active":b===QO&&(P="start");var S=vE(p,"".concat(g,"-").concat(P));E=u(Zw(Zw({},j),{},{className:sg(vE(p,g),Xw(Xw({},S,S&&P),p,"string"==typeof p)),style:w}),k)}else E=null;e.isValidElement(E)&&kx(E)&&(Px(E)||(E=e.cloneElement(E,{ref:k})));return e.createElement(HO,{ref:v},E)});return n.displayName="CSSMotion",n}(fE),zE="add",LE="keep",ME="remove",DE="removed";function AE(e){var t;return Zw(Zw({},t=e&&"object"===Yw(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function RE(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(AE)}var IE=["component","children","onVisibleChanged","onAllRemoved"],BE=["status"],_E=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function WE(t){var r=t.prefixCls,n=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,p=i.y,d=void 0===p?0:p,f=e.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],y=h[0],g=h[1],b=v[0],w=v[1];y!==b&&["t","b"].includes(y)?"t"===y?m.top=0:m.bottom=0:m.top=d,g!==w&&["l","r"].includes(g)?"l"===g?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:f,className:sg("".concat(r,"-arrow"),s),style:m},l)}function FE(t){var r=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(TE,Uw({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(t){var n=t.className;return e.createElement("div",{style:{zIndex:o},className:sg("".concat(r,"-mask"),n)})}):null}!function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TE,n=function(){SO(n,e.Component);var t=zO(n);function n(){var e;EO(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Xw(TO(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Xw(TO(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:Zw(Zw({},e),{},{status:DE})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==DE}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return jO(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged;o.onAllRemoved;var l=Qw(o,IE),c=i||e.Fragment,u={};return _E.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,e.createElement(c,l,n.map(function(n,o){var i=n.status,l=Qw(n,BE),c=i===zE||i===LE;return e.createElement(r,Uw({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return a(Zw(Zw({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=RE(r),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=RE(e),a=RE(t);i.forEach(function(e){for(var t=!1,i=n;i<o;i+=1){var s=a[i];if(s.key===e.key){n<i&&(r=r.concat(a.slice(n,i).map(function(e){return Zw(Zw({},e),{},{status:zE})})),n=i),r.push(Zw(Zw({},s),{},{status:LE})),n+=1,t=!0;break}}t||r.push(Zw(Zw({},e),{},{status:ME}))}),n<o&&(r=r.concat(a.slice(n).map(function(e){return Zw(Zw({},e),{},{status:zE})})));var s={};return r.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ME})).forEach(function(t){t.key===e&&(t.status=LE)})}),r}(n,o);return{keyEntities:i.filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==DE||e.status!==ME})}}}]),n}();Xw(n,"defaultProps",{component:"div"})}(fE);var VE=e.memo(function(e){return e.children},function(e,t){return t.cache});"production"!==process.env.NODE_ENV&&(VE.displayName="PopupContent");var $E=e.forwardRef(function(t,r){var n=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,p=t.fresh,d=t.onClick,f=t.mask,m=t.arrow,h=t.arrowPos,v=t.align,y=t.motion,g=t.maskMotion,b=t.forceRender,w=t.getPopupContainer,x=t.autoDestroy,O=t.portal,E=t.zIndex,k=t.onMouseEnter,j=t.onMouseLeave,P=t.onPointerEnter,S=t.onPointerDownCapture,C=t.ready,N=t.offsetX,T=t.offsetY,z=t.offsetR,L=t.offsetB,M=t.onAlign,D=t.onPrepare,A=t.stretch,R=t.targetWidth,I=t.targetHeight,B="function"==typeof n?n():n,_=c||u,W=(null==w?void 0:w.length)>0,F=tx(e.useState(!w||!W),2),V=F[0],$=F[1];if(Tx(function(){!V&&W&&s&&$(!0)},[V,W,s]),!V)return null;var H="auto",q={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!c){var U,Y=v.points,G=v.dynamicInset||(null===(U=v._experimental)||void 0===U?void 0:U.dynamicInset),X=G&&"r"===Y[0][1],K=G&&"b"===Y[0][0];X?(q.right=z,q.left=H):(q.left=N,q.right=H),K?(q.bottom=L,q.top=H):(q.top=T,q.bottom=H)}var Z={};return A&&(A.includes("height")&&I?Z.height=I:A.includes("minHeight")&&I&&(Z.minHeight=I),A.includes("width")&&R?Z.width=R:A.includes("minWidth")&&R&&(Z.minWidth=R)),c||(Z.pointerEvents="none"),e.createElement(O,{open:b||_,getContainer:w&&function(){return w(s)},autoDestroy:x},e.createElement(FE,{prefixCls:i,open:c,zIndex:E,mask:f,motion:g}),e.createElement(RO,{onResize:M,disabled:!c},function(t){return e.createElement(TE,Uw({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),function(n,s){var l=n.className,u=n.style,f=sg(i,l,o);return e.createElement("div",{ref:Ox(t,r,s),className:f,style:Zw(Zw(Zw(Zw({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),Z),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:k,onMouseLeave:j,onPointerEnter:P,onClick:d,onPointerDownCapture:S},m&&e.createElement(WE,{prefixCls:i,arrow:m,arrowPos:h,align:v}),e.createElement(VE,{cache:!c&&!p},B))})}))});"production"!==process.env.NODE_ENV&&($E.displayName="Popup");var HE=e.forwardRef(function(t,r){var n=t.children,o=t.getTriggerDOMNode,i=kx(n),a=e.useCallback(function(e){xx(r,o?o(e):e)},[o]),s=Ex(a,Px(n));return i?e.cloneElement(n,{ref:s}):n});"production"!==process.env.NODE_ENV&&(HE.displayName="TriggerWrapper");var qE=e.createContext(null);function UE(e){return e?Array.isArray(e)?e:[e]:[]}function YE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function GE(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function XE(e){return e.ownerDocument.defaultView}function KE(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=XE(r).getComputedStyle(r);[o.overflowX,o.overflowY,o.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function ZE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function QE(e){return ZE(parseFloat(e),0)}function JE(e,t){var r=Zw({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=XE(e).getComputedStyle(e),n=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,f=e.clientWidth,m=QE(i),h=QE(a),v=QE(s),y=QE(l),g=ZE(Math.round(c.width/d*1e3)/1e3),b=ZE(Math.round(c.height/u*1e3)/1e3),w=(d-f-v-y)*g,x=(u-p-m-h)*b,O=m*b,E=h*b,k=v*g,j=y*g,P=0,S=0;if("clip"===n){var C=QE(o);P=C*g,S=C*b}var N=c.x+k-P,T=c.y+O-S,z=N+c.width+2*P-k-j-w,L=T+c.height+2*S-O-E-x;r.left=Math.max(r.left,N),r.top=Math.max(r.top,T),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,L)}}),r}function ek(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=t.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(t)}function tk(e,t){var r=tx(t||[],2),n=r[0],o=r[1];return[ek(e.width,n),ek(e.height,o)]}function rk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function nk(e,t){var r,n=t[0],o=t[1];return r="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:r}}function ok(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function ik(t,r,n,o,i,a,s){var l=tx(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=l[0],u=l[1],p=e.useRef(0),d=e.useMemo(function(){return r?KE(r):[]},[r]),f=e.useRef({});t||(f.current={});var m=_O(function(){if(r&&n&&t){var e,l,c,p,m,h=r,v=h.ownerDocument,y=XE(h),g=y.getComputedStyle(h).position,b=h.style.left,w=h.style.top,x=h.style.right,O=h.style.bottom,E=h.style.overflow,k=Zw(Zw({},i[o]),a),j=v.createElement("div");if(null===(e=h.parentElement)||void 0===e||e.appendChild(j),j.style.left="".concat(h.offsetLeft,"px"),j.style.top="".concat(h.offsetTop,"px"),j.style.position=g,j.style.height="".concat(h.offsetHeight,"px"),j.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var P,S,C=n.getBoundingClientRect();C.x=null!==(P=C.x)&&void 0!==P?P:C.left,C.y=null!==(S=C.y)&&void 0!==S?S:C.top,m={x:C.x,y:C.y,width:C.width,height:C.height}}var N=h.getBoundingClientRect(),T=y.getComputedStyle(h),z=T.height,L=T.width;N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var M=v.documentElement,D=M.clientWidth,A=M.clientHeight,R=M.scrollWidth,I=M.scrollHeight,B=M.scrollTop,_=M.scrollLeft,W=N.height,F=N.width,V=m.height,$=m.width,H={left:0,top:0,right:D,bottom:A},q={left:-_,top:-B,right:R-_,bottom:I-B},U=k.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==U&&U!==G&&(U=Y);var X=U===G,K=JE(q,d),Z=JE(H,d),Q=U===Y?Z:K,J=X?Z:Q;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ee=h.getBoundingClientRect();h.style.left=b,h.style.top=w,h.style.right=x,h.style.bottom=O,h.style.overflow=E,null===(p=h.parentElement)||void 0===p||p.removeChild(j);var te=ZE(Math.round(F/parseFloat(L)*1e3)/1e3),re=ZE(Math.round(W/parseFloat(z)*1e3)/1e3);if(0===te||0===re||Xx(n)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(n))return;var ne=k.offset,oe=k.targetOffset,ie=tx(tk(N,ne),2),ae=ie[0],se=ie[1],le=tx(tk(m,oe),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var pe=tx(k.points||[],2),de=pe[0],fe=rk(pe[1]),me=rk(de),he=nk(m,fe),ve=nk(N,me),ye=Zw({},k),ge=he.x-ve.x+ae,be=he.y-ve.y+se;function dt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,n=N.x+e,o=N.y+t,i=n+F,a=o+W,s=Math.max(n,r.left),l=Math.max(o,r.top),c=Math.min(i,r.right),u=Math.min(a,r.bottom);return Math.max(0,(c-s)*(u-l))}var we,xe,Oe,Ee,ke=dt(ge,be),je=dt(ge,be,Z),Pe=nk(m,["t","l"]),Se=nk(N,["t","l"]),Ce=nk(m,["b","r"]),Ne=nk(N,["b","r"]),Te=k.overflow||{},ze=Te.adjustX,Le=Te.adjustY,Me=Te.shiftX,De=Te.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function ft(){we=N.y+be,xe=we+W,Oe=N.x+ge,Ee=Oe+F}ft();var Re=Ae(Le),Ie=me[0]===fe[0];if(Re&&"t"===me[0]&&(xe>J.bottom||f.current.bt)){var Be=be;Ie?Be-=W-V:Be=Pe.y-Ne.y-se;var _e=dt(ge,Be),We=dt(ge,Be,Z);_e>ke||_e===ke&&(!X||We>=je)?(f.current.bt=!0,be=Be,se=-se,ye.points=[ok(me,0),ok(fe,0)]):f.current.bt=!1}if(Re&&"b"===me[0]&&(we<J.top||f.current.tb)){var Fe=be;Ie?Fe+=W-V:Fe=Ce.y-Se.y-se;var Ve=dt(ge,Fe),$e=dt(ge,Fe,Z);Ve>ke||Ve===ke&&(!X||$e>=je)?(f.current.tb=!0,be=Fe,se=-se,ye.points=[ok(me,0),ok(fe,0)]):f.current.tb=!1}var He=Ae(ze),qe=me[1]===fe[1];if(He&&"l"===me[1]&&(Ee>J.right||f.current.rl)){var Ue=ge;qe?Ue-=F-$:Ue=Pe.x-Ne.x-ae;var Ye=dt(Ue,be),Ge=dt(Ue,be,Z);Ye>ke||Ye===ke&&(!X||Ge>=je)?(f.current.rl=!0,ge=Ue,ae=-ae,ye.points=[ok(me,1),ok(fe,1)]):f.current.rl=!1}if(He&&"r"===me[1]&&(Oe<J.left||f.current.lr)){var Xe=ge;qe?Xe+=F-$:Xe=Ce.x-Se.x-ae;var Ke=dt(Xe,be),Ze=dt(Xe,be,Z);Ke>ke||Ke===ke&&(!X||Ze>=je)?(f.current.lr=!0,ge=Xe,ae=-ae,ye.points=[ok(me,1),ok(fe,1)]):f.current.lr=!1}ft();var Qe=!0===Me?0:Me;"number"==typeof Qe&&(Oe<Z.left&&(ge-=Oe-Z.left-ae,m.x+$<Z.left+Qe&&(ge+=m.x-Z.left+$-Qe)),Ee>Z.right&&(ge-=Ee-Z.right-ae,m.x>Z.right-Qe&&(ge+=m.x-Z.right+Qe)));var Je=!0===De?0:De;"number"==typeof Je&&(we<Z.top&&(be-=we-Z.top-se,m.y+V<Z.top+Je&&(be+=m.y-Z.top+V-Je)),xe>Z.bottom&&(be-=xe-Z.bottom-se,m.y>Z.bottom-Je&&(be+=m.y-Z.bottom+Je)));var et=N.x+ge,tt=et+F,rt=N.y+be,nt=rt+W,ot=m.x,it=ot+$,at=m.y,st=at+V,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et,ct=(Math.max(rt,at)+Math.min(nt,st))/2-rt;null==s||s(r,ye);var ut=ee.right-N.x-(ge+N.width),pt=ee.bottom-N.y-(be+N.height);1===te&&(ge=Math.round(ge),ut=Math.round(ut)),1===re&&(be=Math.round(be),pt=Math.round(pt)),u({ready:!0,offsetX:ge/te,offsetY:be/re,offsetR:ut/te,offsetB:pt/re,arrowX:lt/te,arrowY:ct/re,scaleX:te,scaleY:re,align:ye})}}),h=function(){u(function(e){return Zw(Zw({},e),{},{ready:!1})})};return Tx(h,[o]),Tx(function(){t||h()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){p.current+=1;var e=p.current;Promise.resolve().then(function(){p.current===e&&m()})}]}var ak=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var sk=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yx,r=e.forwardRef(function(r,n){var o=r.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=r.children,s=r.action,l=void 0===s?"hover":s,c=r.showAction,u=r.hideAction,p=r.popupVisible,d=r.defaultPopupVisible,f=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,h=r.mouseEnterDelay,v=r.mouseLeaveDelay,y=void 0===v?.1:v,g=r.focusDelay,b=r.blurDelay,w=r.mask,x=r.maskClosable,O=void 0===x||x,E=r.getPopupContainer,k=r.forceRender,j=r.autoDestroy,P=r.destroyPopupOnHide,S=r.popup,C=r.popupClassName,N=r.popupStyle,T=r.popupPlacement,z=r.builtinPlacements,L=void 0===z?{}:z,M=r.popupAlign,D=r.zIndex,A=r.stretch,R=r.getPopupClassNameFromAlign,I=r.fresh,B=r.alignPoint,_=r.onPopupClick,W=r.onPopupAlign,F=r.arrow,V=r.popupMotion,$=r.maskMotion,H=r.popupTransitionName,q=r.popupAnimation,U=r.maskTransitionName,Y=r.maskAnimation,G=r.className,X=r.getTriggerDOMNode,K=Qw(r,ak),Z=j||P||!1,Q=tx(e.useState(!1),2),J=Q[0],ee=Q[1];Tx(function(){ee(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())},[]);var te=e.useRef({}),re=e.useContext(qE),ne=e.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==re||re.registerSubPopup(e,t)}}},[re]),oe=VO(),ie=tx(e.useState(null),2),ae=ie[0],se=ie[1],le=e.useRef(null),ce=_O(function(e){le.current=e,Xx(e)&&ae!==e&&se(e),null==re||re.registerSubPopup(oe,e)}),ue=tx(e.useState(null),2),pe=ue[0],de=ue[1],fe=e.useRef(null),me=_O(function(e){Xx(e)&&pe!==e&&(de(e),fe.current=e)}),he=e.Children.only(a),ve=(null==he?void 0:he.props)||{},ye={},ge=_O(function(e){var t,r,n=pe;return(null==n?void 0:n.contains(e))||(null===(t=BO(n))||void 0===t?void 0:t.host)===e||e===n||(null==ae?void 0:ae.contains(e))||(null===(r=BO(ae))||void 0===r?void 0:r.host)===e||e===ae||Object.values(te.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),be=GE(i,V,q,H),we=GE(i,$,Y,U),xe=tx(e.useState(d||!1),2),Oe=xe[0],Ee=xe[1],ke=null!=p?p:Oe,je=_O(function(e){void 0===p&&Ee(e)});Tx(function(){Ee(p||!1)},[p]);var Pe=e.useRef(ke);Pe.current=ke;var Se=e.useRef([]);Se.current=[];var Ce=_O(function(e){var t;je(e),(null!==(t=Se.current[Se.current.length-1])&&void 0!==t?t:ke)!==e&&(Se.current.push(e),null==f||f(e))}),Ne=e.useRef(),Te=function(){clearTimeout(Ne.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Ce(e):Ne.current=setTimeout(function(){Ce(e)},1e3*t)};e.useEffect(function(){return Te},[]);var Le=tx(e.useState(!1),2),Me=Le[0],De=Le[1];Tx(function(e){e&&!ke||De(!0)},[ke]);var Ae=tx(e.useState(null),2),Re=Ae[0],Ie=Ae[1],Be=tx(e.useState(null),2),_e=Be[0],We=Be[1],Fe=function(e){We([e.clientX,e.clientY])},Ve=tx(ik(ke,ae,B&&null!==_e?_e:pe,T,L,M,W),11),$e=Ve[0],He=Ve[1],qe=Ve[2],Ue=Ve[3],Ye=Ve[4],Ge=Ve[5],Xe=Ve[6],Ke=Ve[7],Ze=Ve[8],Qe=Ve[9],Je=Ve[10],et=function(t,r,n,o){return e.useMemo(function(){var e=UE(null!=n?n:r),i=UE(null!=o?o:r),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[t,r,n,o])}(J,l,c,u),tt=tx(et,2),rt=tt[0],nt=tt[1],ot=rt.has("click"),it=nt.has("click")||nt.has("contextMenu"),at=_O(function(){Me||Je()});!function(e,t,r,n,o){Tx(function(){if(e&&t&&r){var i=r,a=KE(t),s=KE(i),l=XE(i),c=new Set([l].concat(Cx(a),Cx(s)));function u(){n(),o()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,r])}(ke,pe,ae,at,function(){Pe.current&&B&&it&&ze(!1)}),Tx(function(){at()},[_e,T]),Tx(function(){!ke||null!=L&&L[T]||at()},[JSON.stringify(M)]);var st=e.useMemo(function(){var e=function(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(YE(null===(s=e[l])||void 0===s?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}(L,i,Qe,B);return sg(e,null==R?void 0:R(Qe))},[Qe,R,L,i,B]);e.useImperativeHandle(n,function(){return{nativeElement:fe.current,popupElement:le.current,forceAlign:at}});var lt=tx(e.useState(0),2),ct=lt[0],ut=lt[1],pt=tx(e.useState(0),2),dt=pt[0],ft=pt[1],mt=function(){if(A&&pe){var e=pe.getBoundingClientRect();ut(e.width),ft(e.height)}};function ht(e,t,r,n){ye[e]=function(o){var i;null==n||n(o),ze(t,r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ve[e])||void 0===i||i.call.apply(i,[ve,o].concat(s))}}Tx(function(){Re&&(Je(),Re(),Ie(null))},[Re]),(ot||it)&&(ye.onClick=function(e){var t;Pe.current&&it?ze(!1):!Pe.current&&ot&&(Fe(e),ze(!0));for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ve.onClick)||void 0===t||t.call.apply(t,[ve,e].concat(n))});var vt,yt,gt=function(t,r,n,o,i,a,s,l){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect(function(){if(r&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},p=XE(o);p.addEventListener("pointerdown",e,!0),p.addEventListener("mousedown",t,!0),p.addEventListener("contextmenu",t,!0);var d,f,m=BO(n);return m&&(m.addEventListener("mousedown",t,!0),m.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&ix((null==n||null===(d=n.getRootNode)||void 0===d?void 0:d.call(n))===(null===(f=o.getRootNode)||void 0===f?void 0:f.call(o)),"trigger element and popup element should in same shadow root."),function(){p.removeEventListener("pointerdown",e,!0),p.removeEventListener("mousedown",t,!0),p.removeEventListener("contextmenu",t,!0),m&&(m.removeEventListener("mousedown",t,!0),m.removeEventListener("contextmenu",t,!0))}}},[r,n,o,i,a]),function(){u.current=!0}}(ke,it,pe,ae,w,O,ge,ze),bt=rt.has("hover"),wt=nt.has("hover");bt&&(ht("onMouseEnter",!0,h,function(e){Fe(e)}),ht("onPointerEnter",!0,h,function(e){Fe(e)}),vt=function(e){(ke||Me)&&null!=ae&&ae.contains(e.target)&&ze(!0,h)},B&&(ye.onMouseMove=function(e){var t;null===(t=ve.onMouseMove)||void 0===t||t.call(ve,e)})),wt&&(ht("onMouseLeave",!1,y),ht("onPointerLeave",!1,y),yt=function(){ze(!1,y)}),rt.has("focus")&&ht("onFocus",!0,g),nt.has("focus")&&ht("onBlur",!1,b),rt.has("contextMenu")&&(ye.onContextMenu=function(e){var t;Pe.current&&nt.has("contextMenu")?ze(!1):(Fe(e),ze(!0)),e.preventDefault();for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ve.onContextMenu)||void 0===t||t.call.apply(t,[ve,e].concat(n))}),G&&(ye.className=sg(ve.className,G));var xt=e.useRef(!1);xt.current||(xt.current=k||ke||Me);var Ot=Zw(Zw({},ve),ye),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){K[e]&&(Et[e]=function(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(n)),K[e].apply(K,n)})});var kt=e.cloneElement(he,Zw(Zw({},Ot),Et)),jt={x:Ge,y:Xe},Pt=F?Zw({},!0!==F?F:{}):null;return e.createElement(e.Fragment,null,e.createElement(RO,{disabled:!ke,ref:me,onResize:function(){mt(),at()}},e.createElement(HE,{getTriggerDOMNode:X},kt)),xt.current&&e.createElement(qE.Provider,{value:ne},e.createElement($E,{portal:t,ref:ce,prefixCls:i,popup:S,className:sg(C,st),style:N,target:pe,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:D,open:ke,keepDom:Me,fresh:I,onClick:_,onPointerDownCapture:gt,mask:w,motion:be,maskMotion:we,onVisibleChanged:function(e){De(!1),Je(),null==m||m(e)},onPrepare:function(){return new Promise(function(e){mt(),Ie(function(){return e})})},forceRender:k,autoDestroy:Z,getPopupContainer:E,align:Qe,arrow:Pt,arrowPos:jt,ready:$e,offsetX:He,offsetY:qe,offsetR:Ue,offsetB:Ye,onAlign:at,stretch:A,targetWidth:ct/Ke,targetHeight:dt/Ze})))});return"production"!==process.env.NODE_ENV&&(r.displayName="Trigger"),r}(Yx),lk={shiftX:64,adjustY:1},ck={adjustX:1,shiftY:!0},uk=[0,0],pk={left:{points:["cr","cl"],overflow:ck,offset:[-4,0],targetOffset:uk},right:{points:["cl","cr"],overflow:ck,offset:[4,0],targetOffset:uk},top:{points:["bc","tc"],overflow:lk,offset:[0,-4],targetOffset:uk},bottom:{points:["tc","bc"],overflow:lk,offset:[0,4],targetOffset:uk},topLeft:{points:["bl","tl"],overflow:lk,offset:[0,-4],targetOffset:uk},leftTop:{points:["tr","tl"],overflow:ck,offset:[-4,0],targetOffset:uk},topRight:{points:["br","tr"],overflow:lk,offset:[0,-4],targetOffset:uk},rightTop:{points:["tl","tr"],overflow:ck,offset:[4,0],targetOffset:uk},bottomRight:{points:["tr","br"],overflow:lk,offset:[0,4],targetOffset:uk},rightBottom:{points:["bl","br"],overflow:ck,offset:[4,0],targetOffset:uk},bottomLeft:{points:["tl","bl"],overflow:lk,offset:[0,4],targetOffset:uk},leftBottom:{points:["br","bl"],overflow:ck,offset:[-4,0],targetOffset:uk}},dk=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],fk=function(t,r){var n=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,s=void 0===a?0:a,l=t.mouseLeaveDelay,u=void 0===l?.1:l,p=t.overlayStyle,d=t.prefixCls,m=void 0===d?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,g=t.transitionName,b=t.animation,w=t.motion,x=t.placement,O=void 0===x?"right":x,E=t.align,k=void 0===E?{}:E,j=t.destroyTooltipOnHide,P=void 0!==j&&j,S=t.defaultVisible,C=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,z=t.id,L=t.showArrow,M=void 0===L||L,D=t.classNames,A=t.styles,R=Qw(t,dk),I=VO(z),B=c(null);f(r,function(){return B.current});var _=Zw({},R);"visible"in t&&(_.popupVisible=t.visible);var W,F;return e.createElement(sk,Uw({popupClassName:sg(n,null==D?void 0:D.root),prefixCls:m,popup:function(){return e.createElement(qw,{key:"content",prefixCls:m,id:I,bodyClassName:null==D?void 0:D.body,overlayInnerStyle:Zw(Zw({},N),null==A?void 0:A.body)},T)},action:i,builtinPlacements:pk,popupPlacement:O,ref:B,popupAlign:k,getPopupContainer:C,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:g,popupAnimation:b,popupMotion:w,defaultPopupVisible:S,autoDestroy:P,mouseLeaveDelay:u,popupStyle:Zw(Zw({},p),null==A?void 0:A.root),mouseEnterDelay:s,arrow:M},_),(W=e.Children.only(h),F=Zw(Zw({},(null==W?void 0:W.props)||{}),{},{"aria-describedby":T?I:null}),e.cloneElement(h,F)))},mk=r(fk);const hk=({title:e,description:r,footer:n,dataTestId:o,variant:i="default"})=>{const a=Boolean(r||n);return t.createElement("div",{"data-test-id":o,className:Be("overflow-hidden break-words rounded-lg","border shadow-md backdrop-blur-xs","transition-all duration-150 animate-in fade-in zoom-in-95",a?"py-3 px-4":"py-2 px-3",{"bg-popover border-border":"default"===i,"bg-destructive border-destructive/20 text-destructive-foreground":"destructive"===i,"bg-muted border-muted/20":"muted"===i})},t.createElement("div",{className:Be("flex items-center",!a&&"justify-center")},t.createElement(vg,{fontWeight:"bold",variant:a?"regular":"small",className:Be({"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},e)),r&&t.createElement("div",{className:"mt-1.5"},t.createElement(vg,{variant:"small",className:Be("opacity-90",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},r)),n&&t.createElement("div",{className:Be("mt-3",a&&"pt-2",{"border-t border-border/40":"default"===i,"border-t border-destructive/20":"destructive"===i,"border-t border-muted-foreground/20":"muted"===i})},"string"==typeof n?t.createElement(vg,{variant:"small",className:Be("opacity-75",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},n):n))},vk=({overlay:e,title:r,description:n,footer:o,children:i,trigger:a="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,placement:u="top",variant:p="default",className:d,...f})=>{const m=s(()=>"function"==typeof e?e():e?t.createElement(t.Fragment,null,e):t.createElement(hk,{title:r,description:n,footer:o,variant:p,dataTestId:f.dataTestId}),[n,o,e,r,p,f.dataTestId]);return r||n||e?t.createElement(mk,{overlay:m,trigger:a,mouseEnterDelay:l,mouseLeaveDelay:c,placement:u,destroyTooltipOnHide:!0,overlayClassName:Be("max-w-xs z-50",d),...f},t.createElement("span",{className:"inline-flex"},i)):i||null};function yk(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var gk=["color"],bk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,gk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),wk=["color"],xk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,wk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),Ok=["color"],Ek=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,Ok);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),kk=["color"],jk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,kk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))});const Pk=6048e5,Sk=Symbol.for("constructDateFrom");function Ck(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Sk in e?e[Sk](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nk(e,t){return Ck(t||e,e)}function Tk(e,t,r){const n=Nk(e,r?.in);return isNaN(t)?Ck(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function zk(e,t,r){const n=Nk(e,r?.in);if(isNaN(t))return Ck(r?.in||e,NaN);if(!t)return n;const o=n.getDate(),i=Ck(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);return o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}let Lk={};function Mk(){return Lk}function Dk(e,t){const r=Mk(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Nk(e,t?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Ak(e,t){return Dk(e,{...t,weekStartsOn:1})}function Rk(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=Ck(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=Ak(o),a=Ck(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ak(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function Ik(e){const t=Nk(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Bk(e,...t){const r=Ck.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function _k(e,t){const r=Nk(e,t?.in);return r.setHours(0,0,0,0),r}function Wk(e,t,r){const[n,o]=Bk(r?.in,e,t),i=_k(n),a=_k(o),s=+i-Ik(i),l=+a-Ik(a);return Math.round((s-l)/864e5)}function Fk(e,t,r){return Tk(e,7*t,r)}function Vk(e,t,r){return zk(e,12*t,r)}function $k(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=Ck.bind(null,e));const t=Nk(e,n);(!r||r<t||isNaN(+t))&&(r=t)}),Ck(n,r||NaN)}function Hk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=Ck.bind(null,e));const t=Nk(e,n);(!r||r>t||isNaN(+t))&&(r=t)}),Ck(n,r||NaN)}function qk(e,t,r){const[n,o]=Bk(r?.in,e,t);return+_k(n)===+_k(o)}function Uk(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Yk(e,t,r){const[n,o]=Bk(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}function Gk(e,t){const r=Nk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Xk(e,t){const r=Nk(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Kk(e,t){const r=Nk(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Zk(e,t){const r=Mk(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Nk(e,t?.in),i=o.getDay(),a=6+(i<n?-7:0)-(i-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Qk(e,t){return Zk(e,{...t,weekStartsOn:1})}const Jk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ej(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const tj={date:ej({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ej({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ej({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nj(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const oj={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:nj({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nj({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:nj({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:nj({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:nj({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ij(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(a)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}const aj={ordinalNumber:(sj={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(sj.matchPattern);if(!r)return null;const n=r[0],o=e.match(sj.parsePattern);if(!o)return null;let i=sj.valueCallback?sj.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:ij({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ij({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ij({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ij({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ij({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var sj;const lj={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=Jk[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:tj,formatRelative:(e,t,r,n)=>rj[e],localize:oj,match:aj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cj(e,t){const r=Nk(e,t?.in),n=+Ak(r)-+function(e,t){const r=Rk(e,t),n=Ck(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ak(n)}(r);return Math.round(n/Pk)+1}function uj(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=Mk(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ck(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=Dk(a,t),l=Ck(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=Dk(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function pj(e,t){const r=Nk(e,t?.in),n=+Dk(r,t)-+function(e,t){const r=Mk(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=uj(e,t),i=Ck(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Dk(i,t)}(r,t);return Math.round(n/Pk)+1}function dj(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const fj={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return dj("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):dj(r+1,2)},d:(e,t)=>dj(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>dj(e.getHours()%12||12,t.length),H:(e,t)=>dj(e.getHours(),t.length),m:(e,t)=>dj(e.getMinutes(),t.length),s:(e,t)=>dj(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return dj(Math.trunc(n*Math.pow(10,r-3)),t.length)}},mj="midnight",hj="noon",vj="morning",yj="afternoon",gj="evening",bj="night",wj={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return fj.y(e,t)},Y:function(e,t,r,n){const o=uj(e,n),i=o>0?o:1-o;if("YY"===t){return dj(i%100,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):dj(i,t.length)},R:function(e,t){return dj(Rk(e),t.length)},u:function(e,t){return dj(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return dj(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return dj(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fj.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return dj(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=pj(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):dj(o,t.length)},I:function(e,t,r){const n=cj(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):dj(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):fj.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=Nk(e,t?.in);return Wk(r,Kk(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):dj(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return dj(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return dj(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return dj(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?hj:0===n?mj:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?gj:n>=12?yj:n>=4?vj:bj,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return fj.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):fj.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):dj(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):dj(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fj.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fj.s(e,t)},S:function(e,t){return fj.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Oj(n);case"XXXX":case"XX":return Ej(n);default:return Ej(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Oj(n);case"xxxx":case"xx":return Ej(n);default:return Ej(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xj(n,":");default:return"GMT"+Ej(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xj(n,":");default:return"GMT"+Ej(n,":")}},t:function(e,t,r){return dj(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return dj(+e,t.length)}};function xj(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return 0===i?r+String(o):r+String(o)+t+dj(i,2)}function Oj(e,t){if(e%60==0){return(e>0?"-":"+")+dj(Math.abs(e)/60,2)}return Ej(e,t)}function Ej(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+dj(Math.trunc(n/60),2)+t+dj(n%60,2)}const kj=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},jj=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Pj={p:jj,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return kj(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",kj(n,t)).replace("{{time}}",jj(o,t))}},Sj=/^D+$/,Cj=/^Y+$/,Nj=["D","DD","YY","YYYY"];const Tj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lj=/^'([^]*?)'?$/,Mj=/''/g,Dj=/[a-zA-Z]/;function Aj(e,t,r){const n=Mk(),o=r?.locale??n.locale??lj,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Nk(e,r?.in);if(!function(e){return!(!Uk(e)&&"number"!=typeof e||isNaN(+Nk(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(zj).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Pj[t])(e,o.formatLong)}return e}).join("").match(Tj).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Rj(e)};if(wj[t])return{isToken:!0,value:e};if(t.match(Dj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(n=>{if(!n.isToken)return n.value;const i=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return Cj.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return Sj.test(e)}(i))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Nj.includes(e))throw new RangeError(n)}(i,t,String(e));return(0,wj[i[0]])(s,i,o.localize,c)}).join("")}function Rj(e){const t=e.match(Lj);return t?t[1].replace(Mj,"'"):e}function Ij(e,t){const r=Nk(e,t?.in);return function(e,t,r){const[n,o]=Bk(r?.in,e,t),i=Dk(n,r),a=Dk(o,r),s=+i-Ik(i),l=+a-Ik(a);return Math.round((s-l)/Pk)}(function(e,t){const r=Nk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),Nk(r,t?.in)}(r,t),Xk(r,t),t)+1}function Bj(e,t){return+Nk(e)>+Nk(t)}function _j(e,t){return+Nk(e)<+Nk(t)}function Wj(e,t,r){const[n,o]=Bk(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Fj(e,t,r){return Tk(e,-t,r)}function Vj(e,t,r){const n=Nk(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=Ck(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=Ck(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(t,Math.min(i,s)),n}function $j(e,t,r){const n=Nk(e,r?.in);return isNaN(+n)?Ck(e,NaN):(n.setFullYear(t),n)}var Hj=function(){return Hj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hj.apply(this,arguments)};function qj(e,t,r){for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Uj(e){return"multiple"===e.mode}function Yj(e){return"range"===e.mode}function Gj(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Xj={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Kj=Object.freeze({__proto__:null,formatCaption:function(e,t){return Aj(e,"LLLL y",t)},formatDay:function(e,t){return Aj(e,"d",t)},formatMonthCaption:function(e,t){return Aj(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return Aj(e,"cccccc",t)},formatYearCaption:function(e,t){return Aj(e,"yyyy",t)}}),Zj=Object.freeze({__proto__:null,labelDay:function(e,t,r){return Aj(e,"do MMMM (EEEE)",r)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return Aj(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Qj=m(void 0);function Jj(e){var t,r,n=e.initialProps,o=function(){var e=Xj,t=lj,r=new Date;return{captionLayout:"buttons",classNames:e,formatters:Kj,labels:Zj,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:r,mode:"default"}}(),i=function(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,i=e.fromDate,a=e.toDate;return n?i=Xk(n):t&&(i=new Date(t,0,1)),o?a=Gk(o):r&&(a=new Date(r,11,31)),{fromDate:i?_k(i):void 0,toDate:a?_k(a):void 0}}(n),a=i.fromDate,s=i.toDate,l=null!==(t=n.captionLayout)&&void 0!==t?t:o.captionLayout;"buttons"===l||a&&s||(l="buttons"),(Gj(n)||Uj(n)||Yj(n))&&(r=n.onSelect);var c=Hj(Hj(Hj({},o),n),{captionLayout:l,classNames:Hj(Hj({},o.classNames),n.classNames),components:Hj({},n.components),formatters:Hj(Hj({},o.formatters),n.formatters),fromDate:a,labels:Hj(Hj({},o.labels),n.labels),mode:n.mode||o.mode,modifiers:Hj(Hj({},o.modifiers),n.modifiers),modifiersClassNames:Hj(Hj({},o.modifiersClassNames),n.modifiersClassNames),onSelect:r,styles:Hj(Hj({},o.styles),n.styles),toDate:s});return E(Qj.Provider,{value:c,children:e.children})}function eP(){var e=h(Qj);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function tP(e){var t=eP(),r=t.locale,n=t.classNames,o=t.styles,i=t.formatters.formatCaption;return E("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:r})})}function rP(e){return E("svg",Hj({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:E("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function nP(e){var t,r,n=e.onChange,o=e.value,i=e.children,a=e.caption,s=e.className,l=e.style,c=eP(),u=null!==(r=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==r?r:rP;return j("div",{className:s,style:l,children:[E("span",{className:c.classNames.vhidden,children:e["aria-label"]}),E("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:i}),j("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[a,E(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function oP(e){var t,r=eP(),n=r.fromDate,o=r.toDate,i=r.styles,a=r.locale,s=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return E(k,{});if(!o)return E(k,{});var p=[];if(function(e,t,r){const[n,o]=Bk(r?.in,e,t);return n.getFullYear()===o.getFullYear()}(n,o))for(var d=Xk(n),f=n.getMonth();f<=o.getMonth();f++)p.push(Vj(d,f));else for(d=Xk(new Date),f=0;f<=11;f++)p.push(Vj(d,f));var m=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:nP;return E(m,{name:"months","aria-label":u(),className:l.dropdown_month,style:i.dropdown_month,onChange:function(t){var r=Number(t.target.value),n=Vj(Xk(e.displayMonth),r);e.onChange(n)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a}),children:p.map(function(e){return E("option",{value:e.getMonth(),children:s(e,{locale:a})},e.getMonth())})})}function iP(e){var t,r=e.displayMonth,n=eP(),o=n.fromDate,i=n.toDate,a=n.locale,s=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,p=n.labels.labelYearDropdown,d=[];if(!o)return E(k,{});if(!i)return E(k,{});for(var f=o.getFullYear(),m=i.getFullYear(),h=f;h<=m;h++)d.push($j(Kk(new Date),h));var v=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:nP;return E(v,{name:"years","aria-label":p(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=$j(Xk(r),Number(t.target.value));e.onChange(n)},value:r.getFullYear(),caption:u(r,{locale:a}),children:d.map(function(e){return E("option",{value:e.getFullYear(),children:u(e,{locale:a})},e.getFullYear())})})}function aP(){var e=eP(),t=function(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,i=e.toDate,a=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return i&&Yk(i,o)<0&&(o=zk(i,-1*(l-1))),a&&Yk(o,a)<0&&(o=a),Xk(o)}(e),r=function(e,t){var r=i(e),n=r[0];return[void 0===t?n:t,r[1]]}(t,e.month),n=r[0],o=r[1];return[n,function(t){var r;if(!e.disableNavigation){var n=Xk(t);o(n),null===(r=e.onMonthChange)||void 0===r||r.call(e,n)}}]}var sP=m(void 0);function lP(e){var t=eP(),r=aP(),n=r[0],o=r[1],i=function(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Xk(e),i=Yk(Xk(zk(o,n)),o),a=[],s=0;s<i;s++){var l=zk(o,s);a.push(l)}return r&&(a=a.reverse()),a}(n,t),a=function(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,i=void 0===o?1:o,a=n?i:1,s=Xk(e);if(!r)return zk(s,a);if(!(Yk(r,e)<i))return zk(s,a)}}(n,t),s=function(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,i=n?void 0===o?1:o:1,a=Xk(e);if(!r)return zk(a,-i);if(!(Yk(a,r)<=0))return zk(a,-i)}}(n,t),l=function(e){return i.some(function(t){return Wj(e,t)})},c={currentMonth:n,displayMonths:i,goToMonth:o,goToDate:function(e,r){l(e)||(r&&_j(e,r)?o(zk(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:s,nextMonth:a,isDateDisplayed:l};return E(sP.Provider,{value:c,children:e.children})}function cP(){var e=h(sP);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function uP(e){var t,r=eP(),n=r.classNames,o=r.styles,i=r.components,a=cP().goToMonth,s=function(t){a(zk(t,e.displayIndex?-e.displayIndex:0))},l=null!==(t=null==i?void 0:i.CaptionLabel)&&void 0!==t?t:tP,c=E(l,{id:e.id,displayMonth:e.displayMonth});return j("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[E("div",{className:n.vhidden,children:c}),E(oP,{onChange:s,displayMonth:e.displayMonth}),E(iP,{onChange:s,displayMonth:e.displayMonth})]})}function pP(e){return E("svg",Hj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:E("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function dP(e){return E("svg",Hj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:E("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var fP=r(function(e,t){var r=eP(),n=r.classNames,o=r.styles,i=[n.button_reset,n.button];e.className&&i.push(e.className);var a=i.join(" "),s=Hj(Hj({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),E("button",Hj({},e,{ref:t,type:"button",className:a,style:s}))});function mP(e){var t,r,n=eP(),o=n.dir,i=n.locale,a=n.classNames,s=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,p=n.components;if(!e.nextMonth&&!e.previousMonth)return E(k,{});var d=c(e.previousMonth,{locale:i}),f=[a.nav_button,a.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:i}),h=[a.nav_button,a.nav_button_next].join(" "),v=null!==(t=null==p?void 0:p.IconRight)&&void 0!==t?t:dP,y=null!==(r=null==p?void 0:p.IconLeft)&&void 0!==r?r:pP;return j("div",{className:a.nav,style:s.nav,children:[!e.hidePrevious&&E(fP,{name:"previous-month","aria-label":d,className:f,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:E("rtl"===o?v:y,{className:a.nav_icon,style:s.nav_icon})}),!e.hideNext&&E(fP,{name:"next-month","aria-label":m,className:h,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:E("rtl"===o?y:v,{className:a.nav_icon,style:s.nav_icon})})]})}function hP(e){var t=eP().numberOfMonths,r=cP(),n=r.previousMonth,o=r.nextMonth,i=r.goToMonth,a=r.displayMonths,s=a.findIndex(function(t){return Wj(e.displayMonth,t)}),l=0===s,c=s===a.length-1,u=t>1&&(l||!c),p=t>1&&(c||!l);return E(mP,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:p,nextMonth:o,previousMonth:n,onPreviousClick:function(){n&&i(n)},onNextClick:function(){o&&i(o)}})}function vP(e){var t,r,n=eP(),o=n.classNames,i=n.disableNavigation,a=n.styles,s=n.captionLayout,l=n.components,c=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:tP;return r=i?E(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?E(uP,{displayMonth:e.displayMonth,id:e.id}):j(k,"dropdown-buttons"===s?{children:[E(uP,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),E(hP,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}:{children:[E(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),E(hP,{displayMonth:e.displayMonth,id:e.id})]}),E("div",{className:o.caption,style:a.caption,children:r})}function yP(e){var t=eP(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?E("tfoot",{className:o,style:n.tfoot,children:E("tr",{children:E("td",{colSpan:8,children:r})})}):E(k,{})}function gP(){var e=eP(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,i=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=function(e,t,r){for(var n=r?Ak(new Date):Dk(new Date,{locale:e,weekStartsOn:t}),o=[],i=0;i<7;i++){var a=Tk(n,i);o.push(a)}return o}(o,i,a);return j("tr",{style:r.head_row,className:t.head_row,children:[n&&E("td",{style:r.head_cell,className:t.head_cell}),c.map(function(e,n){return E("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(e,{locale:o}),children:s(e,{locale:o})},n)})]})}function bP(){var e,t=eP(),r=t.classNames,n=t.styles,o=t.components,i=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:gP;return E("thead",{style:n.head,className:r.head,children:E(i,{})})}function wP(e){var t=eP(),r=t.locale,n=t.formatters.formatDay;return E(k,{children:n(e.date,{locale:r})})}var xP=m(void 0);function OP(e){if(!Uj(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return E(xP.Provider,{value:t,children:e.children})}return E(EP,{initialProps:e.initialProps,children:e.children})}function EP(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,i=t.max,a={disabled:[]};n&&a.disabled.push(function(e){var t=i&&n.length>i-1,r=n.some(function(t){return qk(t,e)});return Boolean(t&&!r)});var s={selected:n,onDayClick:function(e,r,a){var s,l;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,r,a),!Boolean(r.selected&&o&&(null==n?void 0:n.length)===o))&&!Boolean(!r.selected&&i&&(null==n?void 0:n.length)===i)){var c=n?qj([],n):[];if(r.selected){var u=c.findIndex(function(t){return qk(e,t)});c.splice(u,1)}else c.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,c,e,r,a)}},modifiers:a};return E(xP.Provider,{value:s,children:r})}function kP(){var e=h(xP);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var jP,PP=m(void 0);function SP(e){if(!Yj(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return E(PP.Provider,{value:t,children:e.children})}return E(CP,{initialProps:e.initialProps,children:e.children})}function CP(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},i=o.from,a=o.to,s=t.min,l=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(c.range_start=[i],a?(c.range_end=[a],qk(i,a)||(c.range_middle=[{after:i,before:a}])):c.range_end=[i]):a&&(c.range_start=[a],c.range_end=[a]),s&&(i&&!a&&c.disabled.push({after:Fj(i,s-1),before:Tk(i,s-1)}),i&&a&&c.disabled.push({after:i,before:Tk(i,s-1)}),!i&&a&&c.disabled.push({after:Fj(a,s-1),before:Tk(a,s-1)})),l){if(i&&!a&&(c.disabled.push({before:Tk(i,1-l)}),c.disabled.push({after:Tk(i,l-1)})),i&&a){var u=l-(Wk(a,i)+1);c.disabled.push({before:Fj(i,u)}),c.disabled.push({after:Tk(a,u)})}!i&&a&&(c.disabled.push({before:Tk(a,1-l)}),c.disabled.push({after:Tk(a,l-1)}))}return E(PP.Provider,{value:{selected:n,onDayClick:function(e,r,o){var i,a;null===(i=t.onDayClick)||void 0===i||i.call(t,e,r,o);var s=function(e,t){var r=t||{},n=r.from,o=r.to;if(n&&o){if(qk(o,e)&&qk(n,e))return;if(qk(o,e))return{from:o,to:void 0};if(qk(n,e))return;return Bj(n,e)?{from:e,to:o}:{from:n,to:e}}return o?Bj(e,o)?{from:o,to:e}:{from:e,to:o}:n?_j(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}(e,n);null===(a=t.onSelect)||void 0===a||a.call(t,s,e,r,o)},modifiers:c},children:r})}function NP(){var e=h(PP);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function TP(e){return Array.isArray(e)?qj([],e):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(jP||(jP={}));var zP=jP.Selected,LP=jP.Disabled,MP=jP.Hidden,DP=jP.Today,AP=jP.RangeEnd,RP=jP.RangeMiddle,IP=jP.RangeStart,BP=jP.Outside;var _P=m(void 0);function WP(e){var t=eP(),r=function(e,t,r){var n,o=((n={})[zP]=TP(e.selected),n[LP]=TP(e.disabled),n[MP]=TP(e.hidden),n[DP]=[e.today],n[AP]=[],n[RP]=[],n[IP]=[],n[BP]=[],n);return e.fromDate&&o[LP].push({before:e.fromDate}),e.toDate&&o[LP].push({after:e.toDate}),Uj(e)?o[LP]=o[LP].concat(t.modifiers[LP]):Yj(e)&&(o[LP]=o[LP].concat(r.modifiers[LP]),o[IP]=r.modifiers[IP],o[RP]=r.modifiers[RP],o[AP]=r.modifiers[AP]),o}(t,kP(),NP()),n=function(e){var t={};return Object.entries(e).forEach(function(e){var r=e[0],n=e[1];t[r]=TP(n)}),t}(t.modifiers),o=Hj(Hj({},r),n);return E(_P.Provider,{value:o,children:e.children})}function FP(){var e=h(_P);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function VP(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(Uk(t))return qk(e,t);if(function(e){return Array.isArray(e)&&e.every(Uk)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return function(e,t){var r,n=t.from,o=t.to;return n&&o?(Wk(o,n)<0&&(n=(r=[o,n])[0],o=r[1]),Wk(e,n)>=0&&Wk(o,e)>=0):o?qk(o,e):!!n&&qk(n,e)}(e,t);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var r=Wk(t.before,e)>0,n=Wk(t.after,e)<0;return Bj(t.before,t.after)?n&&r:r||n}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?Wk(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?Wk(t.before,e)>0:"function"==typeof t&&t(e)})}function $P(e,t,r){var n=Object.keys(t).reduce(function(r,n){var o=t[n];return VP(e,o)&&r.push(n),r},[]),o={};return n.forEach(function(e){return o[e]=!0}),r&&!Wj(e,r)&&(o.outside=!0),o}function HP(e,t){var r=t.moveBy,n=t.direction,o=t.context,i=t.modifiers,a=t.retry,s=void 0===a?{count:0,lastFocused:e}:a,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,p=o.locale,d={day:Tk,week:Fk,month:zk,year:Vk,startOfWeek:function(e){return o.ISOWeek?Ak(e):Dk(e,{locale:p,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?Qk(e):Zk(e,{locale:p,weekStartsOn:l})}}[r](e,"after"===n?1:-1);"before"===n&&c?d=$k([c,d]):"after"===n&&u&&(d=Hk([u,d]));var f=!0;if(i){var m=$P(d,i);f=!m.disabled&&!m.hidden}return f?d:s.count>365?s.lastFocused:HP(d,{moveBy:r,direction:n,context:o,modifiers:i,retry:Hj(Hj({},s),{count:s.count+1})})}var qP=m(void 0);function UP(e){var t=cP(),r=FP(),n=i(),o=n[0],a=n[1],s=i(),l=s[0],c=s[1],u=function(e,t){for(var r,n,o=Xk(e[0]),i=Gk(e[e.length-1]),a=o;a<=i;){var s=$P(a,t);if(s.disabled||s.hidden)a=Tk(a,1);else{if(s.selected)return a;s.today&&!n&&(n=a),r||(r=a),a=Tk(a,1)}}return n||r}(t.displayMonths,r),p=(null!=o?o:l&&t.isDateDisplayed(l))?l:u,d=function(e){a(e)},f=eP(),m=function(e,n){if(o){var i=HP(o,{moveBy:e,direction:n,context:f,modifiers:r});qk(o,i)||(t.goToDate(i,o),d(i))}},h={focusedDay:o,focusTarget:p,blur:function(){c(o),a(void 0)},focus:d,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return E(qP.Provider,{value:h,children:e.children})}function YP(){var e=h(qP);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var GP=m(void 0);function XP(e){if(!Gj(e.initialProps)){var t={selected:void 0};return E(GP.Provider,{value:t,children:e.children})}return E(KP,{initialProps:e.initialProps,children:e.children})}function KP(e){var t=e.initialProps,r=e.children,n={selected:t.selected,onDayClick:function(e,r,n){var o,i,a;null===(o=t.onDayClick)||void 0===o||o.call(t,e,r,n),!r.selected||t.required?null===(a=t.onSelect)||void 0===a||a.call(t,e,e,r,n):null===(i=t.onSelect)||void 0===i||i.call(t,void 0,e,r,n)}};return E(GP.Provider,{value:n,children:r})}function ZP(){var e=h(GP);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function QP(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(t){var n=e.modifiersClassNames[t];if(n)r.push(n);else if(function(e){return Object.values(jP).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&r.push(o)}}),r}function JP(e,t,r){var n,o,i,s=eP(),l=YP(),c=function(e,t){return $P(e,FP(),t)}(e,t),u=function(e,t){var r=eP(),n=ZP(),o=kP(),i=NP(),a=YP(),s=a.focusDayAfter,l=a.focusDayBefore,c=a.focusWeekAfter,u=a.focusWeekBefore,p=a.blur,d=a.focus,f=a.focusMonthBefore,m=a.focusMonthAfter,h=a.focusYearBefore,v=a.focusYearAfter,y=a.focusStartOfWeek,g=a.focusEndOfWeek,b={onClick:function(a){var s,l,c,u;Gj(r)?null===(s=n.onDayClick)||void 0===s||s.call(n,e,t,a):Uj(r)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Yj(r)?null===(c=i.onDayClick)||void 0===c||c.call(i,e,t,a):null===(u=r.onDayClick)||void 0===u||u.call(r,e,t,a)},onFocus:function(n){var o;d(e),null===(o=r.onDayFocus)||void 0===o||o.call(r,e,t,n)},onBlur:function(n){var o;p(),null===(o=r.onDayBlur)||void 0===o||o.call(r,e,t,n)},onKeyDown:function(n){var o;switch(n.key){case"ArrowLeft":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?s():l();break;case"ArrowRight":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?l():s();break;case"ArrowDown":n.preventDefault(),n.stopPropagation(),c();break;case"ArrowUp":n.preventDefault(),n.stopPropagation(),u();break;case"PageUp":n.preventDefault(),n.stopPropagation(),n.shiftKey?h():f();break;case"PageDown":n.preventDefault(),n.stopPropagation(),n.shiftKey?v():m();break;case"Home":n.preventDefault(),n.stopPropagation(),y();break;case"End":n.preventDefault(),n.stopPropagation(),g()}null===(o=r.onDayKeyDown)||void 0===o||o.call(r,e,t,n)},onKeyUp:function(n){var o;null===(o=r.onDayKeyUp)||void 0===o||o.call(r,e,t,n)},onMouseEnter:function(n){var o;null===(o=r.onDayMouseEnter)||void 0===o||o.call(r,e,t,n)},onMouseLeave:function(n){var o;null===(o=r.onDayMouseLeave)||void 0===o||o.call(r,e,t,n)},onPointerEnter:function(n){var o;null===(o=r.onDayPointerEnter)||void 0===o||o.call(r,e,t,n)},onPointerLeave:function(n){var o;null===(o=r.onDayPointerLeave)||void 0===o||o.call(r,e,t,n)},onTouchCancel:function(n){var o;null===(o=r.onDayTouchCancel)||void 0===o||o.call(r,e,t,n)},onTouchEnd:function(n){var o;null===(o=r.onDayTouchEnd)||void 0===o||o.call(r,e,t,n)},onTouchMove:function(n){var o;null===(o=r.onDayTouchMove)||void 0===o||o.call(r,e,t,n)},onTouchStart:function(n){var o;null===(o=r.onDayTouchStart)||void 0===o||o.call(r,e,t,n)}};return b}(e,c),p=function(){var e=eP(),t=ZP(),r=kP(),n=NP();return Gj(e)?t.selected:Uj(e)?r.selected:Yj(e)?n.selected:void 0}(),d=Boolean(s.onDayClick||"default"!==s.mode);a(function(){var t;c.outside||l.focusedDay&&d&&qk(l.focusedDay,e)&&(null===(t=r.current)||void 0===t||t.focus())},[l.focusedDay,e,r,d,c.outside]);var f=QP(s,c).join(" "),m=function(e,t){var r=Hj({},e.styles.day);return Object.keys(t).forEach(function(t){var n;r=Hj(Hj({},r),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])}),r}(s,c),h=Boolean(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(i=null===(o=s.components)||void 0===o?void 0:o.DayContent)&&void 0!==i?i:wP,y={style:m,className:f,children:E(v,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},g=l.focusTarget&&qk(l.focusTarget,e)&&!c.outside,b=l.focusedDay&&qk(l.focusedDay,e),w=Hj(Hj(Hj({},y),((n={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,n.tabIndex=b||g?0:-1,n)),u);return{isButton:d,isHidden:h,activeModifiers:c,selectedDays:p,buttonProps:w,divProps:y}}function eS(e){var t=c(null),r=JP(e.date,e.displayMonth,t);return r.isHidden?E("div",{role:"gridcell"}):r.isButton?E(fP,Hj({name:"day",ref:t},r.buttonProps)):E("div",Hj({},r.divProps))}function tS(e){var t=e.number,r=e.dates,n=eP(),o=n.onWeekNumberClick,i=n.styles,a=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,c=(0,n.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return E("span",{className:a.weeknumber,style:i.weeknumber,children:c});var u=l(Number(t),{locale:s});return E(fP,{name:"week-number","aria-label":u,className:a.weeknumber,style:i.weeknumber,onClick:function(e){o(t,r,e)},children:c})}function rS(e){var t,r,n,o=eP(),i=o.styles,a=o.classNames,s=o.showWeekNumber,l=o.components,c=null!==(t=null==l?void 0:l.Day)&&void 0!==t?t:eS,u=null!==(r=null==l?void 0:l.WeekNumber)&&void 0!==r?r:tS;return s&&(n=E("td",{className:a.cell,style:i.cell,children:E(u,{number:e.weekNumber,dates:e.dates})})),j("tr",{className:a.row,style:i.row,children:[n,e.dates.map(function(t){return E("td",{className:a.cell,style:i.cell,role:"presentation",children:E(c,{displayMonth:e.displayMonth,date:t})},function(e){return Math.trunc(+Nk(e)/1e3)}(t))})]})}function nS(e,t,r){for(var n=(null==r?void 0:r.ISOWeek)?Qk(t):Zk(t,r),o=(null==r?void 0:r.ISOWeek)?Ak(e):Dk(e,r),i=Wk(n,o),a=[],s=0;s<=i;s++)a.push(Tk(o,s));return a.reduce(function(e,t){var n=(null==r?void 0:r.ISOWeek)?cj(t):pj(t,r),o=e.find(function(e){return e.weekNumber===n});return o?(o.dates.push(t),e):(e.push({weekNumber:n,dates:[t]}),e)},[])}function oS(e){var t,r,n,o=eP(),i=o.locale,a=o.classNames,s=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,p=o.weekStartsOn,d=o.firstWeekContainsDate,f=o.ISOWeek,m=function(e,t){var r=nS(Xk(e),Gk(e),t);if(null==t?void 0:t.useFixedWeeks){var n=Ij(e,t);if(n<6){var o=r[r.length-1],i=o.dates[o.dates.length-1],a=Fk(i,6-n),s=nS(Fk(i,1),a,t);r.push.apply(r,s)}}return r}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:f,locale:i,weekStartsOn:p,firstWeekContainsDate:d}),h=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:bP,v=null!==(r=null==u?void 0:u.Row)&&void 0!==r?r:rS,y=null!==(n=null==u?void 0:u.Footer)&&void 0!==n?n:yP;return j("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&E(h,{}),E("tbody",{className:a.tbody,style:s.tbody,children:m.map(function(t){return E(v,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),E(y,{displayMonth:e.displayMonth})]})}var iS="undefined"!=typeof window&&window.document&&window.document.createElement?d:a,aS=!1,sS=0;function lS(){return"react-day-picker-".concat(++sS)}function cS(e){var t,r,n=eP(),o=n.dir,s=n.classNames,l=n.styles,c=n.components,u=cP().displayMonths,p=function(e){var t,r=null!=e?e:aS?lS():null,n=i(r),o=n[0],s=n[1];return iS(function(){null===o&&s(lS())},[]),a(function(){!1===aS&&(aS=!0)},[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[s.month],m=l.month,h=0===e.displayIndex,v=e.displayIndex===u.length-1,y=!h&&!v;"rtl"===o&&(v=(t=[h,v])[0],h=t[1]),h&&(f.push(s.caption_start),m=Hj(Hj({},m),l.caption_start)),v&&(f.push(s.caption_end),m=Hj(Hj({},m),l.caption_end)),y&&(f.push(s.caption_between),m=Hj(Hj({},m),l.caption_between));var g=null!==(r=null==c?void 0:c.Caption)&&void 0!==r?r:vP;return j("div",{className:f.join(" "),style:m,children:[E(g,{id:p,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),E(oS,{id:d,"aria-labelledby":p,displayMonth:e.displayMonth})]},e.displayIndex)}function uS(e){var t=eP(),r=t.classNames,n=t.styles;return E("div",{className:r.months,style:n.months,children:e.children})}function pS(e){var t,r,n=e.initialProps,o=eP(),s=YP(),l=cP(),c=i(!1),u=c[0],p=c[1];a(function(){o.initialFocus&&s.focusTarget&&(u||(s.focus(s.focusTarget),p(!0)))},[o.initialFocus,u,s.focus,s.focusTarget,s]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=Hj(Hj({},o.styles.root),o.style),m=Object.keys(n).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var r;return Hj(Hj({},e),((r={})[t]=n[t],r))},{}),h=null!==(r=null===(t=n.components)||void 0===t?void 0:t.Months)&&void 0!==r?r:uS;return E("div",Hj({className:d.join(" "),style:f,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},m,{children:E(h,{children:l.displayMonths.map(function(e,t){return E(cS,{displayIndex:t,displayMonth:e},t)})})}))}function dS(e){var t=e.children,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children"]);return E(Jj,{initialProps:r,children:E(lP,{children:E(XP,{initialProps:r,children:E(OP,{initialProps:r,children:E(SP,{initialProps:r,children:E(WP,{children:E(UP,{children:t})})})})})})})}function fS(e){return E(dS,Hj({},e,{children:E(pS,{initialProps:e})}))}const mS=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,hS=z,vS=(yS="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",gS={variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==gS?void 0:gS.variants))return hS(yS,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:n}=gS,o=Object.keys(r).map(t=>{const o=null==e?void 0:e[t],i=null==n?void 0:n[t];if(null===o)return null;const a=mS(o)||mS(i);return r[t][a]}),i=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),a=null==gS||null===(t=gS.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:r,className:o,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...n,...i}[t]):{...n,...i}[t]===r})?[...e,r,o]:e},[]);return hS(yS,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});var yS,gS;const bS=e.forwardRef(({className:t,variant:r,size:n,asChild:o=!1,...i},a)=>{const s=o?Pg:"button";return e.createElement(s,{className:Be(vS({variant:r,size:n,className:t})),ref:a,...i})});bS.displayName="Button";const wS=({className:e,classNames:r,showOutsideDays:n=!0,...o})=>t.createElement(fS,{showOutsideDays:n,className:Be("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Be(vS({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:Be("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md","range"===o.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:Be(vS({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...r},components:{IconLeft:()=>t.createElement(bk,{className:"h-4 w-4"}),IconRight:()=>t.createElement(xk,{className:"h-4 w-4"})},...o});wS.displayName="Calendar";const xS={arrow:"arrow",slash:"slash",icon:"icon"},OS={small:{text:"text-xs",icon:"h-3 w-3",spacing:"py-0.5 px-1.5"},medium:{text:"text-sm",icon:"h-4 w-4",spacing:"py-1 px-2"},large:{text:"text-base",icon:"h-5 w-5",spacing:"py-1.5 px-2.5"}},ES=e.forwardRef(({variant:t,size:r,className:n,...o},i)=>{const a={slash:e.createElement("span",{className:"mx-2 text-muted-foreground/50 select-none"},"/"),arrow:e.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},e.createElement(Ke,{className:Be(OS[r].icon,"text-muted-foreground/50")})),icon:e.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},e.createElement(Ke,{className:Be(OS[r].icon,"text-muted-foreground/50")}))};return e.createElement("span",{ref:i,className:Be("flex items-center",n),...o},a[t])});ES.displayName="BreadCrumbSeparator";const kS=e.forwardRef(({items:t,variant:r="slash",size:n="medium",maxItems:o=4,className:a,...l},c)=>{const[u,p]=i(!1),[d,f]=i(null),m=s(()=>{if(u||t.length<=o)return t;return[...t.slice(0,1),{label:"...",href:"#"},...t.slice(-2)]},[t,o,u]);return e.createElement("nav",{ref:c,"aria-label":"BreadCrumb",className:Be("w-full p-3 select-none",a),...l},e.createElement("ol",{className:"flex items-center flex-wrap gap-y-2"},"icon"===r&&e.createElement("li",{className:"flex items-center"},e.createElement("a",{href:"/",className:Be("text-muted-foreground/80 transition-colors duration-150","hover:text-primary focus-visible:text-primary","outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-ring rounded-sm")},e.createElement(tt,{className:OS[n].icon}),e.createElement("span",{className:"sr-only"},"Home"))),m.map((t,o)=>{const i=o===m.length-1,a="..."===t.label,s=d===o;return e.createElement("li",{key:t.href,className:"flex items-center group",onMouseEnter:()=>f(o),onMouseLeave:()=>f(null)},o>0&&e.createElement(ES,{variant:r,size:n}),"icon"===r&&!a&&e.createElement("span",{className:"mr-1"},t.icon||e.createElement(et,{className:Be(OS[n].icon,"text-muted-foreground/80")})),e.createElement("a",{href:a?void 0:t.href,className:Be("font-medium relative inline-flex items-center","transition-all duration-150","outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-ring rounded-sm",OS[n].text,OS[n].spacing,i?"text-primary cursor-default font-semibold":"text-muted-foreground/80 hover:text-muted-foreground",!i&&["after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0","after:bg-primary/50 after:transition-all after:duration-150",s&&"after:w-full"],a&&"cursor-pointer hover:text-primary"),onClick:e=>{a&&(e.preventDefault(),p(!0))},...!i&&{role:"link","aria-current":void 0},...i&&{"aria-current":"page"}},e.createElement("span",{className:"relative"},t.label)))})))});kS.displayName="BreadCrumb";const jS={small:{trigger:"px-3 py-2 text-sm",icon:"h-4 w-4",optionIcon:"h-4 w-4",option:"px-2.5 py-2",optionText:"text-sm",description:"text-xs"},medium:{trigger:"px-4 py-3 text-base",icon:"h-5 w-5",optionIcon:"h-5 w-5",option:"px-3 py-2.5",optionText:"text-sm",description:"text-xs"},large:{trigger:"px-5 py-4 text-lg",icon:"h-6 w-6",optionIcon:"h-6 w-6",option:"px-4 py-3",optionText:"text-base",description:"text-sm"}},PS={basic:{trigger:"border border-border hover:border-primary/20",content:"border border-border"},"shadow-sm":{trigger:"shadow-lg hover:shadow-xl",content:"shadow-xl"}},SS=({text:e,className:r=""})=>{const{textRef:n,isTruncated:o}=(()=>{const e=c(null),[t,r]=i(!1),n=l(()=>{if(e.current){const t=e.current;r(t.scrollWidth>t.clientWidth)}},[]);return a(()=>{n();const t=e.current,r=new ResizeObserver(()=>{n()});return t&&r.observe(t),window.addEventListener("resize",n),()=>{t&&r.unobserve(t),r.disconnect(),window.removeEventListener("resize",n)}},[n]),{textRef:e,isTruncated:t}})();return o?t.createElement(vk,{title:e,trigger:"hover"},t.createElement("span",{ref:n,className:Be("truncate block w-full max-w-full",r)},e)):t.createElement("span",{ref:n,className:Be("truncate block w-full max-w-full",r)},e)},CS=r(({options:e,value:r,onValueChange:n,placeholder:o="",disabled:u=!1,showIcons:p=!0,size:d="medium",variant:f="basic",className:m,classNames:h,searchable:g=!1,onSearch:b},w)=>{const[x,O]=i(!1),[E,k]=i(-1),[j,P]=i(""),[S,C]=i(null),[N,T]=i(""),[z,L]=i(0),[M,D]=i(!1),A=c(null),R=c(null),I=c(null),B=c([]),_=s(()=>e.find(e=>e.id===r),[e,r]),W=s(()=>jS[d],[d]),F=s(()=>g&&N?e.filter(e=>e.label.toLowerCase().includes(N.toLowerCase())):e,[e,g,N]);a(()=>{if(x&&R.current){const e=R.current.getBoundingClientRect(),t=300,r=window.innerHeight-e.bottom,n=e.top;D(r<t&&n>t)}},[x]),a(()=>()=>{S&&clearTimeout(S)},[S]),a(()=>{const e=()=>{R.current&&L(R.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),a(()=>{x?g&&I.current&&I.current.focus():(k(-1),T(""))},[x,g]),a(()=>{x&&E>=0&&B.current[E]&&B.current[E]?.scrollIntoView({block:"nearest"})},[x,E]),a(()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&O(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),a(()=>{g&&b&&b(N)},[N,b,g]);const V=l(e=>{n?.(e),O(!1)},[n]),$=s(()=>{if(!f)return{trigger:"",content:""};const e=PS[f]||{trigger:"",content:""};return{trigger:e.trigger||"",content:e.content||""}},[f]),H=l(e=>{if(!u)switch(e.key){case"ArrowDown":e.preventDefault(),x?k(e=>Math.min(e+1,F.length-1)):(O(!0),k(0));break;case"ArrowUp":e.preventDefault(),x?k(e=>Math.max(e-1,0)):(O(!0),k(F.length-1));break;case"Home":e.preventDefault(),x&&k(0);break;case"End":e.preventDefault(),x&&k(F.length-1);break;case"Enter":case" ":if(e.preventDefault(),x&&E>=0){const e=F[E];e.disabled||V(e.id)}else O(!x);break;case"Escape":e.preventDefault(),O(!1);break;default:if(!g&&1===e.key.length){const t=e.key.toLowerCase();S&&clearTimeout(S);const r=j+t;P(r);const n=F.findIndex(e=>e.label.toLowerCase().startsWith(r));n>=0&&(k(n),x||O(!0));const o=setTimeout(()=>{P("")},1e3);C(o)}}},[u,x,F,j,S,V,E,g]),q=l((e,t,r)=>{r||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),V(t))},[V]),U=l(e=>{T(e.target.value),k(0)},[]);return t.createElement("div",{ref:A,className:"relative max-w-full"},t.createElement("button",{type:"button",ref:e=>{"function"==typeof w?w(e):w&&(w.current=e),R.current=e},onClick:()=>!u&&O(!x),onKeyDown:H,className:Be("group flex w-full items-center justify-between rounded-xl",_?"bg-background/100":"bg-background","transition-all duration-200 ease-out","hover:shadow-md","focus:outline-hidden focus:ring-2 focus:ring-primary/20 focus:ring-offset-2",u&&"cursor-not-allowed opacity-50",x&&"border-primary/30 bg-primary/5 shadow-lg","max-w-full text-ellipsis whitespace-nowrap",W.trigger,$.trigger,m,h?.trigger),disabled:u,"aria-expanded":x,"aria-haspopup":"listbox","aria-controls":"dropdown-options","aria-label":o},t.createElement("div",{className:"flex items-center gap-3 min-w-0 w-full overflow-hidden"},p&&_?.icon&&t.createElement("span",{className:"text-primary/70 transition-colors duration-200 group-hover:text-primary flex-shrink-0"},v(_.icon,{})),t.createElement(SS,{text:_?_.label:o,className:Be("font-medium",W.optionText)})),t.createElement(Ge,{className:Be("text-primary/70 transition-all duration-300","group-hover:text-primary",x&&"rotate-180",W.icon,"flex-shrink-0 ml-2")})),t.createElement("div",{id:"dropdown-options",role:"listbox","aria-label":o,className:Be("z-50 origin-top-right","rounded-xl border border-border/50 bg-background p-1.5","shadow-lg backdrop-blur-xs","transition-all duration-200 ease-out",x?"visible scale-100 opacity-100":"invisible scale-95 opacity-0","absolute left-0","max-w-full overflow-hidden",M?"bottom-full mb-2":"top-full mt-2",$.content,h?.content),style:{width:z>0?`${z}px`:"auto",maxWidth:"100%"}},g&&t.createElement("div",{className:"sticky top-0 z-10 mb-1.5 bg-background/100 px-2 py-1.5 max-w-full"},t.createElement("div",{className:"relative max-w-full"},t.createElement(ot,{className:Be("absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",W.icon)}),t.createElement("input",{ref:I,type:"text",value:N,onChange:U,onClick:e=>e.stopPropagation(),placeholder:"Search...",className:Be("w-full rounded-lg border border-border bg-background py-2","pl-9 pr-2 text-sm placeholder:text-muted-foreground","focus:border-primary/30 focus:outline-hidden focus:ring-1 focus:ring-primary/20","max-w-full text-ellipsis",W.optionText)}))),t.createElement("div",{className:"max-h-72 overflow-auto max-w-full"},0===F.length?t.createElement("div",{className:"px-3 py-2 text-sm text-muted-foreground truncate max-w-full"},"No options found"):F.map((e,n)=>t.createElement(y,{key:e.id},t.createElement("div",{ref:e=>{B.current[n]=e},role:"option",tabIndex:x&&!e.disabled?0:-1,"aria-selected":r===e.id,onClick:()=>!e.disabled&&V(e.id),onKeyDown:t=>q(t,e.id,!!e.disabled),className:Be("group relative flex select-none items-center gap-3 rounded-lg","cursor-pointer transition-all duration-200","hover:bg-primary/10","focus:outline-hidden focus:ring-2 focus:ring-primary/20",e.disabled&&"pointer-events-none opacity-50",(r===e.id||n===E)&&"bg-primary/5 border border-primary/20","max-w-full",W.option,h?.item)},p&&e.icon&&t.createElement("span",{className:Be("text-primary/70 transition-colors duration-200","group-hover:text-primary","flex-shrink-0",h?.itemIcon)},v(e.icon)),t.createElement("div",{className:"flex flex-col gap-0.5 min-w-0 flex-grow overflow-hidden max-w-full"},t.createElement(SS,{text:e.label,className:Be("font-medium leading-none","transition-colors duration-200","group-hover:text-primary",W.optionText,h?.itemText)}),e.description&&t.createElement(SS,{text:e.description,className:Be("text-muted-foreground","transition-colors duration-200","group-hover:text-primary/70",W.description,h?.description)})),r===e.id&&t.createElement(Ye,{className:Be("ml-auto text-primary flex-shrink-0",W.icon)})),n<F.length-1&&t.createElement("div",{className:Be("my-1.5 h-px bg-border/50",h?.separator)}))))))});CS.displayName="Dropdown";const NS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("rounded-xl border bg-card text-card-foreground shadow-sm",t),...r}));NS.displayName="Card";const TS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex flex-col space-y-1.5 p-6",t),...r}));TS.displayName="CardHeader";e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("font-semibold leading-none tracking-tight",t),...r})).displayName="CardTitle";e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("text-sm text-muted-foreground",t),...r})).displayName="CardDescription";const zS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("p-6 pt-0",t),...r}));zS.displayName="CardContent";function LS({className:e,...r}){return t.createElement("div",{className:Be("animate-pulse rounded-md bg-primary/10",e),...r})}e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex items-center p-6 pt-0",t),...r})).displayName="CardFooter";const MS=({headerRows:e=2,contentRows:r=3,headerRowHeight:n="h-6",contentRowHeight:o="h-5",gridCols:i=2,gridHeight:a="h-64",className:s})=>t.createElement(NS,{className:Be("overflow-hidden",s)},t.createElement(TS,{className:"border-b"},t.createElement("div",{className:"space-y-8"},Array.from({length:e}).map((e,r)=>t.createElement(LS,{key:r,className:Be(n,0===r?"w-1/3":"w-2/3")})),i>0&&t.createElement("div",{className:Be("grid gap-8",{"grid-cols-1":1===i,"grid-cols-1 md:grid-cols-2":2===i,"grid-cols-1 md:grid-cols-3":3===i,"grid-cols-1 md:grid-cols-4":4===i})},Array.from({length:i}).map((e,r)=>t.createElement(LS,{key:r,className:a}))))),t.createElement(zS,{className:"mt-6 space-y-6"},Array.from({length:r}).map((e,r)=>t.createElement("div",{key:r,className:"flex gap-4"},t.createElement(LS,{className:Be("w-5",o)}),t.createElement("div",{className:"space-y-2 flex-1"},t.createElement(LS,{className:Be("w-3/4",o)}),t.createElement(LS,{className:Be("w-1/2",o)})))))),DS=({rows:e=5,className:r})=>t.createElement(NS,{className:Be("shadow-lg border-border",r)},t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-48"})),t.createElement(zS,null,t.createElement("div",{className:"space-y-4"},Array.from({length:e}).map((e,r)=>t.createElement(LS,{key:r,className:"h-16 w-full"}))))),AS=({className:e,rows:r=3,rowHeight:n="h-4",mainHeight:o="h-24",firstRowWidth:i="w-3/5",secondRowWidth:a="w-4/5"})=>t.createElement(NS,{className:e},t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-48"})),t.createElement(zS,{className:"space-y-4"},t.createElement(LS,{className:o}),Array.from({length:r}).map((e,r)=>t.createElement(LS,{key:r,className:Be(n,0===r?i:a)})))),RS=()=>t.createElement("div",{className:"space-y-6"},t.createElement("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4"},Array.from({length:4}).map((e,r)=>t.createElement(NS,{key:r},t.createElement(TS,{className:"flex flex-row items-center justify-between pb-2"},t.createElement(LS,{className:"h-5 w-1/2"}),t.createElement(LS,{className:"h-4 w-4"})),t.createElement(zS,null,t.createElement(LS,{className:"h-8 w-full"}),t.createElement(LS,{className:"mt-4 h-4 w-3/4"}))))),t.createElement("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2"},t.createElement(NS,null,t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-40"})),t.createElement(zS,null,t.createElement(LS,{className:"h-[200px]"}))),t.createElement(NS,null,t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-40"})),t.createElement(zS,null,t.createElement("div",{className:"space-y-2"},Array.from({length:5}).map((e,r)=>t.createElement("div",{key:r,className:"flex justify-between"},t.createElement(LS,{className:"h-4 w-[100px]"}),t.createElement(LS,{className:"h-4 w-[60px]"})))))))),IS=t.forwardRef(({variant:e="card",rows:r=5,className:n,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s,headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,...m},h)=>{const v={card:t.createElement(MS,{headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,className:n}),table:t.createElement(DS,{rows:r,className:n}),simple:t.createElement(AS,{className:n,rows:r,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s}),dashboard:t.createElement(RS,null)};return t.createElement("div",{ref:h,...m},v[e])});IS.displayName="CustomSkeleton";const BS={small:{padding:"p-3 sm:p-4",titleSize:"text-base sm:text-lg",descSize:"text-sm sm:text-base",imageHeight:"h-24 sm:h-32 md:h-36",spacing:"space-y-2"},medium:{padding:"p-4 sm:p-5 md:p-6",titleSize:"text-lg sm:text-xl md:text-2xl",descSize:"text-sm sm:text-base md:text-lg",imageHeight:"h-32 sm:h-40 md:h-48 lg:h-56",spacing:"space-y-3"},large:{padding:"p-5 sm:p-6 md:p-7 lg:p-8",titleSize:"text-xl sm:text-2xl md:text-3xl",descSize:"text-base sm:text-lg md:text-xl",imageHeight:"h-40 sm:h-48 md:h-56 lg:h-64",spacing:"space-y-4"},custom:{padding:"",titleSize:"text-lg",descSize:"text-base",imageHeight:"",spacing:"space-y-3"}},_S={none:"",sm:"space-y-2",md:"space-y-3",lg:"space-y-4"},WS={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-md",xl:"shadow-lg"},FS={none:"",lift:"transition-transform duration-300 hover:-translate-y-1",glow:"transition-shadow duration-300 hover:shadow-glow",scale:"transition-transform duration-300 hover:scale-[1.02]",border:"transition-colors duration-300 hover:border-primary"},VS={none:"rounded-none",sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-3xl"},$S={"top-right":"absolute right-4 top-4 z-10","top-left":"absolute left-4 top-4 z-10","bottom-right":"absolute right-4 bottom-4 z-10","bottom-left":"absolute left-4 bottom-4 z-10"},HS={default:{kind:"default",wrapper:"bg-card border border-border",gradients:[]},gradiant:{kind:"gradiant",wrapper:"relative overflow-hidden bg-card border border-border shadow-xs",gradients:["absolute inset-0 bg-primary/20","absolute inset-0 bg-linear-to-tr from-primary/10 via-transparent to-transparent"]},outline:{kind:"outline",wrapper:"bg-transparent border-2 border-border",gradients:[]},solid:{kind:"solid",wrapper:"bg-primary/10 border border-primary/20",gradients:[]},glass:{kind:"glass",wrapper:"bg-card/80 backdrop-blur-md border border-white/20",gradients:["absolute inset-0 bg-gradient-to-tr from-white/5 to-white/10"]}},qS=({title:e,description:r,children:n,variant:o="gradiant",size:a="medium",shadow:s="none",hoverEffect:c="none",borderRadius:u="lg",image:p,imagePosition:d="top",imageHeight:f,badge:m,badgePosition:h="top-right",footer:v,header:y,padding:g,spacing:b="md",width:w,height:x,maxWidth:O,className:E,contentClassName:k,titleClassName:j,descriptionClassName:P,imageClassName:S,onClick:C,href:N,interactive:T=!1,disabled:z=!1})=>{const[L,M]=i(!p),D=l(()=>{M(!0)},[]),A=HS[o],R=BS[a],I=WS[s],B=FS[c],_=VS[u],W="none"===b?"":_S[b]||R.spacing,F=$S[h],V=g||R.padding,$=f||R.imageHeight,H=T?"cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary dark:focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-background-dark":"",q=z?"opacity-60 pointer-events-none":"",U=l(e=>{!z&&C&&C()},[z,C]),Y=t.createElement(t.Fragment,null,y&&t.createElement("div",{"data-testid":"header",className:"mb-4"},y),m&&t.createElement("div",{"data-testid":"badge-wrapper",className:F},"string"==typeof m?t.createElement("span",{className:"inline-flex items-center rounded-full bg-primary px-3 py-1 text-xs font-medium text-primary-foreground dark:text-primary-foreground-dark ring-1 ring-inset ring-primary/10 dark:ring-primary/20"},m):m),t.createElement("div",{className:Be(W,A.content&&"default"!==o&&"p-6",k)},p&&"top"===d&&t.createElement("div",{"data-testid":"image-wrapper",className:Be("relative w-full overflow-hidden",_,$,"mb-6",S)},t.createElement("div",{"data-testid":"image-container",className:Be(L?"opacity-100":"opacity-0","transition-opacity duration-300")},t.createElement("img",{src:p,alt:e||"Card image",className:"h-full w-full object-cover",onLoad:D}))),e&&t.createElement("h3",{"data-testid":"title",className:Be("font-semibold tracking-tight text-foreground dark:text-foreground-dark",R.titleSize,j)},e),r&&t.createElement("p",{"data-testid":"description",className:Be("text-muted-foreground dark:text-muted-foreground-dark leading-relaxed",R.descSize,P)},r),n&&t.createElement("div",{className:Be("mt-4")},n),v&&t.createElement("div",{"data-testid":"footer",className:"mt-6 pt-4 border-t border-border dark:border-border-dark"},v))),G=A.content?t.createElement("div",{className:A.content},Y):Y,X={width:w||"auto",height:x||"auto",maxWidth:O||"none",...p&&"background"===d?{backgroundImage:`url(${p})`,backgroundSize:"cover",backgroundPosition:"center"}:{}},K=N?"a":"div",Z=N?{href:N,...T?{tabIndex:0}:{}}:{},Q=C?{onClick:U,role:"button",tabIndex:T&&!z?0:void 0}:{};return t.createElement(K,{...Z,...Q,className:Be(A.wrapper,_,I,B,H,q,E),style:X},t.createElement("div",{"data-testid":"gradient-wrapper"},A.gradients&&A.gradients.map((e,r)=>t.createElement("div",{key:r,className:e}))),A.inner?t.createElement("div",{className:Be(A.inner,V)},t.createElement("div",{className:"relative"},G)):t.createElement("div",{className:Be("relative",V)},G))};qS.displayName="Card";const US={small:"h-10 w-10",medium:"h-14 w-14 md:h-20 md:w-20",large:"h-28 w-28"},YS=({variant:e="spinner",size:r="medium",className:n,ariaLabel:o="Loading",colorScheme:i})=>{const a=US[r];return t.createElement("div",{role:"status","aria-label":o,className:Be("flex items-center justify-center",n)},(()=>{switch(e){case"dots":return t.createElement("div",{className:"flex space-x-2"},[0,1,2].map(e=>t.createElement("div",{key:e,className:Be("w-3 h-3 rounded-full","harford"!==i&&"bg-primary",0===e&&"animate-bounce",1===e&&"animate-bounce-delay-1",2===e&&"animate-bounce-delay-2"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"bars":return t.createElement("div",{className:"flex space-x-1 h-10 items-center"},[0,1,2,3].map(e=>t.createElement("div",{key:e,className:Be("w-2 h-full rounded-full","harford"!==i&&"bg-primary",0===e&&"animate-bar-scale",1===e&&"animate-bar-scale-delay-1",2===e&&"animate-bar-scale-delay-2",3===e&&"animate-bar-scale-delay-3"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"orbit":return t.createElement("div",{className:Be("relative aspect-square flex items-center justify-center",{"w-20 h-20":"small"===r,"w-32 h-32":"medium"===r,"w-40 h-40":"large"===r},n)},t.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:3rem]"},t.createElement("div",{className:Be("absolute w-4 h-4 rounded-full animate-orbit-medium","harford"!==i&&"bg-primary/70 shadow-primary/50"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.7)",boxShadow:"0 10px 15px -3px rgba(4, 61, 90, 0.5)"}:{}},t.createElement("div",{className:Be("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:Be("absolute w-2 h-2 rounded-full animate-orbit-reverse-medium","harford"!==i&&"bg-primary/60 shadow-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.6)",boxShadow:"0 4px 6px -1px rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:4rem]"},t.createElement("div",{className:Be("absolute w-5 h-5 rounded-full animate-orbit-slow","harford"!==i&&"bg-primary/60 shadow-primary/50"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.6)",boxShadow:"0 20px 25px -5px rgba(4, 61, 90, 0.5)"}:{}},t.createElement("div",{className:Be("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:Be("absolute w-3 h-3 rounded-full animate-orbit-reverse-slow","harford"!==i&&"bg-primary/50 shadow-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.5)",boxShadow:"0 10px 15px -3px rgba(4, 61, 90, 0.3)"}:{}})));default:return t.createElement("div",{className:"relative"},t.createElement("div",{className:Be("relative",a)},t.createElement("div",{className:Be("absolute inset-0 rounded-full border-4","harford"!==i&&"border-primary/30","animate-ping-slow"),style:"harford"===i?{borderColor:"rgba(4, 61, 90, 0.3)"}:{}}),t.createElement("div",{className:Be("absolute inset-0 rounded-full border-4 border-transparent","harford"!==i&&"border-t-primary border-l-primary","animate-spin-slow"),style:"harford"===i?{borderTopColor:"#043d5a",borderLeftColor:"#043d5a"}:{}}),t.createElement("div",{className:Be("absolute inset-0 rounded-full","border-[3px] border-dashed","harford"!==i&&"border-primary/50","animate-spin-slower"),style:"harford"===i?{borderColor:"rgba(4, 61, 90, 0.5)"}:{}}),t.createElement("div",{className:Be("absolute inset-2 rounded-full border-4 border-transparent","harford"!==i&&"border-r-primary/70 border-b-primary/70","animate-spin-reverse"),style:"harford"===i?{borderRightColor:"rgba(4, 61, 90, 0.7)",borderBottomColor:"rgba(4, 61, 90, 0.7)"}:{}})))}})(),t.createElement("span",{className:"sr-only"},o))};YS.displayName="Loader";var GS,XS="dismissableLayer.update",KS="dismissableLayer.pointerDownOutside",ZS="dismissableLayer.focusOutside",QS=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JS=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=t,u=e.useContext(QS),[p,d]=e.useState(null),f=p?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=Og(r,e=>d(e)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(y),b=p?v.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=g,O=function(t,r=globalThis?.document){const n=Ag(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){tC(KS,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));x&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},f),k=function(t,r=globalThis?.document){const n=Ag(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){tC(ZS,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},f);return function(t,r=globalThis?.document){const n=Ag(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{b===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),e.useEffect(()=>{if(p)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(GS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),eC(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=GS)}},[p,f,n,u]),e.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),eC())},[p,u]),e.useEffect(()=>{const e=()=>m({});return document.addEventListener(XS,e),()=>document.removeEventListener(XS,e)},[]),E(Tg.div,{...c,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...t.style},onFocusCapture:bg(t.onFocusCapture,k.onFocusCapture),onBlurCapture:bg(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:bg(t.onPointerDownCapture,O.onPointerDownCapture)})});JS.displayName="DismissableLayer";function eC(){const e=new CustomEvent(XS);document.dispatchEvent(e)}function tC(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,r)=>{const n=e.useContext(QS),o=e.useRef(null),i=Og(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),E(Tg.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var rC="focusScope.autoFocusOnMount",nC="focusScope.autoFocusOnUnmount",oC={bubbles:!1,cancelable:!0},iC=e.forwardRef((t,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,c]=e.useState(null),u=Ag(i),p=Ag(a),d=e.useRef(null),f=Og(r,e=>c(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:cC(d.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||cC(d.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&cC(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,m.paused]),e.useEffect(()=>{if(l){uC.add(m);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(rC,oC);l.addEventListener(rC,u),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(cC(n,{select:t}),document.activeElement!==r)return}((e=aC(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&cC(l))}return()=>{l.removeEventListener(rC,u),setTimeout(()=>{const e=new CustomEvent(nC,oC);l.addEventListener(nC,p),l.dispatchEvent(e),e.defaultPrevented||cC(t??document.body,{select:!0}),l.removeEventListener(nC,p),uC.remove(m)},0)}}var e},[l,u,p,m]);const h=e.useCallback(e=>{if(!n&&!o)return;if(m.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=aC(e),r=sC(t,e),n=sC(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&cC(i,{select:!0})):(e.preventDefault(),n&&cC(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,m.paused]);return E(Tg.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})});function aC(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function sC(e,t){for(const r of e)if(!lC(r,{upTo:t}))return r}function lC(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 cC(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}iC.displayName="FocusScope";var uC=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=pC(e,t),e.unshift(t)},remove(t){e=pC(e,t),e[0]?.resume()}}}();function pC(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var dC=e.forwardRef((t,r)=>{const{container:n,...o}=t,[i,a]=e.useState(!1);zg(()=>a(!0),[]);const s=n||i&&globalThis?.document?.body;return s?S.createPortal(E(Tg.div,{...o,ref:r}),s):null});dC.displayName="Portal";var fC=0;function mC(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hC()),document.body.insertAdjacentElement("beforeend",e[1]??hC()),fC++,()=>{1===fC&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),fC--}},[])}function hC(){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}var vC=function(){return vC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vC.apply(this,arguments)};function yC(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function gC(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var bC="right-scroll-bar-position",wC="width-before-scroll-bar";function xC(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var OC="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,EC=new WeakMap;function kC(e,t){var r,n,o,a=(r=null,n=function(t){return e.forEach(function(e){return xC(e,t)})},(o=i(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return OC(function(){var t=EC.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||xC(e,null)}),n.forEach(function(e){r.has(e)||xC(e,o)})}EC.set(a,e)},[e]),a}function jC(e){return e}var PC=function(t){var r=t.sideCar,n=yC(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,vC({},n))};PC.isSideCarExport=!0;var SC=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=jC);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return o}(null);return t.options=vC({async:!0,ssr:!1},e),t}(),CC=function(){},NC=e.forwardRef(function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:CC,onWheelCapture:CC,onTouchMoveCapture:CC}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,p=t.enabled,d=t.shards,f=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,y=t.allowPinchZoom,g=t.as,b=void 0===g?"div":g,w=t.gapMode,x=yC(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=f,E=kC([n,r]),k=vC(vC({},x),i);return e.createElement(e.Fragment,null,p&&e.createElement(O,{sideCar:SC,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:w}),s?e.cloneElement(e.Children.only(l),vC(vC({},k),{ref:E})):e.createElement(b,vC({},k,{className:c,ref:E}),l))});NC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},NC.classNames={fullWidth:wC,zeroRight:bC};function TC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var zC=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=TC())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.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)}}},LC=function(){var t,r=(t=zC(),function(r,n){e.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},MC={left:0,top:0,right:0,gap:0},DC=function(e){return parseInt(e||"",10)||0},AC=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return MC;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[DC(r),DC(n),DC(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},RC=LC(),IC="data-scroll-locked",BC=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(IC,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(bC," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(wC," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(bC," .").concat(bC," {\n right: 0 ").concat(n,";\n }\n \n .").concat(wC," .").concat(wC," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(IC,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_C=function(){var e=parseInt(document.body.getAttribute(IC)||"0",10);return isFinite(e)?e:0},WC=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(IC,(_C()+1).toString()),function(){var e=_C()-1;e<=0?document.body.removeAttribute(IC):document.body.setAttribute(IC,e.toString())}},[]);var a=e.useMemo(function(){return AC(i)},[i]);return e.createElement(RC,{styles:BC(a,!r,i,n?"":"!important")})},FC=!1;if("undefined"!=typeof window)try{var VC=Object.defineProperty({},"passive",{get:function(){return FC=!0,!0}});window.addEventListener("test",VC,VC),window.removeEventListener("test",VC,VC)}catch(e){FC=!1}var $C=!!FC&&{passive:!1},HC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},qC=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),UC(e,n)){var o=YC(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},UC=function(e,t){return"v"===e?function(e){return HC(e,"overflowY")}(t):function(e){return HC(e,"overflowX")}(t)},YC=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},GC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XC=function(e){return[e.deltaX,e.deltaY]},KC=function(e){return e&&"current"in e?e.current:e},ZC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},QC=0,JC=[];function eN(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var tN,rN=(tN=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),i=e.useState(QC++)[0],a=e.useState(LC)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(KC),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=GC(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,p=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===p&&"range"===u.type)return!1;var d=qC(p,u);if(!d)return!0;if(d?r=p:(r="v"===p?"h":"v",d=qC(p,u)),!d)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var f=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),l=!1,c=i>0,u=0,p=0;do{if(!a)break;var d=YC(e,a),f=d[0],m=d[1]-d[2]-o*f;(f||m)&&UC(e,a)&&(u+=m,p+=f);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&Math.abs(u)<1||!c&&Math.abs(p)<1)&&(l=!0),l}(f,t,e,"h"===f?l:c)},[]),c=e.useCallback(function(e){var t=e;if(JC.length&&JC[JC.length-1]===a){var n="deltaY"in t?XC(t):GC(t),o=r.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,o=n,r[0]===o[0]&&r[1]===o[1]);var r,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(KC).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,n,o){var i={name:e,delta:t,target:n,should:o,shadowParent:eN(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),p=e.useCallback(function(e){n.current=GC(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,XC(e),e.target,l(e,t.lockRef.current))},[]),f=e.useCallback(function(e){u(e.type,GC(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return JC.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,$C),document.addEventListener("touchmove",c,$C),document.addEventListener("touchstart",p,$C),function(){JC=JC.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,$C),document.removeEventListener("touchmove",c,$C),document.removeEventListener("touchstart",p,$C)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:ZC(i)}):null,m?e.createElement(WC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},SC.useMedium(tN),PC),nN=e.forwardRef(function(t,r){return e.createElement(NC,vC({},t,{ref:r,sideCar:rN}))});nN.classNames=NC.classNames;var oN=new WeakMap,iN=new WeakMap,aN={},sN=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},cN=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=lN(t);return r&&e.contains(r)?r:(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]);aN[r]||(aN[r]=new WeakMap);var i=aN[r],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(oN.get(e)||0)+1,c=(i.get(e)||0)+1;oN.set(e,l),i.set(e,c),a.push(e),1===l&&o&&iN.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),sN++,function(){a.forEach(function(e){var t=oN.get(e)-1,o=i.get(e)-1;oN.set(e,t),i.set(e,o),t||(iN.has(e)||e.removeAttribute(n),iN.delete(e)),o||e.removeAttribute(r)}),--sN||(oN=new WeakMap,oN=new WeakMap,iN=new WeakMap,aN={})}},uN=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),cN(n,o,r,"aria-hidden")):function(){return null}},pN="Dialog",[dN,fN]=Eg(pN),[mN,hN]=dN(pN),vN=t=>{const{__scopeDialog:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,l=e.useRef(null),c=e.useRef(null),[u,p]=Ig({prop:o,defaultProp:i??!1,onChange:a,caller:pN});return E(mN,{scope:r,triggerRef:l,contentRef:c,contentId:Dg(),titleId:Dg(),descriptionId:Dg(),open:u,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};vN.displayName=pN;var yN="DialogTrigger",gN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(yN,r),i=Og(t,o.triggerRef);return E(Tg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":BN(o.open),...n,ref:i,onClick:bg(e.onClick,o.onOpenToggle)})});gN.displayName=yN;var bN="DialogPortal",[wN,xN]=dN(bN,{forceMount:void 0}),ON=t=>{const{__scopeDialog:r,forceMount:n,children:o,container:i}=t,a=hN(bN,r);return E(wN,{scope:r,forceMount:n,children:e.Children.map(o,e=>E(ab,{present:n||a.open,children:E(dC,{asChild:!0,container:i,children:e})}))})};ON.displayName=bN;var EN="DialogOverlay",kN=e.forwardRef((e,t)=>{const r=xN(EN,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=hN(EN,e.__scopeDialog);return i.modal?E(ab,{present:n||i.open,children:E(PN,{...o,ref:t})}):null});kN.displayName=EN;var jN=jg("DialogOverlay.RemoveScroll"),PN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(EN,r);return E(nN,{as:jN,allowPinchZoom:!0,shards:[o.contentRef],children:E(Tg.div,{"data-state":BN(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),SN="DialogContent",CN=e.forwardRef((e,t)=>{const r=xN(SN,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=hN(SN,e.__scopeDialog);return E(ab,{present:n||i.open,children:i.modal?E(NN,{...o,ref:t}):E(TN,{...o,ref:t})})});CN.displayName=SN;var NN=e.forwardRef((t,r)=>{const n=hN(SN,t.__scopeDialog),o=e.useRef(null),i=Og(r,n.contentRef,o);return e.useEffect(()=>{const e=o.current;if(e)return uN(e)},[]),E(zN,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bg(t.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:bg(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:bg(t.onFocusOutside,e=>e.preventDefault())})}),TN=e.forwardRef((t,r)=>{const n=hN(SN,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return E(zN,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),zN=e.forwardRef((t,r)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=t,l=hN(SN,n),c=e.useRef(null),u=Og(r,c);return mC(),j(k,{children:[E(iC,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:E(JS,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":BN(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),j(k,{children:[E(VN,{titleId:l.titleId}),E($N,{contentRef:c,descriptionId:l.descriptionId})]})]})}),LN="DialogTitle",MN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(LN,r);return E(Tg.h2,{id:o.titleId,...n,ref:t})});MN.displayName=LN;var DN="DialogDescription",AN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(DN,r);return E(Tg.p,{id:o.descriptionId,...n,ref:t})});AN.displayName=DN;var RN="DialogClose",IN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(RN,r);return E(Tg.button,{type:"button",...n,ref:t,onClick:bg(e.onClick,()=>o.onOpenChange(!1))})});function BN(e){return e?"open":"closed"}IN.displayName=RN;var _N="DialogTitleWarning",[WN,FN]=function(t,r){const n=e.createContext(r),o=t=>{const{children:r,...o}=t,i=e.useMemo(()=>o,Object.values(o));return E(n.Provider,{value:i,children:r})};return o.displayName=t+"Provider",[o,function(o){const i=e.useContext(n);if(i)return i;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}(_N,{contentName:SN,titleName:LN,docsSlug:"dialog"}),VN=({titleId:t})=>{const r=FN(_N),n=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)||console.error(n)}},[n,t]),null},$N=({contentRef:t,descriptionId:r})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${FN("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(r&&e){document.getElementById(r)||console.warn(n)}},[n,t,r]),null},HN=vN,qN=gN,UN=ON,YN=kN,GN=CN,XN=MN,KN=AN,ZN=IN;const QN=UN,JN=e.forwardRef(({className:t,...r},n)=>e.createElement(YN,{ref:n,className:Be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r}));JN.displayName=YN.displayName;e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(QN,null,e.createElement(JN,null),e.createElement(GN,{ref:o,className:Be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n},r,e.createElement(ZN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},e.createElement(Ek,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))))).displayName=GN.displayName;e.forwardRef(({className:t,...r},n)=>e.createElement(XN,{ref:n,className:Be("text-lg font-semibold leading-none tracking-tight",t),...r})).displayName=XN.displayName;e.forwardRef(({className:t,...r},n)=>e.createElement(KN,{ref:n,className:Be("text-sm text-muted-foreground",t),...r})).displayName=KN.displayName;const eT={CANCEL_TEXT:"Cancel",CONFIRM_TEXT:"Confirm",VARIANT:"default",SIZE:"medium",POSITION:"center",CLOSE_ON_OUTSIDE_CLICK:!0,SHOW_CLOSE_BUTTON:!1},tT={default:{button:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"}},rT=e=>{switch(e){case"small":return"sm:max-w-[425px]";case"large":return"sm:max-w-[725px]";case"extraLarge":return"sm:max-w-[925px]";case"full":return"sm:max-w-[90vw]";default:return"sm:max-w-[525px]"}},nT=["top","right","bottom","left"],oT=Math.min,iT=Math.max,aT=Math.round,sT=Math.floor,lT=e=>({x:e,y:e}),cT={left:"right",right:"left",bottom:"top",top:"bottom"},uT={start:"end",end:"start"};function pT(e,t,r){return iT(e,oT(t,r))}function dT(e,t){return"function"==typeof e?e(t):e}function fT(e){return e.split("-")[0]}function mT(e){return e.split("-")[1]}function hT(e){return"x"===e?"y":"x"}function vT(e){return"y"===e?"height":"width"}const yT=new Set(["top","bottom"]);function gT(e){return yT.has(fT(e))?"y":"x"}function bT(e){return hT(gT(e))}function wT(e){return e.replace(/start|end/g,e=>uT[e])}const xT=["left","right"],OT=["right","left"],ET=["top","bottom"],kT=["bottom","top"];function jT(e,t,r,n){const o=mT(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?OT:xT:t?xT:OT;case"left":case"right":return t?ET:kT;default:return[]}}(fT(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(wT)))),i}function PT(e){return e.replace(/left|right|bottom|top/g,e=>cT[e])}function ST(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 CT(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function NT(e,t,r){let{reference:n,floating:o}=e;const i=gT(t),a=bT(t),s=vT(a),l=fT(t),c="y"===i,u=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-o.width,y:p};break;default:f={x:n.x,y:n.y}}switch(mT(t)){case"start":f[a]-=d*(r&&c?-1:1);break;case"end":f[a]+=d*(r&&c?-1:1)}return f}async function TT(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=dT(t,e),m=ST(f),h=s[d?"floating"===p?"reference":"floating":p],v=CT(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===p?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=CT(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}function zT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LT(e){return nT.some(t=>e[t]>=0)}const MT=new Set(["left","top"]);function DT(){return"undefined"!=typeof window}function AT(e){return BT(e)?(e.nodeName||"").toLowerCase():"#document"}function RT(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function IT(e){var t;return null==(t=(BT(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function BT(e){return!!DT()&&(e instanceof Node||e instanceof RT(e).Node)}function _T(e){return!!DT()&&(e instanceof Element||e instanceof RT(e).Element)}function WT(e){return!!DT()&&(e instanceof HTMLElement||e instanceof RT(e).HTMLElement)}function FT(e){return!(!DT()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof RT(e).ShadowRoot)}const VT=new Set(["inline","contents"]);function $T(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=tz(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!VT.has(o)}const HT=new Set(["table","td","th"]);function qT(e){return HT.has(AT(e))}const UT=[":popover-open",":modal"];function YT(e){return UT.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const GT=["transform","translate","scale","rotate","perspective"],XT=["transform","translate","scale","rotate","perspective","filter"],KT=["paint","layout","strict","content"];function ZT(e){const t=QT(),r=_T(e)?tz(e):e;return GT.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||XT.some(e=>(r.willChange||"").includes(e))||KT.some(e=>(r.contain||"").includes(e))}function QT(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const JT=new Set(["html","body","#document"]);function ez(e){return JT.has(AT(e))}function tz(e){return RT(e).getComputedStyle(e)}function rz(e){return _T(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nz(e){if("html"===AT(e))return e;const t=e.assignedSlot||e.parentNode||FT(e)&&e.host||IT(e);return FT(t)?t.host:t}function oz(e){const t=nz(e);return ez(t)?e.ownerDocument?e.ownerDocument.body:e.body:WT(t)&&$T(t)?t:oz(t)}function iz(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=oz(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=RT(o);if(i){const e=az(a);return t.concat(a,a.visualViewport||[],$T(o)?o:[],e&&r?iz(e):[])}return t.concat(o,iz(o,[],r))}function az(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sz(e){const t=tz(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=WT(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=aT(r)!==i||aT(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function lz(e){return _T(e)?e:e.contextElement}function cz(e){const t=lz(e);if(!WT(t))return lT(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=sz(t);let a=(i?aT(r.width):r.width)/n,s=(i?aT(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const uz=lT(0);function pz(e){const t=RT(e);return QT()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uz}function dz(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=lz(e);let a=lT(1);t&&(n?_T(n)&&(a=cz(n)):a=cz(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==RT(e))&&t}(i,r,n)?pz(i):lT(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,p=o.height/a.y;if(i){const e=RT(i),t=n&&_T(n)?RT(n):n;let r=e,o=az(r);for(;o&&n&&t!==r;){const e=cz(o),t=o.getBoundingClientRect(),n=tz(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,p*=e.y,l+=i,c+=a,r=RT(o),o=az(r)}}return CT({width:u,height:p,x:l,y:c})}function fz(e,t){const r=rz(e).scrollLeft;return t?t.left+r:dz(IT(e)).left+r}function mz(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:fz(e,n)),y:n.top+t.scrollTop}}const hz=new Set(["absolute","fixed"]);function vz(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=RT(e),n=IT(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=QT();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=IT(e),r=rz(e),n=e.ownerDocument.body,o=iT(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=iT(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fz(e);const s=-r.scrollTop;return"rtl"===tz(n).direction&&(a+=iT(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(IT(e));else if(_T(t))n=function(e,t){const r=dz(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=WT(e)?cz(e):lT(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=pz(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return CT(n)}function yz(e,t){const r=nz(e);return!(r===t||!_T(r)||ez(r))&&("fixed"===tz(r).position||yz(r,t))}function gz(e,t,r){const n=WT(t),o=IT(t),i="fixed"===r,a=dz(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=lT(0);function c(){l.x=fz(o)}if(n||!n&&!i)if(("body"!==AT(t)||$T(o))&&(s=rz(t)),n){const e=dz(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?lT(0):mz(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function bz(e){return"static"===tz(e).position}function wz(e,t){if(!WT(e)||"fixed"===tz(e).position)return null;if(t)return t(e);let r=e.offsetParent;return IT(e)===r&&(r=r.ownerDocument.body),r}function xz(e,t){const r=RT(e);if(YT(e))return r;if(!WT(e)){let t=nz(e);for(;t&&!ez(t);){if(_T(t)&&!bz(t))return t;t=nz(t)}return r}let n=wz(e,t);for(;n&&qT(n)&&bz(n);)n=wz(n,t);return n&&ez(n)&&bz(n)&&!ZT(n)?r:n||function(e){let t=nz(e);for(;WT(t)&&!ez(t);){if(ZT(t))return t;if(YT(t))return null;t=nz(t)}return null}(e)||r}const Oz={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=IT(n),s=!!t&&YT(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=lT(1);const u=lT(0),p=WT(n);if((p||!p&&!i)&&(("body"!==AT(n)||$T(a))&&(l=rz(n)),WT(n))){const e=dz(n);c=cz(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||p||i?lT(0):mz(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:IT,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?YT(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=iz(e,[],!1).filter(e=>_T(e)&&"body"!==AT(e)),o=null;const i="fixed"===tz(e).position;let a=i?nz(e):e;for(;_T(a)&&!ez(a);){const t=tz(a),r=ZT(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&hz.has(o.position)||$T(a)&&!r&&yz(e,a))?n=n.filter(e=>e!==a):o=t,a=nz(a)}return t.set(e,n),n}(t,this._c):[].concat(r),a=[...i,n],s=a[0],l=a.reduce((e,r)=>{const n=vz(t,r,o);return e.top=iT(n.top,e.top),e.right=oT(n.right,e.right),e.bottom=oT(n.bottom,e.bottom),e.left=iT(n.left,e.left),e},vz(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:xz,getElementRects:async function(e){const t=this.getOffsetParent||xz,r=this.getDimensions,n=await r(e.floating);return{reference:gz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=sz(e);return{width:t,height:r}},getScale:cz,isElement:_T,isRTL:function(e){return"rtl"===tz(e).direction}};function Ez(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kz(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=lz(e),u=o||i?[...c?iz(c):[],...iz(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const p=c&&s?function(e,t){let r,n=null;const o=IT(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:p,width:d,height:f}=c;if(s||t(),!d||!f)return;const m={rootMargin:-sT(p)+"px "+-sT(o.clientWidth-(u+d))+"px "+-sT(o.clientHeight-(p+f))+"px "+-sT(u)+"px",threshold:iT(0,oT(1,l))||1};let h=!0;function v(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||Ez(c,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(v,m)}n.observe(e)}(!0),i}(c,r):null;let d,f=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!l&&m.observe(c),m.observe(t));let h=l?dz(e):null;return l&&function t(){const n=dz(e);h&&!Ez(h,n)&&r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const jz=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=fT(r),s=mT(r),l="y"===gT(r),c=MT.has(a)?-1:1,u=i&&l?-1:1,p=dT(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:d*c}:{x:d*c,y:f*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pz=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=dT(e,t),c={x:r,y:n},u=await TT(t,l),p=gT(fT(o)),d=hT(p);let f=c[d],m=c[p];if(i){const e="y"===d?"bottom":"right";f=pT(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===p?"bottom":"right";m=pT(m+u["y"===p?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:f,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[d]:i,[p]:a}}}}}},Sz=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=dT(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=fT(o),g=gT(s),b=fT(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(b||!h?[PT(s)]:function(e){const t=PT(e);return[wT(e),t,wT(t)]}(s)),O="none"!==m;!d&&O&&x.push(...jT(s,h,m,w));const E=[s,...x],k=await TT(t,v),j=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&j.push(k[y]),p){const e=function(e,t,r){void 0===r&&(r=!1);const n=mT(e),o=bT(e),i=vT(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=PT(a)),[a,PT(a)]}(o,a,w);j.push(k[e[0]],k[e[1]])}if(P=[...P,{placement:o,overflows:j}],!j.every(e=>e<=0)){var S,C;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=E[e];if(t){if(!("alignment"===p&&g!==gT(t))||P.every(e=>gT(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(f){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=gT(e.placement);return t===g||"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:N[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Cz=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=dT(e,t),u=await TT(t,c),p=fT(o),d=mT(o),f="y"===gT(o),{width:m,height:h}=i.floating;let v,y;"top"===p||"bottom"===p?(v=p,y=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,v="end"===d?"top":"bottom");const g=h-u.top-u.bottom,b=m-u.left-u.right,w=oT(h-u[v],g),x=oT(m-u[y],b),O=!t.middlewareData.shift;let E=w,k=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=g),O&&!d){const e=iT(u.left,0),t=iT(u.right,0),r=iT(u.top,0),n=iT(u.bottom,0);f?k=m-2*(0!==e||0!==t?e+t:iT(u.left,u.right)):E=h-2*(0!==r||0!==n?r+n:iT(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const j=await a.getDimensions(s.floating);return m!==j.width||h!==j.height?{reset:{rects:!0}}:{}}}},Nz=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=dT(e,t);switch(n){case"referenceHidden":{const e=zT(await TT(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:LT(e)}}}case"escaped":{const e=zT(await TT(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:LT(e)}}}default:return{}}}}},Tz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=dT(e,t)||{};if(null==c)return{};const p=ST(u),d={x:r,y:n},f=bT(o),m=vT(f),h=await a.getDimensions(c),v="y"===f,y=v?"top":"left",g=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-d[f]-i.floating[m],x=d[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=O?O[b]:0;E&&await(null==a.isElement?void 0:a.isElement(O))||(E=s.floating[b]||i.floating[m]);const k=w/2-x/2,j=E/2-h[m]/2-1,P=oT(p[y],j),S=oT(p[g],j),C=P,N=E-h[m]-S,T=E/2-h[m]/2+k,z=pT(C,T,N),L=!l.arrow&&null!=mT(o)&&T!==z&&i.reference[m]/2-(T<C?P:S)-h[m]/2<0,M=L?T<C?T-C:T-N:0;return{[f]:d[f]+M,data:{[f]:z,centerOffset:T-z-M,...L&&{alignmentOffset:M}},reset:L}}}),zz=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=dT(e,t),u={x:r,y:n},p=gT(o),d=hT(p);let f=u[d],m=u[p];const h=dT(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,r=i.reference[d]+i.reference[e]-v.mainAxis;f<t?f=t:f>r&&(f=r)}if(c){var y,g;const e="y"===d?"width":"height",t=MT.has(fT(o)),r=i.reference[p]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[p])||0)+(t?0:v.crossAxis),n=i.reference[p]+i.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[p])||0)-(t?v.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:f,[p]:m}}}},Lz=(e,t,r)=>{const n=new Map,o={platform:Oz,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=NT(c,n,l),d=n,f={},m=0;for(let r=0;r<s.length;r++){const{name:i,fn:h}=s[r],{x:v,y:y,data:g,reset:b}=await h({x:u,y:p,initialPlacement:n,placement:d,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,p=null!=y?y:p,f={...f,[i]:{...f[i],...g}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:p}=NT(c,d,l))),r=-1)}return{x:u,y:p,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Mz="undefined"!=typeof document?d:function(){};function Dz(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 r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Dz(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Dz(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Az(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rz(e,t){const r=Az(e);return Math.round(t*r)/r}function Iz(t){const r=e.useRef(t);return Mz(()=>{r.current=t}),r}const Bz=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Tz({element:r.current,padding:n}).fn(t):{}:r?Tz({element:r,padding:n}).fn(t):{};var o}}),_z=(e,t)=>({...jz(e),options:[e,t]}),Wz=(e,t)=>({...Pz(e),options:[e,t]}),Fz=(e,t)=>({...zz(e),options:[e,t]}),Vz=(e,t)=>({...Sz(e),options:[e,t]}),$z=(e,t)=>({...Cz(e),options:[e,t]}),Hz=(e,t)=>({...Nz(e),options:[e,t]}),qz=(e,t)=>({...Bz(e),options:[e,t]});var Uz=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return E(Tg.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:E("polygon",{points:"0,0 30,0 15,10"})})});Uz.displayName="Arrow";var Yz=Uz,Gz="Popper",[Xz,Kz]=Eg(Gz),[Zz,Qz]=Xz(Gz),Jz=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return E(Zz,{scope:r,anchor:o,onAnchorChange:i,children:n})};Jz.displayName=Gz;var eL="PopperAnchor",tL=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=Qz(eL,n),s=e.useRef(null),l=Og(r,s);return e.useEffect(()=>{a.onAnchorChange(o?.current||s.current)}),o?null:E(Tg.div,{...i,ref:l})});tL.displayName=eL;var rL="PopperContent",[nL,oL]=Xz(rL),iL=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=t,y=Qz(rL,n),[g,b]=e.useState(null),w=Og(r,e=>b(e)),[x,O]=e.useState(null),k=ob(x),j=k?.width??0,S=k?.height??0,C=o+("center"!==a?"-"+a:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(u)?u:[u],z=T.length>0,L={padding:N,boundary:T.filter(cL),altBoundary:z},{refs:M,floatingStyles:D,placement:A,isPositioned:R,middlewareData:I}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[p,d]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(o);Dz(f,o)||m(o);const[h,v]=e.useState(null),[y,g]=e.useState(null),b=e.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=e.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),x=a||h,O=s||y,E=e.useRef(null),k=e.useRef(null),j=e.useRef(p),S=null!=c,C=Iz(c),N=Iz(i),T=Iz(u),z=e.useCallback(()=>{if(!E.current||!k.current)return;const e={placement:r,strategy:n,middleware:f};N.current&&(e.platform=N.current),Lz(E.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!Dz(j.current,t)&&(j.current=t,P.flushSync(()=>{d(t)}))})},[f,r,n,N,T]);Mz(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const L=e.useRef(!1);Mz(()=>(L.current=!0,()=>{L.current=!1}),[]),Mz(()=>{if(x&&(E.current=x),O&&(k.current=O),x&&O){if(C.current)return C.current(x,O,z);z()}},[x,O,z,C,S]);const M=e.useMemo(()=>({reference:E,floating:k,setReference:b,setFloating:w}),[b,w]),D=e.useMemo(()=>({reference:x,floating:O}),[x,O]),A=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Rz(D.floating,p.x),r=Rz(D.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Az(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,p.x,p.y]);return e.useMemo(()=>({...p,update:z,refs:M,elements:D,floatingStyles:A}),[p,z,M,D,A])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>kz(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[_z({mainAxis:i+S,alignmentAxis:s}),c&&Wz({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Fz():void 0,...L}),c&&Vz({...L}),$z({...L,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),x&&qz({element:x,padding:l}),uL({arrowWidth:j,arrowHeight:S}),f&&Hz({strategy:"referenceHidden",...L})]}),[B,_]=pL(A),W=Ag(h);zg(()=>{R&&W?.()},[R,W]);const F=I.arrow?.x,V=I.arrow?.y,$=0!==I.arrow?.centerOffset,[H,q]=e.useState();return zg(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]),E("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:R?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E(nL,{scope:n,placedSide:B,onArrowChange:O,arrowX:F,arrowY:V,shouldHideArrow:$,children:E(Tg.div,{"data-side":B,"data-align":_,...v,ref:w,style:{...v.style,animation:R?void 0:"none"}})})})});iL.displayName=rL;var aL="PopperArrow",sL={top:"bottom",right:"left",bottom:"top",left:"right"},lL=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=oL(aL,r),i=sL[o.placedSide];return E("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:E(Yz,{...n,ref:t,style:{...n.style,display:"block"}})})});function cL(e){return null!==e}lL.displayName=aL;var uL=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=pL(r),u={start:"0%",center:"50%",end:"100%"}[c],p=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=i?u:`${p}px`,m=-s+"px"):"top"===l?(f=i?u:`${p}px`,m=`${n.floating.height+s}px`):"right"===l?(f=-s+"px",m=i?u:`${d}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:f,y:m}}}});function pL(e){const[t,r="center"]=e.split("-");return[t,r]}var dL=Jz,fL=tL,mL=iL,hL=lL,vL="Popover",[yL,gL]=Eg(vL,[Kz]),bL=Kz(),[wL,xL]=yL(vL),OL=t=>{const{__scopePopover:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=bL(r),c=e.useRef(null),[u,p]=e.useState(!1),[d,f]=Ig({prop:o,defaultProp:i??!1,onChange:a,caller:vL});return E(dL,{...l,children:E(wL,{scope:r,contentId:Dg(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>p(!0),[]),onCustomAnchorRemove:e.useCallback(()=>p(!1),[]),modal:s,children:n})})};OL.displayName=vL;var EL="PopoverAnchor";e.forwardRef((t,r)=>{const{__scopePopover:n,...o}=t,i=xL(EL,n),a=bL(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(s(),()=>l()),[s,l]),E(fL,{...a,...o,ref:r})}).displayName=EL;var kL="PopoverTrigger",jL=e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=xL(kL,r),i=bL(r),a=Og(t,o.triggerRef),s=E(Tg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":IL(o.open),...n,ref:a,onClick:bg(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:E(fL,{asChild:!0,...i,children:s})});jL.displayName=kL;var PL="PopoverPortal",[SL,CL]=yL(PL,{forceMount:void 0}),NL=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=xL(PL,t);return E(SL,{scope:t,forceMount:r,children:E(ab,{present:r||i.open,children:E(dC,{asChild:!0,container:o,children:n})})})};NL.displayName=PL;var TL="PopoverContent",zL=e.forwardRef((e,t)=>{const r=CL(TL,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=xL(TL,e.__scopePopover);return E(ab,{present:n||i.open,children:i.modal?E(ML,{...o,ref:t}):E(DL,{...o,ref:t})})});zL.displayName=TL;var LL=jg("PopoverContent.RemoveScroll"),ML=e.forwardRef((t,r)=>{const n=xL(TL,t.__scopePopover),o=e.useRef(null),i=Og(r,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return uN(e)},[]),E(nN,{as:LL,allowPinchZoom:!0,children:E(AL,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bg(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:bg(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:bg(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),DL=e.forwardRef((t,r)=>{const n=xL(TL,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return E(AL,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),AL=e.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...p}=e,d=xL(TL,r),f=bL(r);return mC(),E(iC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:E(JS,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:E(mL,{"data-state":IL(d.open),role:"dialog",id:d.contentId,...f,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),RL="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=xL(RL,r);return E(Tg.button,{type:"button",...n,ref:t,onClick:bg(e.onClick,()=>o.onOpenChange(!1))})}).displayName=RL;function IL(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=bL(r);return E(hL,{...o,...n,ref:t})}).displayName="PopoverArrow";var BL=OL,_L=jL,WL=NL,FL=zL;const VL="PPP",$L=r(({type:e="single",value:r,onChange:n,placeholder:o="Select date",disabled:s=!1,minDate:c,maxDate:u,className:p,label:d,error:f,required:m=!1,clearable:h=!0,format:v="PPP",variant:y="tertiary",dataTestId:g},b)=>{const[w,x]=i(!1),[O,E]=i("range"!==e||!r||r instanceof Date?void 0:r);a(()=>{"range"!==e||!r||r instanceof Date||E(r)},[r,e]);const k=l(t=>{if(t.preventDefault(),t.stopPropagation(),"single"===e)n?.(void 0);else{const e={from:void 0,to:void 0};n?.(e),E(e)}x(!1)},[n,e]),j=l(()=>{if(!r)return"";if("single"===e&&r instanceof Date)return Aj(r,v);if("range"===e&&!(r instanceof Date)){const e=r;if(e.from){if(e.to){const t=Aj(e.from,"MMM d"),r=Aj(e.to,"MMM d"),n=Aj(e.from,"yyyy"),o=Aj(e.to,"yyyy");return n===o?`${t} - ${r}, ${n}`:`${t}, ${n} - ${r}, ${o}`}return Aj(e.from,v)}}return""},[r,e,v]),P=l(e=>{if(!e)return E(void 0),void n?.(void 0);if(e instanceof Date)return n?.(e),void x(!1);const t={from:e.from,to:e.to};!e.from||e.from&&e.to?(E(t),n?.(t),e.from&&e.to&&x(!1)):E(t)},[n]),S=l(()=>{const o={initialFocus:!0,disabled:e=>!!s||(!!(c&&e<c)||!!(u&&e>u)),classNames:{months:Be("flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0","sm:divide-x sm:divide-border"),month:Be("space-y-4","first:pr-2 last:pl-2"),caption:"flex justify-center pt-1 relative items-center h-10",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Be("h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","border border-border rounded-md hover:bg-accent","flex items-center justify-center transition-colors"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:Be("text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]","flex items-center justify-center"),row:"flex w-full mt-2",cell:Be("relative p-0 text-center text-sm focus-within:relative focus-within:z-20","h-9 w-9 p-0","group","[&:has([aria-selected].day-range-start)]:rounded-l-md [&:has([aria-selected].day-range-start)]:bg-primary","[&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-range-end)]:bg-primary","[&:has([aria-selected])]:bg-primary/30","[&:has([aria-selected].day-range-middle)]:bg-primary/10"),day:Be("h-9 w-9 p-0 font-normal","aria-selected:opacity-100","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:rounded-md","data-today:bg-accent/30 data-today:text-accent-foreground","rounded-md transition-colors","flex items-center justify-center","day-range-middle:bg-primary/10","day-range-start:bg-primary day-range-start:text-primary-foreground","day-range-end:bg-primary day-range-end:text-primary-foreground"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_range_middle:"day-range-middle",day_selected:Be("bg-primary text-primary-foreground","hover:bg-primary/90","focus:bg-primary focus:text-primary-foreground"),day_today:"bg-accent/30 text-accent-foreground",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_hidden:"invisible"}},i=e=>t.createElement("div",{className:"relative"},e,h&&r&&t.createElement("button",{type:"button",onClick:k,className:Be("absolute top-2 right-2","p-1.5 rounded-md","bg-white/90 backdrop-blur-xs","hover:bg-accent/80 hover:text-destructive","focus:outline-hidden focus:ring-2 focus:ring-primary","transition-all duration-200","shadow-xs","z-50"),"aria-label":"Clear date selection"},t.createElement(it,{className:"h-4 w-4"})));return i("single"===e?t.createElement(wS,{mode:"single",selected:r instanceof Date?r:void 0,onSelect:e=>{n?.(e),e&&x(!1)},...o}):t.createElement(wS,{mode:"range",selected:O,onSelect:P,numberOfMonths:2,...o}))},[e,r,n,O,P,s,c,u,h,k]);return t.createElement("div",{ref:b,className:"relative w-full","data-testid":g},d&&t.createElement("div",{className:Be("mb-2 text-sm font-medium",f&&"text-destructive")},d,m&&t.createElement("span",{className:"text-destructive ml-1"},"*")),t.createElement(BL,{open:w,onOpenChange:x},t.createElement("div",{className:"relative"},t.createElement(_L,{asChild:!0},t.createElement(st,{variant:y,className:Be("w-full","inline-flex items-center","py-2 px-3","border border-input","hover:bg-accent/50","focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-primary",!r&&"text-muted-foreground",f&&"border-destructive focus:ring-destructive","transition-all duration-200","sm:text-sm md:text-base",p),disabled:s},t.createElement("div",{className:"inline-flex items-center gap-2 w-full pr-8"},t.createElement(Ue,{className:"h-4 w-4 shrink-0"}),t.createElement("span",{className:"truncate flex-1 text-left","data-testid":"date-display"},j()||o)))),h&&r&&!w&&t.createElement("button",{type:"button",onClick:k,className:Be("absolute right-2 top-1/2 -translate-y-1/2","p-1 rounded-md","hover:bg-accent/80","focus:outline-hidden focus:ring-2 focus:ring-primary","transition-all duration-200","z-10"),"aria-label":"Clear date","data-testid":"clear-button"},t.createElement(it,{className:"h-4 w-4 hover:text-destructive transition-colors"}))),t.createElement(WL,null,t.createElement(FL,{className:Be("z-50 rounded-lg border bg-popover p-3","shadow-lg ring-1 ring-black ring-opacity-5","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","w-auto min-w-[280px]","range"===e?"sm:min-w-[600px]":"sm:min-w-[320px]","max-w-[95vw]"),align:"start",sideOffset:4},t.createElement("div",{className:"w-full overflow-hidden"},t.createElement("div",{className:Be("w-full","range"===e&&"overflow-x-auto")},S()))))),f&&t.createElement("p",{className:"mt-2 text-sm text-destructive"},f))});$L.displayName="DatePicker";const HL=t.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}),qL=()=>{const e=t.useContext(HL);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};function UL(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function YL(){return XL(/^iPad/)||XL(/^Mac/)&&navigator.maxTouchPoints>1}function GL(){return XL(/^iPhone/)||YL()}function XL(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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 KL="undefined"!=typeof window?d:a;function ZL(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}const QL="undefined"!=typeof document&&window.visualViewport;function JL(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function eM(e){for(JL(e)&&(e=e.parentElement);e&&!JL(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const tM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let rM,nM=0;function oM(e={}){let{isDisabled:t}=e;KL(()=>{if(!t)return nM++,1===nM&&GL()&&(rM=function(){let e,t=0,r=r=>{e=eM(r.target),e===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY)},n=r=>{if(!e||e===document.documentElement||e===document.body)return void r.preventDefault();let n=r.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&n>t||o>=i&&n<t)&&r.preventDefault(),t=n)},o=e=>{let t=e.target;sM(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},i=e=>{let t=e.target;sM(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",QL&&(QL.height<window.innerHeight?requestAnimationFrame(()=>{aM(t)}):QL.addEventListener("resize",()=>aM(t),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=ZL(function(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let u=ZL(iM(document,"touchstart",r,{passive:!1,capture:!0}),iM(document,"touchmove",n,{passive:!1,capture:!0}),iM(document,"touchend",o,{passive:!1,capture:!0}),iM(document,"focus",i,!0),iM(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}()),()=>{nM--,0===nM&&(null==rM||rM())}},[t])}function iM(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function aM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=eM(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=n-r)}e=t.parentElement}}function sM(e){return e instanceof HTMLInputElement&&!tM.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lM(...t){return e.useCallback(function(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}(...t),t)}const cM=new WeakMap;function uM(e,t,r=!1){if(!(e&&e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([t,r])=>{t.startsWith("--")?e.style.setProperty(t,r):(n[t]=e.style[t],e.style[t]=r)}),r||cM.set(e,n)}const pM=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function dM(e,t){if(!e)return null;const r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform;let o=n.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[pM(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[pM(t)?5:4]):null)}function fM(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}const mM={DURATION:.5,EASE:[.32,.72,0,1]},hM=16,vM="vaul-dragging";function yM(e){const r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>null==r.current?void 0:r.current.call(r,...e),[])}function gM({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,i]=function({defaultProp:e,onChange:r}){const n=t.useState(e),[o]=n,i=t.useRef(o),a=yM(r);return t.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:r,onChange:n}),a=void 0!==e,s=a?e:o,l=yM(n),c=t.useCallback(t=>{if(a){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)},[a,e,i,l]);return[s,c]}let bM=null;const wM=t.forwardRef(function({...e},r){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:a,isOpen:s,modal:l,shouldAnimate:c}=qL(),u=lM(r,n),p=o&&o.length>0;if(!l)return null;const d=t.useCallback(e=>i(e),[i]);return t.createElement(YN,{onMouseUp:d,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":s&&p?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":(null==c?void 0:c.current)?"true":"false",...e})});wM.displayName="Drawer.Overlay";const xM=t.forwardRef(function({onPointerDownOutside:e,style:r,onOpenAutoFocus:n,...o},i){const{drawerRef:a,onPress:l,onRelease:c,onDrag:u,keyboardIsOpen:p,snapPointsOffset:d,activeSnapPointIndex:f,modal:m,isOpen:h,direction:v,snapPoints:y,container:g,handleOnly:b,shouldAnimate:w,autoFocus:x}=qL(),[O,E]=t.useState(!1),k=lM(i,a),j=t.useRef(null),P=t.useRef(null),S=t.useRef(!1),C=y&&y.length>0;!function(){const{direction:e,isOpen:r,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=qL(),a=t.useRef(null),l=s(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-26)/window.innerWidth}t.useEffect(()=>{if(r&&n){a.current&&clearTimeout(a.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;o&&!i&&fM(document.body,{background:"black"}),fM(t,{transformOrigin:pM(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${mM.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mM.EASE.join(",")})`});const r=fM(t,{borderRadius:"8px",overflow:"hidden",...pM(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()=>{r(),a.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},1e3*mM.DURATION)}}},[r,n,l])}();function N(e){j.current=null,S.current=!1,c(e)}return t.useEffect(()=>{C&&window.requestAnimationFrame(()=>{E(!0)})},[]),t.createElement(GN,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":O?"true":"false","data-vaul-snap-points":h&&C?"true":"false","data-vaul-custom-container":g?"true":"false","data-vaul-animate":(null==w?void 0:w.current)?"true":"false",...o,ref:k,style:d&&d.length>0?{"--snap-point-height":`${d[null!=f?f:0]}px`,...r}:r,onPointerDown:e=>{b||(null==o.onPointerDown||o.onPointerDown.call(o,e),j.current={x:e.pageX,y:e.pageY},l(e))},onOpenAutoFocus:e=>{null==n||n(e),x||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),m&&!t.defaultPrevented?p.current&&(p.current=!1):t.preventDefault()},onFocusOutside:e=>{m||e.preventDefault()},onPointerMove:e=>{if(P.current=e,b)return;if(null==o.onPointerMove||o.onPointerMove.call(o,e),!j.current)return;const t=e.pageY-j.current.y,r=e.pageX-j.current.x,n="touch"===e.pointerType?10:2,i=((e,t,r=0)=>{if(S.current)return!0;const n=Math.abs(e.y),o=Math.abs(e.x),i=o>n,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=r)return i}else if(!(e.y*a<0)&&n>=0&&n<=r)return!i;return S.current=!0,!0})({x:r,y:t},v,n);i?u(e):(Math.abs(r)>n||Math.abs(t)>n)&&(j.current=null)},onPointerUp:e=>{null==o.onPointerUp||o.onPointerUp.call(o,e),j.current=null,S.current=!1,c(e)},onPointerOut:e=>{null==o.onPointerOut||o.onPointerOut.call(o,e),N(P.current)},onContextMenu:e=>{null==o.onContextMenu||o.onContextMenu.call(o,e),P.current&&N(P.current)}})});xM.displayName="Drawer.Content";const OM=t.forwardRef(function({preventCycle:e=!1,children:r,...n},o){const{closeDrawer:i,isDragging:a,snapPoints:s,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:p,isOpen:d,onPress:f,onDrag:m}=qL(),h=t.useRef(null),v=t.useRef(!1);function y(){h.current&&window.clearTimeout(h.current),v.current=!1}return t.createElement("div",{onClick:function(){v.current?y():window.setTimeout(()=>{!function(){if(a||e||v.current)return void y();if(y(),!s||0===s.length)return void(u||i());if(l===s[s.length-1]&&u)return void i();const t=s.findIndex(e=>e===l);if(-1===t)return;const r=s[t+1];c(r)}()},120)},onPointerCancel:y,onPointerDown:e=>{p&&f(e),h.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{p&&m(e)},ref:o,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},t.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});OM.displayName="Drawer.Handle";const EM={Root:function({open:e,onOpenChange:r,children:n,onDrag:o,onRelease:i,snapPoints:a,shouldScaleBackground:s=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=.25,scrollLockTimeout:u=100,dismissible:p=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:m,setActiveSnapPoint:h,fixed:v,modal:y=!0,onClose:g,nested:b,noBodyStyles:w=!1,direction:x="bottom",defaultOpen:O=!1,disablePreventScroll:E=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:j=!1,repositionInputs:P=!0,onAnimationEnd:S,container:C,autoFocus:N=!1}){var T,z;const[L=!1,M]=gM({defaultProp:O,prop:e,onChange:e=>{null==r||r(e),e||b||ue(),setTimeout(()=>{null==S||S(e)},1e3*mM.DURATION),e&&!y&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[D,A]=t.useState(!1),[R,I]=t.useState(!1),[B,_]=t.useState(!1),W=t.useRef(null),F=t.useRef(null),V=t.useRef(null),$=t.useRef(null),H=t.useRef(null),q=t.useRef(!1),U=t.useRef(null),Y=t.useRef(0),G=t.useRef(!1),X=t.useRef(!O),K=t.useRef(0),Z=t.useRef(null),Q=t.useRef((null==(T=Z.current)?void 0:T.getBoundingClientRect().height)||0),J=t.useRef((null==(z=Z.current)?void 0:z.getBoundingClientRect().width)||0),ee=t.useRef(0),te=t.useCallback(e=>{a&&e===ae.length-1&&(F.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ne,setActiveSnapPoint:oe,onRelease:ie,snapPointsOffset:ae,onDrag:se,shouldFade:le,getPercentageDragged:ce}=function({activeSnapPointProp:e,setActiveSnapPointProp:r,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[p,d]=gM({prop:e,defaultProp:null==n?void 0:n[0],onChange:r}),[f,m]=t.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);t.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const h=t.useMemo(()=>p===(null==n?void 0:n[n.length-1])||null,[n,p]),v=t.useMemo(()=>{var e;return null!=(e=null==n?void 0:n.findIndex(e=>e===p))?e:null},[n,p]),y=n&&n.length>0&&(a||0===a)&&!Number.isNaN(a)&&n[a]===p||!n,g=t.useMemo(()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.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 r="string"==typeof t;let n=0;if(r&&(n=parseInt(t,10)),pM(l)){const o=r?n:f?t*e.height:0;return f?"bottom"===l?e.height-o:-e.height+o:o}const o=r?n:f?t*e.width:0;return f?"right"===l?e.width-o:-e.width+o:o}))?t:[]},[n,f,c]),b=t.useMemo(()=>null!==v?null==g?void 0:g[v]:null,[g,v]),w=t.useCallback(e=>{var t;const r=null!=(t=null==g?void 0:g.findIndex(t=>t===e))?t:null;s(r),uM(o.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&r!==g.length-1&&void 0!==a&&r!==a&&r<a?uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"0"}):uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(r,0)])},[o.current,n,g,a,i,d]);return t.useEffect(()=>{if(p||e){var t;const r=null!=(t=null==n?void 0:n.findIndex(t=>t===e||t===p))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&w(g[r])}},[p,e,n,g,w]),{isLastSnapPoint:h,activeSnapPoint:p,shouldFade:y,getPercentageDragged:function(e,t){if(!n||"number"!=typeof v||!g||void 0===a)return null;const r=v===a-1;if(v>=a&&t)return 0;if(r&&!t)return 1;if(!y&&!r)return null;const o=r?v+1:v-1,i=r?g[o]-g[o-1]:g[o+1]-g[o],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:d,activeSnapPointIndex:v,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(void 0===a)return;const s="bottom"===l||"right"===l?(null!=b?b:0)-e:(null!=b?b:0)+e,c=0===v,p=e>0;if(v===a-1&&uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`}),!u&&r>2&&!p)return void(o?t():w(g[0]));if(!u&&r>2&&p&&g&&n)return void w(g[n.length-1]);const d=null==g?void 0:g.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),f=pM(l)?window.innerHeight:window.innerWidth;if(r>.4&&Math.abs(e)<.4*f){const e=p?1:-1;if(e>0&&h&&n)return void w(g[n.length-1]);if(c&&e<0&&o&&t(),null===v)return;return void w(g[v+e])}w(d)},onDrag:function({draggedDistance:e}){if(null===b)return;const t="bottom"===l||"right"===l?b-e:b+e;("bottom"===l||"right"===l)&&t<g[g.length-1]||("top"===l||"left"===l)&&t>g[g.length-1]||uM(o.current,{transform:pM(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}({snapPoints:a,activeSnapPointProp:m,setActiveSnapPointProp:h,drawerRef:Z,fadeFromIndex:f,overlayRef:W,onSnapPointChange:te,direction:x,container:C,snapToSequentialPoint:k});oM({isDisabled:!L||R||!y||B||!D||!P||!E});const{restorePositionSetting:ue}=function({isOpen:e,modal:r,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:a}){const[s,l]=t.useState(()=>"undefined"!=typeof window?window.location.href:""),c=t.useRef(0),u=t.useCallback(()=>{if(UL()&&null===bM&&e&&!a){bM={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:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}),300)}},[e]),p=t.useCallback(()=>{if(UL()&&null!==bM&&!a){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,bM),window.requestAnimationFrame(()=>{i&&s!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),bM=null}},[s]);return t.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),t.useEffect(()=>{if(r)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[r,p]),t.useEffect(()=>{!n&&o&&(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),r||window.setTimeout(()=>{p()},500)):p())},[e,o,s,r,n,u,p]),{restorePositionSetting:p}}({isOpen:L,modal:y,nested:null!=b&&b,hasBeenOpened:D,preventScrollRestoration:j,noBodyStyles:w});function pe(){return(window.innerWidth-26)/window.innerWidth}function de(e,t){var r;let n=e;const o=null==(r=window.getSelection())?void 0:r.toString(),i=Z.current?dM(Z.current,x):null,a=new Date;if("SELECT"===n.tagName)return!1;if(n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;if("right"===x||"left"===x)return!0;if(F.current&&a.getTime()-F.current.getTime()<500)return!1;if(null!==i&&("bottom"===x?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(H.current&&a.getTime()-H.current.getTime()<u&&0===i)return H.current=a,!1;if(t)return H.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return H.current=new Date,!1;if("dialog"===n.getAttribute("role"))return!0}n=n.parentNode}return!0}function fe(e){!function(){if(!R||!Z.current)return;Z.current.classList.remove(vM),q.current=!1,I(!1),$.current=new Date}(),null==g||g(),e||M(!1),setTimeout(()=>{a&&oe(a[0])},1e3*mM.DURATION)}function me(){if(!Z.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=dM(Z.current,x);uM(Z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`}),uM(W.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"1"}),s&&t&&t>0&&L&&uM(e,{borderRadius:"8px",overflow:"hidden",...pM(x)?{transform:`scale(${pe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${pe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${mM.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mM.EASE.join(",")})`},!0)}return t.useEffect(()=>{window.requestAnimationFrame(()=>{X.current=!0})},[]),t.useEffect(()=>{var e;function t(){if(!Z.current||!P)return;if(sM(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,r=window.innerHeight;let n=r-t;const o=Z.current.getBoundingClientRect().height||0,i=o>.8*r;ee.current||(ee.current=o);const s=Z.current.getBoundingClientRect().top;if(Math.abs(K.current-n)>60&&(G.current=!G.current),a&&a.length>0&&ae&&ne){n+=ae[ne]||0}if(K.current=n,o>t||G.current){const e=Z.current.getBoundingClientRect().height;let r=e;e>t&&(r=t-(i?s:26)),Z.current.style.height=v?e-Math.max(n,0)+"px":`${Math.max(r,t-s)}px`}else(function(){const e=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))})()||(Z.current.style.height=`${ee.current}px`);a&&a.length>0&&!G.current?Z.current.style.bottom="0px":Z.current.style.bottom=`${Math.max(n,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[ne,a,ae]),t.useEffect(()=>(L&&(uM(document.documentElement,{scrollBehavior:"auto"}),F.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let r=cM.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[L]),t.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]),t.createElement(HN,{defaultOpen:O,onOpenChange:e=>{(p||e)&&(e?A(!0):fe(!0),M(e))},open:L},t.createElement(HL.Provider,{value:{activeSnapPoint:re,snapPoints:a,setActiveSnapPoint:oe,drawerRef:Z,overlayRef:W,onOpenChange:r,onPress:function(e){var t,r;(p||a)&&(Z.current&&!Z.current.contains(e.target)||(Q.current=(null==(t=Z.current)?void 0:t.getBoundingClientRect().height)||0,J.current=(null==(r=Z.current)?void 0:r.getBoundingClientRect().width)||0,I(!0),V.current=new Date,GL()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),Y.current=pM(x)?e.pageY:e.pageX))},onRelease:function(e){if(!R||!Z.current)return;Z.current.classList.remove(vM),q.current=!1,I(!1),$.current=new Date;const t=dM(Z.current,x);if(!e||!de(e.target,!1)||!t||Number.isNaN(t))return;if(null===V.current)return;const r=$.current.getTime()-V.current.getTime(),n=Y.current-(pM(x)?e.pageY:e.pageX),o=Math.abs(n)/r;if(o>.05&&(_(!0),setTimeout(()=>{_(!1)},200)),a){return ie({draggedDistance:n*("bottom"===x||"right"===x?1:-1),closeDrawer:fe,velocity:o,dismissible:p}),void(null==i||i(e,!0))}if("bottom"===x||"right"===x?n>0:n<0)return me(),void(null==i||i(e,!0));if(o>.4)return fe(),void(null==i||i(e,!1));var s;const l=Math.min(null!=(s=Z.current.getBoundingClientRect().height)?s:0,window.innerHeight);var u;const d=Math.min(null!=(u=Z.current.getBoundingClientRect().width)?u:0,window.innerWidth),f="left"===x||"right"===x;if(Math.abs(t)>=(f?d:l)*c)return fe(),void(null==i||i(e,!1));null==i||i(e,!0),me()},onDrag:function(e){var t;if(Z.current&&R){const r="bottom"===x||"right"===x?1:-1,n=(Y.current-(pM(x)?e.pageY:e.pageX))*r,i=n>0,l=a&&!p&&!i;if(l&&0===ne)return;const c=Math.abs(n),u=document.querySelector("[data-vaul-drawer-wrapper]");let d=c/("bottom"===x||"top"===x?Q.current:J.current);const m=ce(c,i);if(null!==m&&(d=m),l&&d>=1)return;if(!q.current&&!de(e.target,i))return;if(Z.current.classList.add(vM),q.current=!0,uM(Z.current,{transition:"none"}),uM(W.current,{transition:"none"}),a&&se({draggedDistance:n}),i&&!a){const e=(t=n,8*(Math.log(t+1)-2)),o=Math.min(-1*e,0)*r;return void uM(Z.current,{transform:pM(x)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}const h=1-d;if((le||f&&ne===f-1)&&(null==o||o(e,d),uM(W.current,{opacity:`${h}`,transition:"none"},!0)),u&&W.current&&s){const e=Math.min(pe()+d*(1-pe()),1),t=8-8*d,r=Math.max(0,14-14*d);uM(u,{borderRadius:`${t}px`,transform:pM(x)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!a){const e=c*r;uM(Z.current,{transform:pM(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:p,shouldAnimate:X,handleOnly:d,isOpen:L,isDragging:R,shouldFade:le,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const r=(window.innerWidth-hM)/window.innerWidth,n=r+t*(1-r),o=t*hM-16;uM(Z.current,{transform:pM(x)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-hM)/window.innerWidth:1,r=e?-16:0;U.current&&window.clearTimeout(U.current),uM(Z.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(x)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&Z.current&&(U.current=setTimeout(()=>{const e=dM(Z.current,x);uM(Z.current,{transition:"none",transform:pM(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){const r=pM(x)?window.innerHeight:window.innerWidth,n=t?(r-hM)/r:1,o=t?-16:0;t&&uM(Z.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(x)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:y,snapPointsOffset:ae,activeSnapPointIndex:ne,direction:x,shouldScaleBackground:s,setBackgroundColorOnScale:l,noBodyStyles:w,container:C,autoFocus:N}},n))},Content:xM,Overlay:wM,Portal:function(e){const r=qL(),{container:n=r.container,...o}=e;return t.createElement(UN,{container:n,...o})},Title:XN,Description:KN},kM=({shouldScaleBackground:t=!0,...r})=>e.createElement(EM.Root,{shouldScaleBackground:t,...r});kM.displayName="Drawer";const jM=EM.Portal,PM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Overlay,{ref:n,className:Be("fixed inset-0 z-50 bg-black/80",t),...r}));PM.displayName=EM.Overlay.displayName;const SM=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(jM,null,e.createElement(PM,null),e.createElement(EM.Content,{ref:o,className:Be("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...n},e.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),r)));SM.displayName="DrawerContent";const CM=({className:t,...r})=>e.createElement("div",{className:Be("grid gap-1.5 p-4 text-center sm:text-left",t),...r});CM.displayName="DrawerHeader";const NM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Title,{ref:n,className:Be("text-lg font-semibold leading-none tracking-tight",t),...r}));NM.displayName=EM.Title.displayName;const TM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Description,{ref:n,className:Be("text-sm text-muted-foreground",t),...r}));TM.displayName=EM.Description.displayName;const zM={small:"h-64",medium:"h-80",large:"h-96",extraLarge:"h-[448px]",full:"h-screen"},LM=({children:e,isOpen:r,onClose:n,size:o="medium",title:i,description:a,showCloseButton:s=!0})=>{const l=zM[o];return t.createElement(kM,{open:r,onOpenChange:n},t.createElement(SM,{className:`fixed inset-x-0 bottom-0 ${l} bg-background`},t.createElement(CM,{className:"relative"},i?t.createElement(NM,null,i):t.createElement(NM,{className:"sr-only"},"Drawer Content"),a?t.createElement(TM,null,a):t.createElement(TM,{className:"sr-only"},i||"Drawer Content"," panel"),s&&t.createElement("button",{onClick:n,className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","aria-label":"Close drawer"},t.createElement(it,{className:"h-4 w-4"}),t.createElement("span",{className:"sr-only"},"Close"))),t.createElement("div",{className:"mt-6 px-4"},e)))},MM=m({});const DM="undefined"!=typeof window,AM=DM?d:a,RM=m(null);function IM(e,t){-1===e.indexOf(t)&&e.push(t)}function BM(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const _M=(e,t,r)=>r>t?t:r<e?e:r;function WM(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let FM=()=>{},VM=()=>{};"production"!==process.env.NODE_ENV&&(FM=(e,t,r)=>{e||"undefined"==typeof console||console.warn(WM(t,r))},VM=(e,t,r)=>{if(!e)throw new Error(WM(t,r))});const $M={},HM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qM(e){return"object"==typeof e&&null!==e}const UM=e=>/^0[^.\s]+$/u.test(e);function YM(e){let t;return()=>(void 0===t&&(t=e()),t)}const GM=e=>e,XM=(e,t)=>r=>t(e(r)),KM=(...e)=>e.reduce(XM),ZM=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n};class QM{constructor(){this.subscriptions=[]}add(e){return IM(this.subscriptions,e),()=>BM(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const JM=e=>1e3*e,eD=e=>e/1e3;function tD(e,t){return t?e*(1e3/t):0}const rD=new Set;function nD(e,t,r){e||rD.has(t)||(console.warn(WM(t,r)),rD.add(t))}const oD=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function iD(e,t,r,n){if(e===t&&r===n)return GM;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=oD(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,r);return e=>0===e||1===e?e:oD(o(e),t,n)}const aD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sD=e=>t=>1-e(1-t),lD=iD(.33,1.53,.69,.99),cD=sD(lD),uD=aD(cD),pD=e=>(e*=2)<1?.5*cD(e):.5*(2-Math.pow(2,-10*(e-1))),dD=e=>1-Math.sin(Math.acos(e)),fD=sD(dD),mD=aD(dD),hD=iD(.42,0,1,1),vD=iD(0,0,.58,1),yD=iD(.42,0,.58,1),gD=e=>Array.isArray(e)&&"number"==typeof e[0],bD={linear:GM,easeIn:hD,easeInOut:yD,easeOut:vD,circIn:dD,circInOut:mD,circOut:fD,backIn:cD,backInOut:uD,backOut:lD,anticipate:pD},wD=e=>{if(gD(e)){VM(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return iD(t,r,n,o)}return"string"==typeof e?(VM(void 0!==bD[e],`Invalid easing type '${e}'`,"invalid-easing-type"),bD[e]):e},xD=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function OD(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=xD.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{a=e,n?o=!0:(n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,o&&(o=!1,l.process(e)))}};return l}(i),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:p,preRender:d,render:f,postRender:m}=a,h=()=>{const i=$M.useManualTiming?o.timestamp:performance.now();r=!1,$M.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),p.process(o),d.process(o),f.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(h))};return{schedule:xD.reduce((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(h)),s.schedule(t,i,a)),t},{}),cancel:e=>{for(let t=0;t<xD.length;t++)a[xD[t]].cancel(e)},state:o,steps:a}}const{schedule:ED,cancel:kD,state:jD,steps:PD}=OD("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:GM,!0);let SD;function CD(){SD=void 0}const ND={now:()=>(void 0===SD&&ND.set(jD.isProcessing||$M.useManualTiming?jD.timestamp:performance.now()),SD),set:e=>{SD=e,queueMicrotask(CD)}},TD=e=>t=>"string"==typeof t&&t.startsWith(e),zD=TD("--"),LD=TD("var(--"),MD=e=>!!LD(e)&&DD.test(e.split("/*")[0].trim()),DD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,AD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},RD={...AD,transform:e=>_M(0,1,e)},ID={...AD,default:1},BD=e=>Math.round(1e5*e)/1e5,_D=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const WD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,FD=(e,t)=>r=>Boolean("string"==typeof r&&WD.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),VD=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(_D);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},$D={...AD,transform:e=>Math.round((e=>_M(0,255,e))(e))},HD={test:FD("rgb","red"),parse:VD("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+$D.transform(e)+", "+$D.transform(t)+", "+$D.transform(r)+", "+BD(RD.transform(n))+")"};const qD={test:FD("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:HD.transform},UD=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),YD=UD("deg"),GD=UD("%"),XD=UD("px"),KD=UD("vh"),ZD=UD("vw"),QD=(()=>({...GD,parse:e=>GD.parse(e)/100,transform:e=>GD.transform(100*e)}))(),JD={test:FD("hsl","hue"),parse:VD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+GD.transform(BD(t))+", "+GD.transform(BD(r))+", "+BD(RD.transform(n))+")"},eA={test:e=>HD.test(e)||qD.test(e)||JD.test(e),parse:e=>HD.test(e)?HD.parse(e):JD.test(e)?JD.parse(e):qD.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?HD.transform(e):JD.transform(e),getAnimatableNone:e=>{const t=eA.parse(e);return t.alpha=0,eA.transform(t)}},tA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const rA="number",nA="color",oA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function iA(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(oA,e=>(eA.test(e)?(n.color.push(i),o.push(nA),r.push(eA.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(rA),r.push(parseFloat(e))),++i,"${}")).split("${}");return{values:r,split:a,indexes:n,types:o}}function aA(e){return iA(e).values}function sA(e){const{split:t,types:r}=iA(e),n=t.length;return e=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],void 0!==e[i]){const t=r[i];o+=t===rA?BD(e[i]):t===nA?eA.transform(e[i]):e[i]}return o}}const lA=e=>"number"==typeof e?0:eA.test(e)?eA.getAnimatableNone(e):e;const cA={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(_D)?.length||0)+(e.match(tA)?.length||0)>0},parse:aA,createTransformer:sA,getAnimatableNone:function(e){const t=aA(e);return sA(e)(t.map(lA))}};function uA(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pA(e,t){return r=>r>0?t:e}const dA=(e,t,r)=>e+(t-e)*r,fA=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},mA=[qD,HD,JD];function hA(e){const t=(r=e,mA.find(e=>e.test(r)));var r;if(FM(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(t))return!1;let n=t.parse(e);return t===JD&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=uA(s,n,e+1/3),i=uA(s,n,e),a=uA(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const vA=(e,t)=>{const r=hA(e),n=hA(t);if(!r||!n)return pA(e,t);const o={...r};return e=>(o.red=fA(r.red,n.red,e),o.green=fA(r.green,n.green,e),o.blue=fA(r.blue,n.blue,e),o.alpha=dA(r.alpha,n.alpha,e),HD.transform(o))},yA=new Set(["none","hidden"]);function gA(e,t){return r=>dA(e,t,r)}function bA(e){return"number"==typeof e?gA:"string"==typeof e?MD(e)?pA:eA.test(e)?vA:OA:Array.isArray(e)?wA:"object"==typeof e?eA.test(e)?vA:xA:pA}function wA(e,t){const r=[...e],n=r.length,o=e.map((e,r)=>bA(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function xA(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=bA(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const OA=(e,t)=>{const r=cA.createTransformer(t),n=iA(e),o=iA(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?yA.has(e)&&!o.values.length||yA.has(t)&&!n.values.length?function(e,t){return yA.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):KM(wA(function(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][n[i]],s=e.values[a]??0;r[o]=s,n[i]++}return r}(n,o),o.values),r):(FM(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pA(e,t))};function EA(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return dA(e,t,r);return bA(e)(e,t)}const kA=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>ED.update(t,e),stop:()=>kD(t),now:()=>jD.isProcessing?jD.timestamp:ND.now()}},jA=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let t=0;t<o;t++)n+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},PA=2e4;function SA(e){let t=0;let r=e.next(t);for(;!r.done&&t<PA;)t+=50,r=e.next(t);return t>=PA?1/0:t}function CA(e,t,r){const n=Math.max(t-5,0);return tD(r-e(n),t-n)}const NA=100,TA=10,zA=1,LA=0,MA=800,DA=.3,AA=.3,RA={granular:.01,default:2},IA={granular:.005,default:.5},BA=.01,_A=10,WA=.05,FA=1,VA=.001;function $A({duration:e=MA,bounce:t=DA,velocity:r=LA,mass:n=zA}){let o,i;FM(e<=JM(_A),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=_M(WA,FA,a),e=_M(BA,_A,eD(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=qA(t,a),l=Math.exp(-o);return VA-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=qA(Math.pow(t,2),a);return(-o(t)+VA>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<HA;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=JM(e),isNaN(s))return{stiffness:NA,damping:TA,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const HA=12;function qA(e,t){return e*Math.sqrt(1-t*t)}const UA=["duration","bounce"],YA=["stiffness","damping","mass"];function GA(e,t){return t.some(t=>void 0!==e[t])}function XA(e=AA,t=DA){const r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:p,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:LA,stiffness:NA,damping:TA,mass:zA,isResolvedFromDuration:!1,...e};if(!GA(e,YA)&&GA(e,UA))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*_M(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:zA,stiffness:o,damping:i}}else{const r=$A(e);t={...t,...r,mass:zA},t.isResolvedFromDuration=!0}return t}({...r,velocity:-eD(r.velocity||0)}),m=d||0,h=c/(2*Math.sqrt(l*u)),v=a-i,y=eD(Math.sqrt(l/u)),g=Math.abs(v)<5;let b;if(n||(n=g?RA.granular:RA.default),o||(o=g?IA.granular:IA.default),h<1){const e=qA(y,h);b=t=>{const r=Math.exp(-h*y*t);return a-r*((m+h*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===h)b=e=>a-Math.exp(-y*e)*(v+(m+y*v)*e);else{const e=y*Math.sqrt(h*h-1);b=t=>{const r=Math.exp(-h*y*t),n=Math.min(e*t,300);return a-r*((m+h*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}const w={calculatedDuration:f&&p||null,next:e=>{const t=b(e);if(f)s.done=e>=p;else{let r=0===e?m:0;h<1&&(r=0===e?JM(m):CA(b,e,t));const i=Math.abs(r)<=n,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(SA(w),PA),t=jA(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function KA({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const p=e[0],d={done:!1,value:p},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=r*t;const h=p+m,v=void 0===a?h:a(h);v!==h&&(m=v-p);const y=e=>-m*Math.exp(-e/n),g=e=>v+y(e),b=e=>{const t=y(e),r=g(e);d.done=Math.abs(t)<=c,d.value=d.done?v:r};let w,x;const O=e=>{var t;(t=d.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=XA({keyframes:[d.value,f(d.value)],velocity:CA(g,e,d.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return O(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),O(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),d)}}}function ZA(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(VM(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,r){const n=[],o=r||$M.mix||EA,i=e.length-1;for(let r=0;r<i;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||GM:t;i=KM(e,i)}n.push(i)}return n}(t,n,o),l=s.length,c=r=>{if(a&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);const o=ZM(e[n],e[n+1],r);return s[n](o)};return r?t=>c(_M(e[0],e[i-1],t)):c}function QA(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ZM(0,t,n);e.push(dA(r,1,o))}}(t,e.length-1),t}function JA({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(wD):wD(n),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:QA(t),e),s=ZA(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||yD).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}XA.applyToOptions=e=>{const t=function(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(SA(n),PA);return{type:"keyframes",ease:e=>n.next(o*e).value/t,duration:eD(o)}}(e,100,XA);return e.ease=t.ease,e.duration=JM(t.duration),e.type="keyframes",e};const eR=e=>null!==e;function tR(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(eR),a=o<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return a&&void 0!==n?n:i[a]}const rR={decay:KA,inertia:KA,tween:JA,keyframes:JA,spring:XA};function nR(e){"string"==typeof e.type&&(e.type=rR[e.type])}class oR{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const iR=e=>e/100;class aR extends oR{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==ND.now()&&this.tick(ND.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;nR(e);const{type:t=JA,repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||JA;"production"!==process.env.NODE_ENV&&s!==JA&&VM(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),s!==JA&&"number"!=typeof a[0]&&(this.mixKeyframes=KM(iR,EA(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===o&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=SA(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:r,totalDuration:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return r.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:p,repeatDelay:d,type:f,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let g=this.currentTime,b=r;if(u){const e=Math.min(this.currentTime,n)/a;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,u+1);Boolean(t%2)&&("reverse"===p?(r=1-r,d&&(r-=d/a)):"mirror"===p&&(b=i)),g=_M(0,1,r)*a}const w=y?{done:!1,value:c[0]}:b.next(g);o&&(w.value=o(w.value));let{done:x}=w;y||null===s||(x=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const O=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return O&&f!==KA&&(w.value=tR(c,this.options,h,this.speed)),m&&m(w.value),O&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return eD(this.calculatedDuration)}get time(){return eD(this.currentTime)}set time(e){e=JM(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ND.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=eD(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=kA,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ND.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const sR=e=>180*e/Math.PI,lR=e=>{const t=sR(Math.atan2(e[1],e[0]));return uR(t)},cR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lR,rotateZ:lR,skewX:e=>sR(Math.atan(e[1])),skewY:e=>sR(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uR=e=>((e%=360)<0&&(e+=360),e),pR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pR,scaleY:dR,scale:e=>(pR(e)+dR(e))/2,rotateX:e=>uR(sR(Math.atan2(e[6],e[5]))),rotateY:e=>uR(sR(Math.atan2(-e[2],e[0]))),rotateZ:lR,rotate:lR,skewX:e=>sR(Math.atan(e[4])),skewY:e=>sR(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mR(e){return e.includes("scale")?1:0}function hR(e,t){if(!e||"none"===e)return mR(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=fR,o=r;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=cR,o=t}if(!o)return mR(t);const i=n[t],a=o[1].split(",").map(vR);return"function"==typeof i?i(a):a[i]}function vR(e){return parseFloat(e.trim())}const yR=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gR=(()=>new Set(yR))(),bR=e=>e===AD||e===XD,wR=new Set(["x","y","z"]),xR=yR.filter(e=>!wR.has(e));const OR={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>hR(t,"x"),y:(e,{transform:t})=>hR(t,"y")};OR.translateX=OR.x,OR.translateY=OR.y;const ER=new Set;let kR=!1,jR=!1,PR=!1;function SR(){if(jR){const e=Array.from(ER).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{const t=function(e){const t=[];return xR.forEach(r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}jR=!1,kR=!1,ER.forEach(e=>e.complete(PR)),ER.clear()}function CR(){ER.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jR=!0)})}class NR{constructor(e,t,r,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(ER.add(this),kR||(kR=!0,ED.read(CR),ED.resolveKeyframes(SR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){const o=n?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){const n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ER.delete(this)}cancel(){"scheduled"===this.state&&(ER.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const TR=YM(()=>void 0!==window.ScrollTimeline),zR={};function LR(e,t){const r=YM(e);return()=>zR[t]??r()}const MR=LR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),DR=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,AR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:DR([0,.65,.55,1]),circOut:DR([.55,0,1,.45]),backIn:DR([.31,.01,.66,-.59]),backOut:DR([.33,1.53,.69,.99])};function RR(e,t){return e?"function"==typeof e?MR()?jA(e,t):"ease-out":gD(e)?DR(e):Array.isArray(e)?e.map(e=>RR(e,t)||AR.easeOut):AR[e]:void 0}function IR(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const p=RR(s,o);Array.isArray(p)&&(u.easing=p);const d={delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(d.pseudoElement=c);return e.animate(u,d)}function BR(e){return"function"==typeof e&&"applyToOptions"in e}class _R extends oR{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,VM("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return BR(e)&&MR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=IR(t,r,n,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=tR(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,r){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,r):e.style[t]=r}(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return eD(Number(e))}get time(){return eD(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=JM(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&TR()?(this.animation.timeline=e,GM):t(this)}}const WR={anticipate:pD,backInOut:uD,circInOut:mD};function FR(e){"string"==typeof e.ease&&e.ease in WR&&(e.ease=WR[e.ease])}class VR extends _R{constructor(e){FR(e),nR(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:r,onComplete:n,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new aR({...i,autoplay:!1}),s=JM(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const $R=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!cA.test(e)&&"0"!==e||e.startsWith("url(")));function HR(e){e.duration=0,e.type}const qR=new Set(["opacity","clipPath","filter","transform"]),UR=YM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class YR extends oR{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ND.now();const p={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,name:s,motionValue:l,element:c,...u},d=c?.KeyframeResolver||NR;this.keyframeResolver=new d(a,(e,t,r)=>this.onKeyframesResolved(e,t,p,!r),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:s,isHandoff:l,onUpdate:c}=r;this.resolvedAt=ND.now(),function(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=$R(o,t),s=$R(i,t);return FM(a===s,`You are trying to animate ${t} from "${o}" to "${i}". "${a?i:o}" is not an animatable value.`,"value-not-animatable"),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||BR(r))&&n)}(e,o,i,a)||(!$M.instantAnimations&&s||c?.(tR(e,r,t)),e[0]=e[e.length-1],HR(r),r.repeat=0);const u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=!l&&function(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return UR()&&r&&qR.has(r)&&("transform"!==r||!c)&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new VR({...u,element:u.motionValue.owner.current}):new aR(u);p.finished.then(()=>this.notifyFinished()).catch(GM),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),PR=!0,CR(),SR(),PR=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const GR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XR(e,t,r=1){VM(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=function(e){const t=GR.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return HM(e)?parseFloat(e):e}return MD(o)?XR(o,t,r+1):o}function KR(e,t){return e?.[t]??e?.default??e}const ZR=new Set(["width","height","top","left","right","bottom",...yR]),QR=e=>t=>t.test(e),JR=[AD,XD,GD,YD,ZD,KD,{test:e=>"auto"===e,parse:e=>e}],eI=e=>JR.find(QR(e));function tI(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||UM(e))}const rI=new Set(["brightness","contrast","saturate","opacity"]);function nI(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(_D)||[];if(!n)return e;const o=r.replace(n,"");let i=rI.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const oI=/\b([a-z-]*)\(.*?\)/gu,iI={...cA,getAnimatableNone:e=>{const t=e.match(oI);return t?t.map(nI).join(" "):e}},aI={...AD,transform:Math.round},sI={borderWidth:XD,borderTopWidth:XD,borderRightWidth:XD,borderBottomWidth:XD,borderLeftWidth:XD,borderRadius:XD,radius:XD,borderTopLeftRadius:XD,borderTopRightRadius:XD,borderBottomRightRadius:XD,borderBottomLeftRadius:XD,width:XD,maxWidth:XD,height:XD,maxHeight:XD,top:XD,right:XD,bottom:XD,left:XD,padding:XD,paddingTop:XD,paddingRight:XD,paddingBottom:XD,paddingLeft:XD,margin:XD,marginTop:XD,marginRight:XD,marginBottom:XD,marginLeft:XD,backgroundPositionX:XD,backgroundPositionY:XD,...{rotate:YD,rotateX:YD,rotateY:YD,rotateZ:YD,scale:ID,scaleX:ID,scaleY:ID,scaleZ:ID,skew:YD,skewX:YD,skewY:YD,distance:XD,translateX:XD,translateY:XD,translateZ:XD,x:XD,y:XD,z:XD,perspective:XD,transformPerspective:XD,opacity:RD,originX:QD,originY:QD,originZ:XD},zIndex:aI,fillOpacity:RD,strokeOpacity:RD,numOctaves:aI},lI={...sI,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:iI,WebkitFilter:iI},cI=e=>lI[e];function uI(e,t){let r=cI(e);return r!==iI&&(r=cA),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const pI=new Set(["auto","none","0"]);class dI extends NR{constructor(e,t,r,n,o){super(e,t,r,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),MD(n))){const o=XR(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ZR.has(r)||2!==e.length)return;const[n,o]=e,i=eI(n),a=eI(o);if(i!==a)if(bR(i)&&bR(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else OR[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||tI(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){const t=e[o];"string"==typeof t&&!pI.has(t)&&iA(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=uI(r,n)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=OR[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=OR[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}const fI=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class mI{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=ND.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ND.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&nD(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new QM);const r=this.events[e].add(t);return"change"===e?()=>{r(),ED.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ND.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tD(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hI(e,t){return new mI(e,t)}const{schedule:vI}=OD(queueMicrotask,!1),yI={x:!1,y:!1};function gI(){return yI.x||yI.y}function bI(e,t){const r=function(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const n=r?.[e]??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function wI(e){return!("touch"===e.pointerType||gI())}const xI=(e,t)=>!!t&&(e===t||xI(e,t.parentElement)),OI=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,EI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const kI=new WeakSet;function jI(e){return t=>{"Enter"===t.key&&e(t)}}function PI(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function SI(e){return OI(e)&&!gI()}function CI(e,t,r={}){const[n,o,i]=bI(e,r),a=e=>{const n=e.currentTarget;if(!SI(e))return;kI.add(n);const i=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),kI.has(n)&&kI.delete(n),SI(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,n===window||n===document||r.useGlobalTarget||xI(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return n.forEach(e=>{var t;(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),qM(t=e)&&"offsetHeight"in t&&(e.addEventListener("focus",e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=jI(()=>{if(kI.has(r))return;PI(r,"down");const e=jI(()=>{PI(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>PI(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,o)),function(e){return EI.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function NI(e){return qM(e)&&"ownerSVGElement"in e}const TI=e=>Boolean(e&&e.getVelocity),zI=[...JR,eA,cA],LI=m({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});const MI=m({strict:!1}),DI={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},AI={};for(const e in DI)AI[e]={isEnabled:t=>DI[e].some(e=>!!t[e])};const RI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function II(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RI.has(e)}let BI=e=>!II(e);try{"function"==typeof(_I=require("@emotion/is-prop-valid").default)&&(BI=e=>e.startsWith("on")?!II(e):_I(e))}catch{}var _I;const WI=m({});function FI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function VI(e){return"string"==typeof e||Array.isArray(e)}const $I=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HI=["initial",...$I];function qI(e){return FI(e.animate)||HI.some(t=>VI(e[t]))}function UI(e){return Boolean(qI(e)||e.variants)}function YI(e){const{initial:t,animate:r}=function(e,t){if(qI(e)){const{initial:t,animate:r}=e;return{initial:!1===t||VI(t)?t:void 0,animate:VI(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,h(WI));return s(()=>({initial:t,animate:r}),[GI(t),GI(r)])}function GI(e){return Array.isArray(e)?e.join(" "):e}const XI={};function KI(e,{layout:t,layoutId:r}){return gR.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!XI[e]||"opacity"===e)}const ZI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QI=yR.length;function JI(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const r=t[e];if(gR.has(e))a=!0;else if(zD(e))o[e]=r;else{const t=fI(r,sI[e]);e.startsWith("origin")?(s=!0,i[e]=t):n[e]=t}}if(t.transform||(a||r?n.transform=function(e,t,r){let n="",o=!0;for(let i=0;i<QI;i++){const a=yR[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||r){const e=fI(s,sI[a]);l||(o=!1,n+=`${ZI[a]||a}(${e}) `),r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:r=0}=i;n.transformOrigin=`${e} ${t} ${r}`}}const eB=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tB(e,t,r){for(const n in t)TI(t[n])||KI(n,r)||(e[n]=t[n])}function rB(e,t){const r={};return tB(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t){return s(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return JI(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),r}function nB(e,t){const r={},n=rB(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const oB={offset:"stroke-dashoffset",array:"stroke-dasharray"},iB={offset:"strokeDashoffset",array:"strokeDasharray"};function aB(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(JI(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:d}=e;p.transform&&(d.transform=p.transform,delete p.transform),(d.transform||p.transformOrigin)&&(d.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete p.transformBox),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==o&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?oB:iB;e[i.offset]=XD.transform(-n);const a=XD.transform(t),s=XD.transform(r);e[i.array]=`${a} ${s}`}(p,o,i,a,!1)}const sB=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),lB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cB(e,t,r,n){const o=s(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return aB(r,t,lB(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const t={};tB(t,e.style,e),o.style={...t,...o.style}}return o}const uB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pB(e){return"string"==typeof e&&!e.includes("-")&&!!(uB.indexOf(e)>-1||/[A-Z]/u.test(e))}function dB(e,t,r,{latestValues:o},i,a=!1){const l=(pB(e)?cB:nB)(t,o,i,e),c=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(BI(o)||!0===r&&II(o)||!t&&!II(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(t,"string"==typeof e,a),u=e!==y?{...c,...l,ref:r}:{},{children:p}=t,d=s(()=>TI(p)?p.get():p,[p]);return n(e,{...u,children:d})}function fB(e){const t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function mB(e,t,r,n){if("function"==typeof t){const[o,i]=fB(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=fB(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function hB(e){return TI(e)?e.get():e}function vB(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=hB(i[e]);let{initial:a,animate:s}=e;const l=qI(e),c=UI(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const p=u?s:a;if(p&&"boolean"!=typeof p&&!FI(p)){const t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){const n=mB(e,t[r]);if(n){const{transitionEnd:e,transition:t,...r}=n;for(const e in r){let t=r[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const yB=e=>(t,r)=>{const n=h(WI),o=h(RM),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:vB(r,n,o,e),renderState:t()}}(e,t,n,o);return r?i():function(e){const t=c(null);return null===t.current&&(t.current=e()),t.current}(i)};function gB(e,t,r){const{style:n}=e,o={};for(const i in n)(TI(n[i])||t.style&&TI(t.style[i])||KI(i,e)||void 0!==r?.getValue(i)?.liveStyle)&&(o[i]=n[i]);return o}const bB=yB({scrapeMotionValuesFromProps:gB,createRenderState:eB});function wB(e,t,r){const n=gB(e,t,r);for(const r in e)if(TI(e[r])||TI(t[r])){n[-1!==yR.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}const xB=yB({scrapeMotionValuesFromProps:wB,createRenderState:sB}),OB=Symbol.for("motionComponentSymbol");function EB(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function kB(e,t,r){return l(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):EB(r)&&(r.current=n))},[t])}const jB=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),PB="data-"+jB("framerAppearId"),SB=m({});function CB(e,t,r,n,o){const{visualElement:i}=h(WI),s=h(MI),l=h(RM),u=h(LI).reducedMotion,p=c(null);n=n||s.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:i,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const d=p.current,f=h(SB);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:NB(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&EB(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}(p.current,r,o,f);const m=c(!1);b(()=>{d&&m.current&&d.update(r,l)});const v=r[PB],y=c(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return AM(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),a(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),d.enteringChildren=void 0)}),d}function NB(e){if(e)return!1!==e.options.allowProjection?e.projection:NB(e.parent)}function TB(e,{forwardMotionProps:t=!1}={},n,o){n&&function(e){for(const t in e)AI[t]={...AI[t],...e[t]}}(n);const i=pB(e)?xB:bB;function a(r,a){let s;const l={...h(LI),...r,layoutId:zB(r)},{isStatic:c}=l,u=YI(r),p=i(r,c);if(!c&&DM){!function(e,t){const r=h(MI).strict;if("production"!==process.env.NODE_ENV&&t&&r){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?FM(!1,t,"lazy-strict-mode"):VM(!1,t,"lazy-strict-mode")}}(l,n);const t=function(e){const{drag:t,layout:r}=AI;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);s=t.MeasureLayout,u.visualElement=CB(e,p,l,o,t.ProjectionNode)}return j(WI.Provider,{value:u,children:[s&&u.visualElement?E(s,{visualElement:u.visualElement,...l}):null,dB(e,r,kB(p,u.visualElement,a),p,c,t)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const s=r(a);return s[OB]=e,s}function zB({layoutId:e}){const t=h(MM).id;return t&&void 0!==e?t+"-"+e:e}function LB(e,t){if("undefined"==typeof Proxy)return TB;const r=new Map,n=(r,n)=>TB(r,n,e,t);return new Proxy((e,t)=>("production"!==process.env.NODE_ENV&&nD(!1,"motion() is deprecated. Use motion.create() instead."),n(e,t)),{get:(o,i)=>"create"===i?n:(r.has(i)||r.set(i,TB(i,void 0,e,t)),r.get(i))})}function MB({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function DB(e){return void 0===e||1===e}function AB({scale:e,scaleX:t,scaleY:r}){return!DB(e)||!DB(t)||!DB(r)}function RB(e){return AB(e)||IB(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function IB(e){return BB(e.x)||BB(e.y)}function BB(e){return e&&"0%"!==e}function _B(e,t,r){return r+t*(e-r)}function WB(e,t,r,n,o){return void 0!==o&&(e=_B(e,o,n)),_B(e,r,n)+t}function FB(e,t=0,r=1,n,o){e.min=WB(e.min,t,r,n,o),e.max=WB(e.max,t,r,n,o)}function VB(e,{x:t,y:r}){FB(e.x,t.translate,t.scale,t.originPoint),FB(e.y,r.translate,r.scale,r.originPoint)}const $B=.999999999999,HB=1.0000000000001;function qB(e,t){e.min=e.min+t,e.max=e.max+t}function UB(e,t,r,n,o=.5){FB(e,t,r,dA(e.min,e.max,o),n)}function YB(e,t){UB(e.x,t.x,t.scaleX,t.scale,t.originX),UB(e.y,t.y,t.scaleY,t.scale,t.originY)}function GB(e,t){return MB(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const XB=()=>({x:{min:0,max:0},y:{min:0,max:0}}),KB={current:null},ZB={current:!1};const QB=new WeakMap;const JB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class e_{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=NR,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=ND.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ED.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=qI(t),this.isVariantNode=UI(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&TI(t)&&t.set(s[e])}}mount(e){this.current=e,QB.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ZB.current||function(){if(ZB.current=!0,DM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>KB.current=e.matches;e.addEventListener("change",t),t()}else KB.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||KB.current),"production"!==process.env.NODE_ENV&&nD(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),kD(this.notifyUpdate),kD(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=gR.has(e);r&&this.onBindTransform&&this.onBindTransform();const n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ED.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in AI){const t=AI[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<JB.length;t++){const r=JB[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(const n in t){const o=t[n],i=r[n];if(TI(o))e.addValue(n,o);else if(TI(i))e.addValue(n,hI(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(n);e.addValue(n,hI(void 0!==t?t:o,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=hI(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var n;return null!=r&&("string"==typeof r&&(HM(r)||UM(r))?r=parseFloat(r):(n=r,!zI.find(QR(n))&&cA.test(t)&&(r=uI(e,t))),this.setBaseTarget(e,TI(r)?r.get():r)),TI(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let r;if("string"==typeof t||"object"==typeof t){const n=mB(this.props,t,this.presenceContext?.custom);n&&(r=n[e])}if(t&&void 0!==r)return r;const n=this.getBaseTargetFromProps(this.props,e);return void 0===n||TI(n)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new QM),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){vI.render(this.render)}}class t_ extends e_{constructor(){super(...arguments),this.KeyframeResolver=dI}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;TI(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function r_(e,{style:t,vars:r},n,o){const i=e.style;let a;for(a in t)i[a]=t[a];for(a in o?.applyProjectionStyles(i,n),r)i.setProperty(a,r[a])}class n_ extends t_{constructor(){super(...arguments),this.type="html",this.renderInstance=r_}readValueFromInstance(e,t){if(gR.has(t))return this.projection?.isProjecting?mR(t):((e,t)=>{const{transform:r="none"}=getComputedStyle(e);return hR(r,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),o=(zD(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return GB(e,t)}build(e,t,r){JI(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return gB(e,t,r)}}const o_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class i_ extends t_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=XB}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gR.has(t)){const e=cI(t);return e&&e.default||0}return t=o_.has(t)?t:jB(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return wB(e,t,r)}build(e,t,r){aB(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){!function(e,t,r,n){r_(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(o_.has(r)?r:jB(r),t.attrs[r])}(e,t,0,n)}mount(e){this.isSVGTag=lB(e.tagName),super.mount(e)}}const a_=(e,t)=>pB(e)?new i_(t):new n_(t,{allowProjection:e!==y});function s_(e,t,r){const n=e.getProps();return mB(n,t,void 0!==r?r:n.custom,e)}const l_=e=>Array.isArray(e);function c_(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,hI(r))}function u_(e){return l_(e)?e[e.length-1]||0:e}function p_(e,t){const r=e.getValue("willChange");if(n=r,Boolean(TI(n)&&n.add))return r.add(t);if(!r&&$M.WillChange){const r=new $M.WillChange("auto");e.addValue("willChange",r),r.add(t)}var n}function d_(e){return e.props[PB]}const f_=e=>null!==e;const m_={type:"spring",stiffness:500,damping:25,restSpeed:10},h_={type:"keyframes",duration:.8},v_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},y_=(e,{keyframes:t})=>t.length>2?h_:gR.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:m_:v_;const g_=(e,t,r,n={},o,i)=>a=>{const s=KR(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c-=JM(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||Object.assign(u,y_(e,u)),u.duration&&(u.duration=JM(u.duration)),u.repeatDelay&&(u.repeatDelay=JM(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(HR(u),0===u.delay&&(p=!0)),($M.instantAnimations||$M.skipAnimations)&&(p=!0,HR(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,p&&!i&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:r="loop"}){const n=e.filter(f_);return n[t&&"loop"!==r&&t%2==1?0:n.length-1]}(u.keyframes,s);if(void 0!==e)return void ED.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new aR(u):new YR(u)};function b_({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function w_(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;n&&(i=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const n=e.getValue(t,e.latestValues[t]??null),o=s[t];if(void 0===o||c&&b_(c,t))continue;const a={delay:r,...KR(i||{},t)},u=n.get();if(void 0!==u&&!n.isAnimating&&!Array.isArray(o)&&o===u&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const r=d_(e);if(r){const e=window.MotionHandoffAnimation(r,t,ED);null!==e&&(a.startTime=e,p=!0)}}p_(e,t),n.start(g_(t,n,o,e.shouldReduceMotion&&ZR.has(t)?{type:!1}:a,e,p));const d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{ED.update(()=>{a&&function(e,t){const r=s_(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)c_(e,t,u_(i[t]))}(e,a)})}),l}function x_(e,t,r,n=0,o=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*n;return"function"==typeof r?r(i,a):1===o?i*n:s-i*n}function O_(e,t,r={}){const n=s_(e,t,"exit"===r.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(w_(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(O_(l,t,{...a,delay:r+("function"==typeof n?0:n)+x_(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,i,a,s,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(r.delay)])}function E_(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const k_=HI.length;function j_(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&j_(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;r<k_;r++){const n=HI[r],o=e.props[n];(VI(o)||!1===o)&&(t[n]=o)}return t}const P_=[...$I].reverse(),S_=$I.length;function C_(e){return t=>Promise.all(t.map(({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>O_(e,t,r));n=Promise.all(o)}else if("string"==typeof t)n=O_(e,t,r);else{const o="function"==typeof t?s_(e,t,r.custom):t;n=Promise.all(w_(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,t,r)))}function N_(e){let t=C_(e),r=L_(),n=!0;const o=t=>(r,n)=>{const o=s_(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function i(i){const{props:a}=e,s=j_(e.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let t=0;t<S_;t++){const d=P_[t],f=r[d],m=void 0!==a[d]?a[d]:s[d],h=VI(m),v=d===i?f.isActive:null;!1===v&&(p=t);let y=m===s[d]&&m!==a[d]&&h;if(y&&n&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===v||!m&&!f.prevProp||FI(m)||"boolean"==typeof m)continue;const g=T_(f.prevProp,m);let b=g||d===i&&f.isActive&&!y&&h||t>p&&h,w=!1;const x=Array.isArray(m)?m:[m];let O=x.reduce(o(d),{});!1===v&&(O={});const{prevResolvedValues:E={}}=f,k={...E,...O},j=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),f.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in k){const t=O[e],r=E[e];if(u.hasOwnProperty(e))continue;let n=!1;n=l_(t)&&l_(r)?!E_(t,r):t!==r,n?null!=t?j(e):c.add(e):void 0!==t&&c.has(e)?j(e):f.protectedKeys[e]=!0}f.prevProp=m,f.prevResolvedValues=O,f.isActive&&(u={...u,...O}),n&&e.blockInitialAnimation&&(b=!1);const P=y&&g;b&&(!P||w)&&l.push(...x.map(t=>{const r={type:d};if("string"==typeof t&&n&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:n}=e,o=s_(n,t);if(n.enteringChildren&&o){const{delayChildren:t}=o.transition||{};r.delay=x_(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){const t={};if("boolean"!=typeof a.initial){const r=s_(e,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let d=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(d=!1),n=!1,d?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;const o=i(t);for(const e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=L_(),n=!0}}}function T_(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!E_(t,e)}function z_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function L_(){return{animate:z_(!0),whileInView:z_(),whileHover:z_(),whileTap:z_(),whileDrag:z_(),whileFocus:z_(),exit:z_()}}class M_{constructor(e){this.isMounted=!1,this.node=e}update(){}}let D_=0;const A_={animation:{Feature:class extends M_{constructor(e){super(e),e.animationState||(e.animationState=N_(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();FI(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends M_{constructor(){super(...arguments),this.id=D_++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function R_(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function I_(e){return{point:{x:e.pageX,y:e.pageY}}}function B_(e,t,r,n){return R_(e,t,(e=>t=>OI(t)&&e(t,I_(t)))(r),n)}function __(e){return e.max-e.min}function W_(e,t,r,n=.5){e.origin=n,e.originPoint=dA(t.min,t.max,e.origin),e.scale=__(r)/__(t),e.translate=dA(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function F_(e,t,r,n){W_(e.x,t.x,r.x,n?n.originX:void 0),W_(e.y,t.y,r.y,n?n.originY:void 0)}function V_(e,t,r){e.min=r.min+t.min,e.max=e.min+__(t)}function $_(e,t,r){e.min=t.min-r.min,e.max=e.min+__(t)}function H_(e,t,r){$_(e.x,t.x,r.x),$_(e.y,t.y,r.y)}function q_(e){return[e("x"),e("y")]}const U_=({current:e})=>e?e.ownerDocument.defaultView:null,Y_=(e,t)=>Math.abs(e-t);class G_{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Z_(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Y_(e.x,t.x),n=Y_(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=jD;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=X_(t,this.transformPagePoint),ED.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Z_("pointercancel"===e.type?this.lastMoveEventInfo:X_(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!OI(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;const a=X_(I_(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=jD;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,Z_(a,this.history)),this.removeListeners=KM(B_(this.contextWindow,"pointermove",this.handlePointerMove),B_(this.contextWindow,"pointerup",this.handlePointerUp),B_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),kD(this.updatePoint)}}function X_(e,t){return t?{point:t(e.point)}:e}function K_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Z_({point:e},t){return{point:e,delta:K_(e,J_(t)),offset:K_(e,Q_(t)),velocity:eW(t,.1)}}function Q_(e){return e[0]}function J_(e){return e[e.length-1]}function eW(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=J_(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>JM(t)));)r--;if(!n)return{x:0,y:0};const i=eD(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tW(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rW(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const nW=.35;function oW(e,t,r){return{min:iW(e,t),max:iW(e,r)}}function iW(e,t){return"number"==typeof e?e:e[t]||0}const aW=new WeakMap;class sW{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new G_(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(I_(e).point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=r)||"y"===i?yI[i]?null:(yI[i]=!0,()=>{yI[i]=!1}):yI.x||yI.y?null:(yI.x=yI.y=!0,()=>{yI.x=yI.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(GD.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=__(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&ED.postRender(()=>o(e,t)),p_(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>q_(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:r,contextWindow:U_(this.visualElement)})}stop(e,t){const r=e||this.latestPointerEvent,n=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ED.postRender(()=>a(r,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!lW(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?dA(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?dA(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&EB(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:tW(e.x,r,o),y:tW(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=nW){return!1===e?e=0:!0===e&&(e=nW),{x:oW(e,"left","right"),y:oW(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&q_(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!EB(e))return!1;const r=e.current;VM(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=GB(e,r),{scroll:o}=t;return o&&(qB(n.x,o.offset.x),qB(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:rW(e.x,t.x),y:rW(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=MB(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=q_(a=>{if(!lW(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,p={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return p_(this.visualElement,e),r.start(g_(e,r,0,t,this.visualElement,!1))}stopAnimation(){q_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){q_(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){q_(t=>{const{drag:r}=this.getProps();if(!lW(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-dA(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!EB(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};q_(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=__(e),o=__(t);return o>n?r=ZM(t.min,t.max-n,e.min):n>o&&(r=ZM(e.min,e.max-o,t.min)),_M(0,1,r)}({min:r,max:r},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),q_(t=>{if(!lW(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(dA(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;aW.set(this.visualElement,this);const e=B_(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();EB(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ED.read(t);const o=R_(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(q_(t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=nW,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function lW(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const cW=e=>(t,r)=>{e&&ED.postRender(()=>e(t,r))};const uW={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!XD.test(e))return e;e=parseFloat(e)}return`${pW(e,t.target.x)}% ${pW(e,t.target.y)}%`}},fW={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=cA.parse(e);if(o.length>5)return n;const i=cA.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=dA(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};let mW=!1;class hW extends w{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;!function(e){for(const t in e)XI[t]=e[t],zD(t)&&(XI[t].isCSSVariable=!0)}(yW),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),mW&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),uW.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,{projection:i}=r;return i?(i.isPresent=o,mW=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ED.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vI.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;mW=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vW(e){const[t,r]=function(e=!0){const t=h(RM);if(null===t)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=g();a(()=>{if(e)return o(i)},[e]);const s=l(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,s]:[!0]}(),n=h(MM);return E(hW,{...e,layoutGroup:n,switchLayoutGroup:h(SB),isPresent:t,safeToRemove:r})}const yW={borderRadius:{...dW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dW,borderTopRightRadius:dW,borderBottomLeftRadius:dW,borderBottomRightRadius:dW,boxShadow:fW};const gW=(e,t)=>e.depth-t.depth;class bW{constructor(){this.children=[],this.isDirty=!1}add(e){IM(this.children,e),this.isDirty=!0}remove(e){BM(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gW),this.isDirty=!1,this.children.forEach(e)}}const wW=["TopLeft","TopRight","BottomLeft","BottomRight"],xW=wW.length,OW=e=>"string"==typeof e?parseFloat(e):e,EW=e=>"number"==typeof e||XD.test(e);function kW(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jW=SW(0,.5,fD),PW=SW(.5,.95,GM);function SW(e,t,r){return n=>n<e?0:n>t?1:r(ZM(e,t,n))}function CW(e,t){e.min=t.min,e.max=t.max}function NW(e,t){CW(e.x,t.x),CW(e.y,t.y)}function TW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zW(e,t,r,n,o){return e=_B(e-=t,1/r,n),void 0!==o&&(e=_B(e,1/o,n)),e}function LW(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){GD.test(t)&&(t=parseFloat(t),t=dA(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=dA(i.min,i.max,n);e===i&&(s-=t),e.min=zW(e.min,t,r,s,o),e.max=zW(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const MW=["x","scaleX","originX"],DW=["y","scaleY","originY"];function AW(e,t,r,n){LW(e.x,t,MW,r?r.x:void 0,n?n.x:void 0),LW(e.y,t,DW,r?r.y:void 0,n?n.y:void 0)}function RW(e){return 0===e.translate&&1===e.scale}function IW(e){return RW(e.x)&&RW(e.y)}function BW(e,t){return e.min===t.min&&e.max===t.max}function _W(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WW(e,t){return _W(e.x,t.x)&&_W(e.y,t.y)}function FW(e){return __(e.x)/__(e.y)}function VW(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $W{constructor(){this.members=[]}add(e){IM(this.members,e),e.scheduleRender()}remove(e){if(BM(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const HW=["","X","Y","Z"];let qW=0;function UW(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function YW(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=d_(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",ED,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&YW(n)}function GW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=t?.()){this.id=qW++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZW),this.nodes.forEach(oF),this.nodes.forEach(iF),this.nodes.forEach(QW)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new bW)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new QM),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var r;this.isSVG=NI(t)&&!(NI(r=t)&&"svg"===r.tagName),this.instance=t;const{layoutId:n,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||n)&&(this.isLayoutDirty=!0),e){let r,n=0;const o=()=>this.root.updateBlockedByResize=!1;ED.read(()=>{n=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=ND.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(kD(n),e(i-t))};return ED.setup(n,!0),()=>kD(n)}(o,250),uW.hasAnimatedSinceResize&&(uW.hasAnimatedSinceResize=!1,this.nodes.forEach(nF)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||pF,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!WW(this.targetLayout,n),c=!t&&r;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...KR(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||nF(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kD(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aF),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&YW(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(eF);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tF);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rF),this.nodes.forEach(XW),this.nodes.forEach(KW)):this.nodes.forEach(tF),this.clearAllSnapshots();const e=ND.now();jD.delta=_M(0,1e3/60,e-jD.timestamp),jD.timestamp=e,jD.isProcessing=!0,PD.update.process(jD),PD.preRender.process(jD),PD.render.process(jD),jD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vI.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(JW),this.sharedNodes.forEach(sF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ED.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ED.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||__(this.snapshot.measuredBox.x)||__(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!IW(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||RB(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),mF((n=r).x),mF(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vF))){const{scroll:e}=this.root;e&&(qB(t.x,e.offset.x),qB(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(NW(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&NW(t,e),qB(t.x,o.offset.x),qB(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};NW(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&YB(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),RB(n.latestValues)&&YB(r,n.latestValues)}return RB(this.latestValues)&&YB(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};NW(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!RB(r.latestValues))continue;AB(r.latestValues)&&r.updateSnapshot();const n=XB();NW(n,r.measurePageBox()),AW(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return RB(this.latestValues)&&AW(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:n,layoutId:o}=this.options;if(this.layout&&(n||o)){if(this.resolvedRelativeTargetAt=jD.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},H_(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),NW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,a,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,s=this.relativeParent.target,V_(i.x,a.x,s.x),V_(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):NW(this.target,this.layout.layoutBox),VB(this.target,this.targetDelta)):NW(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},H_(this.relativeTargetOrigin,this.target,e.target),NW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!AB(this.parent.latestValues)&&!IB(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===jD.timestamp&&(r=!1),r)return;const{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!o)return;NW(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&YB(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,VB(e,a)),n&&RB(i.latestValues)&&YB(e,i.latestValues))}t.x<HB&&t.x>$B&&(t.x=1),t.y<HB&&t.y>$B&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(TW(this.prevProjectionDelta.x,this.projectionDelta.x),TW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),F_(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&VW(this.projectionDelta.x,this.prevProjectionDelta.x)&&VW(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(uF));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,d,f,m,h,v;lF(i.x,e.x,r),lF(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(H_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,v=r,cF(f.x,m.x,h.x,v),cF(f.y,m.y,h.y,v),p&&(l=this.relativeTarget,d=p,BW(l.x,d.x)&&BW(l.y,d.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),NW(p,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=dA(0,r.opacity??1,jW(n)),e.opacityExit=dA(t.opacity??1,0,PW(n))):i&&(e.opacity=dA(t.opacity??1,r.opacity??1,n));for(let o=0;o<xW;o++){const i=`border${wW[o]}Radius`;let a=kW(t,i),s=kW(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||EW(a)===EW(s)?(e[i]=Math.max(dA(OW(a),OW(s),n),0),(GD.test(s)||GD.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=dA(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(kD(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ED.update(()=>{uW.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hI(0)),this.currentAnimation=function(e,t,r){const n=TI(e)?e:hI(e);return n.start(g_("",n,t,r)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&hF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=__(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=__(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}NW(t,r),YB(t,o),F_(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new $W);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&UW("z",e,n,this.animationValues);for(let t=0;t<HW.length;t++)UW(`rotate${HW[t]}`,e,n,this.animationValues),UW(`skew${HW[t]}`,e,n,this.animationValues);e.render();for(const t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=hB(t?.pointerEvents)||"",void(e.transform=r?r(this.latestValues,""):"none");const n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=hB(t?.pointerEvents)||""),void(this.hasProjected&&!RB(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1));e.visibility="";const o=n.animationValues||n.latestValues;this.applyTransformsToTarget();let i=function(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);r&&(i=r(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in XI){if(void 0===o[t])continue;const{correct:r,applyTo:a,isCSSVariable:s}=XI[t],l="none"===i?o[t]:r(o[t],n);if(a){const t=a.length;for(let r=0;r<t;r++)e[a[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?hB(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(eF),this.root.sharedNodes.clear()}}}function XW(e){e.updateLayout()}function KW(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;"size"===o?q_(e=>{const n=i?t.measuredBox[e]:t.layoutBox[e],o=__(n);n.min=r[e].min,n.max=n.min+o}):hF(o,t.layoutBox,r)&&q_(n=>{const o=i?t.measuredBox[n]:t.layoutBox[n],a=__(r[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};F_(a,r,t.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?F_(s,e.applyTransform(n,!0),t.measuredBox):F_(s,r,t.layoutBox);const l=!IW(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};H_(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};H_(s,r,i.layoutBox),WW(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ZW(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function JW(e){e.clearSnapshot()}function eF(e){e.clearMeasurements()}function tF(e){e.isLayoutDirty=!1}function rF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oF(e){e.resolveTargetDelta()}function iF(e){e.calcProjection()}function aF(e){e.resetSkewAndRotation()}function sF(e){e.removeLeadSnapshot()}function lF(e,t,r){e.translate=dA(t.translate,0,r),e.scale=dA(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function cF(e,t,r,n){e.min=dA(t.min,r.min,n),e.max=dA(t.max,r.max,n)}function uF(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const pF={duration:.45,ease:[.4,0,.1,1]},dF=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fF=dF("applewebkit/")&&!dF("chrome/")?Math.round:GM;function mF(e){e.min=fF(e.min),e.max=fF(e.max)}function hF(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=FW(t),o=FW(r),i=.2,!(Math.abs(n-o)<=i));var n,o,i}function vF(e){return e!==e.root&&e.scroll?.wasRoot}const yF=GW({attachResizeListener:(e,t)=>R_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gF={current:void 0},bF=GW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gF.current){const e=new yF({});e.mount(window),e.setOptions({layoutScroll:!0}),gF.current=e}return gF.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),wF={pan:{Feature:class extends M_{constructor(){super(...arguments),this.removePointerDownListener=GM}onPointerDown(e){this.session=new G_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U_(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:cW(e),onStart:cW(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ED.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=B_(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends M_{constructor(e){super(e),this.removeGroupControls=GM,this.removeListeners=GM,this.controls=new sW(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||GM}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:bF,MeasureLayout:vW}};function xF(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&ED.postRender(()=>o(t,I_(t)))}function OF(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);const o=n["onTap"+("End"===r?"":r)];o&&ED.postRender(()=>o(t,I_(t)))}const EF=new WeakMap,kF=new WeakMap,jF=e=>{const t=EF.get(e.target);t&&t(e)},PF=e=>{e.forEach(jF)};function SF(e,t,r){const n=function({root:e,...t}){const r=e||document;kF.has(r)||kF.set(r,{});const n=kF.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(PF,{root:e,...t})),n[o]}(t);return EF.set(e,r),n.observe(e),()=>{EF.delete(e),n.unobserve(e)}}const CF={some:0,all:1};const NF={inView:{Feature:class extends M_{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:CF[n]};return SF(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends M_{mount(){const{current:e}=this.node;e&&(this.unmount=CI(e,(e,t)=>(OF(this.node,t,"Start"),(e,{success:t})=>OF(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends M_{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=KM(R_(this.node.current,"focus",()=>this.onFocus()),R_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends M_{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=bI(e,r),a=e=>{if(!wI(e))return;const{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;const i=e=>{wI(e)&&(n(e),r.removeEventListener("pointerleave",i))};r.addEventListener("pointerleave",i,o)};return n.forEach(e=>{e.addEventListener("pointerenter",a,o)}),i}(e,(e,t)=>(xF(this.node,t,"Start"),e=>xF(this.node,e,"End"))))}unmount(){}}}},TF=LB({...A_,...NF,...wF,...{layout:{ProjectionNode:bF,MeasureLayout:vW}}},a_),zF="right",LF={top:{in:"slide-in-from-top",out:"slide-out-to-top"},right:{in:"slide-in-from-right",out:"slide-out-to-right"},bottom:{in:"slide-in-from-bottom",out:"slide-out-to-bottom"},left:{in:"slide-in-from-left",out:"slide-out-to-left"}},MF=({children:e,side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d,...f})=>{const m=c({side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d});return a(()=>{m.current={side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d}},[r,n,o,i,s,l,u,p,d]),t.createElement(HN,{...f},e)};MF.displayName="Sheet";const DF=t.forwardRef(({children:e,...r},n)=>t.createElement(qN,{...r,ref:n},e));DF.displayName="SheetTrigger";const AF=ZN;AF.displayName="SheetClose";const RF=UN;RF.displayName="SheetPortal";const IF=t.forwardRef(({className:e,...r},n)=>t.createElement(YN,{asChild:!0,...r,ref:n},t.createElement(TF.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:Be("fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",e)})));IF.displayName=YN.displayName;const BF=t.forwardRef(({side:e=zF,className:r,children:n,overlay:o=!0,fullWidth:i=!1,fullHeight:a=!0,...s},l)=>{const c=LF[e]?e:zF;return t.createElement(RF,null,o&&t.createElement(IF,null),t.createElement(GN,{ref:l,className:Be("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-all ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-300",a?"h-full":"h-auto",i?"w-full":"w-3/4","left"===c&&"inset-y-0 left-0 border-r","right"===c&&"inset-y-0 right-0 border-l","top"===c&&"inset-x-0 top-0 border-b","bottom"===c&&"inset-x-0 bottom-0 border-t",`data-[state=closed]:${LF[c].out}`,`data-[state=open]:${LF[c].in}`,r),...s},n,t.createElement(ZN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-all duration-200 hover:opacity-100 hover:scale-110 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},t.createElement(it,{className:"h-4 w-4"}),t.createElement("span",{className:"sr-only"},"Close"))))});BF.displayName=GN.displayName;const _F=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,className:Be("flex flex-col space-y-2 text-center sm:text-left",e),...n},r));_F.displayName="SheetHeader";const WF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,className:Be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n},r));WF.displayName="SheetFooter";const FF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement(XN,{ref:o,className:Be("text-lg font-semibold text-foreground",e),...n},r));FF.displayName=XN.displayName;const VF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement(KN,{ref:o,className:Be("text-sm text-muted-foreground",e),...n},r));VF.displayName=KN.displayName;t.forwardRef(({side:e=zF,overlay:r=!0,showFooter:n=!1,title:o,description:i,buttonText:a="Close",children:s,className:l,contentProps:c,fullWidth:u,fullHeight:p,...d},f)=>{const m=LF[e]?e:zF;return t.createElement(MF,{...d},t.createElement(BF,{side:m,overlay:r,className:l,fullWidth:u,fullHeight:p,...c},t.createElement("div",{ref:f},(o||i)&&t.createElement(_F,null,o&&t.createElement(FF,null,o),i&&t.createElement(VF,null,i)),t.createElement("div",{className:"py-4"},s),n&&t.createElement(WF,null,t.createElement(AF,{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors duration-200"},a)))))}).displayName="SheetDrawer";const $F=BL,HF=_L,qF=e.forwardRef(({className:t,align:r="center",sideOffset:n=4,side:o="bottom",...i},a)=>e.createElement(WL,null,e.createElement(FL,{ref:a,align:r,sideOffset:n,side:o,className:Be("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})));qF.displayName=FL.displayName;const UF=["top","right","bottom","left"],YF=["start","center","end"],GF="bottom",XF="center",KF=4,ZF=150,QF={DEFAULT:"default",FORM:"form"};function JF(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function eV(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{const n=e[r],o=t[r];return"function"==typeof n?`${n}`==`${o}`:JF(n)&&JF(o)?eV(n,o):n===o})}function tV(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function rV(e){return"number"==typeof e}function nV(e){return"string"==typeof e}function oV(e){return"boolean"==typeof e}function iV(e){return"[object Object]"===Object.prototype.toString.call(e)}function aV(e){return Math.abs(e)}function sV(e){return Math.sign(e)}function lV(e,t){return aV(e-t)}function cV(e){return mV(e).map(Number)}function uV(e){return e[pV(e)]}function pV(e){return Math.max(0,e.length-1)}function dV(e,t){return t===pV(e)}function fV(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function mV(e){return Object.keys(e)}function hV(e,t){return[e,t].reduce((e,t)=>(mV(t).forEach(r=>{const n=e[r],o=t[r],i=iV(n)&&iV(o);e[r]=i?hV(n,o):o}),e),{})}function vV(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function yV(){let e=[];const t={add:function(r,n,o,i={passive:!0}){let a;if("addEventListener"in r)r.addEventListener(n,o,i),a=()=>r.removeEventListener(n,o,i);else{const e=r;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function gV(e,t,r,n){const o=yV(),i=1e3/60;let a=null,s=0,l=0;function c(e){if(!l)return;a||(a=e,r(),r());const o=e-a;for(a=e,s+=o;s>=i;)r(),s-=i;n(s/i),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){u(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:r,render:n}}function bV(e=0,t=0){const r=aV(e-t);function n(t){return t<e}function o(e){return e>t}function i(e){return n(e)||o(e)}return{length:r,max:t,min:e,constrain:function(r){return i(r)?n(r)?e:t:r},reachedAny:i,reachedMax:o,reachedMin:n,removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function wV(e,t,r){const{constrain:n}=bV(0,e),o=e+1;let i=a(t);function a(e){return r?aV((o+e)%o):n(e)}function s(){return i}function l(){return wV(e,s(),r)}const c={get:s,set:function(e){return i=a(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function xV(e,t,r,n,o,i,a,s,l,c,u,p,d,f,m,h,v,y,g){const{cross:b,direction:w}=e,x=["INPUT","SELECT","TEXTAREA"],O={passive:!1},E=yV(),k=yV(),j=bV(50,225).constrain(f.measure(20)),P={mouse:300,touch:400},S={mouse:500,touch:600},C=m?43:25;let N=!1,T=0,z=0,L=!1,M=!1,D=!1,A=!1;function R(e){if(!vV(e,n)&&e.touches.length>=2)return I(e);const t=i.readPoint(e),r=i.readPoint(e,b),a=lV(t,T),l=lV(r,z);if(!M&&!A){if(!e.cancelable)return I(e);if(M=a>l,!M)return I(e)}const u=i.pointerMove(e);a>h&&(D=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(w(u)),e.preventDefault()}function I(e){const t=u.byDistance(0,!1).index!==p.get(),r=i.pointerUp(e)*(m?S:P)[A?"mouse":"touch"],n=function(e,t){const r=p.add(-1*sV(e)),n=u.byDistance(e,!m).distance;return m||aV(e)<j?n:v&&t?.5*n:u.byIndex(r.get(),0).distance}(w(r),t),o=function(e,t){if(0===e||0===t)return 0;if(aV(e)<=aV(t))return 0;const r=lV(aV(e),aV(t));return aV(r/e)}(r,n),a=C-10*o,s=y+o/50;M=!1,L=!1,k.clear(),c.useDuration(a).useFriction(s),l.distance(n,!m),A=!1,d.emit("pointerUp")}function B(e){D&&(e.stopPropagation(),e.preventDefault(),D=!1)}return{init:function(e){if(!g)return;function s(s){(oV(g)||g(e,s))&&function(e){const s=vV(e,n);if(A=s,D=m&&s&&!e.buttons&&N,N=lV(o.get(),a.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target))return;L=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),o.set(a),function(){const e=A?r:t;k.add(e,"touchmove",R,O).add(e,"touchend",I).add(e,"mousemove",R,O).add(e,"mouseup",I)}(),T=i.readPoint(e),z=i.readPoint(e,b),d.emit("pointerDown")}(s)}const l=t;E.add(l,"dragstart",e=>e.preventDefault(),O).add(l,"touchmove",()=>{},O).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",I).add(l,"contextmenu",I).add(l,"click",B,!0)},destroy:function(){E.clear(),k.clear()},pointerDown:function(){return L}}}function OV(e,t){let r,n;function o(e){return e.timeStamp}function i(r,n){const o="client"+("x"===(n||e.scroll)?"X":"Y");return(vV(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,i(e)},pointerMove:function(e){const t=i(e)-i(n),a=o(e)-o(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;const t=i(n)-i(r),a=o(e)-o(r),s=o(e)-o(n)>170,l=t/a;return a&&!s&&aV(l)>.1?l:0},readPoint:i}}function EV(e,t,r,n,o,i,a){const s=[e].concat(n);let l,c,u=[],p=!1;function d(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(c=d(e),u=n.map(d),l=new ResizeObserver(r=>{(oV(i)||i(o,r))&&function(r){for(const i of r){if(p)return;const r=i.target===e,a=n.indexOf(i.target),s=r?c:u[a];if(aV(d(r?e:n[a])-s)>=.5){o.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function kV(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),s=bV(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(r.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",u=aV(e[l]-t.get()),p=r.get()-t.get(),d=s.constrain(u/a);r.subtract(p*d),!o&&aV(p)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function jV(e,t,r,n){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:s}=bV(o,i);return{loop:function(t){if(!function(e){return 1===e?s(r.get()):-1===e&&a(r.get())}(t))return;const o=e*(-1*t);n.forEach(e=>e.add(o))}}}function PV(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>aV(e)-aV(t))[0]}function c(t,n){const o=[t,t+r,t-r];if(!e)return t;if(!n)return l(o);const i=o.filter(e=>sV(e)===n);return i.length?l(i):uV(o)-r}const u={byDistance:function(r,n){const l=o.get()+r,{index:u,distance:p}=function(r){const n=e?a(r):s(r),o=t.map((e,t)=>({diff:c(e-n,0),index:t})).sort((e,t)=>aV(e.diff)-aV(t.diff)),{index:i}=o[0];return{index:i,distance:n}}(l),d=!e&&i(l);return!n||d?{index:u,distance:r}:{index:u,distance:r+c(t[u]-p,0)}},byIndex:function(e,r){return{index:e,distance:c(t[e]-o.get(),r)}},shortcut:c};return u}function SV(e,t,r,n,o,i,a,s){const l={passive:!0,capture:!0};let c=0;function u(e){"Tab"===e.code&&(c=(new Date).getTime())}const p={init:function(p){s&&(i.add(document,"keydown",u,!1),t.forEach((t,u)=>{i.add(t,"focus",t=>{(oV(s)||s(p,t))&&function(t){if((new Date).getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const i=r.findIndex(e=>e.includes(t));rV(i)&&(o.useDuration(0),n.index(i,0),a.emit("slideFocus"))}(u)},l)}))}};return p}function CV(e){let t=e;function r(e){return rV(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function NV(e,t){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style;let o=null,i=!1;return{clear:function(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const a=(s=e.direction(t),Math.round(100*s)/100);var s;a!==o&&(n.transform=r(a),o=a)},toggleActive:function(e){i=!e}}}function TV(e,t,r,n,o,i,a,s,l){const c=cV(o),u=cV(o).reverse(),p=function(){const e=a[0];return m(f(u,e),r,!1)}().concat(function(){const e=t-a[0]-1;return m(f(c,e),-r,!0)}());function d(e,t){return e.reduce((e,t)=>e-o[t],t)}function f(e,t){return e.reduce((e,r)=>d(e,t)>0?e.concat([r]):e,[])}function m(o,a,c){const u=function(e){return i.map((r,o)=>({start:r-n[o]+.5+e,end:r+t-.5+e}))}(a);return o.map(t=>{const n=c?0:-r,o=c?r:0,i=c?"end":"start",a=u[t][i];return{index:t,loopPoint:a,slideLocation:CV(-1),translate:NV(e,l[t]),target:()=>s.get()>a?n:o}})}const h={canLoop:function(){return p.every(({index:e})=>d(c.filter(t=>t!==e),t)<=.1)},clear:function(){p.forEach(e=>e.translate.clear())},loop:function(){p.forEach(e=>{const{target:t,translate:r,slideLocation:n}=e,o=t();o!==n.get()&&(r.to(o),n.set(o))})},loopPoints:p};return h}function zV(e,t,r){let n,o=!1;return{init:function(i){r&&(n=new MutationObserver(e=>{o||(oV(r)||r(i,e))&&function(e){for(const r of e)if("childList"===r.type){i.reInit(),t.emit("slidesChanged");break}}(e)}),n.observe(e,{childList:!0}))},destroy:function(){n&&n.disconnect(),o=!0}}}function LV(e,t,r,n){const o={};let i,a=null,s=null,l=!1;const c={init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{const r=t.indexOf(e.target);o[r]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return mV(o).reduce((t,r)=>{const n=parseInt(r),{isIntersecting:i}=o[n];return(e&&i||!e&&!i)&&t.push(n),t},[])}(e);return e&&(a=t),e||(s=t),t}};return c}function MV(e,t,r,n,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:p}=e,d=rV(r);const f={groupSlides:function(e){return d?function(e,t){return cV(e).filter(e=>e%t===0).map(r=>e.slice(r,r+t))}(e,r):function(e){return e.length?cV(e).reduce((r,d,f)=>{const m=uV(r)||0,h=0===m,v=d===pV(e),y=o[c]-i[m][c],g=o[c]-i[d][u],b=!n&&h?p(a):0,w=aV(g-(!n&&v?p(s):0)-(y+b));return f&&w>t+l&&r.push(d),v&&r.push(e.length),r},[]).map((t,r,n)=>{const o=Math.max(n[r-1]||0);return e.slice(o,t)}):[]}(e)}};return f}function DV(e,t,r,n,o,i,a){const{align:s,axis:l,direction:c,startIndex:u,loop:p,duration:d,dragFree:f,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:g,watchResize:b,watchSlides:w,watchDrag:x,watchFocus:O}=i,E={measure:function(e){const{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:o}=e;return{top:t,right:r+n,bottom:t+o,left:r,width:n,height:o}}},k=E.measure(t),j=r.map(E.measure),P=function(e,t){const r="rtl"===t,n="y"===e,o=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){const{height:t,width:r}=e;return n?t:r},direction:function(e){return e*o}}}(l,c),S=P.measureSize(k),C=function(e){return{measure:function(t){return e*(t/100)}}}(S),N=function(e,t){const r={start:function(){return 0},center:function(e){return n(e)/2},end:n};function n(e){return t-e}const o={measure:function(n,o){return nV(e)?r[e](n):e(t,n,o)}};return o}(s,S),T=!p&&!!g,z=p||!!g,{slideSizes:L,slideSizesWithGaps:M,startGap:D,endGap:A}=function(e,t,r,n,o,i){const{measureSize:a,startEdge:s,endEdge:l}=e,c=r[0]&&o,u=function(){if(!c)return 0;const e=r[0];return aV(t[s]-e[s])}(),p=function(){if(!c)return 0;const e=i.getComputedStyle(uV(n));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),d=r.map(a),f=r.map((e,t,r)=>{const n=!t,o=dV(r,t);return n?d[t]+u:o?d[t]+p:r[t+1][s]-e[s]}).map(aV);return{slideSizes:d,slideSizesWithGaps:f,startGap:u,endGap:p}}(P,k,j,r,z,o),R=MV(P,S,v,p,k,j,D,A,2),{snaps:I,snapsAligned:B}=function(e,t,r,n,o){const{startEdge:i,endEdge:a}=e,{groupSlides:s}=o,l=s(n).map(e=>uV(e)[a]-e[0][i]).map(aV).map(t.measure),c=n.map(e=>r[i]-e[i]).map(e=>-aV(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(P,N,k,j,R),_=-uV(I)+uV(M),{snapsContained:W,scrollContainLimit:F}=function(e,t,r,n,o){const i=bV(-t+e,0),a=r.map((e,t)=>{const{min:n,max:o}=i,a=i.constrain(e),s=!t,l=dV(r,t);return s?o:l||c(n,a)?n:c(o,a)?o:a}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=a[0],t=uV(a);return bV(a.lastIndexOf(e),a.indexOf(t)+1)}(),l=function(){if(t<=e+o)return[i.max];if("keepSnaps"===n)return a;const{min:r,max:l}=s;return a.slice(r,l)}();function c(e,t){return lV(e,t)<=1}return{snapsContained:l,scrollContainLimit:s}}(S,_,B,g,2),V=T?W:B,{limit:$}=function(e,t,r){const n=t[0];return{limit:bV(r?n-e:uV(t),n)}}(_,V,p),H=wV(pV(V),u,p),q=H.clone(),U=cV(r),Y=gV(n,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(se),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:o,scrollLooper:i,slideLooper:a,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:p}},d)=>{const f=e.settled(),m=!u.shouldConstrain(),h=p?f:f&&m,v=h&&!s.pointerDown();v&&l.stop();const y=r.get()*d+o.get()*(1-d);n.set(y),p&&(i.loop(e.direction()),a.loop()),t.to(n.get()),v&&c.emit("settle"),h||c.emit("scroll")})(se,e)),G=V[H.get()],X=CV(G),K=CV(G),Z=CV(G),Q=CV(G),J=function(e,t,r,n,o,i){let a=0,s=0,l=o,c=i,u=e.get(),p=0;function d(e){return l=e,m}function f(e){return c=e,m}const m={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let o=0;return l?(r.set(e),a+=t/l,a*=c,u+=a,e.add(a),o=u-p):(a=0,r.set(n),e.set(n),o=t),s=sV(o),p=u,m},settled:function(){return aV(n.get()-t.get())<.001},useBaseFriction:function(){return f(i)},useBaseDuration:function(){return d(o)},useFriction:f,useDuration:d};return m}(X,Z,K,Q,d,.68),ee=PV(p,V,_,$,Q),te=function(e,t,r,n,o,i,a){function s(o){const s=o.distance,l=o.index!==t.get();i.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,r){const n=t.clone().set(e);s(o.byIndex(n.get(),r))}}}(Y,H,q,J,ee,Q,a),re=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}($),ne=yV(),oe=LV(t,r,a,h),{slideRegistry:ie}=function(e,t,r,n,o,i){const{groupSlides:a}=o,{min:s,max:l}=n,c=function(){const n=a(i),o=!e||"keepSnaps"===t;return 1===r.length?[i]:o?n:n.slice(s,l).map((e,t,r)=>{const n=!t,o=dV(r,t);return n?fV(uV(r[0])+1):o?fV(pV(i)-uV(r)[0]+1,uV(r)[0]):e})}();return{slideRegistry:c}}(T,g,V,F,R,U),ae=SV(e,r,ie,te,J,ne,a,O),se={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:k,slideRects:j,animation:Y,axis:P,dragHandler:xV(P,e,n,o,Q,OV(P,o),X,Y,te,J,ee,H,a,C,f,m,y,.68,x),eventStore:ne,percentOfView:C,index:H,indexPrevious:q,limit:$,location:X,offsetLocation:Z,previousLocation:K,options:i,resizeHandler:EV(t,a,o,r,P,b,E),scrollBody:J,scrollBounds:kV($,Z,Q,J,C),scrollLooper:jV(_,$,Z,[X,Z,K,Q]),scrollProgress:re,scrollSnapList:V.map(re.get),scrollSnaps:V,scrollTarget:ee,scrollTo:te,slideLooper:TV(P,S,_,L,M,I,V,Z,r),slideFocus:ae,slidesHandler:zV(t,a,w),slidesInView:oe,slideIndexes:U,slideRegistry:ie,slidesToScroll:R,target:Q,translate:NV(P,t)};return se}const AV={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function RV(e){function t(e,t){return hV(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},o=mV(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,o)},optionsMediaQueries:function(t){return t.map(e=>mV(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return r}function IV(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=RV(o),a=function(e){let t=[];const r={init:function(r,n){return t=n.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(r,e)),n.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}};return r}(i),s=yV(),l=function(){let e,t={};function r(e){return t[e]||[]}const n={init:function(t){e=t},emit:function(t){return r(t).forEach(r=>r(e,t)),n},off:function(e,o){return t[e]=r(e).filter(e=>e!==o),n},on:function(e,o){return t[e]=r(e).concat([o]),n},clear:function(){t={}}};return n}(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:p}=i,{on:d,off:f,emit:m}=l,h=P;let v,y,g,b,w=!1,x=c(AV,IV.globalOptions),O=c(x),E=[];function k(t){const r=DV(e,g,b,n,o,t,l);if(t.loop&&!r.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}))}return r}function j(t,r){w||(x=c(x,t),O=u(x),E=r||E,function(){const{container:t,slides:r}=O,n=nV(t)?e.querySelector(t):t;g=n||e.children[0];const o=nV(r)?g.querySelectorAll(r):r;b=[].slice.call(o||g.children)}(),v=k(O),p([x,...E.map(({options:e})=>e)]).forEach(e=>s.add(e,"change",P)),O.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(T),v.eventHandler.init(T),v.resizeHandler.init(T),v.slidesHandler.init(T),v.options.loop&&v.slideLooper.loop(),g.offsetParent&&b.length&&v.dragHandler.init(T),y=a.init(T,E)))}function P(e,t){const r=N();S(),j(c({startIndex:r},e),t),l.emit("reInit")}function S(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),s.clear()}function C(e,t,r){O.active&&!w&&(v.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),v.scrollTo.index(e,r||0))}function N(){return v.index.get()}const T={canScrollNext:function(){return v.index.add(1).get()!==N()},canScrollPrev:function(){return v.index.add(-1).get()!==N()},containerNode:function(){return g},internalEngine:function(){return v},destroy:function(){w||(w=!0,s.clear(),S(),l.emit("destroy"),l.clear())},off:f,on:d,emit:m,plugins:function(){return y},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){C(v.index.add(1).get(),e,-1)},scrollPrev:function(e){C(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.offsetLocation.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:C,selectedScrollSnap:N,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return j(t,r),setTimeout(()=>l.emit("init"),0),T}function BV(e={},t=[]){const r=c(e),n=c(t),[o,s]=i(),[u,p]=i(),d=l(()=>{o&&o.reInit(r.current,n.current)},[o]);return a(()=>{eV(r.current,e)||(r.current=e,d())},[e,d]),a(()=>{(function(e,t){if(e.length!==t.length)return!1;const r=tV(e),n=tV(t);return r.every((e,t)=>eV(e,n[t]))})(n.current,t)||(n.current=t,d())},[t,d]),a(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){IV.globalOptions=BV.globalOptions;const e=IV(u,r.current,n.current);return s(e),()=>e.destroy()}s(void 0)},[u,s]),[p,o]}IV.globalOptions=void 0,BV.globalOptions=void 0;const _V=5e3,WV=m(null),FV=r(({children:e,orientation:r="x",showArrows:n=!0,showDots:o=!0,autoPlay:c=!1,interval:u=_V,disabled:p=!1,onSlideChange:d,className:f,...m},h)=>{const v="y"===r,[y,g]=BV({loop:!0,align:"start",axis:v?"y":"x",dragFree:!1,slidesToScroll:1,containScroll:"keepSnaps"}),[b,w]=i(!0),[O,E]=i(!0),[k,j]=i(0),P=x.count(e),S=s(()=>({selectedIndex:k,scrollNext:()=>g?.scrollNext(),scrollPrev:()=>g?.scrollPrev(),canScrollNext:!O,canScrollPrev:!b,setSelectedIndex:e=>{g?.scrollTo(e)}}),[g,O,b,k]),C=l(e=>{j(e.selectedScrollSnap()),w(!e.canScrollPrev()),E(!e.canScrollNext()),d?.(e.selectedScrollSnap())},[d]);return a(()=>{g&&(C(g),g.on("select",()=>C(g)),g.on("reInit",()=>C(g)))},[g,C]),a(()=>{if(!g||!c)return;const e=setInterval(()=>{O?g.scrollTo(0):g.scrollNext()},u);return()=>clearInterval(e)},[g,c,u,O]),t.createElement(WV.Provider,{value:S},t.createElement("div",{ref:h,className:Be("relative group",v?"h-96":"w-full",f),role:"region","aria-roledescription":"carousel",style:{perspective:"1000px",perspectiveOrigin:"center center",overflow:"hidden"},...m},t.createElement("div",{ref:y,className:Be("overflow-hidden h-full","rounded-2xl"),style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",willChange:"transform",transformStyle:"preserve-3d"}},t.createElement("div",{className:Be("flex will-change-transform h-full",v?"flex-col":"flex-row")},x.map(e,(e,r)=>t.createElement("div",{className:Be("transform transition-all duration-700 ease-out",v?"min-h-0 h-full w-full flex-[0_0_100%]":"min-w-0 w-full flex-[0_0_100%]",r===k?"scale-100 rotate-0 translate-z-0 opacity-100":"scale-95 opacity-0 -translate-z-8"),key:r},e)))),t.createElement("div",{className:Be("absolute z-20 bg-background/30 backdrop-blur-xl px-4 py-2 rounded-full text-sm font-medium text-foreground shadow-xl border border-primary/20 transition-all duration-500 hover:bg-background/50 overflow-hidden group-hover:scale-105",v?"top-4 right-1/2 translate-x-1/2":"bottom-6 right-6")},t.createElement("div",{className:"absolute inset-0 bg-linear-to-r from-primary/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),t.createElement("span",{className:"text-primary font-bold"},k+1),t.createElement("span",{className:"mx-1 opacity-50"},"/"),t.createElement("span",null,P)),n&&t.createElement(t.Fragment,null,t.createElement("div",{className:Be("absolute z-10 transition-opacity duration-300",v?"right-4 top-4":"top-1/2 -translate-y-1/2 left-4 opacity-0 group-hover:opacity-100")},t.createElement(st,{variant:"secondary",size:"small",className:Be("h-12 w-12 rounded-full bg-background/20 backdrop-blur-xl shadow-xl border border-primary/20 transition-all duration-500 ease-out hover:bg-background/40 hover:scale-110 hover:border-primary/50 hover:shadow-primary/30 group/btn"),disabled:p||b,onClick:()=>S.scrollPrev()},t.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),v?t.createElement(Ze,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):t.createElement(Xe,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),t.createElement("span",{className:"sr-only"},"Previous slide"))),t.createElement("div",{className:Be("absolute z-10 transition-opacity duration-300",v?"right-4 bottom-4":"top-1/2 -translate-y-1/2 right-4 opacity-0 group-hover:opacity-100")},t.createElement(st,{variant:"secondary",size:"small",className:Be("h-12 w-12 rounded-full bg-background/20 backdrop-blur-xl shadow-xl border border-primary/20 transition-all duration-500 ease-out hover:bg-background/40 hover:scale-110 hover:border-primary/50 hover:shadow-primary/30 group/btn"),disabled:p||O,onClick:()=>S.scrollNext()},t.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),v?t.createElement(Ge,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):t.createElement(Ke,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),t.createElement("span",{className:"sr-only"},"Next slide")))),o&&t.createElement("div",{className:Be("absolute z-10",v?"right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 px-2 py-4 rounded-full bg-background/10 backdrop-blur-md transition-all duration-700 group-hover:bg-background/20 border border-primary/10 group-hover:border-primary/20":"bottom-6 left-1/2 -translate-x-1/2 flex gap-3 px-4 py-2 rounded-full bg-background/10 backdrop-blur-md transition-all duration-700 group-hover:bg-background/20 border border-primary/10 group-hover:border-primary/20")},x.map(e,(e,r)=>t.createElement("button",{key:r,type:"button",className:Be("h-8 w-8 flex items-center justify-center transition-all duration-500 ease-out hover:scale-125",r===k?"scale-110":"opacity-60 hover:opacity-90"),disabled:p,onClick:()=>S.setSelectedIndex(r)},r===k?t.createElement("div",{className:"w-2 h-2 rounded-full bg-primary shadow-md shadow-primary/30 ring-4 ring-primary/20 transition-all duration-500"}):t.createElement("div",{className:"w-2 h-2 rounded-full bg-muted transition-all duration-500 hover:bg-primary/50"}),t.createElement("span",{className:"sr-only"},"Jump to slide ",r+1))))))});FV.displayName="Carousel";r(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,role:"group","aria-roledescription":"slide",className:Be("min-w-0 shrink-0 grow-0 basis-full h-full relative overflow-hidden rounded-xl backdrop-blur-lg transition-all duration-700 ease-out will-change-transform shadow-2xl",e),...n},t.createElement("div",{className:"absolute inset-0 bg-linear-to-br from-background/5 via-primary/5 to-background/5 opacity-80 mix-blend-overlay pointer-events-none"}),t.createElement("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 bg-linear-to-t from-primary/10 to-transparent transition-opacity duration-700 ease-out pointer-events-none"}),t.createElement("div",{className:"absolute top-0 right-0 w-24 h-24 -translate-y-8 translate-x-8 bg-primary/20 rounded-full blur-3xl pointer-events-none"}),t.createElement("div",{className:"absolute bottom-0 left-0 w-32 h-32 translate-y-16 -translate-x-16 bg-secondary/10 rounded-full blur-3xl pointer-events-none"}),r)).displayName="CarouselItem";var VV=Object.defineProperty,$V=Object.defineProperties,HV=Object.getOwnPropertyDescriptors,qV=Object.getOwnPropertySymbols,UV=Object.prototype.hasOwnProperty,YV=Object.prototype.propertyIsEnumerable,GV=(e,t,r)=>t in e?VV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var XV=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var KV=e.createContext({}),ZV=e.forwardRef((t,r)=>{var n,o,i,a,s,l=t,{value:c,onChange:u,maxLength:p,textAlign:d="left",pattern:f,placeholder:m,inputMode:h="numeric",onComplete:v,pushPasswordManagerStrategy:y="increase-width",pasteTransformer:g,containerClassName:b,noScriptCSSFallback:w=JV,render:x,children:O}=l,E=((e,t)=>{var r={};for(var n in e)UV.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&qV)for(var n of qV(e))t.indexOf(n)<0&&YV.call(e,n)&&(r[n]=e[n]);return r})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,j]=e.useState("string"==typeof E.defaultValue?E.defaultValue:""),P=null!=c?c:k,S=function(t){let r=e.useRef();return e.useEffect(()=>{r.current=t}),r.current}(P),C=e.useCallback(e=>{null==u||u(e),j(e)},[u]),N=e.useMemo(()=>f?"string"==typeof f?new RegExp(f):f:null,[f]),T=e.useRef(null),z=e.useRef(null),L=e.useRef({value:P,onChange:C,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),M=e.useRef({prev:[null==(i=T.current)?void 0:i.selectionStart,null==(a=T.current)?void 0:a.selectionEnd,null==(s=T.current)?void 0:s.selectionDirection]});e.useImperativeHandle(r,()=>T.current,[]),e.useEffect(()=>{let e=T.current,t=z.current;if(!e||!t)return;function r(){if(document.activeElement!==e)return _(null),void F(null);let t,r=e.selectionStart,n=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=M.current.prev,l=-1,c=-1;if(0!==a.length&&null!==r&&null!==n){let e=r===n,o=r===a.length&&a.length<i;if(e&&!o){let e=r;if(0===e)l=0,c=1,t="forward";else if(e===i)l=e-1,c=e,t="backward";else if(i>1&&a.length>1){let r=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let n=s[0]===s[1]&&s[0]<i;"backward"===t&&!n&&(r=-1)}l=r+e,c=r+e+1}}-1!==l&&-1!==c&&l!==c&&T.current.setSelectionRange(l,c,t)}let u=-1!==l?l:r,p=-1!==c?c:n,d=null!=t?t:o;_(u),F(p),M.current.prev=[u,p,d]}if(L.current.value!==e.value&&L.current.onChange(e.value),M.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&I(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";QV(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),QV(e.sheet,`[data-input-otp]:autofill { ${t} }`),QV(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),QV(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),QV(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let o=new ResizeObserver(n);return o.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),o.disconnect()}},[]);let[D,A]=e.useState(!1),[R,I]=e.useState(!1),[B,_]=e.useState(null),[W,F]=e.useState(null);e.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,r,n;null==(e=T.current)||e.dispatchEvent(new Event("input"));let o=null==(t=T.current)?void 0:t.selectionStart,i=null==(r=T.current)?void 0:r.selectionEnd,a=null==(n=T.current)?void 0:n.selectionDirection;null!==o&&null!==i&&(_(o),F(i),M.current.prev=[o,i,a])})},[P,R]),e.useEffect(()=>{void 0!==S&&P!==S&&S.length<p&&P.length===p&&(null==v||v(P))},[p,v,S,P]);let V=function({containerRef:t,inputRef:r,pushPasswordManagerStrategy:n,isFocused:o}){let[i,a]=e.useState(!1),[s,l]=e.useState(!1),[c,u]=e.useState(!1),p=e.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&s,[i,s,n]),d=e.useCallback(()=>{let e=t.current,o=r.current;if(!e||!o||c||"none"===n)return;let i=e,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(XV).length&&document.elementFromPoint(s,l)===e||(a(!0),u(!0))},[t,r,c,n]);return e.useEffect(()=>{let e=t.current;if(!e||"none"===n)return;function r(){let t=window.innerWidth-e.getBoundingClientRect().right;l(t>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}},[t,n]),e.useEffect(()=>{let e=o||document.activeElement===r.current;if("none"===n||!e)return;let t=setTimeout(d,0),i=setTimeout(d,2e3),a=setTimeout(d,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(t),clearTimeout(i),clearTimeout(a),clearTimeout(s)}},[r,o,n,d]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:T,pushPasswordManagerStrategy:y,isFocused:R}),$=e.useCallback(e=>{let t=e.currentTarget.value.slice(0,p);t.length>0&&N&&!N.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),C(t))},[p,C,S,N]),H=e.useCallback(()=>{var e;if(T.current){let t=Math.min(T.current.value.length,p-1),r=T.current.value.length;null==(e=T.current)||e.setSelectionRange(t,r),_(t),F(r)}I(!0)},[p]),q=e.useCallback(e=>{var t,r;let n=T.current;if(!(g||L.current.isIOS&&e.clipboardData&&n))return;let o=e.clipboardData.getData("text/plain"),i=g?g(o):o;e.preventDefault();let a=null==(t=T.current)?void 0:t.selectionStart,s=null==(r=T.current)?void 0:r.selectionEnd,l=(a!==s?P.slice(0,a)+i+P.slice(s):P.slice(0,a)+i+P.slice(a)).slice(0,p);if(l.length>0&&N&&!N.test(l))return;n.value=l,C(l);let c=Math.min(l.length,p-1),u=l.length;n.setSelectionRange(c,u),_(c),F(u)},[p,C,N,P]),U=e.useMemo(()=>({position:"relative",cursor:E.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[E.disabled]),Y=e.useMemo(()=>({position:"absolute",inset:0,width:V.willPushPWMBadge?`calc(100% + ${V.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:V.willPushPWMBadge?`inset(0 ${V.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:d,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[V.PWM_BADGE_SPACE_WIDTH,V.willPushPWMBadge,d]),G=e.useMemo(()=>e.createElement("input",((e,t)=>$V(e,HV(t)))(((e,t)=>{for(var r in t||(t={}))UV.call(t,r)&&GV(e,r,t[r]);if(qV)for(var r of qV(t))YV.call(t,r)&&GV(e,r,t[r]);return e})({autoComplete:E.autoComplete||"one-time-code"},E),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":B,"data-input-otp-mse":W,inputMode:h,pattern:null==N?void 0:N.source,"aria-placeholder":m,style:Y,maxLength:p,value:P,ref:T,onPaste:e=>{var t;q(e),null==(t=E.onPaste)||t.call(E,e)},onChange:$,onMouseOver:e=>{var t;A(!0),null==(t=E.onMouseOver)||t.call(E,e)},onMouseLeave:e=>{var t;A(!1),null==(t=E.onMouseLeave)||t.call(E,e)},onFocus:e=>{var t;H(),null==(t=E.onFocus)||t.call(E,e)},onBlur:e=>{var t;I(!1),null==(t=E.onBlur)||t.call(E,e)}})),[$,H,q,h,Y,p,W,B,E,null==N?void 0:N.source,P]),X=e.useMemo(()=>({slots:Array.from({length:p}).map((e,t)=>{var r;let n=R&&null!==B&&null!==W&&(B===W&&t===B||t>=B&&t<W),o=void 0!==P[t]?P[t]:null;return{char:o,placeholderChar:void 0!==P[0]?null:null!=(r=null==m?void 0:m[t])?r:null,isActive:n,hasFakeCaret:n&&null===o}}),isFocused:R,isHovering:!E.disabled&&D}),[R,D,p,W,B,E.disabled,P]),K=e.useMemo(()=>x?x(X):e.createElement(KV.Provider,{value:X},O),[O,X,x]);return e.createElement(e.Fragment,null,null!==w&&e.createElement("noscript",null,e.createElement("style",null,w)),e.createElement("div",{ref:z,"data-input-otp-container":!0,style:U,className:b},K,e.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});function QV(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}ZV.displayName="Input";var JV="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const e$=e.forwardRef(({className:t,containerClassName:r,...n},o)=>e.createElement(ZV,{ref:o,containerClassName:Be("flex items-center gap-2 has-disabled:opacity-50",r),className:Be("disabled:cursor-not-allowed",t),...n}));e$.displayName="InputOTP";const t$=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex items-center",t),...r}));t$.displayName="InputOTPGroup";const r$=e.forwardRef(({index:t,className:r,...n},o)=>{const i=e.useContext(KV),{char:a,hasFakeCaret:s,isActive:l}=i.slots[t];return e.createElement("div",{ref:o,className:Be("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-xs transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-1 ring-ring",r),...n},a,s&&e.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center"},e.createElement("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})))});r$.displayName="InputOTPSlot";e.forwardRef(({...t},r)=>e.createElement("div",{ref:r,role:"separator",...t},e.createElement(jk,null))).displayName="InputOTPSeparator";const n$=({value:e,maxLength:r=6,onChange:n,disabled:o=!1,isError:i=!1,placeholder:a="○",className:s})=>t.createElement(e$,{value:e,maxLength:r,onChange:n,disabled:o,className:s},t.createElement("div",{"aria-disabled":o},t.createElement(t$,{role:"group",className:Be("gap-2",i&&"input-error")},Array.from({length:r}).map((r,n)=>t.createElement("div",{key:n,role:"textbox","data-value":e?.[n]||""},t.createElement(r$,{index:n,className:Be("rounded-md border",i&&"border-destructive focus:ring-destructive")},e?.[n]||a))))));n$.displayName="OTPInput";var o$="AlertDialog",[i$,a$]=Eg(o$,[fN]),s$=fN(),l$=e=>{const{__scopeAlertDialog:t,...r}=e,n=s$(t);return E(HN,{...n,...r,modal:!0})};l$.displayName=o$;var c$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(qN,{...o,...n,ref:t})});c$.displayName="AlertDialogTrigger";var u$=e=>{const{__scopeAlertDialog:t,...r}=e,n=s$(t);return E(UN,{...n,...r})};u$.displayName="AlertDialogPortal";var p$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(YN,{...o,...n,ref:t})});p$.displayName="AlertDialogOverlay";var d$="AlertDialogContent",[f$,m$]=i$(d$),h$=function(e){const t=({children:e})=>E(k,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Cg,t}("AlertDialogContent"),v$=e.forwardRef((t,r)=>{const{__scopeAlertDialog:n,children:o,...i}=t,a=s$(n),s=e.useRef(null),l=Og(r,s),c=e.useRef(null);return E(WN,{contentName:d$,titleName:y$,docsSlug:"alert-dialog",children:E(f$,{scope:n,cancelRef:c,children:j(GN,{role:"alertdialog",...a,...i,ref:l,onOpenAutoFocus:bg(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[E(h$,{children:o}),E(k$,{contentRef:s})]})})})});v$.displayName=d$;var y$="AlertDialogTitle",g$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(XN,{...o,...n,ref:t})});g$.displayName=y$;var b$="AlertDialogDescription",w$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(KN,{...o,...n,ref:t})});w$.displayName=b$;var x$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(ZN,{...o,...n,ref:t})});x$.displayName="AlertDialogAction";var O$="AlertDialogCancel",E$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=m$(O$,r),i=s$(r),a=Og(t,o);return E(ZN,{...i,...n,ref:a})});E$.displayName=O$;var k$=({contentRef:t})=>{const r=`\`${d$}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${d$}\` by passing a \`${b$}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${d$}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},j$=p$,P$=v$,S$=x$,C$=E$,N$=g$,T$=w$;const z$=l$,L$=c$,M$=u$,D$=e.forwardRef(({className:t,...r},n)=>e.createElement(j$,{className:Be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:n}));D$.displayName=j$.displayName;const A$=e.forwardRef(({className:t,...r},n)=>e.createElement(M$,null,e.createElement(D$,null),e.createElement(P$,{ref:n,className:Be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})));A$.displayName=P$.displayName;const R$=({className:t,...r})=>e.createElement("div",{className:Be("flex flex-col space-y-2 text-center sm:text-left",t),...r});R$.displayName="AlertDialogHeader";const I$=({className:t,...r})=>e.createElement("div",{className:Be("space-x-3 text-right",t),...r});I$.displayName="AlertDialogFooter";const B$=e.forwardRef(({className:t,...r},n)=>e.createElement(N$,{ref:n,className:Be("text-lg font-semibold",t),...r}));B$.displayName=N$.displayName;const _$=e.forwardRef(({className:t,...r},n)=>e.createElement(T$,{ref:n,className:Be("text-sm text-muted-foreground",t),...r}));_$.displayName=T$.displayName;const W$=e.forwardRef(({className:t,...r},n)=>e.createElement(S$,{ref:n,className:Be(vS(),t),...r}));W$.displayName=S$.displayName;const F$=e.forwardRef(({className:t,...r},n)=>e.createElement(C$,{ref:n,className:Be(vS({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));F$.displayName=C$.displayName;const V$={CANCEL_TEXT:"Cancel",VARIANT:"default",DISABLED:!1},$$=({title:e,description:r,trigger:n,action:o,cancel:i=V$.CANCEL_TEXT,onAction:a,onCancel:s,variant:l=V$.VARIANT,disabled:c=V$.DISABLED,open:u,onOpenChange:p})=>t.createElement(z$,{open:u,onOpenChange:p},!u&&t.createElement(L$,{asChild:!0},"string"==typeof n?t.createElement(st,{variant:"secondary",disabled:c},n):n),t.createElement(A$,null,t.createElement(R$,null,t.createElement(B$,null,e),t.createElement(_$,null,r)),t.createElement(I$,null,t.createElement(F$,{onClick:s,className:Be("destructive"===l&&"border-destructive/50")},i),t.createElement(W$,{onClick:a,className:Be("destructive"===l&&"bg-destructive hover:bg-destructive/90")},o)))),H$=!1,q$="chevron",U$="right",Y$="",G$="",X$="",K$=300,Z$=({title:e,children:r,defaultOpen:n=H$,icon:o=q$,iconPosition:a=U$,className:s=Y$,headerClassName:c=G$,contentClassName:u=X$,animationDuration:p=K$,onToggle:d})=>{const[f,m]=i(n),h=l(()=>{const e=!f;m(e),d&&d(e)},[f,d]),v=l(()=>"chevron"===o?f?t.createElement(Ze,{size:20}):t.createElement(Ge,{size:20}):null,[o,f]);return t.createElement("div",{className:`collapsible-container border rounded-md overflow-hidden ${s}`,"data-state":f?"open":"closed"},t.createElement("button",{type:"button",onClick:h,className:`flex items-center justify-between w-full p-4 text-left font-medium transition-all hover:bg-muted/50 ${c}`,"aria-expanded":f},"left"===a&&v(),t.createElement("span",null,e),"right"===a&&v()),t.createElement("div",{className:`overflow-hidden transition-all ${u}`,style:{maxHeight:f?"1000px":"0px",opacity:f?1:0,transitionDuration:`${p}ms`}},t.createElement("div",{className:"p-4 border-t bg-background"},r)))},Q$={simple:{title:"Click to expand",content:t.createElement(()=>t.createElement("div",null,"This is a simple collapsible content area."),null)},complex:{title:"Product Information",content:t.createElement(()=>t.createElement("div",null,t.createElement("h3",{className:"text-lg font-semibold mb-2"},"Product Features"),t.createElement("ul",{className:"list-disc pl-5 mb-4"},t.createElement("li",null,"Feature one with detailed description"),t.createElement("li",null,"Feature two with even more details about functionality"),t.createElement("li",null,"Feature three with technical specifications")),t.createElement("p",{className:"text-sm text-muted-foreground"},"Additional information about the product can be found in the documentation.")),null)},faq:[{title:"How do I reset my password?",content:t.createElement(()=>t.createElement("div",null,'You can reset your password by clicking on the "Forgot Password" link on the login page and following the instructions sent to your email.'),null)},{title:"What payment methods do you accept?",content:t.createElement(()=>t.createElement("div",null,"We accept all major credit cards, PayPal, and bank transfers. For enterprise customers, we also offer invoicing options."),null)},{title:"Can I cancel my subscription?",content:t.createElement(()=>t.createElement("div",null,"Yes, you can cancel your subscription at any time from your account settings. Your access will continue until the end of your billing period."),null)}]},J$=e=>t.createElement("div",{className:"w-full max-w-3xl mx-auto p-6 rounded-lg border bg-card text-card-foreground shadow-sm"},t.createElement("h2",{className:"text-xl font-bold mb-4"},"Frequently Asked Questions"),Q$.faq.map((r,n)=>t.createElement("div",{key:n,className:n>0?"mt-2":""},t.createElement(Z$,{...e,title:r.title},r.content)))),eH="xsmall",tH="small",rH="medium",nH="large",oH={xsmall:"max-w-xs",small:"max-w-sm",medium:"max-w-2xl",large:"max-w-4xl"},iH={[eH]:{containerPadding:"p-1.5",avatarSize:"w-8 h-8",nameTextSize:"text-sm",metaTextSize:"text-xs",chevronSize:"w-3 h-3"},[tH]:{containerPadding:"p-2",avatarSize:"w-10 h-10",nameTextSize:"text-base",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[rH]:{containerPadding:"p-3",avatarSize:"w-12 h-12",nameTextSize:"text-lg",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[nH]:{containerPadding:"p-4",avatarSize:"w-14 h-14",nameTextSize:"text-xl",metaTextSize:"text-sm",chevronSize:"w-4 h-4"}},aH=({avatarUrl:e,name:r,email:n,position:o,dropdownItems:i=[],size:s=rH,className:u,isDropdownOpen:p=!1,onToggleDropdown:d})=>{const f=c(null),m=i.length,h=iH[s],{containerPadding:v,avatarSize:y,nameTextSize:g,metaTextSize:b,chevronSize:w}=h,x=l(e=>{"Enter"!==e.key&&" "!==e.key||!d||(e.preventDefault(),d())},[d]),O=l((e,t)=>{e.stopPropagation(),t.isDisabled?e.preventDefault():t.onClick&&(e.preventDefault(),t.onClick(),d&&d())},[d]);return a(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&p&&d&&d()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,d]),t.createElement("div",{ref:f,role:m>0?"button":void 0,tabIndex:m>0?0:void 0,onClick:m>0&&d?d:void 0,onKeyDown:m>0?x:void 0,"aria-expanded":m>0?p:void 0,"aria-haspopup":m>0?"menu":void 0,className:Be("inline-block bg-card/95 text-card-foreground rounded-xl overflow-visible backdrop-blur-xs transition-all duration-300",m>0&&d&&"cursor-pointer",oH[s],u)},t.createElement("div",{className:Be("flex items-center gap-3",v)},t.createElement("img",{src:e,alt:`${r} profile`,className:Be("rounded-full border-2 border-background transition-transform duration-300","ring-1 ring-primary/10",y)}),t.createElement("div",null,t.createElement("h2",{className:Be("font-semibold text-foreground",g)},r),o&&t.createElement("p",{className:Be("text-muted-foreground",b)},o),n&&t.createElement("p",{className:Be("text-muted-foreground mt-0.5",b)},n)),m>0&&d&&t.createElement("div",{className:"ml-auto"},t.createElement("div",{className:"p-1"},p?t.createElement(Ze,{className:Be("text-muted-foreground",w)}):t.createElement(Ge,{className:Be("text-muted-foreground",w)})))),p&&m>0&&t.createElement("div",{role:"menu",className:"absolute mt-1 w-full bg-card rounded-md border border-border/30 z-20 py-1 left-0"},i.map((e,r)=>t.createElement("a",{key:r,href:e.link,className:Be("block",{"pointer-events-none":e.isDisabled}),onClick:t=>O(t,e)},t.createElement("div",{role:"menuitem",className:Be("flex items-center px-4 py-2 text-sm",{"opacity-50":e.isDisabled,"cursor-pointer hover:bg-accent/50":!e.isDisabled})},e.icon&&t.createElement("span",{className:"mr-2"},e.icon),e.name)))))},sH="horizontal",lH="tab1",cH=!1,uH="100%";var pH;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(pH||(pH={}));const dH=({items:e,defaultValue:r=lH,orientation:n=sH,disabled:o=cH,onValueChange:s,className:c,width:u=uH})=>{const[p,d]=i(r);a(()=>{if("undefined"!=typeof window){const t=new URLSearchParams(window.location.search).get("tab");t&&e.some(e=>e.value===t)&&(d(t),s?.(t))}},[e,s]);const f=l((e,t)=>{if("undefined"==typeof window)return"";const r=new URLSearchParams(window.location.search);return r.set(e,t),r.toString()},[]),m=l(e=>{if(d(e),"undefined"!=typeof window){const t=f("tab",e),r=`${window.location.pathname}?${t}`;window.history&&window.history.pushState&&window.history.pushState({path:r},"",r)}s&&s(e)},[s,f]),h="vertical"===n,v=e=>Be("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all duration-200",h?"px-4 py-3 w-full justify-start text-left rounded-l-md":"px-5 py-2.5 relative",p===e.value?h?"bg-background/80 text-primary font-semibold shadow-xs backdrop-blur-xs":"text-primary font-semibold":h?"text-muted-foreground hover:text-foreground hover:bg-muted/30":"text-muted-foreground hover:text-foreground",(o||e.disabled)&&"opacity-40 pointer-events-none"),y=l(e=>{o||e.disabled||m(e.value)},[o,m]);return t.createElement("div",{className:Be(h?"flex space-x-6":"space-y-4 flex flex-col items-center",c),style:{width:u}},t.createElement("div",{role:"tablist","aria-orientation":n,className:Be("flex relative",h?"flex-col h-full space-y-1 min-w-[200px] border-r border-border/40 pr-2":"w-full justify-center pb-px")},t.createElement("div",{className:Be("flex relative",h?"flex-col w-full":"border-b border-border/30")},e.map(e=>t.createElement("div",{key:e.value,className:Be("relative",h?"":"border-b-2 border-transparent",p===e.value&&!h&&"border-b-2 border-primary z-10")},t.createElement("button",{role:"tab",type:"button","aria-selected":p===e.value,"aria-controls":`tabpanel-${e.value}`,tabIndex:p===e.value?0:-1,className:v(e),onClick:()=>y(e),disabled:o||e.disabled},e.label,p===e.value&&!h&&t.createElement("div",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-primary rounded-full"})),p===e.value&&h&&t.createElement("div",{className:"absolute top-0 left-0 h-full w-0.5 bg-primary rounded-full"}))))),e.map(e=>t.createElement("div",{key:e.value,role:"tabpanel",id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,hidden:p!==e.value,className:Be("focus-visible:outline-hidden rounded-md",h?"flex-1":"w-full",p===e.value?"animate-in fade-in-0 duration-300":"hidden"),style:h?void 0:{width:u}},e.content)))},fH={small:{node:"w-4 h-4",innerDot:{active:"w-2 h-2",completed:"w-1.5 h-1.5",default:"w-1 h-1"},text:"text-sm",description:"text-xs",connectorTop:"top-2",connectorHeight:"h-10",spacing:"mb-6",marginRight:"mr-4",verticalConnector:{left:"left-[7px]",top:"top-[16px]",height:"h-[calc(100%-16px)]"}},medium:{node:"w-6 h-6",innerDot:{active:"w-3 h-3",completed:"w-2.5 h-2.5",default:"w-2 h-2"},text:"text-base",description:"text-sm",connectorTop:"top-3",connectorHeight:"h-14",spacing:"mb-8",marginRight:"mr-6",verticalConnector:{left:"left-[11px]",top:"top-[24px]",height:"h-[calc(100%-24px)]"}},large:{node:"w-8 h-8",innerDot:{active:"w-4 h-4",completed:"w-3.5 h-3.5",default:"w-3 h-3"},text:"text-lg",description:"text-base",connectorTop:"top-4",connectorHeight:"h-16",spacing:"mb-10",marginRight:"mr-8",verticalConnector:{left:"left-[15px]",top:"top-[32px]",height:"h-[calc(100%-32px)]"}}},mH=({steps:e,activeStep:r=0,orientation:n="horizontal",size:o="medium",className:i,onStepClick:a})=>{const s="horizontal"===n,l=fH[o];return t.createElement("div",{className:Be("max-w-full mx-auto mb-4 px-8",i)},t.createElement("div",{className:Be("flex relative p-0",s?"flex-row justify-between":"flex-col")},e.map((n,o)=>{const i=o===r,c=o<r,u=a?t.createElement("button",{type:"button",className:Be("relative text-left w-full bg-transparent border-0 p-0 m-0",s?"flex-1 flex flex-col items-center px-4":"flex items-start w-full p-0 pb-12 last:pb-0",i&&"active",c&&"completed"),onClick:()=>a(o),"aria-current":i?"step":void 0},t.createElement("div",{className:Be("flex justify-center items-center rounded-full relative transition-all duration-300 ease-in-out z-10",l.node,s?"mb-6":"absolute",i?"border-2 border-primary shadow-[0_0_0_4px_rgba(var(--primary),0.2)] bg-background":c?"border-2 border-primary bg-primary":"border-2 border-border bg-background")},t.createElement("div",{className:Be("rounded-full transition-all duration-300 ease-in-out",i?Be(l.innerDot.active,"bg-primary"):c?Be(l.innerDot.completed,"bg-primary-foreground"):Be(l.innerDot.default,"bg-muted-foreground/50"))})),o<e.length-1&&t.createElement("div",{className:Be("absolute transition-all duration-300 ease-in-out",s?`h-0.5 ${l.connectorTop} -translate-y-1/2 left-[calc(50%+12px+1rem)] right-[calc(-50%+12px+1rem)]`:`w-0.5 ${l.verticalConnector.left} ${l.verticalConnector.top} ${l.verticalConnector.height}`,c?"bg-primary":"bg-border")}),t.createElement("div",{className:Be(s?"text-center px-4":"flex-1 ml-10")},t.createElement("h3",{className:Be("transition-opacity duration-300 ease-in-out m-0",l.text,i?"text-primary font-medium opacity-100":c?"text-primary font-normal opacity-90":"text-foreground font-normal opacity-70")},n.label),n.description&&t.createElement("p",{className:Be("text-muted-foreground mt-1",l.description)},n.description))):t.createElement("div",{className:Be("relative",s?"flex-1 flex flex-col items-center px-4":"flex items-start w-full p-0 pb-12 last:pb-0",i&&"active",c&&"completed"),"aria-current":i?"step":void 0},t.createElement("div",{className:Be("flex justify-center items-center rounded-full relative transition-all duration-300 ease-in-out z-10",l.node,s?"mb-6":"absolute",i?"border-2 border-primary shadow-[0_0_0_4px_rgba(var(--primary),0.2)] bg-background":c?"border-2 border-primary bg-primary":"border-2 border-border bg-background")},t.createElement("div",{className:Be("rounded-full transition-all duration-300 ease-in-out",i?Be(l.innerDot.active,"bg-primary"):c?Be(l.innerDot.completed,"bg-primary-foreground"):Be(l.innerDot.default,"bg-muted-foreground/50"))})),o<e.length-1&&t.createElement("div",{className:Be("absolute transition-all duration-300 ease-in-out",s?`h-0.5 ${l.connectorTop} -translate-y-1/2 left-[calc(50%+12px+1rem)] right-[calc(-50%+12px+1rem)]`:"w-0.5 left-[12px] top-[24px] h-[calc(100%-24px)]",c?"bg-primary":"bg-border")}),t.createElement("div",{className:Be(s?"text-center px-4":"flex-1 ml-10")},t.createElement("h3",{className:Be("transition-opacity duration-300 ease-in-out m-0",l.text,i?"text-primary font-medium opacity-100":c?"text-primary font-normal opacity-90":"text-foreground font-normal opacity-70")},n.label),n.description&&t.createElement("p",{className:Be("text-muted-foreground mt-1",l.description)},n.description)));return t.createElement(t.Fragment,{key:n.id},u)})))},hH=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function vH(e,t,r){const n=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const r=t.split(".").pop().toLowerCase(),n=hH.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:o}=e,i="string"==typeof t?t:"string"==typeof o&&o.length>0?o:`./${e.name}`;return"string"!=typeof n.path&&yH(n,"path",i),yH(n,"relativePath",i),n}function yH(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}const gH=[".DS_Store","Thumbs.db"];function bH(e){return"object"==typeof e&&null!==e}function wH(e){return e.filter(e=>-1===gH.indexOf(e.name))}function xH(e){if(null===e)return[];const t=[];for(let r=0;r<e.length;r++){const n=e[r];t.push(n)}return t}function OH(e){if("function"!=typeof e.webkitGetAsEntry)return kH(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?PH(t):kH(e,t)}function EH(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?EH(t):[t]],[])}function kH(e,t){return gC(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,vH(e)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return vH(n,null!==(r=null==t?void 0:t.fullPath)&&void 0!==r?r:void 0)})}function jH(e){return gC(this,void 0,void 0,function*(){return e.isDirectory?PH(e):function(e){return gC(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{const n=vH(r,e.fullPath);t(n)},e=>{r(e)})})})}(e)})}function PH(e){const t=e.createReader();return new Promise((e,r)=>{const n=[];!function o(){t.readEntries(t=>gC(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(jH));n.push(e),o()}else try{const t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}()})}var SH,CH={};var NH=lt((SH||(SH=1,CH.__esModule=!0,CH.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}),CH));function TH(e){return function(e){if(Array.isArray(e))return RH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zH(Object(r),!0).forEach(function(t){MH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zH(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function MH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||AH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AH(e,t){if(e){if("string"==typeof e)return RH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?RH(e,t):void 0}}function RH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var IH="function"==typeof NH?NH:NH.default,BH=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(t)}},_H=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},WH=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},FH={code:"too-many-files",message:"Too many files"};function VH(e,t){var r="application/x-moz-file"===e.type||IH(e,t);return[r,r?null:BH(t)]}function $H(e,t,r){if(HH(e.size))if(HH(t)&&HH(r)){if(e.size>r)return[!1,_H(r)];if(e.size<t)return[!1,WH(t)]}else{if(HH(t)&&e.size<t)return[!1,WH(t)];if(HH(r)&&e.size>r)return[!1,_H(r)]}return[!0,null]}function HH(e){return null!=e}function qH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function UH(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function YH(e){e.preventDefault()}function GH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.some(function(t){return!qH(e)&&t&&t.apply(void 0,[e].concat(n)),qH(e)})}}function XH(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function KH(e){return/^.*\.[\w]+$/.test(e)}var ZH=["children"],QH=["open"],JH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],eq=["refKey","onChange","onClick"];function tq(e){return function(e){if(Array.isArray(e))return oq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||nq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nq(e,t){if(e){if("string"==typeof e)return oq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oq(e,t):void 0}}function oq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iq(Object(r),!0).forEach(function(t){sq(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iq(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var cq=r(function(e,r){var n=e.children,o=dq(lq(e,ZH)),i=o.open,a=lq(o,QH);return f(r,function(){return{open:i}},[i]),t.createElement(y,null,n(aq(aq({},a),{},{open:i})))});cq.displayName="Dropzone";var uq={disabled:!1,getFilesFromEvent:function(e){return gC(this,void 0,void 0,function*(){return bH(e)&&bH(e.dataTransfer)?function(e,t){return gC(this,void 0,void 0,function*(){if(e.items){const r=xH(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return r;return wH(EH(yield Promise.all(r.map(OH))))}return wH(xH(e.files).map(e=>vH(e)))})}(e.dataTransfer,e.type):function(e){return bH(e)&&bH(e.target)}(e)?function(e){return xH(e.target.files).map(e=>vH(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return gC(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>vH(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};cq.defaultProps=uq,cq.propTypes={children:It.func,accept:It.objectOf(It.arrayOf(It.string)),multiple:It.bool,preventDropOnDocument:It.bool,noClick:It.bool,noKeyboard:It.bool,noDrag:It.bool,noDragEventsBubbling:It.bool,minSize:It.number,maxSize:It.number,maxFiles:It.number,disabled:It.bool,getFilesFromEvent:It.func,onFileDialogCancel:It.func,onFileDialogOpen:It.func,useFsAccessApi:It.bool,autoFocus:It.bool,onDragEnter:It.func,onDragLeave:It.func,onDragOver:It.func,onDrop:It.func,onDropAccepted:It.func,onDropRejected:It.func,onError:It.func,validator:It.func};var pq={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function dq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=aq(aq({},uq),e),r=t.accept,n=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,u=t.minSize,p=t.multiple,d=t.maxFiles,f=t.onDragEnter,m=t.onDragLeave,h=t.onDragOver,v=t.onDrop,y=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,x=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,j=t.noClick,P=t.noKeyboard,S=t.noDrag,C=t.noDragEventsBubbling,N=t.onError,T=t.validator,z=s(function(){return function(e){if(HH(e))return Object.entries(e).reduce(function(e,t){var r=DH(t,2),n=r[0],o=r[1];return[].concat(TH(e),[n],TH(o))},[]).filter(function(e){return XH(e)||KH(e)}).join(",")}(r)},[r]),L=s(function(){return function(e){return HH(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=DH(e,2),r=t[0],n=t[1],o=!0;return XH(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(n)&&n.every(KH)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var r=DH(t,2),n=r[0],o=r[1];return LH(LH({},e),{},MH({},n,o))},{})}]:e}(r)},[r]),M=s(function(){return"function"==typeof w?w:mq},[w]),D=s(function(){return"function"==typeof b?b:mq},[b]),A=c(null),R=c(null),I=rq(O(fq,pq),2),B=I[0],_=I[1],W=B.isFocused,F=B.isFileDialogActive,V=c("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),$=function(){!V.current&&F&&setTimeout(function(){R.current&&(R.current.files.length||(_({type:"closeDialog"}),D()))},300)};a(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[R,F,D,V]);var H=c([]),q=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),H.current=[])};a(function(){return k&&(document.addEventListener("dragover",YH,!1),document.addEventListener("drop",q,!1)),function(){k&&(document.removeEventListener("dragover",YH),document.removeEventListener("drop",q))}},[A,k]),a(function(){return!n&&E&&A.current&&A.current.focus(),function(){}},[A,E,n]);var U=l(function(e){N?N(e):console.error(e)},[N]),Y=l(function(e){e.preventDefault(),e.persist(),ae(e),H.current=[].concat(tq(H.current),[e.target]),UH(e)&&Promise.resolve(o(e)).then(function(t){if(!qH(e)||C){var r=t.length,n=r>0&&function(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every(function(e){var t=DH(VH(e,r),1)[0],i=DH($H(e,n,o),1)[0],a=s?s(e):null;return t&&i&&!a})}({files:t,accept:z,minSize:u,maxSize:i,multiple:p,maxFiles:d,validator:T});_({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),f&&f(e)}}).catch(function(e){return U(e)})},[o,f,U,C,z,u,i,p,d,T]),G=l(function(e){e.preventDefault(),e.persist(),ae(e);var t=UH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1},[h,C]),X=l(function(e){e.preventDefault(),e.persist(),ae(e);var t=H.current.filter(function(e){return A.current&&A.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),H.current=t,t.length>0||(_({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),UH(e)&&m&&m(e))},[A,m,C]),K=l(function(e,t){var r=[],n=[];e.forEach(function(e){var t=rq(VH(e,z),2),o=t[0],a=t[1],s=rq($H(e,u,i),2),l=s[0],c=s[1],p=T?T(e):null;if(o&&l&&!p)r.push(e);else{var d=[a,c];p&&(d=d.concat(p)),n.push({file:e,errors:d.filter(function(e){return e})})}}),(!p&&r.length>1||p&&d>=1&&r.length>d)&&(r.forEach(function(e){n.push({file:e,errors:[FH]})}),r.splice(0)),_({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),v&&v(r,n,t),n.length>0&&g&&g(n,t),r.length>0&&y&&y(r,t)},[_,p,z,u,i,d,v,y,g,T]),Z=l(function(e){e.preventDefault(),e.persist(),ae(e),H.current=[],UH(e)&&Promise.resolve(o(e)).then(function(t){qH(e)&&!C||K(t,e)}).catch(function(e){return U(e)}),_({type:"reset"})},[o,K,U,C]),Q=l(function(){if(V.current){_({type:"openDialog"}),M();var e={multiple:p,types:L};window.showOpenFilePicker(e).then(function(e){return o(e)}).then(function(e){K(e,null),_({type:"closeDialog"})}).catch(function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(D(e),_({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(V.current=!1,R.current?(R.current.value=null,R.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))})}else R.current&&(_({type:"openDialog"}),M(),R.current.value=null,R.current.click())},[_,M,D,x,K,U,L,p]),J=l(function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Q()))},[A,Q]),ee=l(function(){_({type:"focus"})},[]),te=l(function(){_({type:"blur"})},[]),re=l(function(){j||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Q():setTimeout(Q,0))},[j,Q]),ne=function(e){return n?null:e},oe=function(e){return P?null:ne(e)},ie=function(e){return S?null:ne(e)},ae=function(e){C&&e.stopPropagation()},se=s(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,p=e.onDragLeave,d=e.onDrop,f=lq(e,JH);return aq(aq(sq({onKeyDown:oe(GH(i,J)),onFocus:oe(GH(a,ee)),onBlur:oe(GH(s,te)),onClick:ne(GH(l,re)),onDragEnter:ie(GH(c,Y)),onDragOver:ie(GH(u,G)),onDragLeave:ie(GH(p,X)),onDrop:ie(GH(d,Z)),role:"string"==typeof o&&""!==o?o:"presentation"},r,A),n||P?{}:{tabIndex:0}),f)}},[A,J,ee,te,re,Y,G,X,Z,P,S,n]),le=l(function(e){e.stopPropagation()},[]),ce=s(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,o=e.onClick,i=lq(e,eq);return aq(aq({},sq({accept:z,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ne(GH(n,Z)),onClick:ne(GH(o,le)),tabIndex:-1},r,R)),i)}},[R,r,p,Z,n]);return aq(aq({},B),{},{isFocused:W&&!n,getRootProps:se,getInputProps:ce,rootRef:A,inputRef:R,open:ne(Q)})}function fq(e,t){switch(t.type){case"focus":return aq(aq({},e),{},{isFocused:!0});case"blur":return aq(aq({},e),{},{isFocused:!1});case"openDialog":return aq(aq({},pq),{},{isFileDialogActive:!0});case"closeDialog":return aq(aq({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return aq(aq({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return aq(aq({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return aq({},pq);default:return e}}function mq(){}const hq=10485760,vq=5,yq=1/0,gq={IMAGE:"image/*",PDF:"application/pdf",DOCUMENT:".doc,.docx,.pdf,.txt",ALL:"*"},bq={FILE_TOO_LARGE:"File size exceeds maximum allowed size",TOO_MANY_FILES:"Maximum number of files exceeded",INVALID_FILE_TYPE:"File type not supported",UPLOAD_FAILED:"Upload failed"},wq={UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},xq=e=>{if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},Oq=e=>{if("*"===e||!e||""===e.trim())return;return/^[a-zA-Z0-9][a-zA-Z0-9-]*\/[a-zA-Z0-9][a-zA-Z0-9\-*]*$/.test(e.trim())?{[e.trim()]:[]}:void 0},Eq=({onFilesChange:e,accept:r="*",multiple:n=!1,maxSize:o=10485760,maxFiles:a=(n?yq:1),disabled:s=!1,className:c="",width:u="w-full",children:p,fileActions:d=[],showRemoveButton:f=!0})=>{const[m,h]=i([]),[v,y]=i([]),g=l(()=>{y([])},[]),b=l(t=>{const r=m.filter(e=>(e.id===t&&e.preview&&URL.revokeObjectURL(e.preview),e.id!==t));h(r),e(r.map(e=>e.file))},[m,e]),w=l(e=>()=>{b(e)},[b]),x=l((e,t)=>()=>{e.onClick(t)},[]),O=l(e=>m.some(t=>t.name===e.name&&t.size===e.size&&t.type===e.type),[m]),E=l((t,r)=>{y([]);const n=[];r.length>0&&r.forEach(e=>{e.errors&&e.errors.forEach(e=>{"file-too-large"===e.code?n.push(bq.FILE_TOO_LARGE):"file-invalid-type"===e.code&&n.push(bq.INVALID_FILE_TYPE)})});const o=[],i=t.filter(e=>{const t=O(e);return t&&o.push(e.name),!t});if(o.length>0){const e=1===o.length?`The following file is already uploaded:\n• ${o[0]}`:`The following files are already uploaded:\n${o.map(e=>`• ${e}`).join("\n")}`;n.push(e)}if(a!==1/0&&m.length+i.length>a&&n.push(bq.TOO_MANY_FILES),i.length>0&&(a===1/0||m.length+i.length<=a)){const t=i.map((e,t)=>({id:`${Date.now()}-${t}`,file:e,name:e.name,size:e.size,type:e.type,status:"success",preview:e.type.startsWith("image/")?URL.createObjectURL(e):void 0})),r=[...m,...t];h(r),e(r.map(e=>e.file))}n.length>0&&y(n)},[m,a,e,O]),{getRootProps:k,getInputProps:j,isDragActive:P}=dq({onDrop:E,accept:Oq(r),multiple:n,maxSize:o,disabled:s});return t.createElement("div",{className:`file-uploader ${u} ${c}`},t.createElement("div",{...k(),className:`\n border-2 border-dashed rounded-lg p-6 center cursor-pointer transition-colors\n ${P?"border-primary bg-primary/5":"border-border hover:border-primary/50"}\n ${s?"opacity-50 cursor-not-allowed":""}\n `},t.createElement("input",{...j()}),p?t.createElement("div",{className:"flex flex-col items-center justify-center"},p):t.createElement("div",{className:"flex flex-col items-center justify-center"},t.createElement("div",{className:"mb-2"},P?t.createElement(vg,{variant:"body",color:"quinary",textAlign:"center"},"Drop the files here..."):t.createElement(vg,{variant:"body",color:"quinary",textAlign:"center"},"Drag & drop files here, or click to select files")),t.createElement("div",{className:"flex flex-col items-center"},n&&a!==1/0&&t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum ",a," files"),n&&a===1/0&&t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"No file limit"),t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum file size: ",xq(o))))),v.length>0&&t.createElement("div",{className:"mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-md"},t.createElement("div",{className:"flex items-start justify-between"},t.createElement("div",{className:"flex-1"},v.map((e,r)=>t.createElement(vg,{key:r,variant:"caption",color:"tertiary",className:"whitespace-pre-line"},e))),t.createElement(st,{onClick:g,type:"button",variant:"link",size:"small",className:"ml-2 text-destructive hover:text-destructive/80 p-1 min-w-0"},"✕"))),m.length>0&&t.createElement("div",{className:"mt-4 flex flex-col items-center"},t.createElement(yg,{variant:"h6",color:"quinary",fontWeight:"semibold",marginBottom:"small",textAlign:"center"},"Uploaded Files"),t.createElement("div",{className:"space-y-2 w-full"},m.map(e=>t.createElement("div",{key:e.id,className:"flex items-center justify-between p-3 bg-muted rounded-md"},t.createElement("div",{className:"flex items-center space-x-3"},e.preview&&t.createElement("img",{src:e.preview,alt:e.name,className:"w-10 h-10 object-cover rounded"}),t.createElement("div",{className:"flex flex-col items-start"},t.createElement(vg,{variant:"caption",color:"quinary",fontWeight:"semibold"},e.name),t.createElement(vg,{variant:"captionSm",color:"quinary"},xq(e.size)))),t.createElement("div",{className:"flex items-center space-x-2"},d.map((r,n)=>t.createElement(st,{key:n,onClick:x(r,e),type:"button",variant:r.variant||"secondary",size:"small"},r.icon&&t.createElement("span",{className:r.label?"mr-1":""},r.icon),r.label)),f&&t.createElement(st,{onClick:w(e.id),type:"button",variant:"danger",size:"small"},"Remove")))))))};function kq(e,t){return Array(t+1).join(e)}var jq=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Pq(e){return Tq(e,jq)}var Sq=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Cq(e){return Tq(e,Sq)}var Nq=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Tq(e,t){return t.indexOf(e.nodeName)>=0}function zq(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var Lq={};function Mq(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function Dq(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function Aq(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(Rq(o,t,r))return o}}function Rq(e,t,r){var n=e.filter;if("string"==typeof n){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof n)throw new TypeError("`filter` needs to be a string, array, or function");if(n.call(e,t,r))return!0}}function Iq(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Bq(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}Lq.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},Lq.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},Lq.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));return"setext"===r.headingStyle&&n<3?"\n\n"+e+"\n"+kq(1===n?"=":"-",e.length)+"\n\n":"\n\n"+kq("#",n)+" "+e+"\n\n"}},Lq.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},Lq.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return"LI"===r.nodeName&&r.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},Lq.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var n=r.bulletListMarker+" ",o=t.parentNode;if("OL"===o.nodeName){var i=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);n=(i?Number(i)+a:a+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},Lq.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},Lq.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var n,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,a=r.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm");n=l.exec(i);)n[0].length>=s&&(s=n[0].length+1);var c=kq(a,s);return"\n\n"+c+o+"\n"+i.replace(/\n$/,"")+"\n"+c+"\n\n"}},Lq.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},Lq.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=Mq(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},Lq.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,r){var n,o,i=t.getAttribute("href"),a=Mq(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),r.linkReferenceStyle){case"collapsed":n="["+e+"][]",o="["+e+"]: "+i+a;break;case"shortcut":n="["+e+"]",o="["+e+"]: "+i+a;break;default:var s=this.references.length+1;n="["+e+"]["+s+"]",o="["+s+"]: "+i+a}return this.references.push(o),n},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},Lq.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},Lq.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},Lq.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];-1!==n.indexOf(r);)r+="`";return r+t+e+t+r}},Lq.image={filter:"img",replacement:function(e,t){var r=Mq(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=Mq(t.getAttribute("title"));return n?"!["+r+"]("+n+(o?' "'+o+'"':"")+")":""}},Dq.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=Aq(this.array,e,this.options))||(t=Aq(this._keep,e,this.options))||(t=Aq(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var _q="undefined"!=typeof window?window:{};var Wq,Fq,Vq,$q=function(){var e=_q.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?_q.DOMParser:(Wq=function(){},Fq=require("@mixmark-io/domino"),Wq.prototype.parseFromString=function(e){return Fq.createDocument(e)},Wq);function Hq(e,t){var r;"string"==typeof e?r=(Vq=Vq||new $q).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):r=e.cloneNode(!0);return function(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!o(t)){for(var i=null,a=!1,s=null,l=Bq(s,t,o);l!==t;){if(3===l.nodeType||4===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(i&&!/ $/.test(i.data)||a||" "!==c[0]||(c=c.substr(1)),!c){l=Iq(l);continue}l.data=c,i=l}else{if(1!==l.nodeType){l=Iq(l);continue}r(l)||"BR"===l.nodeName?(i&&(i.data=i.data.replace(/ $/,"")),i=null,a=!1):n(l)||o(l)?(i=null,a=!0):i&&(a=!1)}var u=Bq(s,l,o);s=l,l=u}i&&(i.data=i.data.replace(/ $/,""),i.data||Iq(i))}}({element:r,isBlock:Pq,isVoid:Cq,isPre:t.preformattedCode?qq:null}),r}function qq(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function Uq(e,t){return e.isBlock=Pq(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!Cq(e)&&!function(e){return Tq(e,Nq)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return zq(e,Sq)}(e)&&!function(e){return zq(e,Nq)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=(n=e.textContent,o=n.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:o[1],leadingAscii:o[2],leadingNonAscii:o[3],trailing:o[4],trailingNonAscii:o[5],trailingAscii:o[6]});var n,o;r.leadingAscii&&Yq("left",e,t)&&(r.leading=r.leadingNonAscii);r.trailingAscii&&Yq("right",e,t)&&(r.trailing=r.trailingNonAscii);return{leading:r.leading,trailing:r.trailing}}(e,t),e}function Yq(e,t,r){var n,o,i;return"left"===e?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(3===n.nodeType?i=o.test(n.nodeValue):r.preformattedCode&&"CODE"===n.nodeName?i=!1:1!==n.nodeType||Pq(n)||(i=o.test(n.textContent))),i}var Gq=Array.prototype.reduce,Xq=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Kq(e){if(!(this instanceof Kq))return new Kq(e);var t={rules:Lq,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},t,e),this.rules=new Dq(this.options)}function Zq(e){var t=this;return Gq.call(e.childNodes,function(e,r){var n="";return 3===(r=new Uq(r,t.options)).nodeType?n=r.isCode?r.nodeValue:t.escape(r.nodeValue):1===r.nodeType&&(n=Jq.call(t,r)),eU(e,n)},"")}function Qq(e){var t=this;return this.rules.forEach(function(r){"function"==typeof r.append&&(e=eU(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Jq(e){var t=this.rules.forNode(e),r=Zq.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function eU(e,t){var r=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),n=t.replace(/^\n*/,""),o=Math.max(e.length-r.length,t.length-n.length);return r+"\n\n".substring(0,o)+n}Kq.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=Zq.call(this,new Hq(e,this.options));return Qq.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Xq.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};const tU=({value:e="",onChange:r,placeholder:n="Start writing...",className:o,disabled:s=!1,showToolbar:u=!0,minHeight:p=200})=>{const[d,f]=i(e),[m,h]=i(!1),[v,y]=i(""),[g,b]=i(new Set),[w,x]=i("left"),[O,E]=i("p"),[k,j]=i({ul:!1,ol:!1}),P=c(null),S=c(null),C=c(new Kq({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"*",emDelimiter:"*",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full"}));a(()=>{const e=C.current;e.addRule("paragraph",{filter:["p","div"],replacement:function(e){return e?"\n\n"+e+"\n\n":""}}),e.addRule("blockquote",{filter:"blockquote",replacement:function(e){return"\n\n> "+e.trim().replace(/\n/g,"\n> ")+"\n\n"}}),e.addRule("codeBlock",{filter:"pre",replacement:function(e){return"\n\n```\n"+e.trim()+"\n```\n\n"}}),e.addRule("inlineCode",{filter:"code",replacement:function(e){return"`"+e+"`"}})},[]);const N=[{id:"p",label:"Paragraph",icon:t.createElement(Qy,{name:"Type",size:16})},{id:"h1",label:"Heading 1",icon:t.createElement(Qy,{name:"Type",size:20})},{id:"h2",label:"Heading 2",icon:t.createElement(Qy,{name:"Type",size:16})},{id:"h3",label:"Heading 3",icon:t.createElement(Qy,{name:"Type",size:12})}],T=[{id:"left",label:"Left",icon:t.createElement(Qy,{name:"AlignLeft",size:16})},{id:"center",label:"Center",icon:t.createElement(Qy,{name:"AlignCenter",size:16})},{id:"right",label:"Right",icon:t.createElement(Qy,{name:"AlignRight",size:16})}],z=l(()=>{const e=window.getSelection();if(!e||0===e.rangeCount)return null;let t=e.anchorNode;return t?(t.nodeType===Node.TEXT_NODE&&(t=t.parentElement),t):null},[]),L=l(()=>{const e=z();if(!e)return{ul:!1,ol:!1};return{ul:!!e.closest("ul"),ol:!!e.closest("ol")}},[z]),M=l(()=>{if(!P.current)return;const e=window.getSelection();if(!e||0===e.rangeCount)return;const t=new Set;document.queryCommandState("bold")&&t.add("bold"),document.queryCommandState("italic")&&t.add("italic"),document.queryCommandState("underline")&&t.add("underline"),document.queryCommandState("justifyLeft")?x("left"):document.queryCommandState("justifyCenter")?x("center"):document.queryCommandState("justifyRight")?x("right"):x("left");const r=document.queryCommandValue("formatBlock").toLowerCase();r.includes("h1")?E("h1"):r.includes("h2")?E("h2"):r.includes("h3")?E("h3"):r.includes("pre")?(t.add("code"),E("p")):r.includes("blockquote")?(t.add("quote"),E("p")):E("p");const n=L();j(n),b(t)},[L]),D=l(()=>{if(P.current){const e=P.current.innerHTML;let t="";try{t=C.current.turndown(e),t=t.replace(/\n{3,}/g,"\n\n").replace(/^\n+/,"").replace(/\n+$/,"").trim()}catch{t=e}f(t),r?.(t),setTimeout(M,10)}},[r,M]),A=l(()=>{const e=window.getSelection();e&&P.current&&P.current.contains(e.anchorNode)&&setTimeout(M,10)},[M]),R=l((e,t)=>{s||(document.execCommand(e,!1,t),D(),P.current?.focus())},[s,D]),I=l(e=>{if(s)return;const t={bold:"bold",italic:"italic",underline:"underline",code:"formatBlock"};"code"===e?g.has("code")?R("formatBlock","<div>"):R("formatBlock","<pre>"):R(t[e])},[R,g,s]),B=l(e=>{if(s)return;const t=e?"insertOrderedList":"insertUnorderedList",r=L();e&&r.ol?R("insertOrderedList"):!e&&r.ul?R("insertUnorderedList"):R(t)},[R,L,s]),_=l(()=>{s||(g.has("quote")?R("formatBlock","<div>"):R("formatBlock","<blockquote>"))},[R,g,s]),W=l(e=>{if(s)return;R("formatBlock",{p:"<div>",h1:"<h1>",h2:"<h2>",h3:"<h3>"}[e])},[R,s]),F=l(e=>{s||R("justify"+e.charAt(0).toUpperCase()+e.slice(1))},[R,s]),V=l(()=>{v.trim()&&(R("createLink",v),y(""),h(!1))},[R,v]),$=l(e=>{if("Enter"===e.key&&m&&(e.preventDefault(),V()),"Escape"===e.key&&m&&(h(!1),y("")),e.ctrlKey||e.metaKey)switch(e.key){case"b":e.preventDefault(),I("bold");break;case"i":e.preventDefault(),I("italic");break;case"u":e.preventDefault(),I("underline")}},[m,V,I]),H=l(e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},[]),q=l(()=>{setTimeout(M,10)},[M]),U=l(()=>{h(!1),y("")},[]),Y=l(()=>{h(!0)},[]);return a(()=>{e!==d&&(f(e),P.current&&e!==P.current.innerHTML&&(P.current.innerHTML=e))},[e,d]),a(()=>{m&&S.current&&S.current.focus()},[m]),a(()=>(document.addEventListener("selectionchange",A),()=>{document.removeEventListener("selectionchange",A)}),[A]),t.createElement("div",{className:Be("border border-border rounded-lg bg-background overflow-hidden","focus-within:border-primary/30 focus-within:ring-1 focus-within:ring-primary/20","transition-all duration-200",s&&"opacity-50 cursor-not-allowed",o)},u&&t.createElement("div",{className:"flex items-center gap-1 p-2 border-b border-border bg-muted/30 flex-wrap"},t.createElement(CS,{options:N,value:O,onValueChange:W,placeholder:"Format",size:"small",className:"min-w-[120px]"}),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>I("bold"),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("bold")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Bold",size:16})),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>I("italic"),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("italic")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Italic",size:16})),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>I("underline"),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("underline")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Underline",size:16})),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>B(!1),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",k.ul&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"List",size:16})),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>B(!0),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",k.ol&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Hash",size:16})),t.createElement(st,{variant:"tertiary",size:"small",onClick:_,disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("quote")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"MessageSquare",size:16})),t.createElement(st,{variant:"tertiary",size:"small",onClick:()=>I("code"),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("code")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Code",size:16})),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(CS,{options:T,value:w,onValueChange:F,placeholder:"Align",size:"small",className:"min-w-[100px]"}),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),m?t.createElement("div",{className:"flex items-center gap-2"},t.createElement("input",{ref:S,type:"text",value:v,onChange:e=>y(e.target.value),onKeyDown:$,placeholder:"Enter URL",className:"px-2 py-1 text-sm border border-border rounded bg-background focus:outline-none focus:border-primary/30 focus:ring-1 focus:ring-primary/20 transition-all duration-150"}),t.createElement(st,{variant:"primary",size:"small",onClick:V,className:"h-8 transition-all duration-150"},"Add"),t.createElement(st,{variant:"tertiary",size:"small",onClick:U,className:"h-8 transition-all duration-150"},"Cancel")):t.createElement(st,{variant:"tertiary",size:"small",onClick:Y,disabled:s,className:"h-8 w-8 p-0 transition-all duration-150 ease-in-out hover:bg-primary/10 hover:scale-105"},t.createElement(Qy,{name:"Link2",size:16}))),t.createElement("div",{ref:P,contentEditable:!s,role:"textbox",onInput:D,onKeyDown:$,onPaste:H,onFocus:q,suppressContentEditableWarning:!0,className:Be("p-4 focus:outline-none min-h-0","prose prose-sm max-w-none","text-foreground","[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:text-foreground [&_h1]:mt-6 [&_h1]:mb-4","[&_h2]:text-xl [&_h2]:font-semibold [&_h2]:text-foreground [&_h2]:mt-5 [&_h2]:mb-3","[&_h3]:text-lg [&_h3]:font-medium [&_h3]:text-foreground [&_h3]:mt-4 [&_h3]:mb-2","[&_p]:text-foreground [&_p]:leading-relaxed [&_p]:mb-3","[&_div]:text-foreground [&_div]:leading-relaxed [&_div]:mb-3","[&_ul]:text-foreground [&_ul]:ml-6 [&_ul]:mb-3 [&_ul]:list-disc","[&_ol]:text-foreground [&_ol]:ml-6 [&_ol]:mb-3 [&_ol]:list-decimal","[&_li]:text-foreground [&_li]:mb-1 [&_li]:ml-2","[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:italic [&_blockquote]:text-muted-foreground [&_blockquote]:mb-4","[&_pre]:bg-muted [&_pre]:text-foreground [&_pre]:p-3 [&_pre]:rounded [&_pre]:mb-4 [&_pre]:font-mono [&_pre]:text-sm [&_pre]:overflow-x-auto","[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-2 [&_a]:decoration-primary/50 [&_a:hover]:decoration-primary","[&_strong]:font-semibold [&_strong]:text-foreground","[&_em]:italic [&_em]:text-foreground","[&_u]:underline [&_u]:text-foreground","empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground empty:before:pointer-events-none empty:before:absolute"),style:{minHeight:p},"data-placeholder":n}))};export{gq as ACCEPTED_FILE_TYPES,V$ as ALERT_DIALOG_DEFAULTS,ZF as ANIMATION_DURATION,$$ as AlertDialogComponent,$S as BADGE_POSITIONS,kS as BreadCrumb,st as Button,VS as CARD_BORDER_RADIUS,FS as CARD_HOVER_EFFECTS,WS as CARD_SHADOWS,BS as CARD_SIZES,_S as CARD_SPACING,HS as CARD_VARIANTS,wS as Calendar,qS as Card,FV as Carousel,yw as CellType,rg as Checkbox,Z$ as Collapse,Q$ as CollapseData,IS as CustomSkeleton,XF as DEFAULT_ALIGN,VL as DEFAULT_DATE_FORMAT,vq as DEFAULT_MAX_FILES,hq as DEFAULT_MAX_SIZE,GF as DEFAULT_SIDE,KF as DEFAULT_SIDE_OFFSET,eT as DIALOG_DEFAULTS,$L as DatePicker,_y as Disable,LM as Drawer,CS as Dropdown,qy as EditFilled,tU as Editor,$y as Error,Yy as ExcelFile,J$ as FAQCollapseGroup,Xy as FBLike,Ky as FBLove,bq as FILE_UPLOAD_ERRORS,Uy as FileUpload,Eq as FileUploader,yg as Heading,Wy as Hide,Qy as Icon,Fy as Info,gg as Input,YS as LoaderComponent,nw as MessageComponent,rw as MessagePosition,tw as MessageVariants,n$ as OTPInput,YF as POPOVER_ALIGN_OPTIONS,UF as POPOVER_SIDES,QF as POPOVER_VARIANTS,mw as PaginationComponent,vw as PaginationPosition,$F as Popover,qF as PopoverContent,HF as PopoverTrigger,aH as ProfileCard,Mb as RadioGroup,fH as STEPPER_SIZE_STYLES,MF as Sheet,AF as SheetClose,BF as SheetContent,VF as SheetDescription,WF as SheetFooter,_F as SheetHeader,FF as SheetTitle,DF as SheetTrigger,mH as Stepper,Gy as Success,Zb as Switch,Ww as Table,Aw as TableCell,hw as TableColumnAlign,_w as TableHeader,dH as Tabs,vg as Text,ew as TextArea,vk as Tooltip,yq as UNLIMITED_FILES,wq as UPLOAD_STATUS,Hy as Upload,tT as VARIANT_STYLES,Vy as Warning,xS as breadCrumbVariants,Xb as colorVariants,bw as columnInfo,Vw as createDateColumn,Hw as createPersonDataColumns,$w as createStatusColumn,Fw as createTextColumn,ww as getColumnInfo,Ew as getEffectivePositions,gw as getFlexAlignment,Ow as getPaginationContainerClass,xw as getShowingEntriesPositionClass,rT as getSizeClass,ow as message,Iw as renderHeader,Rw as renderSortIcon,Bw as renderTableHeader,Gb as sizeVariants,Qb as sizes,kw as truncateText,Jb as variants};
53
+ */var hx=(fx||(fx=1,"production"===process.env.NODE_ENV?ux.exports=function(){if(cx)return px;cx=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case n:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return m}}case r:return m}}}return e=Symbol.for("react.module.reference"),px.ContextConsumer=s,px.ContextProvider=a,px.Element=t,px.ForwardRef=c,px.Fragment=n,px.Lazy=f,px.Memo=d,px.Portal=r,px.Profiler=i,px.StrictMode=o,px.Suspense=u,px.SuspenseList=p,px.isAsyncMode=function(){return!1},px.isConcurrentMode=function(){return!1},px.isContextConsumer=function(e){return h(e)===s},px.isContextProvider=function(e){return h(e)===a},px.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},px.isForwardRef=function(e){return h(e)===c},px.isFragment=function(e){return h(e)===n},px.isLazy=function(e){return h(e)===f},px.isMemo=function(e){return h(e)===d},px.isPortal=function(e){return h(e)===r},px.isProfiler=function(e){return h(e)===i},px.isStrictMode=function(e){return h(e)===o},px.isSuspense=function(e){return h(e)===u},px.isSuspenseList=function(e){return h(e)===p},px.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},px.typeOf=h,px}():ux.exports=(dx||(dx=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case n:case i:case o:case u:case p:return h;default:var v=h&&h.$$typeof;switch(v){case l:case s:case c:case f:case d:case a:return v;default:return m}}case r:return m}}}e=Symbol.for("react.module.reference");var v=s,y=a,g=t,b=c,w=n,x=f,O=d,E=r,k=i,j=o,P=u,S=p,C=!1,N=!1;mx.ContextConsumer=v,mx.ContextProvider=y,mx.Element=g,mx.ForwardRef=b,mx.Fragment=w,mx.Lazy=x,mx.Memo=O,mx.Portal=E,mx.Profiler=k,mx.StrictMode=j,mx.Suspense=P,mx.SuspenseList=S,mx.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},mx.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},mx.isContextConsumer=function(e){return h(e)===s},mx.isContextProvider=function(e){return h(e)===a},mx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},mx.isForwardRef=function(e){return h(e)===c},mx.isFragment=function(e){return h(e)===n},mx.isLazy=function(e){return h(e)===f},mx.isMemo=function(e){return h(e)===d},mx.isPortal=function(e){return h(e)===r},mx.isProfiler=function(e){return h(e)===i},mx.isStrictMode=function(e){return h(e)===o},mx.isSuspense=function(e){return h(e)===u},mx.isSuspenseList=function(e){return h(e)===p},mx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},mx.typeOf=h}()),mx)),ux.exports);var vx=Symbol.for("react.element"),yx=Symbol.for("react.transitional.element"),gx=Symbol.for("react.fragment");function bx(e){return e&&"object"===Yw(e)&&(e.$$typeof===vx||e.$$typeof===yx)&&e.type===gx}var wx=Number(u.split(".")[0]),xx=function(e,t){"function"==typeof e?e(t):"object"===Yw(e)&&e&&"current"in e&&(e.current=t)},Ox=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){t.forEach(function(t){xx(t,e)})}},Ex=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return o=function(){return Ox.apply(void 0,r)},i=r,a=function(e,t){return e.length!==t.length||e.every(function(e,r){return e!==t[r]})},"value"in(s=e.useRef({})).current&&!a(s.current.condition,i)||(s.current.value=o(),s.current.condition=i),s.current.value;var o,i,a,s},kx=function(e){var t,r;if(!e)return!1;if(jx(e)&&wx>=19)return!0;var n=hx.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===hx.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===hx.ForwardRef)};function jx(e){return p(e)&&!bx(e)}var Px=function(e){if(e&&jx(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Sx=e.createContext(null);function Cx(e){return function(e){if(Array.isArray(e))return Jw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nx="test"!==process.env.NODE_ENV&&rx()?e.useLayoutEffect:e.useEffect,Tx=function(t,r){var n=e.useRef(!0);Nx(function(){return t(n.current)},r),Nx(function(){return n.current=!1,function(){n.current=!0}},[])},zx=[];var Lx="data-rc-order",Mx="data-rc-priority",Dx=new Map;function Ax(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Rx(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ix(e){return Array.from((Dx.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function Bx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!rx())return null;var r=t.csp,n=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Lx,a),s&&i&&l.setAttribute(Mx,"".concat(i)),null!=r&&r.nonce&&(l.nonce=null==r?void 0:r.nonce),l.innerHTML=e;var c=Rx(t),u=c.firstChild;if(n){if(s){var p=(t.styles||Ix(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Lx)))return!1;var t=Number(e.getAttribute(Mx)||0);return i>=t});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function _x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Rx(t);return(t.styles||Ix(r)).find(function(r){return r.getAttribute(Ax(t))===e})}function Wx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=_x(e,t);r&&Rx(t).removeChild(r)}function Fx(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Rx(r),o=Ix(n),i=Zw(Zw({},r),{},{styles:o});!function(e,t){var r=Dx.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){var n=Bx("",t),o=n.parentNode;Dx.set(e,o),e.removeChild(n)}}(n,i);var a=_x(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Bx(e,i);return u.setAttribute(Ax(i),t),u}function Vx(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n,o,i=r.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",p=c?"height: ".concat(s.height,";"):"";Fx("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(p,"\n}"),t)}catch(e){console.error(e),n=l,o=c}}document.body.appendChild(r);var d=e&&n&&!isNaN(n)?n:r.offsetWidth-r.clientWidth,f=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Wx(t),{width:d,height:f}}(e):{width:0,height:0}}var $x="rc-util-locker-".concat(Date.now()),Hx=0;function qx(t){var r=!!t,n=tx(e.useState(function(){return Hx+=1,"".concat($x,"_").concat(Hx)}),1)[0];Tx(function(){if(r){var e=Vx(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Fx("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Wx(n);return function(){Wx(n)}},[r,n])}var Ux=function(e){return!1!==e&&(rx()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Yx=e.forwardRef(function(t,r){var n=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=tx(e.useState(n),2),p=u[0],d=u[1],f=p||n;"production"!==process.env.NODE_ENV&&lx(rx()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect(function(){(l||n)&&d(n)},[n,l]);var m=tx(e.useState(function(){return Ux(i)}),2),h=m[0],v=m[1];e.useEffect(function(){var e=Ux(i);v(null!=e?e:null)});var y=function(t,r){var n=tx(e.useState(function(){if(!rx())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&r&&e.setAttribute("data-debug",r),e}),1)[0],o=e.useRef(!1),i=e.useContext(Sx),a=tx(e.useState(zx),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l(function(t){return[e].concat(Cx(t))})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function p(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Tx(function(){return t?i?i(u):u():p(),p},[t]),Tx(function(){s.length&&(s.forEach(function(e){return e()}),l(zx))},[s]),[n,c]}(f&&!h,a),g=tx(y,2),b=g[0],w=g[1],x=null!=h?h:b;qx(o&&n&&rx()&&(x===b||x===document.body));var O=null;c&&kx(c)&&r&&(O=c.ref);var E=Ex(O,r);if(!f||!rx()||void 0===h)return null;var k=!1===x||!1,j=c;return r&&(j=e.cloneElement(c,{ref:E})),e.createElement(Sx.Provider,{value:w},k?j:C(j,x))});function Gx(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return t.Children.forEach(e,function(e){(null!=e||r.keepEmpty)&&(Array.isArray(e)?n=n.concat(Gx(e)):bx(e)&&e.props?n=n.concat(Gx(e.props.children,r)):n.push(e))}),n}function Xx(e){return e instanceof HTMLElement||e instanceof SVGElement}function Kx(e){var r,n=function(e){return e&&"object"===Yw(e)&&Xx(e.nativeElement)?e.nativeElement:Xx(e)?e:null}(e);return n||(e instanceof t.Component?null===(r=S.findDOMNode)||void 0===r?void 0:r.call(S,e):null)}"production"!==process.env.NODE_ENV&&(Yx.displayName="Portal");var Zx=e.createContext(null);var Qx=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),Jx="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,eO="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),tO="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(eO):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var rO=["top","right","bottom","left","width","height","size","weight"],nO="undefined"!=typeof MutationObserver,oO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){tO(i)}function s(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Jx&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Jx&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;rO.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),iO=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},aO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||eO},sO=fO(0,0,0,0);function lO(e){return parseFloat(e)||0}function cO(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+lO(e["border-"+r+"-width"])},0)}function uO(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return sO;var n=aO(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=lO(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=lO(n.width),l=lO(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=cO(n,"left","right")+i),Math.round(l+a)!==r&&(l-=cO(n,"top","bottom")+a)),!function(e){return e===aO(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return fO(o.left,o.top,s,l)}var pO="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof aO(e).SVGGraphicsElement}:function(e){return e instanceof aO(e).SVGElement&&"function"==typeof e.getBBox};function dO(e){return Jx?pO(e)?function(e){var t=e.getBBox();return fO(0,0,t.width,t.height)}(e):uO(e):sO}function fO(e,t,r,n){return{x:e,y:t,width:r,height:n}}var mO=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fO(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=dO(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),hO=function(e,t){var r,n,o,i,a,s,l,c=(n=(r=t).x,o=r.y,i=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),iO(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);iO(this,{target:e,contentRect:c})},vO=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new Qx,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof aO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new mO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof aO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new hO(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),yO="undefined"!=typeof WeakMap?new WeakMap:new Qx,gO=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=oO.getInstance(),n=new vO(t,r,this);yO.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){gO.prototype[e]=function(){var t;return(t=yO.get(this))[e].apply(t,arguments)}});var bO=void 0!==eO.ResizeObserver?eO.ResizeObserver:gO,wO=new Map;function xO(e){e.forEach(function(e){var t,r=e.target;null===(t=wO.get(r))||void 0===t||t.forEach(function(e){return e(r)})})}var OO=new bO(xO);function EO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gw(n.key),n)}}function jO(e,t,r){return t&&kO(e.prototype,t),r&&kO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PO(e,t)}function SO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PO(e,t)}function CO(e){return CO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CO(e)}function NO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(NO=function(){return!!e})()}function TO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zO(e){var t=NO();return function(){var r,n=CO(e);if(t){var o=CO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==Yw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TO(e)}(this,r)}}process.env.NODE_ENV,process.env.NODE_ENV;var LO=function(){SO(r,e.Component);var t=zO(r);function r(){return EO(this,r),t.apply(this,arguments)}return jO(r,[{key:"render",value:function(){return this.props.children}}]),r}();function MO(t,r){var n=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(Zx),l="function"==typeof n,c=l?n(i):n,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&e.isValidElement(c)&&kx(c),d=p?Px(c):null,f=Ex(d,i),m=function(){var e;return Kx(i.current)||(i.current&&"object"===Yw(i.current)?Kx(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Kx(a.current)};e.useImperativeHandle(r,function(){return m()});var h=e.useRef(t);h.current=t;var v=e.useCallback(function(e){var t=h.current,r=t.onResize,n=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,l=e.offsetWidth,c=e.offsetHeight,p=Math.floor(i),d=Math.floor(a);if(u.current.width!==p||u.current.height!==d||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:p,height:d,offsetWidth:l,offsetHeight:c};u.current=f;var m=l===Math.round(i)?i:l,v=c===Math.round(a)?a:c,y=Zw(Zw({},f),{},{offsetWidth:m,offsetHeight:v});null==s||s(y,e,n),r&&Promise.resolve().then(function(){r(y,e)})}},[]);return e.useEffect(function(){var e,t,r=m();return r&&!o&&(e=r,t=v,wO.has(e)||(wO.set(e,new Set),OO.observe(e)),wO.get(e).add(t)),function(){return function(e,t){wO.has(e)&&(wO.get(e).delete(t),wO.get(e).size||(OO.unobserve(e),wO.delete(e)))}(r,v)}},[i.current,o]),e.createElement(LO,{ref:a},p?e.cloneElement(c,{ref:f}):c)}var DO=e.forwardRef(MO);"production"!==process.env.NODE_ENV&&(DO.displayName="SingleObserver");function AO(t,r){var n=t.children,o="function"==typeof n?[n]:Gx(n);return"production"!==process.env.NODE_ENV&&(o.length>1?ix(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&ix(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map(function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(DO,Uw({},t,{key:i,ref:0===o?r:void 0}),n)})}var RO=e.forwardRef(AO);function IO(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function BO(e){return function(e){return IO(e)instanceof ShadowRoot}(e)?IO(e):null}function _O(t){var r=e.useRef();r.current=t;var n=e.useCallback(function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null===(e=r.current)||void 0===e?void 0:e.call.apply(e,[r].concat(n))},[]);return n}"production"!==process.env.NODE_ENV&&(RO.displayName="ResizeObserver"),RO.Collection=function(t){var r=t.children,n=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(Zx),s=e.useCallback(function(e,t,r){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then(function(){s===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,r)},[n,a]);return e.createElement(Zx.Provider,{value:s},r)};var WO=0,FO=Zw({},e).useId,VO=FO?function(e){var t=FO();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var r=tx(e.useState("ssr-id"),2),n=r[0],o=r[1];return e.useEffect(function(){var e=WO;WO+=1,o("rc_unique_".concat(e))},[]),t||("test"===process.env.NODE_ENV?"test-id":n)},$O=e.createContext({}),HO=function(){SO(r,e.Component);var t=zO(r);function r(){return EO(this,r),t.apply(this,arguments)}return jO(r,[{key:"render",value:function(){return this.props.children}}]),r}();function qO(t){var r=e.useRef(!1),n=tx(e.useState(t),2),o=n[0],i=n[1];return e.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]),[o,function(e,t){t&&r.current||i(e)}]}var UO="none",YO="appear",GO="enter",XO="leave",KO="none",ZO="prepare",QO="start",JO="active",eE="end",tE="prepared";function rE(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var nE,oE,iE,aE=(nE=rx(),oE="undefined"!=typeof window?window:{},iE={animationend:rE("Animation","AnimationEnd"),transitionend:rE("Transition","TransitionEnd")},nE&&("AnimationEvent"in oE||delete iE.animationend.animation,"TransitionEvent"in oE||delete iE.transitionend.transition),iE),sE={};if(rx()){var lE=document.createElement("div");sE=lE.style}var cE={};function uE(e){if(cE[e])return cE[e];var t=aE[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sE)return cE[e]=t[i],cE[e]}return""}var pE=uE("animationend"),dE=uE("transitionend"),fE=!(!pE||!dE),mE=pE||"animationend",hE=dE||"transitionend";function vE(e,t){if(!e)return null;if("object"===Yw(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var yE=rx()?d:a,gE=function(e){return+setTimeout(e,16)},bE=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(gE=function(e){return window.requestAnimationFrame(e)},bE=function(e){return window.cancelAnimationFrame(e)});var wE=0,xE=new Map;function OE(e){xE.delete(e)}var EE=function(e){var t=wE+=1;return function r(n){if(0===n)OE(t),e();else{var o=gE(function(){r(n-1)});xE.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};EE.cancel=function(e){var t=xE.get(e);return OE(e),bE(t)},"production"!==process.env.NODE_ENV&&(EE.ids=function(){return xE});var kE=[ZO,QO,JO,eE],jE=[ZO,tE],PE=!1;function SE(e){return e===JO||e===eE}var CE=function(t,r,n){var o=tx(qO(KO),2),i=o[0],a=o[1],s=function(){var t=e.useRef(null);function r(){EE.cancel(t.current)}return e.useEffect(function(){return function(){r()}},[]),[function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;r();var i=EE(function(){o<=1?n({isCanceled:function(){return i!==t.current}}):e(n,o-1)});t.current=i},r]}(),l=tx(s,2),c=l[0],u=l[1];var p=r?jE:kE;return yE(function(){if(i!==KO&&i!==eE){var e=p.indexOf(i),t=p[e+1],r=n(i);r===PE?a(t,!0):t&&c(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[t,i]),e.useEffect(function(){return function(){u()}},[]),[function(){a(ZO,!0)},i]};function NE(t,r,n,o){var i,s,l,u=o.motionEnter,p=void 0===u||u,d=o.motionAppear,f=void 0===d||d,m=o.motionLeave,h=void 0===m||m,v=o.motionDeadline,y=o.motionLeaveImmediately,g=o.onAppearPrepare,b=o.onEnterPrepare,w=o.onLeavePrepare,x=o.onAppearStart,O=o.onEnterStart,E=o.onLeaveStart,k=o.onAppearActive,j=o.onEnterActive,P=o.onLeaveActive,S=o.onAppearEnd,C=o.onEnterEnd,N=o.onLeaveEnd,T=o.onVisibleChanged,z=tx(qO(),2),L=z[0],M=z[1],D=(i=UO,s=tx(e.useReducer(function(e){return e+1},0),2)[1],l=e.useRef(i),[_O(function(){return l.current}),_O(function(e){l.current="function"==typeof e?e(l.current):e,s()})]),A=tx(D,2),R=A[0],I=A[1],B=tx(qO(null),2),_=B[0],W=B[1],F=R(),V=c(!1),$=c(null);function H(){return n()}var q=c(!1);function U(){I(UO),W(null,!0)}var Y=_O(function(e){var t=R();if(t!==UO){var r=H();if(!e||e.deadline||e.target===r){var n,o=q.current;t===YO&&o?n=null==S?void 0:S(r,e):t===GO&&o?n=null==C?void 0:C(r,e):t===XO&&o&&(n=null==N?void 0:N(r,e)),o&&!1!==n&&U()}}}),G=function(t){var r=c();function n(e){e&&(e.removeEventListener(hE,t),e.removeEventListener(mE,t))}return e.useEffect(function(){return function(){n(r.current)}},[]),[function(e){r.current&&r.current!==e&&n(r.current),e&&e!==r.current&&(e.addEventListener(hE,t),e.addEventListener(mE,t),r.current=e)},n]}(Y),X=tx(G,1)[0],K=function(e){switch(e){case YO:return Xw(Xw(Xw({},ZO,g),QO,x),JO,k);case GO:return Xw(Xw(Xw({},ZO,b),QO,O),JO,j);case XO:return Xw(Xw(Xw({},ZO,w),QO,E),JO,P);default:return{}}},Z=e.useMemo(function(){return K(F)},[F]),Q=tx(CE(F,!t,function(e){if(e===ZO){var t=Z[ZO];return t?t(H()):PE}var r;ee in Z&&W((null===(r=Z[ee])||void 0===r?void 0:r.call(Z,H(),null))||null);return ee===JO&&F!==UO&&(X(H()),v>0&&(clearTimeout($.current),$.current=setTimeout(function(){Y({deadline:!0})},v))),ee===tE&&U(),true}),2),J=Q[0],ee=Q[1],te=SE(ee);q.current=te;var re=c(null);yE(function(){if(!V.current||re.current!==r){M(r);var e,n=V.current;V.current=!0,!n&&r&&f&&(e=YO),n&&r&&p&&(e=GO),(n&&!r&&h||!n&&y&&!r&&h)&&(e=XO);var o=K(e);e&&(t||o[ZO])?(I(e),J()):I(UO),re.current=r}},[r]),a(function(){(F===YO&&!f||F===GO&&!p||F===XO&&!h)&&I(UO)},[f,p,h]),a(function(){return function(){V.current=!1,clearTimeout($.current)}},[]);var ne=e.useRef(!1);a(function(){L&&(ne.current=!0),void 0!==L&&F===UO&&((ne.current||L)&&(null==T||T(L)),ne.current=!0)},[L,F]);var oe=_;return Z[ZO]&&ee===QO&&(oe=Zw({transition:"none"},oe)),[F,ee,oe,null!=L?L:r]}var TE=function(t){var r=t;"object"===Yw(t)&&(r=t.transitionSupport);var n=e.forwardRef(function(t,n){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,l=t.forceRender,u=t.children,p=t.motionName,d=t.leavedClassName,f=t.eventProps,m=function(e,t){return!(!e.motionName||!r||!1===t)}(t,e.useContext($O).motion),h=c(),v=c();var y=tx(NE(m,i,function(){try{return h.current instanceof HTMLElement?h.current:Kx(v.current)}catch(e){return null}},t),4),g=y[0],b=y[1],w=y[2],x=y[3],O=e.useRef(x);x&&(O.current=!0);var E,k=e.useCallback(function(e){h.current=e,xx(n,e)},[n]),j=Zw(Zw({},f),{},{visible:i});if(u)if(g===UO)E=x?u(Zw({},j),k):!s&&O.current&&d?u(Zw(Zw({},j),{},{className:d}),k):l||!s&&!d?u(Zw(Zw({},j),{},{style:{display:"none"}}),k):null;else{var P;b===ZO?P="prepare":SE(b)?P="active":b===QO&&(P="start");var S=vE(p,"".concat(g,"-").concat(P));E=u(Zw(Zw({},j),{},{className:sg(vE(p,g),Xw(Xw({},S,S&&P),p,"string"==typeof p)),style:w}),k)}else E=null;e.isValidElement(E)&&kx(E)&&(Px(E)||(E=e.cloneElement(E,{ref:k})));return e.createElement(HO,{ref:v},E)});return n.displayName="CSSMotion",n}(fE),zE="add",LE="keep",ME="remove",DE="removed";function AE(e){var t;return Zw(Zw({},t=e&&"object"===Yw(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function RE(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(AE)}var IE=["component","children","onVisibleChanged","onAllRemoved"],BE=["status"],_E=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function WE(t){var r=t.prefixCls,n=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,p=i.y,d=void 0===p?0:p,f=e.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],y=h[0],g=h[1],b=v[0],w=v[1];y!==b&&["t","b"].includes(y)?"t"===y?m.top=0:m.bottom=0:m.top=d,g!==w&&["l","r"].includes(g)?"l"===g?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:f,className:sg("".concat(r,"-arrow"),s),style:m},l)}function FE(t){var r=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(TE,Uw({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(t){var n=t.className;return e.createElement("div",{style:{zIndex:o},className:sg("".concat(r,"-mask"),n)})}):null}!function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TE,n=function(){SO(n,e.Component);var t=zO(n);function n(){var e;EO(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Xw(TO(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Xw(TO(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:Zw(Zw({},e),{},{status:DE})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==DE}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return jO(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged;o.onAllRemoved;var l=Qw(o,IE),c=i||e.Fragment,u={};return _E.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,e.createElement(c,l,n.map(function(n,o){var i=n.status,l=Qw(n,BE),c=i===zE||i===LE;return e.createElement(r,Uw({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return a(Zw(Zw({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=RE(r),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=RE(e),a=RE(t);i.forEach(function(e){for(var t=!1,i=n;i<o;i+=1){var s=a[i];if(s.key===e.key){n<i&&(r=r.concat(a.slice(n,i).map(function(e){return Zw(Zw({},e),{},{status:zE})})),n=i),r.push(Zw(Zw({},s),{},{status:LE})),n+=1,t=!0;break}}t||r.push(Zw(Zw({},e),{},{status:ME}))}),n<o&&(r=r.concat(a.slice(n).map(function(e){return Zw(Zw({},e),{},{status:zE})})));var s={};return r.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ME})).forEach(function(t){t.key===e&&(t.status=LE)})}),r}(n,o);return{keyEntities:i.filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==DE||e.status!==ME})}}}]),n}();Xw(n,"defaultProps",{component:"div"})}(fE);var VE=e.memo(function(e){return e.children},function(e,t){return t.cache});"production"!==process.env.NODE_ENV&&(VE.displayName="PopupContent");var $E=e.forwardRef(function(t,r){var n=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,p=t.fresh,d=t.onClick,f=t.mask,m=t.arrow,h=t.arrowPos,v=t.align,y=t.motion,g=t.maskMotion,b=t.forceRender,w=t.getPopupContainer,x=t.autoDestroy,O=t.portal,E=t.zIndex,k=t.onMouseEnter,j=t.onMouseLeave,P=t.onPointerEnter,S=t.onPointerDownCapture,C=t.ready,N=t.offsetX,T=t.offsetY,z=t.offsetR,L=t.offsetB,M=t.onAlign,D=t.onPrepare,A=t.stretch,R=t.targetWidth,I=t.targetHeight,B="function"==typeof n?n():n,_=c||u,W=(null==w?void 0:w.length)>0,F=tx(e.useState(!w||!W),2),V=F[0],$=F[1];if(Tx(function(){!V&&W&&s&&$(!0)},[V,W,s]),!V)return null;var H="auto",q={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!c){var U,Y=v.points,G=v.dynamicInset||(null===(U=v._experimental)||void 0===U?void 0:U.dynamicInset),X=G&&"r"===Y[0][1],K=G&&"b"===Y[0][0];X?(q.right=z,q.left=H):(q.left=N,q.right=H),K?(q.bottom=L,q.top=H):(q.top=T,q.bottom=H)}var Z={};return A&&(A.includes("height")&&I?Z.height=I:A.includes("minHeight")&&I&&(Z.minHeight=I),A.includes("width")&&R?Z.width=R:A.includes("minWidth")&&R&&(Z.minWidth=R)),c||(Z.pointerEvents="none"),e.createElement(O,{open:b||_,getContainer:w&&function(){return w(s)},autoDestroy:x},e.createElement(FE,{prefixCls:i,open:c,zIndex:E,mask:f,motion:g}),e.createElement(RO,{onResize:M,disabled:!c},function(t){return e.createElement(TE,Uw({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),function(n,s){var l=n.className,u=n.style,f=sg(i,l,o);return e.createElement("div",{ref:Ox(t,r,s),className:f,style:Zw(Zw(Zw(Zw({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),Z),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:k,onMouseLeave:j,onPointerEnter:P,onClick:d,onPointerDownCapture:S},m&&e.createElement(WE,{prefixCls:i,arrow:m,arrowPos:h,align:v}),e.createElement(VE,{cache:!c&&!p},B))})}))});"production"!==process.env.NODE_ENV&&($E.displayName="Popup");var HE=e.forwardRef(function(t,r){var n=t.children,o=t.getTriggerDOMNode,i=kx(n),a=e.useCallback(function(e){xx(r,o?o(e):e)},[o]),s=Ex(a,Px(n));return i?e.cloneElement(n,{ref:s}):n});"production"!==process.env.NODE_ENV&&(HE.displayName="TriggerWrapper");var qE=e.createContext(null);function UE(e){return e?Array.isArray(e)?e:[e]:[]}function YE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function GE(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function XE(e){return e.ownerDocument.defaultView}function KE(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=XE(r).getComputedStyle(r);[o.overflowX,o.overflowY,o.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function ZE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function QE(e){return ZE(parseFloat(e),0)}function JE(e,t){var r=Zw({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=XE(e).getComputedStyle(e),n=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,f=e.clientWidth,m=QE(i),h=QE(a),v=QE(s),y=QE(l),g=ZE(Math.round(c.width/d*1e3)/1e3),b=ZE(Math.round(c.height/u*1e3)/1e3),w=(d-f-v-y)*g,x=(u-p-m-h)*b,O=m*b,E=h*b,k=v*g,j=y*g,P=0,S=0;if("clip"===n){var C=QE(o);P=C*g,S=C*b}var N=c.x+k-P,T=c.y+O-S,z=N+c.width+2*P-k-j-w,L=T+c.height+2*S-O-E-x;r.left=Math.max(r.left,N),r.top=Math.max(r.top,T),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,L)}}),r}function ek(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=t.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(t)}function tk(e,t){var r=tx(t||[],2),n=r[0],o=r[1];return[ek(e.width,n),ek(e.height,o)]}function rk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function nk(e,t){var r,n=t[0],o=t[1];return r="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:r}}function ok(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function ik(t,r,n,o,i,a,s){var l=tx(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=l[0],u=l[1],p=e.useRef(0),d=e.useMemo(function(){return r?KE(r):[]},[r]),f=e.useRef({});t||(f.current={});var m=_O(function(){if(r&&n&&t){var e,l,c,p,m,h=r,v=h.ownerDocument,y=XE(h),g=y.getComputedStyle(h).position,b=h.style.left,w=h.style.top,x=h.style.right,O=h.style.bottom,E=h.style.overflow,k=Zw(Zw({},i[o]),a),j=v.createElement("div");if(null===(e=h.parentElement)||void 0===e||e.appendChild(j),j.style.left="".concat(h.offsetLeft,"px"),j.style.top="".concat(h.offsetTop,"px"),j.style.position=g,j.style.height="".concat(h.offsetHeight,"px"),j.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var P,S,C=n.getBoundingClientRect();C.x=null!==(P=C.x)&&void 0!==P?P:C.left,C.y=null!==(S=C.y)&&void 0!==S?S:C.top,m={x:C.x,y:C.y,width:C.width,height:C.height}}var N=h.getBoundingClientRect(),T=y.getComputedStyle(h),z=T.height,L=T.width;N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var M=v.documentElement,D=M.clientWidth,A=M.clientHeight,R=M.scrollWidth,I=M.scrollHeight,B=M.scrollTop,_=M.scrollLeft,W=N.height,F=N.width,V=m.height,$=m.width,H={left:0,top:0,right:D,bottom:A},q={left:-_,top:-B,right:R-_,bottom:I-B},U=k.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==U&&U!==G&&(U=Y);var X=U===G,K=JE(q,d),Z=JE(H,d),Q=U===Y?Z:K,J=X?Z:Q;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ee=h.getBoundingClientRect();h.style.left=b,h.style.top=w,h.style.right=x,h.style.bottom=O,h.style.overflow=E,null===(p=h.parentElement)||void 0===p||p.removeChild(j);var te=ZE(Math.round(F/parseFloat(L)*1e3)/1e3),re=ZE(Math.round(W/parseFloat(z)*1e3)/1e3);if(0===te||0===re||Xx(n)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(n))return;var ne=k.offset,oe=k.targetOffset,ie=tx(tk(N,ne),2),ae=ie[0],se=ie[1],le=tx(tk(m,oe),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var pe=tx(k.points||[],2),de=pe[0],fe=rk(pe[1]),me=rk(de),he=nk(m,fe),ve=nk(N,me),ye=Zw({},k),ge=he.x-ve.x+ae,be=he.y-ve.y+se;function dt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,n=N.x+e,o=N.y+t,i=n+F,a=o+W,s=Math.max(n,r.left),l=Math.max(o,r.top),c=Math.min(i,r.right),u=Math.min(a,r.bottom);return Math.max(0,(c-s)*(u-l))}var we,xe,Oe,Ee,ke=dt(ge,be),je=dt(ge,be,Z),Pe=nk(m,["t","l"]),Se=nk(N,["t","l"]),Ce=nk(m,["b","r"]),Ne=nk(N,["b","r"]),Te=k.overflow||{},ze=Te.adjustX,Le=Te.adjustY,Me=Te.shiftX,De=Te.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function ft(){we=N.y+be,xe=we+W,Oe=N.x+ge,Ee=Oe+F}ft();var Re=Ae(Le),Ie=me[0]===fe[0];if(Re&&"t"===me[0]&&(xe>J.bottom||f.current.bt)){var Be=be;Ie?Be-=W-V:Be=Pe.y-Ne.y-se;var _e=dt(ge,Be),We=dt(ge,Be,Z);_e>ke||_e===ke&&(!X||We>=je)?(f.current.bt=!0,be=Be,se=-se,ye.points=[ok(me,0),ok(fe,0)]):f.current.bt=!1}if(Re&&"b"===me[0]&&(we<J.top||f.current.tb)){var Fe=be;Ie?Fe+=W-V:Fe=Ce.y-Se.y-se;var Ve=dt(ge,Fe),$e=dt(ge,Fe,Z);Ve>ke||Ve===ke&&(!X||$e>=je)?(f.current.tb=!0,be=Fe,se=-se,ye.points=[ok(me,0),ok(fe,0)]):f.current.tb=!1}var He=Ae(ze),qe=me[1]===fe[1];if(He&&"l"===me[1]&&(Ee>J.right||f.current.rl)){var Ue=ge;qe?Ue-=F-$:Ue=Pe.x-Ne.x-ae;var Ye=dt(Ue,be),Ge=dt(Ue,be,Z);Ye>ke||Ye===ke&&(!X||Ge>=je)?(f.current.rl=!0,ge=Ue,ae=-ae,ye.points=[ok(me,1),ok(fe,1)]):f.current.rl=!1}if(He&&"r"===me[1]&&(Oe<J.left||f.current.lr)){var Xe=ge;qe?Xe+=F-$:Xe=Ce.x-Se.x-ae;var Ke=dt(Xe,be),Ze=dt(Xe,be,Z);Ke>ke||Ke===ke&&(!X||Ze>=je)?(f.current.lr=!0,ge=Xe,ae=-ae,ye.points=[ok(me,1),ok(fe,1)]):f.current.lr=!1}ft();var Qe=!0===Me?0:Me;"number"==typeof Qe&&(Oe<Z.left&&(ge-=Oe-Z.left-ae,m.x+$<Z.left+Qe&&(ge+=m.x-Z.left+$-Qe)),Ee>Z.right&&(ge-=Ee-Z.right-ae,m.x>Z.right-Qe&&(ge+=m.x-Z.right+Qe)));var Je=!0===De?0:De;"number"==typeof Je&&(we<Z.top&&(be-=we-Z.top-se,m.y+V<Z.top+Je&&(be+=m.y-Z.top+V-Je)),xe>Z.bottom&&(be-=xe-Z.bottom-se,m.y>Z.bottom-Je&&(be+=m.y-Z.bottom+Je)));var et=N.x+ge,tt=et+F,rt=N.y+be,nt=rt+W,ot=m.x,it=ot+$,at=m.y,st=at+V,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et,ct=(Math.max(rt,at)+Math.min(nt,st))/2-rt;null==s||s(r,ye);var ut=ee.right-N.x-(ge+N.width),pt=ee.bottom-N.y-(be+N.height);1===te&&(ge=Math.round(ge),ut=Math.round(ut)),1===re&&(be=Math.round(be),pt=Math.round(pt)),u({ready:!0,offsetX:ge/te,offsetY:be/re,offsetR:ut/te,offsetB:pt/re,arrowX:lt/te,arrowY:ct/re,scaleX:te,scaleY:re,align:ye})}}),h=function(){u(function(e){return Zw(Zw({},e),{},{ready:!1})})};return Tx(h,[o]),Tx(function(){t||h()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){p.current+=1;var e=p.current;Promise.resolve().then(function(){p.current===e&&m()})}]}var ak=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var sk=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yx,r=e.forwardRef(function(r,n){var o=r.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=r.children,s=r.action,l=void 0===s?"hover":s,c=r.showAction,u=r.hideAction,p=r.popupVisible,d=r.defaultPopupVisible,f=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,h=r.mouseEnterDelay,v=r.mouseLeaveDelay,y=void 0===v?.1:v,g=r.focusDelay,b=r.blurDelay,w=r.mask,x=r.maskClosable,O=void 0===x||x,E=r.getPopupContainer,k=r.forceRender,j=r.autoDestroy,P=r.destroyPopupOnHide,S=r.popup,C=r.popupClassName,N=r.popupStyle,T=r.popupPlacement,z=r.builtinPlacements,L=void 0===z?{}:z,M=r.popupAlign,D=r.zIndex,A=r.stretch,R=r.getPopupClassNameFromAlign,I=r.fresh,B=r.alignPoint,_=r.onPopupClick,W=r.onPopupAlign,F=r.arrow,V=r.popupMotion,$=r.maskMotion,H=r.popupTransitionName,q=r.popupAnimation,U=r.maskTransitionName,Y=r.maskAnimation,G=r.className,X=r.getTriggerDOMNode,K=Qw(r,ak),Z=j||P||!1,Q=tx(e.useState(!1),2),J=Q[0],ee=Q[1];Tx(function(){ee(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())},[]);var te=e.useRef({}),re=e.useContext(qE),ne=e.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==re||re.registerSubPopup(e,t)}}},[re]),oe=VO(),ie=tx(e.useState(null),2),ae=ie[0],se=ie[1],le=e.useRef(null),ce=_O(function(e){le.current=e,Xx(e)&&ae!==e&&se(e),null==re||re.registerSubPopup(oe,e)}),ue=tx(e.useState(null),2),pe=ue[0],de=ue[1],fe=e.useRef(null),me=_O(function(e){Xx(e)&&pe!==e&&(de(e),fe.current=e)}),he=e.Children.only(a),ve=(null==he?void 0:he.props)||{},ye={},ge=_O(function(e){var t,r,n=pe;return(null==n?void 0:n.contains(e))||(null===(t=BO(n))||void 0===t?void 0:t.host)===e||e===n||(null==ae?void 0:ae.contains(e))||(null===(r=BO(ae))||void 0===r?void 0:r.host)===e||e===ae||Object.values(te.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),be=GE(i,V,q,H),we=GE(i,$,Y,U),xe=tx(e.useState(d||!1),2),Oe=xe[0],Ee=xe[1],ke=null!=p?p:Oe,je=_O(function(e){void 0===p&&Ee(e)});Tx(function(){Ee(p||!1)},[p]);var Pe=e.useRef(ke);Pe.current=ke;var Se=e.useRef([]);Se.current=[];var Ce=_O(function(e){var t;je(e),(null!==(t=Se.current[Se.current.length-1])&&void 0!==t?t:ke)!==e&&(Se.current.push(e),null==f||f(e))}),Ne=e.useRef(),Te=function(){clearTimeout(Ne.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Ce(e):Ne.current=setTimeout(function(){Ce(e)},1e3*t)};e.useEffect(function(){return Te},[]);var Le=tx(e.useState(!1),2),Me=Le[0],De=Le[1];Tx(function(e){e&&!ke||De(!0)},[ke]);var Ae=tx(e.useState(null),2),Re=Ae[0],Ie=Ae[1],Be=tx(e.useState(null),2),_e=Be[0],We=Be[1],Fe=function(e){We([e.clientX,e.clientY])},Ve=tx(ik(ke,ae,B&&null!==_e?_e:pe,T,L,M,W),11),$e=Ve[0],He=Ve[1],qe=Ve[2],Ue=Ve[3],Ye=Ve[4],Ge=Ve[5],Xe=Ve[6],Ke=Ve[7],Ze=Ve[8],Qe=Ve[9],Je=Ve[10],et=function(t,r,n,o){return e.useMemo(function(){var e=UE(null!=n?n:r),i=UE(null!=o?o:r),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[t,r,n,o])}(J,l,c,u),tt=tx(et,2),rt=tt[0],nt=tt[1],ot=rt.has("click"),it=nt.has("click")||nt.has("contextMenu"),at=_O(function(){Me||Je()});!function(e,t,r,n,o){Tx(function(){if(e&&t&&r){var i=r,a=KE(t),s=KE(i),l=XE(i),c=new Set([l].concat(Cx(a),Cx(s)));function u(){n(),o()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,r])}(ke,pe,ae,at,function(){Pe.current&&B&&it&&ze(!1)}),Tx(function(){at()},[_e,T]),Tx(function(){!ke||null!=L&&L[T]||at()},[JSON.stringify(M)]);var st=e.useMemo(function(){var e=function(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(YE(null===(s=e[l])||void 0===s?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}(L,i,Qe,B);return sg(e,null==R?void 0:R(Qe))},[Qe,R,L,i,B]);e.useImperativeHandle(n,function(){return{nativeElement:fe.current,popupElement:le.current,forceAlign:at}});var lt=tx(e.useState(0),2),ct=lt[0],ut=lt[1],pt=tx(e.useState(0),2),dt=pt[0],ft=pt[1],mt=function(){if(A&&pe){var e=pe.getBoundingClientRect();ut(e.width),ft(e.height)}};function ht(e,t,r,n){ye[e]=function(o){var i;null==n||n(o),ze(t,r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ve[e])||void 0===i||i.call.apply(i,[ve,o].concat(s))}}Tx(function(){Re&&(Je(),Re(),Ie(null))},[Re]),(ot||it)&&(ye.onClick=function(e){var t;Pe.current&&it?ze(!1):!Pe.current&&ot&&(Fe(e),ze(!0));for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ve.onClick)||void 0===t||t.call.apply(t,[ve,e].concat(n))});var vt,yt,gt=function(t,r,n,o,i,a,s,l){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect(function(){if(r&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},p=XE(o);p.addEventListener("pointerdown",e,!0),p.addEventListener("mousedown",t,!0),p.addEventListener("contextmenu",t,!0);var d,f,m=BO(n);return m&&(m.addEventListener("mousedown",t,!0),m.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&ix((null==n||null===(d=n.getRootNode)||void 0===d?void 0:d.call(n))===(null===(f=o.getRootNode)||void 0===f?void 0:f.call(o)),"trigger element and popup element should in same shadow root."),function(){p.removeEventListener("pointerdown",e,!0),p.removeEventListener("mousedown",t,!0),p.removeEventListener("contextmenu",t,!0),m&&(m.removeEventListener("mousedown",t,!0),m.removeEventListener("contextmenu",t,!0))}}},[r,n,o,i,a]),function(){u.current=!0}}(ke,it,pe,ae,w,O,ge,ze),bt=rt.has("hover"),wt=nt.has("hover");bt&&(ht("onMouseEnter",!0,h,function(e){Fe(e)}),ht("onPointerEnter",!0,h,function(e){Fe(e)}),vt=function(e){(ke||Me)&&null!=ae&&ae.contains(e.target)&&ze(!0,h)},B&&(ye.onMouseMove=function(e){var t;null===(t=ve.onMouseMove)||void 0===t||t.call(ve,e)})),wt&&(ht("onMouseLeave",!1,y),ht("onPointerLeave",!1,y),yt=function(){ze(!1,y)}),rt.has("focus")&&ht("onFocus",!0,g),nt.has("focus")&&ht("onBlur",!1,b),rt.has("contextMenu")&&(ye.onContextMenu=function(e){var t;Pe.current&&nt.has("contextMenu")?ze(!1):(Fe(e),ze(!0)),e.preventDefault();for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];null===(t=ve.onContextMenu)||void 0===t||t.call.apply(t,[ve,e].concat(n))}),G&&(ye.className=sg(ve.className,G));var xt=e.useRef(!1);xt.current||(xt.current=k||ke||Me);var Ot=Zw(Zw({},ve),ye),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){K[e]&&(Et[e]=function(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(n)),K[e].apply(K,n)})});var kt=e.cloneElement(he,Zw(Zw({},Ot),Et)),jt={x:Ge,y:Xe},Pt=F?Zw({},!0!==F?F:{}):null;return e.createElement(e.Fragment,null,e.createElement(RO,{disabled:!ke,ref:me,onResize:function(){mt(),at()}},e.createElement(HE,{getTriggerDOMNode:X},kt)),xt.current&&e.createElement(qE.Provider,{value:ne},e.createElement($E,{portal:t,ref:ce,prefixCls:i,popup:S,className:sg(C,st),style:N,target:pe,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:D,open:ke,keepDom:Me,fresh:I,onClick:_,onPointerDownCapture:gt,mask:w,motion:be,maskMotion:we,onVisibleChanged:function(e){De(!1),Je(),null==m||m(e)},onPrepare:function(){return new Promise(function(e){mt(),Ie(function(){return e})})},forceRender:k,autoDestroy:Z,getPopupContainer:E,align:Qe,arrow:Pt,arrowPos:jt,ready:$e,offsetX:He,offsetY:qe,offsetR:Ue,offsetB:Ye,onAlign:at,stretch:A,targetWidth:ct/Ke,targetHeight:dt/Ze})))});return"production"!==process.env.NODE_ENV&&(r.displayName="Trigger"),r}(Yx),lk={shiftX:64,adjustY:1},ck={adjustX:1,shiftY:!0},uk=[0,0],pk={left:{points:["cr","cl"],overflow:ck,offset:[-4,0],targetOffset:uk},right:{points:["cl","cr"],overflow:ck,offset:[4,0],targetOffset:uk},top:{points:["bc","tc"],overflow:lk,offset:[0,-4],targetOffset:uk},bottom:{points:["tc","bc"],overflow:lk,offset:[0,4],targetOffset:uk},topLeft:{points:["bl","tl"],overflow:lk,offset:[0,-4],targetOffset:uk},leftTop:{points:["tr","tl"],overflow:ck,offset:[-4,0],targetOffset:uk},topRight:{points:["br","tr"],overflow:lk,offset:[0,-4],targetOffset:uk},rightTop:{points:["tl","tr"],overflow:ck,offset:[4,0],targetOffset:uk},bottomRight:{points:["tr","br"],overflow:lk,offset:[0,4],targetOffset:uk},rightBottom:{points:["bl","br"],overflow:ck,offset:[4,0],targetOffset:uk},bottomLeft:{points:["tl","bl"],overflow:lk,offset:[0,4],targetOffset:uk},leftBottom:{points:["br","bl"],overflow:ck,offset:[-4,0],targetOffset:uk}},dk=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],fk=function(t,r){var n=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,s=void 0===a?0:a,l=t.mouseLeaveDelay,u=void 0===l?.1:l,p=t.overlayStyle,d=t.prefixCls,m=void 0===d?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,g=t.transitionName,b=t.animation,w=t.motion,x=t.placement,O=void 0===x?"right":x,E=t.align,k=void 0===E?{}:E,j=t.destroyTooltipOnHide,P=void 0!==j&&j,S=t.defaultVisible,C=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,z=t.id,L=t.showArrow,M=void 0===L||L,D=t.classNames,A=t.styles,R=Qw(t,dk),I=VO(z),B=c(null);f(r,function(){return B.current});var _=Zw({},R);"visible"in t&&(_.popupVisible=t.visible);var W,F;return e.createElement(sk,Uw({popupClassName:sg(n,null==D?void 0:D.root),prefixCls:m,popup:function(){return e.createElement(qw,{key:"content",prefixCls:m,id:I,bodyClassName:null==D?void 0:D.body,overlayInnerStyle:Zw(Zw({},N),null==A?void 0:A.body)},T)},action:i,builtinPlacements:pk,popupPlacement:O,ref:B,popupAlign:k,getPopupContainer:C,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:g,popupAnimation:b,popupMotion:w,defaultPopupVisible:S,autoDestroy:P,mouseLeaveDelay:u,popupStyle:Zw(Zw({},p),null==A?void 0:A.root),mouseEnterDelay:s,arrow:M},_),(W=e.Children.only(h),F=Zw(Zw({},(null==W?void 0:W.props)||{}),{},{"aria-describedby":T?I:null}),e.cloneElement(h,F)))},mk=r(fk);const hk=({title:e,description:r,footer:n,dataTestId:o,variant:i="default"})=>{const a=Boolean(r||n);return t.createElement("div",{"data-test-id":o,className:Be("overflow-hidden break-words rounded-lg","border shadow-md backdrop-blur-xs","transition-all duration-150 animate-in fade-in zoom-in-95",a?"py-3 px-4":"py-2 px-3",{"bg-popover border-border":"default"===i,"bg-destructive border-destructive/20 text-destructive-foreground":"destructive"===i,"bg-muted border-muted/20":"muted"===i})},t.createElement("div",{className:Be("flex items-center",!a&&"justify-center")},t.createElement(vg,{fontWeight:"bold",variant:a?"regular":"small",className:Be({"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},e)),r&&t.createElement("div",{className:"mt-1.5"},t.createElement(vg,{variant:"small",className:Be("opacity-90",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},r)),n&&t.createElement("div",{className:Be("mt-3",a&&"pt-2",{"border-t border-border/40":"default"===i,"border-t border-destructive/20":"destructive"===i,"border-t border-muted-foreground/20":"muted"===i})},"string"==typeof n?t.createElement(vg,{variant:"small",className:Be("opacity-75",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},n):n))},vk=({overlay:e,title:r,description:n,footer:o,children:i,trigger:a="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,placement:u="top",variant:p="default",className:d,...f})=>{const m=s(()=>"function"==typeof e?e():e?t.createElement(t.Fragment,null,e):t.createElement(hk,{title:r,description:n,footer:o,variant:p,dataTestId:f.dataTestId}),[n,o,e,r,p,f.dataTestId]);return r||n||e?t.createElement(mk,{overlay:m,trigger:a,mouseEnterDelay:l,mouseLeaveDelay:c,placement:u,destroyTooltipOnHide:!0,overlayClassName:Be("max-w-xs z-50",d),...f},t.createElement("span",{className:"inline-flex"},i)):i||null};function yk(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var gk=["color"],bk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,gk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),wk=["color"],xk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,wk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),Ok=["color"],Ek=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,Ok);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),kk=["color"],jk=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=yk(e,kk);return n("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),n("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))});const Pk=6048e5,Sk=Symbol.for("constructDateFrom");function Ck(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Sk in e?e[Sk](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nk(e,t){return Ck(t||e,e)}function Tk(e,t,r){const n=Nk(e,r?.in);return isNaN(t)?Ck(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function zk(e,t,r){const n=Nk(e,r?.in);if(isNaN(t))return Ck(r?.in||e,NaN);if(!t)return n;const o=n.getDate(),i=Ck(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);return o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}let Lk={};function Mk(){return Lk}function Dk(e,t){const r=Mk(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Nk(e,t?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Ak(e,t){return Dk(e,{...t,weekStartsOn:1})}function Rk(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=Ck(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=Ak(o),a=Ck(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ak(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function Ik(e){const t=Nk(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Bk(e,...t){const r=Ck.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function _k(e,t){const r=Nk(e,t?.in);return r.setHours(0,0,0,0),r}function Wk(e,t,r){const[n,o]=Bk(r?.in,e,t),i=_k(n),a=_k(o),s=+i-Ik(i),l=+a-Ik(a);return Math.round((s-l)/864e5)}function Fk(e,t,r){return Tk(e,7*t,r)}function Vk(e,t,r){return zk(e,12*t,r)}function $k(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=Ck.bind(null,e));const t=Nk(e,n);(!r||r<t||isNaN(+t))&&(r=t)}),Ck(n,r||NaN)}function Hk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=Ck.bind(null,e));const t=Nk(e,n);(!r||r>t||isNaN(+t))&&(r=t)}),Ck(n,r||NaN)}function qk(e,t,r){const[n,o]=Bk(r?.in,e,t);return+_k(n)===+_k(o)}function Uk(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Yk(e,t,r){const[n,o]=Bk(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}function Gk(e,t){const r=Nk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Xk(e,t){const r=Nk(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Kk(e,t){const r=Nk(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Zk(e,t){const r=Mk(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Nk(e,t?.in),i=o.getDay(),a=6+(i<n?-7:0)-(i-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Qk(e,t){return Zk(e,{...t,weekStartsOn:1})}const Jk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ej(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const tj={date:ej({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ej({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ej({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nj(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const oj={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:nj({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nj({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:nj({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:nj({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:nj({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ij(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(a)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}const aj={ordinalNumber:(sj={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(sj.matchPattern);if(!r)return null;const n=r[0],o=e.match(sj.parsePattern);if(!o)return null;let i=sj.valueCallback?sj.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:ij({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ij({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ij({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ij({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ij({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var sj;const lj={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=Jk[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:tj,formatRelative:(e,t,r,n)=>rj[e],localize:oj,match:aj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cj(e,t){const r=Nk(e,t?.in),n=+Ak(r)-+function(e,t){const r=Rk(e,t),n=Ck(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ak(n)}(r);return Math.round(n/Pk)+1}function uj(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=Mk(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ck(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=Dk(a,t),l=Ck(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=Dk(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function pj(e,t){const r=Nk(e,t?.in),n=+Dk(r,t)-+function(e,t){const r=Mk(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=uj(e,t),i=Ck(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Dk(i,t)}(r,t);return Math.round(n/Pk)+1}function dj(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const fj={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return dj("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):dj(r+1,2)},d:(e,t)=>dj(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>dj(e.getHours()%12||12,t.length),H:(e,t)=>dj(e.getHours(),t.length),m:(e,t)=>dj(e.getMinutes(),t.length),s:(e,t)=>dj(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return dj(Math.trunc(n*Math.pow(10,r-3)),t.length)}},mj="midnight",hj="noon",vj="morning",yj="afternoon",gj="evening",bj="night",wj={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return fj.y(e,t)},Y:function(e,t,r,n){const o=uj(e,n),i=o>0?o:1-o;if("YY"===t){return dj(i%100,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):dj(i,t.length)},R:function(e,t){return dj(Rk(e),t.length)},u:function(e,t){return dj(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return dj(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return dj(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fj.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return dj(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=pj(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):dj(o,t.length)},I:function(e,t,r){const n=cj(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):dj(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):fj.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=Nk(e,t?.in);return Wk(r,Kk(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):dj(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return dj(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return dj(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return dj(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?hj:0===n?mj:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?gj:n>=12?yj:n>=4?vj:bj,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return fj.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):fj.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):dj(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):dj(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fj.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fj.s(e,t)},S:function(e,t){return fj.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Oj(n);case"XXXX":case"XX":return Ej(n);default:return Ej(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Oj(n);case"xxxx":case"xx":return Ej(n);default:return Ej(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xj(n,":");default:return"GMT"+Ej(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xj(n,":");default:return"GMT"+Ej(n,":")}},t:function(e,t,r){return dj(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return dj(+e,t.length)}};function xj(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return 0===i?r+String(o):r+String(o)+t+dj(i,2)}function Oj(e,t){if(e%60==0){return(e>0?"-":"+")+dj(Math.abs(e)/60,2)}return Ej(e,t)}function Ej(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+dj(Math.trunc(n/60),2)+t+dj(n%60,2)}const kj=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},jj=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Pj={p:jj,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return kj(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",kj(n,t)).replace("{{time}}",jj(o,t))}},Sj=/^D+$/,Cj=/^Y+$/,Nj=["D","DD","YY","YYYY"];const Tj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lj=/^'([^]*?)'?$/,Mj=/''/g,Dj=/[a-zA-Z]/;function Aj(e,t,r){const n=Mk(),o=r?.locale??n.locale??lj,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Nk(e,r?.in);if(!function(e){return!(!Uk(e)&&"number"!=typeof e||isNaN(+Nk(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(zj).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Pj[t])(e,o.formatLong)}return e}).join("").match(Tj).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Rj(e)};if(wj[t])return{isToken:!0,value:e};if(t.match(Dj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(n=>{if(!n.isToken)return n.value;const i=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return Cj.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return Sj.test(e)}(i))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Nj.includes(e))throw new RangeError(n)}(i,t,String(e));return(0,wj[i[0]])(s,i,o.localize,c)}).join("")}function Rj(e){const t=e.match(Lj);return t?t[1].replace(Mj,"'"):e}function Ij(e,t){const r=Nk(e,t?.in);return function(e,t,r){const[n,o]=Bk(r?.in,e,t),i=Dk(n,r),a=Dk(o,r),s=+i-Ik(i),l=+a-Ik(a);return Math.round((s-l)/Pk)}(function(e,t){const r=Nk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),Nk(r,t?.in)}(r,t),Xk(r,t),t)+1}function Bj(e,t){return+Nk(e)>+Nk(t)}function _j(e,t){return+Nk(e)<+Nk(t)}function Wj(e,t,r){const[n,o]=Bk(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Fj(e,t,r){return Tk(e,-t,r)}function Vj(e,t,r){const n=Nk(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=Ck(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const r=Nk(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=Ck(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(t,Math.min(i,s)),n}function $j(e,t,r){const n=Nk(e,r?.in);return isNaN(+n)?Ck(e,NaN):(n.setFullYear(t),n)}var Hj=function(){return Hj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hj.apply(this,arguments)};function qj(e,t,r){for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Uj(e){return"multiple"===e.mode}function Yj(e){return"range"===e.mode}function Gj(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Xj={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Kj=Object.freeze({__proto__:null,formatCaption:function(e,t){return Aj(e,"LLLL y",t)},formatDay:function(e,t){return Aj(e,"d",t)},formatMonthCaption:function(e,t){return Aj(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return Aj(e,"cccccc",t)},formatYearCaption:function(e,t){return Aj(e,"yyyy",t)}}),Zj=Object.freeze({__proto__:null,labelDay:function(e,t,r){return Aj(e,"do MMMM (EEEE)",r)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return Aj(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Qj=m(void 0);function Jj(e){var t,r,n=e.initialProps,o=function(){var e=Xj,t=lj,r=new Date;return{captionLayout:"buttons",classNames:e,formatters:Kj,labels:Zj,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:r,mode:"default"}}(),i=function(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,i=e.fromDate,a=e.toDate;return n?i=Xk(n):t&&(i=new Date(t,0,1)),o?a=Gk(o):r&&(a=new Date(r,11,31)),{fromDate:i?_k(i):void 0,toDate:a?_k(a):void 0}}(n),a=i.fromDate,s=i.toDate,l=null!==(t=n.captionLayout)&&void 0!==t?t:o.captionLayout;"buttons"===l||a&&s||(l="buttons"),(Gj(n)||Uj(n)||Yj(n))&&(r=n.onSelect);var c=Hj(Hj(Hj({},o),n),{captionLayout:l,classNames:Hj(Hj({},o.classNames),n.classNames),components:Hj({},n.components),formatters:Hj(Hj({},o.formatters),n.formatters),fromDate:a,labels:Hj(Hj({},o.labels),n.labels),mode:n.mode||o.mode,modifiers:Hj(Hj({},o.modifiers),n.modifiers),modifiersClassNames:Hj(Hj({},o.modifiersClassNames),n.modifiersClassNames),onSelect:r,styles:Hj(Hj({},o.styles),n.styles),toDate:s});return E(Qj.Provider,{value:c,children:e.children})}function eP(){var e=h(Qj);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function tP(e){var t=eP(),r=t.locale,n=t.classNames,o=t.styles,i=t.formatters.formatCaption;return E("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:r})})}function rP(e){return E("svg",Hj({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:E("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function nP(e){var t,r,n=e.onChange,o=e.value,i=e.children,a=e.caption,s=e.className,l=e.style,c=eP(),u=null!==(r=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==r?r:rP;return j("div",{className:s,style:l,children:[E("span",{className:c.classNames.vhidden,children:e["aria-label"]}),E("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:i}),j("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[a,E(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function oP(e){var t,r=eP(),n=r.fromDate,o=r.toDate,i=r.styles,a=r.locale,s=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return E(k,{});if(!o)return E(k,{});var p=[];if(function(e,t,r){const[n,o]=Bk(r?.in,e,t);return n.getFullYear()===o.getFullYear()}(n,o))for(var d=Xk(n),f=n.getMonth();f<=o.getMonth();f++)p.push(Vj(d,f));else for(d=Xk(new Date),f=0;f<=11;f++)p.push(Vj(d,f));var m=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:nP;return E(m,{name:"months","aria-label":u(),className:l.dropdown_month,style:i.dropdown_month,onChange:function(t){var r=Number(t.target.value),n=Vj(Xk(e.displayMonth),r);e.onChange(n)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a}),children:p.map(function(e){return E("option",{value:e.getMonth(),children:s(e,{locale:a})},e.getMonth())})})}function iP(e){var t,r=e.displayMonth,n=eP(),o=n.fromDate,i=n.toDate,a=n.locale,s=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,p=n.labels.labelYearDropdown,d=[];if(!o)return E(k,{});if(!i)return E(k,{});for(var f=o.getFullYear(),m=i.getFullYear(),h=f;h<=m;h++)d.push($j(Kk(new Date),h));var v=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:nP;return E(v,{name:"years","aria-label":p(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=$j(Xk(r),Number(t.target.value));e.onChange(n)},value:r.getFullYear(),caption:u(r,{locale:a}),children:d.map(function(e){return E("option",{value:e.getFullYear(),children:u(e,{locale:a})},e.getFullYear())})})}function aP(){var e=eP(),t=function(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,i=e.toDate,a=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return i&&Yk(i,o)<0&&(o=zk(i,-1*(l-1))),a&&Yk(o,a)<0&&(o=a),Xk(o)}(e),r=function(e,t){var r=i(e),n=r[0];return[void 0===t?n:t,r[1]]}(t,e.month),n=r[0],o=r[1];return[n,function(t){var r;if(!e.disableNavigation){var n=Xk(t);o(n),null===(r=e.onMonthChange)||void 0===r||r.call(e,n)}}]}var sP=m(void 0);function lP(e){var t=eP(),r=aP(),n=r[0],o=r[1],i=function(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Xk(e),i=Yk(Xk(zk(o,n)),o),a=[],s=0;s<i;s++){var l=zk(o,s);a.push(l)}return r&&(a=a.reverse()),a}(n,t),a=function(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,i=void 0===o?1:o,a=n?i:1,s=Xk(e);if(!r)return zk(s,a);if(!(Yk(r,e)<i))return zk(s,a)}}(n,t),s=function(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,i=n?void 0===o?1:o:1,a=Xk(e);if(!r)return zk(a,-i);if(!(Yk(a,r)<=0))return zk(a,-i)}}(n,t),l=function(e){return i.some(function(t){return Wj(e,t)})},c={currentMonth:n,displayMonths:i,goToMonth:o,goToDate:function(e,r){l(e)||(r&&_j(e,r)?o(zk(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:s,nextMonth:a,isDateDisplayed:l};return E(sP.Provider,{value:c,children:e.children})}function cP(){var e=h(sP);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function uP(e){var t,r=eP(),n=r.classNames,o=r.styles,i=r.components,a=cP().goToMonth,s=function(t){a(zk(t,e.displayIndex?-e.displayIndex:0))},l=null!==(t=null==i?void 0:i.CaptionLabel)&&void 0!==t?t:tP,c=E(l,{id:e.id,displayMonth:e.displayMonth});return j("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[E("div",{className:n.vhidden,children:c}),E(oP,{onChange:s,displayMonth:e.displayMonth}),E(iP,{onChange:s,displayMonth:e.displayMonth})]})}function pP(e){return E("svg",Hj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:E("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function dP(e){return E("svg",Hj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:E("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var fP=r(function(e,t){var r=eP(),n=r.classNames,o=r.styles,i=[n.button_reset,n.button];e.className&&i.push(e.className);var a=i.join(" "),s=Hj(Hj({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),E("button",Hj({},e,{ref:t,type:"button",className:a,style:s}))});function mP(e){var t,r,n=eP(),o=n.dir,i=n.locale,a=n.classNames,s=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,p=n.components;if(!e.nextMonth&&!e.previousMonth)return E(k,{});var d=c(e.previousMonth,{locale:i}),f=[a.nav_button,a.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:i}),h=[a.nav_button,a.nav_button_next].join(" "),v=null!==(t=null==p?void 0:p.IconRight)&&void 0!==t?t:dP,y=null!==(r=null==p?void 0:p.IconLeft)&&void 0!==r?r:pP;return j("div",{className:a.nav,style:s.nav,children:[!e.hidePrevious&&E(fP,{name:"previous-month","aria-label":d,className:f,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:E("rtl"===o?v:y,{className:a.nav_icon,style:s.nav_icon})}),!e.hideNext&&E(fP,{name:"next-month","aria-label":m,className:h,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:E("rtl"===o?y:v,{className:a.nav_icon,style:s.nav_icon})})]})}function hP(e){var t=eP().numberOfMonths,r=cP(),n=r.previousMonth,o=r.nextMonth,i=r.goToMonth,a=r.displayMonths,s=a.findIndex(function(t){return Wj(e.displayMonth,t)}),l=0===s,c=s===a.length-1,u=t>1&&(l||!c),p=t>1&&(c||!l);return E(mP,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:p,nextMonth:o,previousMonth:n,onPreviousClick:function(){n&&i(n)},onNextClick:function(){o&&i(o)}})}function vP(e){var t,r,n=eP(),o=n.classNames,i=n.disableNavigation,a=n.styles,s=n.captionLayout,l=n.components,c=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:tP;return r=i?E(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?E(uP,{displayMonth:e.displayMonth,id:e.id}):j(k,"dropdown-buttons"===s?{children:[E(uP,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),E(hP,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}:{children:[E(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),E(hP,{displayMonth:e.displayMonth,id:e.id})]}),E("div",{className:o.caption,style:a.caption,children:r})}function yP(e){var t=eP(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?E("tfoot",{className:o,style:n.tfoot,children:E("tr",{children:E("td",{colSpan:8,children:r})})}):E(k,{})}function gP(){var e=eP(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,i=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=function(e,t,r){for(var n=r?Ak(new Date):Dk(new Date,{locale:e,weekStartsOn:t}),o=[],i=0;i<7;i++){var a=Tk(n,i);o.push(a)}return o}(o,i,a);return j("tr",{style:r.head_row,className:t.head_row,children:[n&&E("td",{style:r.head_cell,className:t.head_cell}),c.map(function(e,n){return E("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(e,{locale:o}),children:s(e,{locale:o})},n)})]})}function bP(){var e,t=eP(),r=t.classNames,n=t.styles,o=t.components,i=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:gP;return E("thead",{style:n.head,className:r.head,children:E(i,{})})}function wP(e){var t=eP(),r=t.locale,n=t.formatters.formatDay;return E(k,{children:n(e.date,{locale:r})})}var xP=m(void 0);function OP(e){if(!Uj(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return E(xP.Provider,{value:t,children:e.children})}return E(EP,{initialProps:e.initialProps,children:e.children})}function EP(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,i=t.max,a={disabled:[]};n&&a.disabled.push(function(e){var t=i&&n.length>i-1,r=n.some(function(t){return qk(t,e)});return Boolean(t&&!r)});var s={selected:n,onDayClick:function(e,r,a){var s,l;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,r,a),!Boolean(r.selected&&o&&(null==n?void 0:n.length)===o))&&!Boolean(!r.selected&&i&&(null==n?void 0:n.length)===i)){var c=n?qj([],n):[];if(r.selected){var u=c.findIndex(function(t){return qk(e,t)});c.splice(u,1)}else c.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,c,e,r,a)}},modifiers:a};return E(xP.Provider,{value:s,children:r})}function kP(){var e=h(xP);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var jP,PP=m(void 0);function SP(e){if(!Yj(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return E(PP.Provider,{value:t,children:e.children})}return E(CP,{initialProps:e.initialProps,children:e.children})}function CP(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},i=o.from,a=o.to,s=t.min,l=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(c.range_start=[i],a?(c.range_end=[a],qk(i,a)||(c.range_middle=[{after:i,before:a}])):c.range_end=[i]):a&&(c.range_start=[a],c.range_end=[a]),s&&(i&&!a&&c.disabled.push({after:Fj(i,s-1),before:Tk(i,s-1)}),i&&a&&c.disabled.push({after:i,before:Tk(i,s-1)}),!i&&a&&c.disabled.push({after:Fj(a,s-1),before:Tk(a,s-1)})),l){if(i&&!a&&(c.disabled.push({before:Tk(i,1-l)}),c.disabled.push({after:Tk(i,l-1)})),i&&a){var u=l-(Wk(a,i)+1);c.disabled.push({before:Fj(i,u)}),c.disabled.push({after:Tk(a,u)})}!i&&a&&(c.disabled.push({before:Tk(a,1-l)}),c.disabled.push({after:Tk(a,l-1)}))}return E(PP.Provider,{value:{selected:n,onDayClick:function(e,r,o){var i,a;null===(i=t.onDayClick)||void 0===i||i.call(t,e,r,o);var s=function(e,t){var r=t||{},n=r.from,o=r.to;if(n&&o){if(qk(o,e)&&qk(n,e))return;if(qk(o,e))return{from:o,to:void 0};if(qk(n,e))return;return Bj(n,e)?{from:e,to:o}:{from:n,to:e}}return o?Bj(e,o)?{from:o,to:e}:{from:e,to:o}:n?_j(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}(e,n);null===(a=t.onSelect)||void 0===a||a.call(t,s,e,r,o)},modifiers:c},children:r})}function NP(){var e=h(PP);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function TP(e){return Array.isArray(e)?qj([],e):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(jP||(jP={}));var zP=jP.Selected,LP=jP.Disabled,MP=jP.Hidden,DP=jP.Today,AP=jP.RangeEnd,RP=jP.RangeMiddle,IP=jP.RangeStart,BP=jP.Outside;var _P=m(void 0);function WP(e){var t=eP(),r=function(e,t,r){var n,o=((n={})[zP]=TP(e.selected),n[LP]=TP(e.disabled),n[MP]=TP(e.hidden),n[DP]=[e.today],n[AP]=[],n[RP]=[],n[IP]=[],n[BP]=[],n);return e.fromDate&&o[LP].push({before:e.fromDate}),e.toDate&&o[LP].push({after:e.toDate}),Uj(e)?o[LP]=o[LP].concat(t.modifiers[LP]):Yj(e)&&(o[LP]=o[LP].concat(r.modifiers[LP]),o[IP]=r.modifiers[IP],o[RP]=r.modifiers[RP],o[AP]=r.modifiers[AP]),o}(t,kP(),NP()),n=function(e){var t={};return Object.entries(e).forEach(function(e){var r=e[0],n=e[1];t[r]=TP(n)}),t}(t.modifiers),o=Hj(Hj({},r),n);return E(_P.Provider,{value:o,children:e.children})}function FP(){var e=h(_P);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function VP(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(Uk(t))return qk(e,t);if(function(e){return Array.isArray(e)&&e.every(Uk)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return function(e,t){var r,n=t.from,o=t.to;return n&&o?(Wk(o,n)<0&&(n=(r=[o,n])[0],o=r[1]),Wk(e,n)>=0&&Wk(o,e)>=0):o?qk(o,e):!!n&&qk(n,e)}(e,t);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var r=Wk(t.before,e)>0,n=Wk(t.after,e)<0;return Bj(t.before,t.after)?n&&r:r||n}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?Wk(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?Wk(t.before,e)>0:"function"==typeof t&&t(e)})}function $P(e,t,r){var n=Object.keys(t).reduce(function(r,n){var o=t[n];return VP(e,o)&&r.push(n),r},[]),o={};return n.forEach(function(e){return o[e]=!0}),r&&!Wj(e,r)&&(o.outside=!0),o}function HP(e,t){var r=t.moveBy,n=t.direction,o=t.context,i=t.modifiers,a=t.retry,s=void 0===a?{count:0,lastFocused:e}:a,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,p=o.locale,d={day:Tk,week:Fk,month:zk,year:Vk,startOfWeek:function(e){return o.ISOWeek?Ak(e):Dk(e,{locale:p,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?Qk(e):Zk(e,{locale:p,weekStartsOn:l})}}[r](e,"after"===n?1:-1);"before"===n&&c?d=$k([c,d]):"after"===n&&u&&(d=Hk([u,d]));var f=!0;if(i){var m=$P(d,i);f=!m.disabled&&!m.hidden}return f?d:s.count>365?s.lastFocused:HP(d,{moveBy:r,direction:n,context:o,modifiers:i,retry:Hj(Hj({},s),{count:s.count+1})})}var qP=m(void 0);function UP(e){var t=cP(),r=FP(),n=i(),o=n[0],a=n[1],s=i(),l=s[0],c=s[1],u=function(e,t){for(var r,n,o=Xk(e[0]),i=Gk(e[e.length-1]),a=o;a<=i;){var s=$P(a,t);if(s.disabled||s.hidden)a=Tk(a,1);else{if(s.selected)return a;s.today&&!n&&(n=a),r||(r=a),a=Tk(a,1)}}return n||r}(t.displayMonths,r),p=(null!=o?o:l&&t.isDateDisplayed(l))?l:u,d=function(e){a(e)},f=eP(),m=function(e,n){if(o){var i=HP(o,{moveBy:e,direction:n,context:f,modifiers:r});qk(o,i)||(t.goToDate(i,o),d(i))}},h={focusedDay:o,focusTarget:p,blur:function(){c(o),a(void 0)},focus:d,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return E(qP.Provider,{value:h,children:e.children})}function YP(){var e=h(qP);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var GP=m(void 0);function XP(e){if(!Gj(e.initialProps)){var t={selected:void 0};return E(GP.Provider,{value:t,children:e.children})}return E(KP,{initialProps:e.initialProps,children:e.children})}function KP(e){var t=e.initialProps,r=e.children,n={selected:t.selected,onDayClick:function(e,r,n){var o,i,a;null===(o=t.onDayClick)||void 0===o||o.call(t,e,r,n),!r.selected||t.required?null===(a=t.onSelect)||void 0===a||a.call(t,e,e,r,n):null===(i=t.onSelect)||void 0===i||i.call(t,void 0,e,r,n)}};return E(GP.Provider,{value:n,children:r})}function ZP(){var e=h(GP);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function QP(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(t){var n=e.modifiersClassNames[t];if(n)r.push(n);else if(function(e){return Object.values(jP).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&r.push(o)}}),r}function JP(e,t,r){var n,o,i,s=eP(),l=YP(),c=function(e,t){return $P(e,FP(),t)}(e,t),u=function(e,t){var r=eP(),n=ZP(),o=kP(),i=NP(),a=YP(),s=a.focusDayAfter,l=a.focusDayBefore,c=a.focusWeekAfter,u=a.focusWeekBefore,p=a.blur,d=a.focus,f=a.focusMonthBefore,m=a.focusMonthAfter,h=a.focusYearBefore,v=a.focusYearAfter,y=a.focusStartOfWeek,g=a.focusEndOfWeek,b={onClick:function(a){var s,l,c,u;Gj(r)?null===(s=n.onDayClick)||void 0===s||s.call(n,e,t,a):Uj(r)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Yj(r)?null===(c=i.onDayClick)||void 0===c||c.call(i,e,t,a):null===(u=r.onDayClick)||void 0===u||u.call(r,e,t,a)},onFocus:function(n){var o;d(e),null===(o=r.onDayFocus)||void 0===o||o.call(r,e,t,n)},onBlur:function(n){var o;p(),null===(o=r.onDayBlur)||void 0===o||o.call(r,e,t,n)},onKeyDown:function(n){var o;switch(n.key){case"ArrowLeft":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?s():l();break;case"ArrowRight":n.preventDefault(),n.stopPropagation(),"rtl"===r.dir?l():s();break;case"ArrowDown":n.preventDefault(),n.stopPropagation(),c();break;case"ArrowUp":n.preventDefault(),n.stopPropagation(),u();break;case"PageUp":n.preventDefault(),n.stopPropagation(),n.shiftKey?h():f();break;case"PageDown":n.preventDefault(),n.stopPropagation(),n.shiftKey?v():m();break;case"Home":n.preventDefault(),n.stopPropagation(),y();break;case"End":n.preventDefault(),n.stopPropagation(),g()}null===(o=r.onDayKeyDown)||void 0===o||o.call(r,e,t,n)},onKeyUp:function(n){var o;null===(o=r.onDayKeyUp)||void 0===o||o.call(r,e,t,n)},onMouseEnter:function(n){var o;null===(o=r.onDayMouseEnter)||void 0===o||o.call(r,e,t,n)},onMouseLeave:function(n){var o;null===(o=r.onDayMouseLeave)||void 0===o||o.call(r,e,t,n)},onPointerEnter:function(n){var o;null===(o=r.onDayPointerEnter)||void 0===o||o.call(r,e,t,n)},onPointerLeave:function(n){var o;null===(o=r.onDayPointerLeave)||void 0===o||o.call(r,e,t,n)},onTouchCancel:function(n){var o;null===(o=r.onDayTouchCancel)||void 0===o||o.call(r,e,t,n)},onTouchEnd:function(n){var o;null===(o=r.onDayTouchEnd)||void 0===o||o.call(r,e,t,n)},onTouchMove:function(n){var o;null===(o=r.onDayTouchMove)||void 0===o||o.call(r,e,t,n)},onTouchStart:function(n){var o;null===(o=r.onDayTouchStart)||void 0===o||o.call(r,e,t,n)}};return b}(e,c),p=function(){var e=eP(),t=ZP(),r=kP(),n=NP();return Gj(e)?t.selected:Uj(e)?r.selected:Yj(e)?n.selected:void 0}(),d=Boolean(s.onDayClick||"default"!==s.mode);a(function(){var t;c.outside||l.focusedDay&&d&&qk(l.focusedDay,e)&&(null===(t=r.current)||void 0===t||t.focus())},[l.focusedDay,e,r,d,c.outside]);var f=QP(s,c).join(" "),m=function(e,t){var r=Hj({},e.styles.day);return Object.keys(t).forEach(function(t){var n;r=Hj(Hj({},r),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])}),r}(s,c),h=Boolean(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(i=null===(o=s.components)||void 0===o?void 0:o.DayContent)&&void 0!==i?i:wP,y={style:m,className:f,children:E(v,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},g=l.focusTarget&&qk(l.focusTarget,e)&&!c.outside,b=l.focusedDay&&qk(l.focusedDay,e),w=Hj(Hj(Hj({},y),((n={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,n.tabIndex=b||g?0:-1,n)),u);return{isButton:d,isHidden:h,activeModifiers:c,selectedDays:p,buttonProps:w,divProps:y}}function eS(e){var t=c(null),r=JP(e.date,e.displayMonth,t);return r.isHidden?E("div",{role:"gridcell"}):r.isButton?E(fP,Hj({name:"day",ref:t},r.buttonProps)):E("div",Hj({},r.divProps))}function tS(e){var t=e.number,r=e.dates,n=eP(),o=n.onWeekNumberClick,i=n.styles,a=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,c=(0,n.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return E("span",{className:a.weeknumber,style:i.weeknumber,children:c});var u=l(Number(t),{locale:s});return E(fP,{name:"week-number","aria-label":u,className:a.weeknumber,style:i.weeknumber,onClick:function(e){o(t,r,e)},children:c})}function rS(e){var t,r,n,o=eP(),i=o.styles,a=o.classNames,s=o.showWeekNumber,l=o.components,c=null!==(t=null==l?void 0:l.Day)&&void 0!==t?t:eS,u=null!==(r=null==l?void 0:l.WeekNumber)&&void 0!==r?r:tS;return s&&(n=E("td",{className:a.cell,style:i.cell,children:E(u,{number:e.weekNumber,dates:e.dates})})),j("tr",{className:a.row,style:i.row,children:[n,e.dates.map(function(t){return E("td",{className:a.cell,style:i.cell,role:"presentation",children:E(c,{displayMonth:e.displayMonth,date:t})},function(e){return Math.trunc(+Nk(e)/1e3)}(t))})]})}function nS(e,t,r){for(var n=(null==r?void 0:r.ISOWeek)?Qk(t):Zk(t,r),o=(null==r?void 0:r.ISOWeek)?Ak(e):Dk(e,r),i=Wk(n,o),a=[],s=0;s<=i;s++)a.push(Tk(o,s));return a.reduce(function(e,t){var n=(null==r?void 0:r.ISOWeek)?cj(t):pj(t,r),o=e.find(function(e){return e.weekNumber===n});return o?(o.dates.push(t),e):(e.push({weekNumber:n,dates:[t]}),e)},[])}function oS(e){var t,r,n,o=eP(),i=o.locale,a=o.classNames,s=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,p=o.weekStartsOn,d=o.firstWeekContainsDate,f=o.ISOWeek,m=function(e,t){var r=nS(Xk(e),Gk(e),t);if(null==t?void 0:t.useFixedWeeks){var n=Ij(e,t);if(n<6){var o=r[r.length-1],i=o.dates[o.dates.length-1],a=Fk(i,6-n),s=nS(Fk(i,1),a,t);r.push.apply(r,s)}}return r}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:f,locale:i,weekStartsOn:p,firstWeekContainsDate:d}),h=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:bP,v=null!==(r=null==u?void 0:u.Row)&&void 0!==r?r:rS,y=null!==(n=null==u?void 0:u.Footer)&&void 0!==n?n:yP;return j("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&E(h,{}),E("tbody",{className:a.tbody,style:s.tbody,children:m.map(function(t){return E(v,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),E(y,{displayMonth:e.displayMonth})]})}var iS="undefined"!=typeof window&&window.document&&window.document.createElement?d:a,aS=!1,sS=0;function lS(){return"react-day-picker-".concat(++sS)}function cS(e){var t,r,n=eP(),o=n.dir,s=n.classNames,l=n.styles,c=n.components,u=cP().displayMonths,p=function(e){var t,r=null!=e?e:aS?lS():null,n=i(r),o=n[0],s=n[1];return iS(function(){null===o&&s(lS())},[]),a(function(){!1===aS&&(aS=!0)},[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[s.month],m=l.month,h=0===e.displayIndex,v=e.displayIndex===u.length-1,y=!h&&!v;"rtl"===o&&(v=(t=[h,v])[0],h=t[1]),h&&(f.push(s.caption_start),m=Hj(Hj({},m),l.caption_start)),v&&(f.push(s.caption_end),m=Hj(Hj({},m),l.caption_end)),y&&(f.push(s.caption_between),m=Hj(Hj({},m),l.caption_between));var g=null!==(r=null==c?void 0:c.Caption)&&void 0!==r?r:vP;return j("div",{className:f.join(" "),style:m,children:[E(g,{id:p,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),E(oS,{id:d,"aria-labelledby":p,displayMonth:e.displayMonth})]},e.displayIndex)}function uS(e){var t=eP(),r=t.classNames,n=t.styles;return E("div",{className:r.months,style:n.months,children:e.children})}function pS(e){var t,r,n=e.initialProps,o=eP(),s=YP(),l=cP(),c=i(!1),u=c[0],p=c[1];a(function(){o.initialFocus&&s.focusTarget&&(u||(s.focus(s.focusTarget),p(!0)))},[o.initialFocus,u,s.focus,s.focusTarget,s]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=Hj(Hj({},o.styles.root),o.style),m=Object.keys(n).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var r;return Hj(Hj({},e),((r={})[t]=n[t],r))},{}),h=null!==(r=null===(t=n.components)||void 0===t?void 0:t.Months)&&void 0!==r?r:uS;return E("div",Hj({className:d.join(" "),style:f,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},m,{children:E(h,{children:l.displayMonths.map(function(e,t){return E(cS,{displayIndex:t,displayMonth:e},t)})})}))}function dS(e){var t=e.children,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children"]);return E(Jj,{initialProps:r,children:E(lP,{children:E(XP,{initialProps:r,children:E(OP,{initialProps:r,children:E(SP,{initialProps:r,children:E(WP,{children:E(UP,{children:t})})})})})})})}function fS(e){return E(dS,Hj({},e,{children:E(pS,{initialProps:e})}))}const mS=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,hS=z,vS=(yS="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",gS={variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==gS?void 0:gS.variants))return hS(yS,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:n}=gS,o=Object.keys(r).map(t=>{const o=null==e?void 0:e[t],i=null==n?void 0:n[t];if(null===o)return null;const a=mS(o)||mS(i);return r[t][a]}),i=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),a=null==gS||null===(t=gS.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:r,className:o,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...n,...i}[t]):{...n,...i}[t]===r})?[...e,r,o]:e},[]);return hS(yS,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});var yS,gS;const bS=e.forwardRef(({className:t,variant:r,size:n,asChild:o=!1,...i},a)=>{const s=o?Pg:"button";return e.createElement(s,{className:Be(vS({variant:r,size:n,className:t})),ref:a,...i})});bS.displayName="Button";const wS=({className:e,classNames:r,showOutsideDays:n=!0,...o})=>t.createElement(fS,{showOutsideDays:n,className:Be("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Be(vS({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:Be("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md","range"===o.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:Be(vS({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...r},components:{IconLeft:()=>t.createElement(bk,{className:"h-4 w-4"}),IconRight:()=>t.createElement(xk,{className:"h-4 w-4"})},...o});wS.displayName="Calendar";const xS={arrow:"arrow",slash:"slash",icon:"icon"},OS={small:{text:"text-xs",icon:"h-3 w-3",spacing:"py-0.5 px-1.5"},medium:{text:"text-sm",icon:"h-4 w-4",spacing:"py-1 px-2"},large:{text:"text-base",icon:"h-5 w-5",spacing:"py-1.5 px-2.5"}},ES=e.forwardRef(({variant:t,size:r,className:n,...o},i)=>{const a={slash:e.createElement("span",{className:"mx-2 text-muted-foreground/50 select-none"},"/"),arrow:e.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},e.createElement(Ke,{className:Be(OS[r].icon,"text-muted-foreground/50")})),icon:e.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},e.createElement(Ke,{className:Be(OS[r].icon,"text-muted-foreground/50")}))};return e.createElement("span",{ref:i,className:Be("flex items-center",n),...o},a[t])});ES.displayName="BreadCrumbSeparator";const kS=e.forwardRef(({items:t,variant:r="slash",size:n="medium",maxItems:o=4,className:a,...l},c)=>{const[u,p]=i(!1),[d,f]=i(null),m=s(()=>{if(u||t.length<=o)return t;return[...t.slice(0,1),{label:"...",href:"#"},...t.slice(-2)]},[t,o,u]);return e.createElement("nav",{ref:c,"aria-label":"BreadCrumb",className:Be("w-full p-3 select-none",a),...l},e.createElement("ol",{className:"flex items-center flex-wrap gap-y-2"},"icon"===r&&e.createElement("li",{className:"flex items-center"},e.createElement("a",{href:"/",className:Be("text-muted-foreground/80 transition-colors duration-150","hover:text-primary focus-visible:text-primary","outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-ring rounded-sm")},e.createElement(tt,{className:OS[n].icon}),e.createElement("span",{className:"sr-only"},"Home"))),m.map((t,o)=>{const i=o===m.length-1,a="..."===t.label,s=d===o;return e.createElement("li",{key:t.href,className:"flex items-center group",onMouseEnter:()=>f(o),onMouseLeave:()=>f(null)},o>0&&e.createElement(ES,{variant:r,size:n}),"icon"===r&&!a&&e.createElement("span",{className:"mr-1"},t.icon||e.createElement(et,{className:Be(OS[n].icon,"text-muted-foreground/80")})),e.createElement("a",{href:a?void 0:t.href,className:Be("font-medium relative inline-flex items-center","transition-all duration-150","outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2","focus-visible:ring-ring rounded-sm",OS[n].text,OS[n].spacing,i?"text-primary cursor-default font-semibold":"text-muted-foreground/80 hover:text-muted-foreground",!i&&["after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0","after:bg-primary/50 after:transition-all after:duration-150",s&&"after:w-full"],a&&"cursor-pointer hover:text-primary"),onClick:e=>{a&&(e.preventDefault(),p(!0))},...!i&&{role:"link","aria-current":void 0},...i&&{"aria-current":"page"}},e.createElement("span",{className:"relative"},t.label)))})))});kS.displayName="BreadCrumb";const jS={small:{trigger:"px-3 py-2 text-sm",icon:"h-4 w-4",optionIcon:"h-4 w-4",option:"px-2.5 py-2",optionText:"text-sm",description:"text-xs"},medium:{trigger:"px-4 py-3 text-base",icon:"h-5 w-5",optionIcon:"h-5 w-5",option:"px-3 py-2.5",optionText:"text-sm",description:"text-xs"},large:{trigger:"px-5 py-4 text-lg",icon:"h-6 w-6",optionIcon:"h-6 w-6",option:"px-4 py-3",optionText:"text-base",description:"text-sm"}},PS={basic:{trigger:"border border-border hover:border-primary/20",content:"border border-border"},"shadow-sm":{trigger:"shadow-lg hover:shadow-xl",content:"shadow-xl"}},SS=({text:e,className:r=""})=>{const{textRef:n,isTruncated:o}=(()=>{const e=c(null),[t,r]=i(!1),n=l(()=>{if(e.current){const t=e.current;r(t.scrollWidth>t.clientWidth)}},[]);return a(()=>{n();const t=e.current,r=new ResizeObserver(()=>{n()});return t&&r.observe(t),window.addEventListener("resize",n),()=>{t&&r.unobserve(t),r.disconnect(),window.removeEventListener("resize",n)}},[n]),{textRef:e,isTruncated:t}})();return o?t.createElement(vk,{title:e,trigger:"hover"},t.createElement("span",{ref:n,className:Be("truncate block w-full max-w-full",r)},e)):t.createElement("span",{ref:n,className:Be("truncate block w-full max-w-full",r)},e)},CS=r(({options:e,value:r,onValueChange:n,placeholder:o="",disabled:u=!1,showIcons:p=!0,size:d="medium",variant:f="basic",className:m,classNames:h,searchable:g=!1,onSearch:b},w)=>{const[x,O]=i(!1),[E,k]=i(-1),[j,P]=i(""),[S,C]=i(null),[N,T]=i(""),[z,L]=i(0),[M,D]=i(!1),A=c(null),R=c(null),I=c(null),B=c([]),_=s(()=>e.find(e=>e.id===r),[e,r]),W=s(()=>jS[d],[d]),F=s(()=>g&&N?e.filter(e=>e.label.toLowerCase().includes(N.toLowerCase())):e,[e,g,N]);a(()=>{if(x&&R.current){const e=R.current.getBoundingClientRect(),t=300,r=window.innerHeight-e.bottom,n=e.top;D(r<t&&n>t)}},[x]),a(()=>()=>{S&&clearTimeout(S)},[S]),a(()=>{const e=()=>{R.current&&L(R.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),a(()=>{x?g&&I.current&&I.current.focus():(k(-1),T(""))},[x,g]),a(()=>{x&&E>=0&&B.current[E]&&B.current[E]?.scrollIntoView({block:"nearest"})},[x,E]),a(()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&O(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),a(()=>{g&&b&&b(N)},[N,b,g]);const V=l(e=>{n?.(e),O(!1)},[n]),$=s(()=>{if(!f)return{trigger:"",content:""};const e=PS[f]||{trigger:"",content:""};return{trigger:e.trigger||"",content:e.content||""}},[f]),H=l(e=>{if(!u)switch(e.key){case"ArrowDown":e.preventDefault(),x?k(e=>Math.min(e+1,F.length-1)):(O(!0),k(0));break;case"ArrowUp":e.preventDefault(),x?k(e=>Math.max(e-1,0)):(O(!0),k(F.length-1));break;case"Home":e.preventDefault(),x&&k(0);break;case"End":e.preventDefault(),x&&k(F.length-1);break;case"Enter":case" ":if(e.preventDefault(),x&&E>=0){const e=F[E];e.disabled||V(e.id)}else O(!x);break;case"Escape":e.preventDefault(),O(!1);break;default:if(!g&&1===e.key.length){const t=e.key.toLowerCase();S&&clearTimeout(S);const r=j+t;P(r);const n=F.findIndex(e=>e.label.toLowerCase().startsWith(r));n>=0&&(k(n),x||O(!0));const o=setTimeout(()=>{P("")},1e3);C(o)}}},[u,x,F,j,S,V,E,g]),q=l((e,t,r)=>{r||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),V(t))},[V]),U=l(e=>{T(e.target.value),k(0)},[]);return t.createElement("div",{ref:A,className:"relative max-w-full"},t.createElement("button",{type:"button",ref:e=>{"function"==typeof w?w(e):w&&(w.current=e),R.current=e},onClick:()=>!u&&O(!x),onKeyDown:H,className:Be("group flex w-full items-center justify-between rounded-xl",_?"bg-background/100":"bg-background","transition-all duration-200 ease-out","hover:shadow-md","focus:outline-hidden focus:ring-2 focus:ring-primary/20 focus:ring-offset-2",u&&"cursor-not-allowed opacity-50",x&&"border-primary/30 bg-primary/5 shadow-lg","max-w-full text-ellipsis whitespace-nowrap",W.trigger,$.trigger,m,h?.trigger),disabled:u,"aria-expanded":x,"aria-haspopup":"listbox","aria-controls":"dropdown-options","aria-label":o},t.createElement("div",{className:"flex items-center gap-3 min-w-0 w-full overflow-hidden"},p&&_?.icon&&t.createElement("span",{className:"text-primary/70 transition-colors duration-200 group-hover:text-primary flex-shrink-0"},v(_.icon,{})),t.createElement(SS,{text:_?_.label:o,className:Be("font-medium",W.optionText)})),t.createElement(Ge,{className:Be("text-primary/70 transition-all duration-300","group-hover:text-primary",x&&"rotate-180",W.icon,"flex-shrink-0 ml-2")})),t.createElement("div",{id:"dropdown-options",role:"listbox","aria-label":o,className:Be("z-50 origin-top-right","rounded-xl border border-border/50 bg-background p-1.5","shadow-lg backdrop-blur-xs","transition-all duration-200 ease-out",x?"visible scale-100 opacity-100":"invisible scale-95 opacity-0","absolute left-0","max-w-full overflow-hidden",M?"bottom-full mb-2":"top-full mt-2",$.content,h?.content),style:{width:z>0?`${z}px`:"auto",maxWidth:"100%"}},g&&t.createElement("div",{className:"sticky top-0 z-10 mb-1.5 bg-background/100 px-2 py-1.5 max-w-full"},t.createElement("div",{className:"relative max-w-full"},t.createElement(ot,{className:Be("absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",W.icon)}),t.createElement("input",{ref:I,type:"text",value:N,onChange:U,onClick:e=>e.stopPropagation(),placeholder:"Search...",className:Be("w-full rounded-lg border border-border bg-background py-2","pl-9 pr-2 text-sm placeholder:text-muted-foreground","focus:border-primary/30 focus:outline-hidden focus:ring-1 focus:ring-primary/20","max-w-full text-ellipsis",W.optionText)}))),t.createElement("div",{className:"max-h-72 overflow-auto max-w-full"},0===F.length?t.createElement("div",{className:"px-3 py-2 text-sm text-muted-foreground truncate max-w-full"},"No options found"):F.map((e,n)=>t.createElement(y,{key:e.id},t.createElement("div",{ref:e=>{B.current[n]=e},role:"option",tabIndex:x&&!e.disabled?0:-1,"aria-selected":r===e.id,onClick:()=>!e.disabled&&V(e.id),onKeyDown:t=>q(t,e.id,!!e.disabled),className:Be("group relative flex select-none items-center gap-3 rounded-lg","cursor-pointer transition-all duration-200","hover:bg-primary/10","focus:outline-hidden focus:ring-2 focus:ring-primary/20",e.disabled&&"pointer-events-none opacity-50",(r===e.id||n===E)&&"bg-primary/5 border border-primary/20","max-w-full",W.option,h?.item)},p&&e.icon&&t.createElement("span",{className:Be("text-primary/70 transition-colors duration-200","group-hover:text-primary","flex-shrink-0",h?.itemIcon)},v(e.icon)),t.createElement("div",{className:"flex flex-col gap-0.5 min-w-0 flex-grow overflow-hidden max-w-full"},t.createElement(SS,{text:e.label,className:Be("font-medium leading-none","transition-colors duration-200","group-hover:text-primary",W.optionText,h?.itemText)}),e.description&&t.createElement(SS,{text:e.description,className:Be("text-muted-foreground","transition-colors duration-200","group-hover:text-primary/70",W.description,h?.description)})),r===e.id&&t.createElement(Ye,{className:Be("ml-auto text-primary flex-shrink-0",W.icon)})),n<F.length-1&&t.createElement("div",{className:Be("my-1.5 h-px bg-border/50",h?.separator)}))))))});CS.displayName="Dropdown";const NS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("rounded-xl border bg-card text-card-foreground shadow-sm",t),...r}));NS.displayName="Card";const TS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex flex-col space-y-1.5 p-6",t),...r}));TS.displayName="CardHeader";e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("font-semibold leading-none tracking-tight",t),...r})).displayName="CardTitle";e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("text-sm text-muted-foreground",t),...r})).displayName="CardDescription";const zS=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("p-6 pt-0",t),...r}));zS.displayName="CardContent";function LS({className:e,...r}){return t.createElement("div",{className:Be("animate-pulse rounded-md bg-primary/10",e),...r})}e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex items-center p-6 pt-0",t),...r})).displayName="CardFooter";const MS=({headerRows:e=2,contentRows:r=3,headerRowHeight:n="h-6",contentRowHeight:o="h-5",gridCols:i=2,gridHeight:a="h-64",className:s})=>t.createElement(NS,{className:Be("overflow-hidden",s)},t.createElement(TS,{className:"border-b"},t.createElement("div",{className:"space-y-8"},Array.from({length:e}).map((e,r)=>t.createElement(LS,{key:r,className:Be(n,0===r?"w-1/3":"w-2/3")})),i>0&&t.createElement("div",{className:Be("grid gap-8",{"grid-cols-1":1===i,"grid-cols-1 md:grid-cols-2":2===i,"grid-cols-1 md:grid-cols-3":3===i,"grid-cols-1 md:grid-cols-4":4===i})},Array.from({length:i}).map((e,r)=>t.createElement(LS,{key:r,className:a}))))),t.createElement(zS,{className:"mt-6 space-y-6"},Array.from({length:r}).map((e,r)=>t.createElement("div",{key:r,className:"flex gap-4"},t.createElement(LS,{className:Be("w-5",o)}),t.createElement("div",{className:"space-y-2 flex-1"},t.createElement(LS,{className:Be("w-3/4",o)}),t.createElement(LS,{className:Be("w-1/2",o)})))))),DS=({rows:e=5,className:r})=>t.createElement(NS,{className:Be("shadow-lg border-border",r)},t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-48"})),t.createElement(zS,null,t.createElement("div",{className:"space-y-4"},Array.from({length:e}).map((e,r)=>t.createElement(LS,{key:r,className:"h-16 w-full"}))))),AS=({className:e,rows:r=3,rowHeight:n="h-4",mainHeight:o="h-24",firstRowWidth:i="w-3/5",secondRowWidth:a="w-4/5"})=>t.createElement(NS,{className:e},t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-48"})),t.createElement(zS,{className:"space-y-4"},t.createElement(LS,{className:o}),Array.from({length:r}).map((e,r)=>t.createElement(LS,{key:r,className:Be(n,0===r?i:a)})))),RS=()=>t.createElement("div",{className:"space-y-6"},t.createElement("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4"},Array.from({length:4}).map((e,r)=>t.createElement(NS,{key:r},t.createElement(TS,{className:"flex flex-row items-center justify-between pb-2"},t.createElement(LS,{className:"h-5 w-1/2"}),t.createElement(LS,{className:"h-4 w-4"})),t.createElement(zS,null,t.createElement(LS,{className:"h-8 w-full"}),t.createElement(LS,{className:"mt-4 h-4 w-3/4"}))))),t.createElement("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2"},t.createElement(NS,null,t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-40"})),t.createElement(zS,null,t.createElement(LS,{className:"h-[200px]"}))),t.createElement(NS,null,t.createElement(TS,null,t.createElement(LS,{className:"h-8 w-40"})),t.createElement(zS,null,t.createElement("div",{className:"space-y-2"},Array.from({length:5}).map((e,r)=>t.createElement("div",{key:r,className:"flex justify-between"},t.createElement(LS,{className:"h-4 w-[100px]"}),t.createElement(LS,{className:"h-4 w-[60px]"})))))))),IS=t.forwardRef(({variant:e="card",rows:r=5,className:n,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s,headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,...m},h)=>{const v={card:t.createElement(MS,{headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,className:n}),table:t.createElement(DS,{rows:r,className:n}),simple:t.createElement(AS,{className:n,rows:r,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s}),dashboard:t.createElement(RS,null)};return t.createElement("div",{ref:h,...m},v[e])});IS.displayName="CustomSkeleton";const BS={small:{padding:"p-3 sm:p-4",titleSize:"text-base sm:text-lg",descSize:"text-sm sm:text-base",imageHeight:"h-24 sm:h-32 md:h-36",spacing:"space-y-2"},medium:{padding:"p-4 sm:p-5 md:p-6",titleSize:"text-lg sm:text-xl md:text-2xl",descSize:"text-sm sm:text-base md:text-lg",imageHeight:"h-32 sm:h-40 md:h-48 lg:h-56",spacing:"space-y-3"},large:{padding:"p-5 sm:p-6 md:p-7 lg:p-8",titleSize:"text-xl sm:text-2xl md:text-3xl",descSize:"text-base sm:text-lg md:text-xl",imageHeight:"h-40 sm:h-48 md:h-56 lg:h-64",spacing:"space-y-4"},custom:{padding:"",titleSize:"text-lg",descSize:"text-base",imageHeight:"",spacing:"space-y-3"}},_S={none:"",sm:"space-y-2",md:"space-y-3",lg:"space-y-4"},WS={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-md",xl:"shadow-lg"},FS={none:"",lift:"transition-transform duration-300 hover:-translate-y-1",glow:"transition-shadow duration-300 hover:shadow-glow",scale:"transition-transform duration-300 hover:scale-[1.02]",border:"transition-colors duration-300 hover:border-primary"},VS={none:"rounded-none",sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-3xl"},$S={"top-right":"absolute right-4 top-4 z-10","top-left":"absolute left-4 top-4 z-10","bottom-right":"absolute right-4 bottom-4 z-10","bottom-left":"absolute left-4 bottom-4 z-10"},HS={default:{kind:"default",wrapper:"bg-card border border-border",gradients:[]},gradiant:{kind:"gradiant",wrapper:"relative overflow-hidden bg-card border border-border shadow-xs",gradients:["absolute inset-0 bg-primary/20","absolute inset-0 bg-linear-to-tr from-primary/10 via-transparent to-transparent"]},outline:{kind:"outline",wrapper:"bg-transparent border-2 border-border",gradients:[]},solid:{kind:"solid",wrapper:"bg-primary/10 border border-primary/20",gradients:[]},glass:{kind:"glass",wrapper:"bg-card/80 backdrop-blur-md border border-white/20",gradients:["absolute inset-0 bg-gradient-to-tr from-white/5 to-white/10"]}},qS=({title:e,description:r,children:n,variant:o="gradiant",size:a="medium",shadow:s="none",hoverEffect:c="none",borderRadius:u="lg",image:p,imagePosition:d="top",imageHeight:f,badge:m,badgePosition:h="top-right",footer:v,header:y,padding:g,spacing:b="md",width:w,height:x,maxWidth:O,className:E,contentClassName:k,titleClassName:j,descriptionClassName:P,imageClassName:S,onClick:C,href:N,interactive:T=!1,disabled:z=!1})=>{const[L,M]=i(!p),D=l(()=>{M(!0)},[]),A=HS[o],R=BS[a],I=WS[s],B=FS[c],_=VS[u],W="none"===b?"":_S[b]||R.spacing,F=$S[h],V=g||R.padding,$=f||R.imageHeight,H=T?"cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary dark:focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-background-dark":"",q=z?"opacity-60 pointer-events-none":"",U=l(e=>{!z&&C&&C()},[z,C]),Y=t.createElement(t.Fragment,null,y&&t.createElement("div",{"data-testid":"header",className:"mb-4"},y),m&&t.createElement("div",{"data-testid":"badge-wrapper",className:F},"string"==typeof m?t.createElement("span",{className:"inline-flex items-center rounded-full bg-primary px-3 py-1 text-xs font-medium text-primary-foreground dark:text-primary-foreground-dark ring-1 ring-inset ring-primary/10 dark:ring-primary/20"},m):m),t.createElement("div",{className:Be(W,A.content&&"default"!==o&&"p-6",k)},p&&"top"===d&&t.createElement("div",{"data-testid":"image-wrapper",className:Be("relative w-full overflow-hidden",_,$,"mb-6",S)},t.createElement("div",{"data-testid":"image-container",className:Be(L?"opacity-100":"opacity-0","transition-opacity duration-300")},t.createElement("img",{src:p,alt:e||"Card image",className:"h-full w-full object-cover",onLoad:D}))),e&&t.createElement("h3",{"data-testid":"title",className:Be("font-semibold tracking-tight text-foreground dark:text-foreground-dark",R.titleSize,j)},e),r&&t.createElement("p",{"data-testid":"description",className:Be("text-muted-foreground dark:text-muted-foreground-dark leading-relaxed",R.descSize,P)},r),n&&t.createElement("div",{className:Be("mt-4")},n),v&&t.createElement("div",{"data-testid":"footer",className:"mt-6 pt-4 border-t border-border dark:border-border-dark"},v))),G=A.content?t.createElement("div",{className:A.content},Y):Y,X={width:w||"auto",height:x||"auto",maxWidth:O||"none",...p&&"background"===d?{backgroundImage:`url(${p})`,backgroundSize:"cover",backgroundPosition:"center"}:{}},K=N?"a":"div",Z=N?{href:N,...T?{tabIndex:0}:{}}:{},Q=C?{onClick:U,role:"button",tabIndex:T&&!z?0:void 0}:{};return t.createElement(K,{...Z,...Q,className:Be(A.wrapper,_,I,B,H,q,E),style:X},t.createElement("div",{"data-testid":"gradient-wrapper"},A.gradients&&A.gradients.map((e,r)=>t.createElement("div",{key:r,className:e}))),A.inner?t.createElement("div",{className:Be(A.inner,V)},t.createElement("div",{className:"relative"},G)):t.createElement("div",{className:Be("relative",V)},G))};qS.displayName="Card";const US={small:"h-10 w-10",medium:"h-14 w-14 md:h-20 md:w-20",large:"h-28 w-28"},YS=({variant:e="spinner",size:r="medium",className:n,ariaLabel:o="Loading",colorScheme:i})=>{const a=US[r];return t.createElement("div",{role:"status","aria-label":o,className:Be("flex items-center justify-center",n)},(()=>{switch(e){case"dots":return t.createElement("div",{className:"flex space-x-2"},[0,1,2].map(e=>t.createElement("div",{key:e,className:Be("w-3 h-3 rounded-full","harford"!==i&&"bg-primary",0===e&&"animate-bounce",1===e&&"animate-bounce-delay-1",2===e&&"animate-bounce-delay-2"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"bars":return t.createElement("div",{className:"flex space-x-1 h-10 items-center"},[0,1,2,3].map(e=>t.createElement("div",{key:e,className:Be("w-2 h-full rounded-full","harford"!==i&&"bg-primary",0===e&&"animate-bar-scale",1===e&&"animate-bar-scale-delay-1",2===e&&"animate-bar-scale-delay-2",3===e&&"animate-bar-scale-delay-3"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"orbit":return t.createElement("div",{className:Be("relative aspect-square flex items-center justify-center",{"w-20 h-20":"small"===r,"w-32 h-32":"medium"===r,"w-40 h-40":"large"===r},n)},t.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:3rem]"},t.createElement("div",{className:Be("absolute w-4 h-4 rounded-full animate-orbit-medium","harford"!==i&&"bg-primary/70 shadow-primary/50"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.7)",boxShadow:"0 10px 15px -3px rgba(4, 61, 90, 0.5)"}:{}},t.createElement("div",{className:Be("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:Be("absolute w-2 h-2 rounded-full animate-orbit-reverse-medium","harford"!==i&&"bg-primary/60 shadow-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.6)",boxShadow:"0 4px 6px -1px rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:4rem]"},t.createElement("div",{className:Be("absolute w-5 h-5 rounded-full animate-orbit-slow","harford"!==i&&"bg-primary/60 shadow-primary/50"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.6)",boxShadow:"0 20px 25px -5px rgba(4, 61, 90, 0.5)"}:{}},t.createElement("div",{className:Be("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),t.createElement("div",{className:Be("absolute w-3 h-3 rounded-full animate-orbit-reverse-slow","harford"!==i&&"bg-primary/50 shadow-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.5)",boxShadow:"0 10px 15px -3px rgba(4, 61, 90, 0.3)"}:{}})));default:return t.createElement("div",{className:"relative"},t.createElement("div",{className:Be("relative",a)},t.createElement("div",{className:Be("absolute inset-0 rounded-full border-4","harford"!==i&&"border-primary/30","animate-ping-slow"),style:"harford"===i?{borderColor:"rgba(4, 61, 90, 0.3)"}:{}}),t.createElement("div",{className:Be("absolute inset-0 rounded-full border-4 border-transparent","harford"!==i&&"border-t-primary border-l-primary","animate-spin-slow"),style:"harford"===i?{borderTopColor:"#043d5a",borderLeftColor:"#043d5a"}:{}}),t.createElement("div",{className:Be("absolute inset-0 rounded-full","border-[3px] border-dashed","harford"!==i&&"border-primary/50","animate-spin-slower"),style:"harford"===i?{borderColor:"rgba(4, 61, 90, 0.5)"}:{}}),t.createElement("div",{className:Be("absolute inset-2 rounded-full border-4 border-transparent","harford"!==i&&"border-r-primary/70 border-b-primary/70","animate-spin-reverse"),style:"harford"===i?{borderRightColor:"rgba(4, 61, 90, 0.7)",borderBottomColor:"rgba(4, 61, 90, 0.7)"}:{}})))}})(),t.createElement("span",{className:"sr-only"},o))};YS.displayName="Loader";var GS,XS="dismissableLayer.update",KS="dismissableLayer.pointerDownOutside",ZS="dismissableLayer.focusOutside",QS=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JS=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=t,u=e.useContext(QS),[p,d]=e.useState(null),f=p?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=Og(r,e=>d(e)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(y),b=p?v.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=g,O=function(t,r=globalThis?.document){const n=Ag(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){tC(KS,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));x&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},f),k=function(t,r=globalThis?.document){const n=Ag(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){tC(ZS,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},f);return function(t,r=globalThis?.document){const n=Ag(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{b===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),e.useEffect(()=>{if(p)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(GS=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),eC(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=GS)}},[p,f,n,u]),e.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),eC())},[p,u]),e.useEffect(()=>{const e=()=>m({});return document.addEventListener(XS,e),()=>document.removeEventListener(XS,e)},[]),E(Tg.div,{...c,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...t.style},onFocusCapture:bg(t.onFocusCapture,k.onFocusCapture),onBlurCapture:bg(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:bg(t.onPointerDownCapture,O.onPointerDownCapture)})});JS.displayName="DismissableLayer";function eC(){const e=new CustomEvent(XS);document.dispatchEvent(e)}function tC(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,r)=>{const n=e.useContext(QS),o=e.useRef(null),i=Og(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),E(Tg.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var rC="focusScope.autoFocusOnMount",nC="focusScope.autoFocusOnUnmount",oC={bubbles:!1,cancelable:!0},iC=e.forwardRef((t,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,c]=e.useState(null),u=Ag(i),p=Ag(a),d=e.useRef(null),f=Og(r,e=>c(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:cC(d.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||cC(d.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&cC(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,m.paused]),e.useEffect(()=>{if(l){uC.add(m);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(rC,oC);l.addEventListener(rC,u),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(cC(n,{select:t}),document.activeElement!==r)return}((e=aC(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&cC(l))}return()=>{l.removeEventListener(rC,u),setTimeout(()=>{const e=new CustomEvent(nC,oC);l.addEventListener(nC,p),l.dispatchEvent(e),e.defaultPrevented||cC(t??document.body,{select:!0}),l.removeEventListener(nC,p),uC.remove(m)},0)}}var e},[l,u,p,m]);const h=e.useCallback(e=>{if(!n&&!o)return;if(m.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=aC(e),r=sC(t,e),n=sC(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&cC(i,{select:!0})):(e.preventDefault(),n&&cC(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,m.paused]);return E(Tg.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})});function aC(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function sC(e,t){for(const r of e)if(!lC(r,{upTo:t}))return r}function lC(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 cC(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}iC.displayName="FocusScope";var uC=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=pC(e,t),e.unshift(t)},remove(t){e=pC(e,t),e[0]?.resume()}}}();function pC(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var dC=e.forwardRef((t,r)=>{const{container:n,...o}=t,[i,a]=e.useState(!1);zg(()=>a(!0),[]);const s=n||i&&globalThis?.document?.body;return s?S.createPortal(E(Tg.div,{...o,ref:r}),s):null});dC.displayName="Portal";var fC=0;function mC(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hC()),document.body.insertAdjacentElement("beforeend",e[1]??hC()),fC++,()=>{1===fC&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),fC--}},[])}function hC(){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}var vC=function(){return vC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vC.apply(this,arguments)};function yC(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function gC(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var bC="right-scroll-bar-position",wC="width-before-scroll-bar";function xC(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var OC="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,EC=new WeakMap;function kC(e,t){var r,n,o,a=(r=null,n=function(t){return e.forEach(function(e){return xC(e,t)})},(o=i(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return OC(function(){var t=EC.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||xC(e,null)}),n.forEach(function(e){r.has(e)||xC(e,o)})}EC.set(a,e)},[e]),a}function jC(e){return e}var PC=function(t){var r=t.sideCar,n=yC(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,vC({},n))};PC.isSideCarExport=!0;var SC=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=jC);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return o}(null);return t.options=vC({async:!0,ssr:!1},e),t}(),CC=function(){},NC=e.forwardRef(function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:CC,onWheelCapture:CC,onTouchMoveCapture:CC}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,p=t.enabled,d=t.shards,f=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,y=t.allowPinchZoom,g=t.as,b=void 0===g?"div":g,w=t.gapMode,x=yC(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=f,E=kC([n,r]),k=vC(vC({},x),i);return e.createElement(e.Fragment,null,p&&e.createElement(O,{sideCar:SC,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:w}),s?e.cloneElement(e.Children.only(l),vC(vC({},k),{ref:E})):e.createElement(b,vC({},k,{className:c,ref:E}),l))});NC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},NC.classNames={fullWidth:wC,zeroRight:bC};function TC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var zC=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=TC())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.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)}}},LC=function(){var t,r=(t=zC(),function(r,n){e.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},MC={left:0,top:0,right:0,gap:0},DC=function(e){return parseInt(e||"",10)||0},AC=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return MC;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[DC(r),DC(n),DC(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},RC=LC(),IC="data-scroll-locked",BC=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(IC,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(bC," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(wC," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(bC," .").concat(bC," {\n right: 0 ").concat(n,";\n }\n \n .").concat(wC," .").concat(wC," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(IC,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_C=function(){var e=parseInt(document.body.getAttribute(IC)||"0",10);return isFinite(e)?e:0},WC=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(IC,(_C()+1).toString()),function(){var e=_C()-1;e<=0?document.body.removeAttribute(IC):document.body.setAttribute(IC,e.toString())}},[]);var a=e.useMemo(function(){return AC(i)},[i]);return e.createElement(RC,{styles:BC(a,!r,i,n?"":"!important")})},FC=!1;if("undefined"!=typeof window)try{var VC=Object.defineProperty({},"passive",{get:function(){return FC=!0,!0}});window.addEventListener("test",VC,VC),window.removeEventListener("test",VC,VC)}catch(e){FC=!1}var $C=!!FC&&{passive:!1},HC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},qC=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),UC(e,n)){var o=YC(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},UC=function(e,t){return"v"===e?function(e){return HC(e,"overflowY")}(t):function(e){return HC(e,"overflowX")}(t)},YC=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},GC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XC=function(e){return[e.deltaX,e.deltaY]},KC=function(e){return e&&"current"in e?e.current:e},ZC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},QC=0,JC=[];function eN(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var tN,rN=(tN=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),i=e.useState(QC++)[0],a=e.useState(LC)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(KC),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=GC(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,p=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===p&&"range"===u.type)return!1;var d=qC(p,u);if(!d)return!0;if(d?r=p:(r="v"===p?"h":"v",d=qC(p,u)),!d)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var f=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),l=!1,c=i>0,u=0,p=0;do{if(!a)break;var d=YC(e,a),f=d[0],m=d[1]-d[2]-o*f;(f||m)&&UC(e,a)&&(u+=m,p+=f);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&Math.abs(u)<1||!c&&Math.abs(p)<1)&&(l=!0),l}(f,t,e,"h"===f?l:c)},[]),c=e.useCallback(function(e){var t=e;if(JC.length&&JC[JC.length-1]===a){var n="deltaY"in t?XC(t):GC(t),o=r.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,o=n,r[0]===o[0]&&r[1]===o[1]);var r,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(KC).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,n,o){var i={name:e,delta:t,target:n,should:o,shadowParent:eN(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),p=e.useCallback(function(e){n.current=GC(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,XC(e),e.target,l(e,t.lockRef.current))},[]),f=e.useCallback(function(e){u(e.type,GC(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return JC.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,$C),document.addEventListener("touchmove",c,$C),document.addEventListener("touchstart",p,$C),function(){JC=JC.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,$C),document.removeEventListener("touchmove",c,$C),document.removeEventListener("touchstart",p,$C)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:ZC(i)}):null,m?e.createElement(WC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},SC.useMedium(tN),PC),nN=e.forwardRef(function(t,r){return e.createElement(NC,vC({},t,{ref:r,sideCar:rN}))});nN.classNames=NC.classNames;var oN=new WeakMap,iN=new WeakMap,aN={},sN=0,lN=function(e){return e&&(e.host||lN(e.parentNode))},cN=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=lN(t);return r&&e.contains(r)?r:(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]);aN[r]||(aN[r]=new WeakMap);var i=aN[r],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(oN.get(e)||0)+1,c=(i.get(e)||0)+1;oN.set(e,l),i.set(e,c),a.push(e),1===l&&o&&iN.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),sN++,function(){a.forEach(function(e){var t=oN.get(e)-1,o=i.get(e)-1;oN.set(e,t),i.set(e,o),t||(iN.has(e)||e.removeAttribute(n),iN.delete(e)),o||e.removeAttribute(r)}),--sN||(oN=new WeakMap,oN=new WeakMap,iN=new WeakMap,aN={})}},uN=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),cN(n,o,r,"aria-hidden")):function(){return null}},pN="Dialog",[dN,fN]=Eg(pN),[mN,hN]=dN(pN),vN=t=>{const{__scopeDialog:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,l=e.useRef(null),c=e.useRef(null),[u,p]=Ig({prop:o,defaultProp:i??!1,onChange:a,caller:pN});return E(mN,{scope:r,triggerRef:l,contentRef:c,contentId:Dg(),titleId:Dg(),descriptionId:Dg(),open:u,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};vN.displayName=pN;var yN="DialogTrigger",gN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(yN,r),i=Og(t,o.triggerRef);return E(Tg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":BN(o.open),...n,ref:i,onClick:bg(e.onClick,o.onOpenToggle)})});gN.displayName=yN;var bN="DialogPortal",[wN,xN]=dN(bN,{forceMount:void 0}),ON=t=>{const{__scopeDialog:r,forceMount:n,children:o,container:i}=t,a=hN(bN,r);return E(wN,{scope:r,forceMount:n,children:e.Children.map(o,e=>E(ab,{present:n||a.open,children:E(dC,{asChild:!0,container:i,children:e})}))})};ON.displayName=bN;var EN="DialogOverlay",kN=e.forwardRef((e,t)=>{const r=xN(EN,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=hN(EN,e.__scopeDialog);return i.modal?E(ab,{present:n||i.open,children:E(PN,{...o,ref:t})}):null});kN.displayName=EN;var jN=jg("DialogOverlay.RemoveScroll"),PN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(EN,r);return E(nN,{as:jN,allowPinchZoom:!0,shards:[o.contentRef],children:E(Tg.div,{"data-state":BN(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),SN="DialogContent",CN=e.forwardRef((e,t)=>{const r=xN(SN,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=hN(SN,e.__scopeDialog);return E(ab,{present:n||i.open,children:i.modal?E(NN,{...o,ref:t}):E(TN,{...o,ref:t})})});CN.displayName=SN;var NN=e.forwardRef((t,r)=>{const n=hN(SN,t.__scopeDialog),o=e.useRef(null),i=Og(r,n.contentRef,o);return e.useEffect(()=>{const e=o.current;if(e)return uN(e)},[]),E(zN,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bg(t.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:bg(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:bg(t.onFocusOutside,e=>e.preventDefault())})}),TN=e.forwardRef((t,r)=>{const n=hN(SN,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return E(zN,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),zN=e.forwardRef((t,r)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=t,l=hN(SN,n),c=e.useRef(null),u=Og(r,c);return mC(),j(k,{children:[E(iC,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:E(JS,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":BN(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),j(k,{children:[E(VN,{titleId:l.titleId}),E($N,{contentRef:c,descriptionId:l.descriptionId})]})]})}),LN="DialogTitle",MN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(LN,r);return E(Tg.h2,{id:o.titleId,...n,ref:t})});MN.displayName=LN;var DN="DialogDescription",AN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(DN,r);return E(Tg.p,{id:o.descriptionId,...n,ref:t})});AN.displayName=DN;var RN="DialogClose",IN=e.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=hN(RN,r);return E(Tg.button,{type:"button",...n,ref:t,onClick:bg(e.onClick,()=>o.onOpenChange(!1))})});function BN(e){return e?"open":"closed"}IN.displayName=RN;var _N="DialogTitleWarning",[WN,FN]=function(t,r){const n=e.createContext(r),o=t=>{const{children:r,...o}=t,i=e.useMemo(()=>o,Object.values(o));return E(n.Provider,{value:i,children:r})};return o.displayName=t+"Provider",[o,function(o){const i=e.useContext(n);if(i)return i;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}(_N,{contentName:SN,titleName:LN,docsSlug:"dialog"}),VN=({titleId:t})=>{const r=FN(_N),n=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)||console.error(n)}},[n,t]),null},$N=({contentRef:t,descriptionId:r})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${FN("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(r&&e){document.getElementById(r)||console.warn(n)}},[n,t,r]),null},HN=vN,qN=gN,UN=ON,YN=kN,GN=CN,XN=MN,KN=AN,ZN=IN;const QN=UN,JN=e.forwardRef(({className:t,...r},n)=>e.createElement(YN,{ref:n,className:Be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r}));JN.displayName=YN.displayName;e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(QN,null,e.createElement(JN,null),e.createElement(GN,{ref:o,className:Be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n},r,e.createElement(ZN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},e.createElement(Ek,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))))).displayName=GN.displayName;e.forwardRef(({className:t,...r},n)=>e.createElement(XN,{ref:n,className:Be("text-lg font-semibold leading-none tracking-tight",t),...r})).displayName=XN.displayName;e.forwardRef(({className:t,...r},n)=>e.createElement(KN,{ref:n,className:Be("text-sm text-muted-foreground",t),...r})).displayName=KN.displayName;const eT={CANCEL_TEXT:"Cancel",CONFIRM_TEXT:"Confirm",VARIANT:"default",SIZE:"medium",POSITION:"center",CLOSE_ON_OUTSIDE_CLICK:!0,SHOW_CLOSE_BUTTON:!1},tT={default:{button:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"}},rT=e=>{switch(e){case"small":return"sm:max-w-[425px]";case"large":return"sm:max-w-[725px]";case"extraLarge":return"sm:max-w-[925px]";case"full":return"sm:max-w-[90vw]";default:return"sm:max-w-[525px]"}},nT=["top","right","bottom","left"],oT=Math.min,iT=Math.max,aT=Math.round,sT=Math.floor,lT=e=>({x:e,y:e}),cT={left:"right",right:"left",bottom:"top",top:"bottom"},uT={start:"end",end:"start"};function pT(e,t,r){return iT(e,oT(t,r))}function dT(e,t){return"function"==typeof e?e(t):e}function fT(e){return e.split("-")[0]}function mT(e){return e.split("-")[1]}function hT(e){return"x"===e?"y":"x"}function vT(e){return"y"===e?"height":"width"}const yT=new Set(["top","bottom"]);function gT(e){return yT.has(fT(e))?"y":"x"}function bT(e){return hT(gT(e))}function wT(e){return e.replace(/start|end/g,e=>uT[e])}const xT=["left","right"],OT=["right","left"],ET=["top","bottom"],kT=["bottom","top"];function jT(e,t,r,n){const o=mT(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?OT:xT:t?xT:OT;case"left":case"right":return t?ET:kT;default:return[]}}(fT(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(wT)))),i}function PT(e){return e.replace(/left|right|bottom|top/g,e=>cT[e])}function ST(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 CT(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function NT(e,t,r){let{reference:n,floating:o}=e;const i=gT(t),a=bT(t),s=vT(a),l=fT(t),c="y"===i,u=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-o.width,y:p};break;default:f={x:n.x,y:n.y}}switch(mT(t)){case"start":f[a]-=d*(r&&c?-1:1);break;case"end":f[a]+=d*(r&&c?-1:1)}return f}async function TT(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=dT(t,e),m=ST(f),h=s[d?"floating"===p?"reference":"floating":p],v=CT(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===p?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=CT(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}function zT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LT(e){return nT.some(t=>e[t]>=0)}const MT=new Set(["left","top"]);function DT(){return"undefined"!=typeof window}function AT(e){return BT(e)?(e.nodeName||"").toLowerCase():"#document"}function RT(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function IT(e){var t;return null==(t=(BT(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function BT(e){return!!DT()&&(e instanceof Node||e instanceof RT(e).Node)}function _T(e){return!!DT()&&(e instanceof Element||e instanceof RT(e).Element)}function WT(e){return!!DT()&&(e instanceof HTMLElement||e instanceof RT(e).HTMLElement)}function FT(e){return!(!DT()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof RT(e).ShadowRoot)}const VT=new Set(["inline","contents"]);function $T(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=tz(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!VT.has(o)}const HT=new Set(["table","td","th"]);function qT(e){return HT.has(AT(e))}const UT=[":popover-open",":modal"];function YT(e){return UT.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const GT=["transform","translate","scale","rotate","perspective"],XT=["transform","translate","scale","rotate","perspective","filter"],KT=["paint","layout","strict","content"];function ZT(e){const t=QT(),r=_T(e)?tz(e):e;return GT.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||XT.some(e=>(r.willChange||"").includes(e))||KT.some(e=>(r.contain||"").includes(e))}function QT(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const JT=new Set(["html","body","#document"]);function ez(e){return JT.has(AT(e))}function tz(e){return RT(e).getComputedStyle(e)}function rz(e){return _T(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nz(e){if("html"===AT(e))return e;const t=e.assignedSlot||e.parentNode||FT(e)&&e.host||IT(e);return FT(t)?t.host:t}function oz(e){const t=nz(e);return ez(t)?e.ownerDocument?e.ownerDocument.body:e.body:WT(t)&&$T(t)?t:oz(t)}function iz(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=oz(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=RT(o);if(i){const e=az(a);return t.concat(a,a.visualViewport||[],$T(o)?o:[],e&&r?iz(e):[])}return t.concat(o,iz(o,[],r))}function az(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sz(e){const t=tz(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=WT(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=aT(r)!==i||aT(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function lz(e){return _T(e)?e:e.contextElement}function cz(e){const t=lz(e);if(!WT(t))return lT(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=sz(t);let a=(i?aT(r.width):r.width)/n,s=(i?aT(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const uz=lT(0);function pz(e){const t=RT(e);return QT()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uz}function dz(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=lz(e);let a=lT(1);t&&(n?_T(n)&&(a=cz(n)):a=cz(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==RT(e))&&t}(i,r,n)?pz(i):lT(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,p=o.height/a.y;if(i){const e=RT(i),t=n&&_T(n)?RT(n):n;let r=e,o=az(r);for(;o&&n&&t!==r;){const e=cz(o),t=o.getBoundingClientRect(),n=tz(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,p*=e.y,l+=i,c+=a,r=RT(o),o=az(r)}}return CT({width:u,height:p,x:l,y:c})}function fz(e,t){const r=rz(e).scrollLeft;return t?t.left+r:dz(IT(e)).left+r}function mz(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:fz(e,n)),y:n.top+t.scrollTop}}const hz=new Set(["absolute","fixed"]);function vz(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=RT(e),n=IT(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=QT();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=IT(e),r=rz(e),n=e.ownerDocument.body,o=iT(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=iT(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fz(e);const s=-r.scrollTop;return"rtl"===tz(n).direction&&(a+=iT(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(IT(e));else if(_T(t))n=function(e,t){const r=dz(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=WT(e)?cz(e):lT(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=pz(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return CT(n)}function yz(e,t){const r=nz(e);return!(r===t||!_T(r)||ez(r))&&("fixed"===tz(r).position||yz(r,t))}function gz(e,t,r){const n=WT(t),o=IT(t),i="fixed"===r,a=dz(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=lT(0);function c(){l.x=fz(o)}if(n||!n&&!i)if(("body"!==AT(t)||$T(o))&&(s=rz(t)),n){const e=dz(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?lT(0):mz(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function bz(e){return"static"===tz(e).position}function wz(e,t){if(!WT(e)||"fixed"===tz(e).position)return null;if(t)return t(e);let r=e.offsetParent;return IT(e)===r&&(r=r.ownerDocument.body),r}function xz(e,t){const r=RT(e);if(YT(e))return r;if(!WT(e)){let t=nz(e);for(;t&&!ez(t);){if(_T(t)&&!bz(t))return t;t=nz(t)}return r}let n=wz(e,t);for(;n&&qT(n)&&bz(n);)n=wz(n,t);return n&&ez(n)&&bz(n)&&!ZT(n)?r:n||function(e){let t=nz(e);for(;WT(t)&&!ez(t);){if(ZT(t))return t;if(YT(t))return null;t=nz(t)}return null}(e)||r}const Oz={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=IT(n),s=!!t&&YT(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=lT(1);const u=lT(0),p=WT(n);if((p||!p&&!i)&&(("body"!==AT(n)||$T(a))&&(l=rz(n)),WT(n))){const e=dz(n);c=cz(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||p||i?lT(0):mz(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:IT,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?YT(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=iz(e,[],!1).filter(e=>_T(e)&&"body"!==AT(e)),o=null;const i="fixed"===tz(e).position;let a=i?nz(e):e;for(;_T(a)&&!ez(a);){const t=tz(a),r=ZT(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&hz.has(o.position)||$T(a)&&!r&&yz(e,a))?n=n.filter(e=>e!==a):o=t,a=nz(a)}return t.set(e,n),n}(t,this._c):[].concat(r),a=[...i,n],s=a[0],l=a.reduce((e,r)=>{const n=vz(t,r,o);return e.top=iT(n.top,e.top),e.right=oT(n.right,e.right),e.bottom=oT(n.bottom,e.bottom),e.left=iT(n.left,e.left),e},vz(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:xz,getElementRects:async function(e){const t=this.getOffsetParent||xz,r=this.getDimensions,n=await r(e.floating);return{reference:gz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=sz(e);return{width:t,height:r}},getScale:cz,isElement:_T,isRTL:function(e){return"rtl"===tz(e).direction}};function Ez(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kz(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=lz(e),u=o||i?[...c?iz(c):[],...iz(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const p=c&&s?function(e,t){let r,n=null;const o=IT(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:p,width:d,height:f}=c;if(s||t(),!d||!f)return;const m={rootMargin:-sT(p)+"px "+-sT(o.clientWidth-(u+d))+"px "+-sT(o.clientHeight-(p+f))+"px "+-sT(u)+"px",threshold:iT(0,oT(1,l))||1};let h=!0;function v(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||Ez(c,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(v,m)}n.observe(e)}(!0),i}(c,r):null;let d,f=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!l&&m.observe(c),m.observe(t));let h=l?dz(e):null;return l&&function t(){const n=dz(e);h&&!Ez(h,n)&&r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const jz=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=fT(r),s=mT(r),l="y"===gT(r),c=MT.has(a)?-1:1,u=i&&l?-1:1,p=dT(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:d*c}:{x:d*c,y:f*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pz=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=dT(e,t),c={x:r,y:n},u=await TT(t,l),p=gT(fT(o)),d=hT(p);let f=c[d],m=c[p];if(i){const e="y"===d?"bottom":"right";f=pT(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===p?"bottom":"right";m=pT(m+u["y"===p?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:f,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[d]:i,[p]:a}}}}}},Sz=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=dT(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=fT(o),g=gT(s),b=fT(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(b||!h?[PT(s)]:function(e){const t=PT(e);return[wT(e),t,wT(t)]}(s)),O="none"!==m;!d&&O&&x.push(...jT(s,h,m,w));const E=[s,...x],k=await TT(t,v),j=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&j.push(k[y]),p){const e=function(e,t,r){void 0===r&&(r=!1);const n=mT(e),o=bT(e),i=vT(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=PT(a)),[a,PT(a)]}(o,a,w);j.push(k[e[0]],k[e[1]])}if(P=[...P,{placement:o,overflows:j}],!j.every(e=>e<=0)){var S,C;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=E[e];if(t){if(!("alignment"===p&&g!==gT(t))||P.every(e=>gT(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(f){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=gT(e.placement);return t===g||"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:N[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Cz=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=dT(e,t),u=await TT(t,c),p=fT(o),d=mT(o),f="y"===gT(o),{width:m,height:h}=i.floating;let v,y;"top"===p||"bottom"===p?(v=p,y=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,v="end"===d?"top":"bottom");const g=h-u.top-u.bottom,b=m-u.left-u.right,w=oT(h-u[v],g),x=oT(m-u[y],b),O=!t.middlewareData.shift;let E=w,k=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=g),O&&!d){const e=iT(u.left,0),t=iT(u.right,0),r=iT(u.top,0),n=iT(u.bottom,0);f?k=m-2*(0!==e||0!==t?e+t:iT(u.left,u.right)):E=h-2*(0!==r||0!==n?r+n:iT(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const j=await a.getDimensions(s.floating);return m!==j.width||h!==j.height?{reset:{rects:!0}}:{}}}},Nz=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=dT(e,t);switch(n){case"referenceHidden":{const e=zT(await TT(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:LT(e)}}}case"escaped":{const e=zT(await TT(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:LT(e)}}}default:return{}}}}},Tz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=dT(e,t)||{};if(null==c)return{};const p=ST(u),d={x:r,y:n},f=bT(o),m=vT(f),h=await a.getDimensions(c),v="y"===f,y=v?"top":"left",g=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-d[f]-i.floating[m],x=d[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=O?O[b]:0;E&&await(null==a.isElement?void 0:a.isElement(O))||(E=s.floating[b]||i.floating[m]);const k=w/2-x/2,j=E/2-h[m]/2-1,P=oT(p[y],j),S=oT(p[g],j),C=P,N=E-h[m]-S,T=E/2-h[m]/2+k,z=pT(C,T,N),L=!l.arrow&&null!=mT(o)&&T!==z&&i.reference[m]/2-(T<C?P:S)-h[m]/2<0,M=L?T<C?T-C:T-N:0;return{[f]:d[f]+M,data:{[f]:z,centerOffset:T-z-M,...L&&{alignmentOffset:M}},reset:L}}}),zz=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=dT(e,t),u={x:r,y:n},p=gT(o),d=hT(p);let f=u[d],m=u[p];const h=dT(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,r=i.reference[d]+i.reference[e]-v.mainAxis;f<t?f=t:f>r&&(f=r)}if(c){var y,g;const e="y"===d?"width":"height",t=MT.has(fT(o)),r=i.reference[p]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[p])||0)+(t?0:v.crossAxis),n=i.reference[p]+i.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[p])||0)-(t?v.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:f,[p]:m}}}},Lz=(e,t,r)=>{const n=new Map,o={platform:Oz,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=NT(c,n,l),d=n,f={},m=0;for(let r=0;r<s.length;r++){const{name:i,fn:h}=s[r],{x:v,y:y,data:g,reset:b}=await h({x:u,y:p,initialPlacement:n,placement:d,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,p=null!=y?y:p,f={...f,[i]:{...f[i],...g}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:p}=NT(c,d,l))),r=-1)}return{x:u,y:p,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Mz="undefined"!=typeof document?d:function(){};function Dz(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 r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Dz(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Dz(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Az(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rz(e,t){const r=Az(e);return Math.round(t*r)/r}function Iz(t){const r=e.useRef(t);return Mz(()=>{r.current=t}),r}const Bz=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Tz({element:r.current,padding:n}).fn(t):{}:r?Tz({element:r,padding:n}).fn(t):{};var o}}),_z=(e,t)=>({...jz(e),options:[e,t]}),Wz=(e,t)=>({...Pz(e),options:[e,t]}),Fz=(e,t)=>({...zz(e),options:[e,t]}),Vz=(e,t)=>({...Sz(e),options:[e,t]}),$z=(e,t)=>({...Cz(e),options:[e,t]}),Hz=(e,t)=>({...Nz(e),options:[e,t]}),qz=(e,t)=>({...Bz(e),options:[e,t]});var Uz=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return E(Tg.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:E("polygon",{points:"0,0 30,0 15,10"})})});Uz.displayName="Arrow";var Yz=Uz,Gz="Popper",[Xz,Kz]=Eg(Gz),[Zz,Qz]=Xz(Gz),Jz=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return E(Zz,{scope:r,anchor:o,onAnchorChange:i,children:n})};Jz.displayName=Gz;var eL="PopperAnchor",tL=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=Qz(eL,n),s=e.useRef(null),l=Og(r,s);return e.useEffect(()=>{a.onAnchorChange(o?.current||s.current)}),o?null:E(Tg.div,{...i,ref:l})});tL.displayName=eL;var rL="PopperContent",[nL,oL]=Xz(rL),iL=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=t,y=Qz(rL,n),[g,b]=e.useState(null),w=Og(r,e=>b(e)),[x,O]=e.useState(null),k=ob(x),j=k?.width??0,S=k?.height??0,C=o+("center"!==a?"-"+a:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(u)?u:[u],z=T.length>0,L={padding:N,boundary:T.filter(cL),altBoundary:z},{refs:M,floatingStyles:D,placement:A,isPositioned:R,middlewareData:I}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[p,d]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(o);Dz(f,o)||m(o);const[h,v]=e.useState(null),[y,g]=e.useState(null),b=e.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=e.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),x=a||h,O=s||y,E=e.useRef(null),k=e.useRef(null),j=e.useRef(p),S=null!=c,C=Iz(c),N=Iz(i),T=Iz(u),z=e.useCallback(()=>{if(!E.current||!k.current)return;const e={placement:r,strategy:n,middleware:f};N.current&&(e.platform=N.current),Lz(E.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!Dz(j.current,t)&&(j.current=t,P.flushSync(()=>{d(t)}))})},[f,r,n,N,T]);Mz(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const L=e.useRef(!1);Mz(()=>(L.current=!0,()=>{L.current=!1}),[]),Mz(()=>{if(x&&(E.current=x),O&&(k.current=O),x&&O){if(C.current)return C.current(x,O,z);z()}},[x,O,z,C,S]);const M=e.useMemo(()=>({reference:E,floating:k,setReference:b,setFloating:w}),[b,w]),D=e.useMemo(()=>({reference:x,floating:O}),[x,O]),A=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Rz(D.floating,p.x),r=Rz(D.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Az(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,p.x,p.y]);return e.useMemo(()=>({...p,update:z,refs:M,elements:D,floatingStyles:A}),[p,z,M,D,A])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>kz(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[_z({mainAxis:i+S,alignmentAxis:s}),c&&Wz({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Fz():void 0,...L}),c&&Vz({...L}),$z({...L,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),x&&qz({element:x,padding:l}),uL({arrowWidth:j,arrowHeight:S}),f&&Hz({strategy:"referenceHidden",...L})]}),[B,_]=pL(A),W=Ag(h);zg(()=>{R&&W?.()},[R,W]);const F=I.arrow?.x,V=I.arrow?.y,$=0!==I.arrow?.centerOffset,[H,q]=e.useState();return zg(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]),E("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:R?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E(nL,{scope:n,placedSide:B,onArrowChange:O,arrowX:F,arrowY:V,shouldHideArrow:$,children:E(Tg.div,{"data-side":B,"data-align":_,...v,ref:w,style:{...v.style,animation:R?void 0:"none"}})})})});iL.displayName=rL;var aL="PopperArrow",sL={top:"bottom",right:"left",bottom:"top",left:"right"},lL=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=oL(aL,r),i=sL[o.placedSide];return E("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:E(Yz,{...n,ref:t,style:{...n.style,display:"block"}})})});function cL(e){return null!==e}lL.displayName=aL;var uL=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=pL(r),u={start:"0%",center:"50%",end:"100%"}[c],p=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=i?u:`${p}px`,m=-s+"px"):"top"===l?(f=i?u:`${p}px`,m=`${n.floating.height+s}px`):"right"===l?(f=-s+"px",m=i?u:`${d}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:f,y:m}}}});function pL(e){const[t,r="center"]=e.split("-");return[t,r]}var dL=Jz,fL=tL,mL=iL,hL=lL,vL="Popover",[yL,gL]=Eg(vL,[Kz]),bL=Kz(),[wL,xL]=yL(vL),OL=t=>{const{__scopePopover:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=bL(r),c=e.useRef(null),[u,p]=e.useState(!1),[d,f]=Ig({prop:o,defaultProp:i??!1,onChange:a,caller:vL});return E(dL,{...l,children:E(wL,{scope:r,contentId:Dg(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>p(!0),[]),onCustomAnchorRemove:e.useCallback(()=>p(!1),[]),modal:s,children:n})})};OL.displayName=vL;var EL="PopoverAnchor";e.forwardRef((t,r)=>{const{__scopePopover:n,...o}=t,i=xL(EL,n),a=bL(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(s(),()=>l()),[s,l]),E(fL,{...a,...o,ref:r})}).displayName=EL;var kL="PopoverTrigger",jL=e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=xL(kL,r),i=bL(r),a=Og(t,o.triggerRef),s=E(Tg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":IL(o.open),...n,ref:a,onClick:bg(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:E(fL,{asChild:!0,...i,children:s})});jL.displayName=kL;var PL="PopoverPortal",[SL,CL]=yL(PL,{forceMount:void 0}),NL=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=xL(PL,t);return E(SL,{scope:t,forceMount:r,children:E(ab,{present:r||i.open,children:E(dC,{asChild:!0,container:o,children:n})})})};NL.displayName=PL;var TL="PopoverContent",zL=e.forwardRef((e,t)=>{const r=CL(TL,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=xL(TL,e.__scopePopover);return E(ab,{present:n||i.open,children:i.modal?E(ML,{...o,ref:t}):E(DL,{...o,ref:t})})});zL.displayName=TL;var LL=jg("PopoverContent.RemoveScroll"),ML=e.forwardRef((t,r)=>{const n=xL(TL,t.__scopePopover),o=e.useRef(null),i=Og(r,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return uN(e)},[]),E(nN,{as:LL,allowPinchZoom:!0,children:E(AL,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bg(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:bg(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:bg(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),DL=e.forwardRef((t,r)=>{const n=xL(TL,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return E(AL,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),AL=e.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...p}=e,d=xL(TL,r),f=bL(r);return mC(),E(iC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:E(JS,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:E(mL,{"data-state":IL(d.open),role:"dialog",id:d.contentId,...f,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),RL="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=xL(RL,r);return E(Tg.button,{type:"button",...n,ref:t,onClick:bg(e.onClick,()=>o.onOpenChange(!1))})}).displayName=RL;function IL(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=bL(r);return E(hL,{...o,...n,ref:t})}).displayName="PopoverArrow";var BL=OL,_L=jL,WL=NL,FL=zL;const VL="PPP",$L=r(({type:e="single",value:r,onChange:n,placeholder:o="Select date",disabled:s=!1,minDate:c,maxDate:u,className:p,label:d,error:f,required:m=!1,clearable:h=!0,format:v="PPP",variant:y="tertiary",dataTestId:g},b)=>{const[w,x]=i(!1),[O,E]=i("range"!==e||!r||r instanceof Date?void 0:r);a(()=>{"range"!==e||!r||r instanceof Date||E(r)},[r,e]);const k=l(t=>{if(t.preventDefault(),t.stopPropagation(),"single"===e)n?.(void 0);else{const e={from:void 0,to:void 0};n?.(e),E(e)}x(!1)},[n,e]),j=l(()=>{if(!r)return"";if("single"===e&&r instanceof Date)return Aj(r,v);if("range"===e&&!(r instanceof Date)){const e=r;if(e.from){if(e.to){const t=Aj(e.from,"MMM d"),r=Aj(e.to,"MMM d"),n=Aj(e.from,"yyyy"),o=Aj(e.to,"yyyy");return n===o?`${t} - ${r}, ${n}`:`${t}, ${n} - ${r}, ${o}`}return Aj(e.from,v)}}return""},[r,e,v]),P=l(e=>{if(!e)return E(void 0),void n?.(void 0);if(e instanceof Date)return n?.(e),void x(!1);const t={from:e.from,to:e.to};!e.from||e.from&&e.to?(E(t),n?.(t),e.from&&e.to&&x(!1)):E(t)},[n]),S=l(()=>{const o={initialFocus:!0,disabled:e=>!!s||(!!(c&&e<c)||!!(u&&e>u)),classNames:{months:Be("flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0","sm:divide-x sm:divide-border"),month:Be("space-y-4","first:pr-2 last:pl-2"),caption:"flex justify-center pt-1 relative items-center h-10",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Be("h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","border border-border rounded-md hover:bg-accent","flex items-center justify-center transition-colors"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:Be("text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]","flex items-center justify-center"),row:"flex w-full mt-2",cell:Be("relative p-0 text-center text-sm focus-within:relative focus-within:z-20","h-9 w-9 p-0","group","[&:has([aria-selected].day-range-start)]:rounded-l-md [&:has([aria-selected].day-range-start)]:bg-primary","[&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-range-end)]:bg-primary","[&:has([aria-selected])]:bg-primary/30","[&:has([aria-selected].day-range-middle)]:bg-primary/10"),day:Be("h-9 w-9 p-0 font-normal","aria-selected:opacity-100","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:rounded-md","data-today:bg-accent/30 data-today:text-accent-foreground","rounded-md transition-colors","flex items-center justify-center","day-range-middle:bg-primary/10","day-range-start:bg-primary day-range-start:text-primary-foreground","day-range-end:bg-primary day-range-end:text-primary-foreground"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_range_middle:"day-range-middle",day_selected:Be("bg-primary text-primary-foreground","hover:bg-primary/90","focus:bg-primary focus:text-primary-foreground"),day_today:"bg-accent/30 text-accent-foreground",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_hidden:"invisible"}},i=e=>t.createElement("div",{className:"relative"},e,h&&r&&t.createElement("button",{type:"button",onClick:k,className:Be("absolute top-2 right-2","p-1.5 rounded-md","bg-white/90 backdrop-blur-xs","hover:bg-accent/80 hover:text-destructive","focus:outline-hidden focus:ring-2 focus:ring-primary","transition-all duration-200","shadow-xs","z-50"),"aria-label":"Clear date selection"},t.createElement(it,{className:"h-4 w-4"})));return i("single"===e?t.createElement(wS,{mode:"single",selected:r instanceof Date?r:void 0,onSelect:e=>{n?.(e),e&&x(!1)},...o}):t.createElement(wS,{mode:"range",selected:O,onSelect:P,numberOfMonths:2,...o}))},[e,r,n,O,P,s,c,u,h,k]);return t.createElement("div",{ref:b,className:"relative w-full","data-testid":g},d&&t.createElement("div",{className:Be("mb-2 text-sm font-medium",f&&"text-destructive")},d,m&&t.createElement("span",{className:"text-destructive ml-1"},"*")),t.createElement(BL,{open:w,onOpenChange:x},t.createElement("div",{className:"relative"},t.createElement(_L,{asChild:!0},t.createElement(st,{variant:y,className:Be("w-full","inline-flex items-center","py-2 px-3","border border-input","hover:bg-accent/50","focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-primary",!r&&"text-muted-foreground",f&&"border-destructive focus:ring-destructive","transition-all duration-200","sm:text-sm md:text-base",p),disabled:s},t.createElement("div",{className:"inline-flex items-center gap-2 w-full pr-8"},t.createElement(Ue,{className:"h-4 w-4 shrink-0"}),t.createElement("span",{className:"truncate flex-1 text-left","data-testid":"date-display"},j()||o)))),h&&r&&!w&&t.createElement("button",{type:"button",onClick:k,className:Be("absolute right-2 top-1/2 -translate-y-1/2","p-1 rounded-md","hover:bg-accent/80","focus:outline-hidden focus:ring-2 focus:ring-primary","transition-all duration-200","z-10"),"aria-label":"Clear date","data-testid":"clear-button"},t.createElement(it,{className:"h-4 w-4 hover:text-destructive transition-colors"}))),t.createElement(WL,null,t.createElement(FL,{className:Be("z-50 rounded-lg border bg-popover p-3","shadow-lg ring-1 ring-black ring-opacity-5","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","w-auto min-w-[280px]","range"===e?"sm:min-w-[600px]":"sm:min-w-[320px]","max-w-[95vw]"),align:"start",sideOffset:4},t.createElement("div",{className:"w-full overflow-hidden"},t.createElement("div",{className:Be("w-full","range"===e&&"overflow-x-auto")},S()))))),f&&t.createElement("p",{className:"mt-2 text-sm text-destructive"},f))});$L.displayName="DatePicker";const HL=t.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}),qL=()=>{const e=t.useContext(HL);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};function UL(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function YL(){return XL(/^iPad/)||XL(/^Mac/)&&navigator.maxTouchPoints>1}function GL(){return XL(/^iPhone/)||YL()}function XL(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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 KL="undefined"!=typeof window?d:a;function ZL(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}const QL="undefined"!=typeof document&&window.visualViewport;function JL(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function eM(e){for(JL(e)&&(e=e.parentElement);e&&!JL(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const tM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let rM,nM=0;function oM(e={}){let{isDisabled:t}=e;KL(()=>{if(!t)return nM++,1===nM&&GL()&&(rM=function(){let e,t=0,r=r=>{e=eM(r.target),e===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY)},n=r=>{if(!e||e===document.documentElement||e===document.body)return void r.preventDefault();let n=r.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&n>t||o>=i&&n<t)&&r.preventDefault(),t=n)},o=e=>{let t=e.target;sM(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},i=e=>{let t=e.target;sM(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",QL&&(QL.height<window.innerHeight?requestAnimationFrame(()=>{aM(t)}):QL.addEventListener("resize",()=>aM(t),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=ZL(function(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let u=ZL(iM(document,"touchstart",r,{passive:!1,capture:!0}),iM(document,"touchmove",n,{passive:!1,capture:!0}),iM(document,"touchend",o,{passive:!1,capture:!0}),iM(document,"focus",i,!0),iM(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}()),()=>{nM--,0===nM&&(null==rM||rM())}},[t])}function iM(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function aM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=eM(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=n-r)}e=t.parentElement}}function sM(e){return e instanceof HTMLInputElement&&!tM.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lM(...t){return e.useCallback(function(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}(...t),t)}const cM=new WeakMap;function uM(e,t,r=!1){if(!(e&&e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([t,r])=>{t.startsWith("--")?e.style.setProperty(t,r):(n[t]=e.style[t],e.style[t]=r)}),r||cM.set(e,n)}const pM=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function dM(e,t){if(!e)return null;const r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform;let o=n.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[pM(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[pM(t)?5:4]):null)}function fM(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}const mM={DURATION:.5,EASE:[.32,.72,0,1]},hM=16,vM="vaul-dragging";function yM(e){const r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>null==r.current?void 0:r.current.call(r,...e),[])}function gM({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,i]=function({defaultProp:e,onChange:r}){const n=t.useState(e),[o]=n,i=t.useRef(o),a=yM(r);return t.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:r,onChange:n}),a=void 0!==e,s=a?e:o,l=yM(n),c=t.useCallback(t=>{if(a){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)},[a,e,i,l]);return[s,c]}let bM=null;const wM=t.forwardRef(function({...e},r){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:a,isOpen:s,modal:l,shouldAnimate:c}=qL(),u=lM(r,n),p=o&&o.length>0;if(!l)return null;const d=t.useCallback(e=>i(e),[i]);return t.createElement(YN,{onMouseUp:d,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":s&&p?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":(null==c?void 0:c.current)?"true":"false",...e})});wM.displayName="Drawer.Overlay";const xM=t.forwardRef(function({onPointerDownOutside:e,style:r,onOpenAutoFocus:n,...o},i){const{drawerRef:a,onPress:l,onRelease:c,onDrag:u,keyboardIsOpen:p,snapPointsOffset:d,activeSnapPointIndex:f,modal:m,isOpen:h,direction:v,snapPoints:y,container:g,handleOnly:b,shouldAnimate:w,autoFocus:x}=qL(),[O,E]=t.useState(!1),k=lM(i,a),j=t.useRef(null),P=t.useRef(null),S=t.useRef(!1),C=y&&y.length>0;!function(){const{direction:e,isOpen:r,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=qL(),a=t.useRef(null),l=s(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-26)/window.innerWidth}t.useEffect(()=>{if(r&&n){a.current&&clearTimeout(a.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;o&&!i&&fM(document.body,{background:"black"}),fM(t,{transformOrigin:pM(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${mM.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mM.EASE.join(",")})`});const r=fM(t,{borderRadius:"8px",overflow:"hidden",...pM(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()=>{r(),a.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},1e3*mM.DURATION)}}},[r,n,l])}();function N(e){j.current=null,S.current=!1,c(e)}return t.useEffect(()=>{C&&window.requestAnimationFrame(()=>{E(!0)})},[]),t.createElement(GN,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":O?"true":"false","data-vaul-snap-points":h&&C?"true":"false","data-vaul-custom-container":g?"true":"false","data-vaul-animate":(null==w?void 0:w.current)?"true":"false",...o,ref:k,style:d&&d.length>0?{"--snap-point-height":`${d[null!=f?f:0]}px`,...r}:r,onPointerDown:e=>{b||(null==o.onPointerDown||o.onPointerDown.call(o,e),j.current={x:e.pageX,y:e.pageY},l(e))},onOpenAutoFocus:e=>{null==n||n(e),x||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),m&&!t.defaultPrevented?p.current&&(p.current=!1):t.preventDefault()},onFocusOutside:e=>{m||e.preventDefault()},onPointerMove:e=>{if(P.current=e,b)return;if(null==o.onPointerMove||o.onPointerMove.call(o,e),!j.current)return;const t=e.pageY-j.current.y,r=e.pageX-j.current.x,n="touch"===e.pointerType?10:2,i=((e,t,r=0)=>{if(S.current)return!0;const n=Math.abs(e.y),o=Math.abs(e.x),i=o>n,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=r)return i}else if(!(e.y*a<0)&&n>=0&&n<=r)return!i;return S.current=!0,!0})({x:r,y:t},v,n);i?u(e):(Math.abs(r)>n||Math.abs(t)>n)&&(j.current=null)},onPointerUp:e=>{null==o.onPointerUp||o.onPointerUp.call(o,e),j.current=null,S.current=!1,c(e)},onPointerOut:e=>{null==o.onPointerOut||o.onPointerOut.call(o,e),N(P.current)},onContextMenu:e=>{null==o.onContextMenu||o.onContextMenu.call(o,e),P.current&&N(P.current)}})});xM.displayName="Drawer.Content";const OM=t.forwardRef(function({preventCycle:e=!1,children:r,...n},o){const{closeDrawer:i,isDragging:a,snapPoints:s,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:p,isOpen:d,onPress:f,onDrag:m}=qL(),h=t.useRef(null),v=t.useRef(!1);function y(){h.current&&window.clearTimeout(h.current),v.current=!1}return t.createElement("div",{onClick:function(){v.current?y():window.setTimeout(()=>{!function(){if(a||e||v.current)return void y();if(y(),!s||0===s.length)return void(u||i());if(l===s[s.length-1]&&u)return void i();const t=s.findIndex(e=>e===l);if(-1===t)return;const r=s[t+1];c(r)}()},120)},onPointerCancel:y,onPointerDown:e=>{p&&f(e),h.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{p&&m(e)},ref:o,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},t.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});OM.displayName="Drawer.Handle";const EM={Root:function({open:e,onOpenChange:r,children:n,onDrag:o,onRelease:i,snapPoints:a,shouldScaleBackground:s=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=.25,scrollLockTimeout:u=100,dismissible:p=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:m,setActiveSnapPoint:h,fixed:v,modal:y=!0,onClose:g,nested:b,noBodyStyles:w=!1,direction:x="bottom",defaultOpen:O=!1,disablePreventScroll:E=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:j=!1,repositionInputs:P=!0,onAnimationEnd:S,container:C,autoFocus:N=!1}){var T,z;const[L=!1,M]=gM({defaultProp:O,prop:e,onChange:e=>{null==r||r(e),e||b||ue(),setTimeout(()=>{null==S||S(e)},1e3*mM.DURATION),e&&!y&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[D,A]=t.useState(!1),[R,I]=t.useState(!1),[B,_]=t.useState(!1),W=t.useRef(null),F=t.useRef(null),V=t.useRef(null),$=t.useRef(null),H=t.useRef(null),q=t.useRef(!1),U=t.useRef(null),Y=t.useRef(0),G=t.useRef(!1),X=t.useRef(!O),K=t.useRef(0),Z=t.useRef(null),Q=t.useRef((null==(T=Z.current)?void 0:T.getBoundingClientRect().height)||0),J=t.useRef((null==(z=Z.current)?void 0:z.getBoundingClientRect().width)||0),ee=t.useRef(0),te=t.useCallback(e=>{a&&e===ae.length-1&&(F.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:ne,setActiveSnapPoint:oe,onRelease:ie,snapPointsOffset:ae,onDrag:se,shouldFade:le,getPercentageDragged:ce}=function({activeSnapPointProp:e,setActiveSnapPointProp:r,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[p,d]=gM({prop:e,defaultProp:null==n?void 0:n[0],onChange:r}),[f,m]=t.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);t.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const h=t.useMemo(()=>p===(null==n?void 0:n[n.length-1])||null,[n,p]),v=t.useMemo(()=>{var e;return null!=(e=null==n?void 0:n.findIndex(e=>e===p))?e:null},[n,p]),y=n&&n.length>0&&(a||0===a)&&!Number.isNaN(a)&&n[a]===p||!n,g=t.useMemo(()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.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 r="string"==typeof t;let n=0;if(r&&(n=parseInt(t,10)),pM(l)){const o=r?n:f?t*e.height:0;return f?"bottom"===l?e.height-o:-e.height+o:o}const o=r?n:f?t*e.width:0;return f?"right"===l?e.width-o:-e.width+o:o}))?t:[]},[n,f,c]),b=t.useMemo(()=>null!==v?null==g?void 0:g[v]:null,[g,v]),w=t.useCallback(e=>{var t;const r=null!=(t=null==g?void 0:g.findIndex(t=>t===e))?t:null;s(r),uM(o.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&r!==g.length-1&&void 0!==a&&r!==a&&r<a?uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"0"}):uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(r,0)])},[o.current,n,g,a,i,d]);return t.useEffect(()=>{if(p||e){var t;const r=null!=(t=null==n?void 0:n.findIndex(t=>t===e||t===p))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&w(g[r])}},[p,e,n,g,w]),{isLastSnapPoint:h,activeSnapPoint:p,shouldFade:y,getPercentageDragged:function(e,t){if(!n||"number"!=typeof v||!g||void 0===a)return null;const r=v===a-1;if(v>=a&&t)return 0;if(r&&!t)return 1;if(!y&&!r)return null;const o=r?v+1:v-1,i=r?g[o]-g[o-1]:g[o+1]-g[o],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:d,activeSnapPointIndex:v,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(void 0===a)return;const s="bottom"===l||"right"===l?(null!=b?b:0)-e:(null!=b?b:0)+e,c=0===v,p=e>0;if(v===a-1&&uM(i.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`}),!u&&r>2&&!p)return void(o?t():w(g[0]));if(!u&&r>2&&p&&g&&n)return void w(g[n.length-1]);const d=null==g?void 0:g.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),f=pM(l)?window.innerHeight:window.innerWidth;if(r>.4&&Math.abs(e)<.4*f){const e=p?1:-1;if(e>0&&h&&n)return void w(g[n.length-1]);if(c&&e<0&&o&&t(),null===v)return;return void w(g[v+e])}w(d)},onDrag:function({draggedDistance:e}){if(null===b)return;const t="bottom"===l||"right"===l?b-e:b+e;("bottom"===l||"right"===l)&&t<g[g.length-1]||("top"===l||"left"===l)&&t>g[g.length-1]||uM(o.current,{transform:pM(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}({snapPoints:a,activeSnapPointProp:m,setActiveSnapPointProp:h,drawerRef:Z,fadeFromIndex:f,overlayRef:W,onSnapPointChange:te,direction:x,container:C,snapToSequentialPoint:k});oM({isDisabled:!L||R||!y||B||!D||!P||!E});const{restorePositionSetting:ue}=function({isOpen:e,modal:r,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:a}){const[s,l]=t.useState(()=>"undefined"!=typeof window?window.location.href:""),c=t.useRef(0),u=t.useCallback(()=>{if(UL()&&null===bM&&e&&!a){bM={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:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}),300)}},[e]),p=t.useCallback(()=>{if(UL()&&null!==bM&&!a){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,bM),window.requestAnimationFrame(()=>{i&&s!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),bM=null}},[s]);return t.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),t.useEffect(()=>{if(r)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[r,p]),t.useEffect(()=>{!n&&o&&(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),r||window.setTimeout(()=>{p()},500)):p())},[e,o,s,r,n,u,p]),{restorePositionSetting:p}}({isOpen:L,modal:y,nested:null!=b&&b,hasBeenOpened:D,preventScrollRestoration:j,noBodyStyles:w});function pe(){return(window.innerWidth-26)/window.innerWidth}function de(e,t){var r;let n=e;const o=null==(r=window.getSelection())?void 0:r.toString(),i=Z.current?dM(Z.current,x):null,a=new Date;if("SELECT"===n.tagName)return!1;if(n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;if("right"===x||"left"===x)return!0;if(F.current&&a.getTime()-F.current.getTime()<500)return!1;if(null!==i&&("bottom"===x?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(H.current&&a.getTime()-H.current.getTime()<u&&0===i)return H.current=a,!1;if(t)return H.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return H.current=new Date,!1;if("dialog"===n.getAttribute("role"))return!0}n=n.parentNode}return!0}function fe(e){!function(){if(!R||!Z.current)return;Z.current.classList.remove(vM),q.current=!1,I(!1),$.current=new Date}(),null==g||g(),e||M(!1),setTimeout(()=>{a&&oe(a[0])},1e3*mM.DURATION)}function me(){if(!Z.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=dM(Z.current,x);uM(Z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`}),uM(W.current,{transition:`opacity ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,opacity:"1"}),s&&t&&t>0&&L&&uM(e,{borderRadius:"8px",overflow:"hidden",...pM(x)?{transform:`scale(${pe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${pe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${mM.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mM.EASE.join(",")})`},!0)}return t.useEffect(()=>{window.requestAnimationFrame(()=>{X.current=!0})},[]),t.useEffect(()=>{var e;function t(){if(!Z.current||!P)return;if(sM(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,r=window.innerHeight;let n=r-t;const o=Z.current.getBoundingClientRect().height||0,i=o>.8*r;ee.current||(ee.current=o);const s=Z.current.getBoundingClientRect().top;if(Math.abs(K.current-n)>60&&(G.current=!G.current),a&&a.length>0&&ae&&ne){n+=ae[ne]||0}if(K.current=n,o>t||G.current){const e=Z.current.getBoundingClientRect().height;let r=e;e>t&&(r=t-(i?s:26)),Z.current.style.height=v?e-Math.max(n,0)+"px":`${Math.max(r,t-s)}px`}else(function(){const e=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))})()||(Z.current.style.height=`${ee.current}px`);a&&a.length>0&&!G.current?Z.current.style.bottom="0px":Z.current.style.bottom=`${Math.max(n,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[ne,a,ae]),t.useEffect(()=>(L&&(uM(document.documentElement,{scrollBehavior:"auto"}),F.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let r=cM.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[L]),t.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]),t.createElement(HN,{defaultOpen:O,onOpenChange:e=>{(p||e)&&(e?A(!0):fe(!0),M(e))},open:L},t.createElement(HL.Provider,{value:{activeSnapPoint:re,snapPoints:a,setActiveSnapPoint:oe,drawerRef:Z,overlayRef:W,onOpenChange:r,onPress:function(e){var t,r;(p||a)&&(Z.current&&!Z.current.contains(e.target)||(Q.current=(null==(t=Z.current)?void 0:t.getBoundingClientRect().height)||0,J.current=(null==(r=Z.current)?void 0:r.getBoundingClientRect().width)||0,I(!0),V.current=new Date,GL()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),Y.current=pM(x)?e.pageY:e.pageX))},onRelease:function(e){if(!R||!Z.current)return;Z.current.classList.remove(vM),q.current=!1,I(!1),$.current=new Date;const t=dM(Z.current,x);if(!e||!de(e.target,!1)||!t||Number.isNaN(t))return;if(null===V.current)return;const r=$.current.getTime()-V.current.getTime(),n=Y.current-(pM(x)?e.pageY:e.pageX),o=Math.abs(n)/r;if(o>.05&&(_(!0),setTimeout(()=>{_(!1)},200)),a){return ie({draggedDistance:n*("bottom"===x||"right"===x?1:-1),closeDrawer:fe,velocity:o,dismissible:p}),void(null==i||i(e,!0))}if("bottom"===x||"right"===x?n>0:n<0)return me(),void(null==i||i(e,!0));if(o>.4)return fe(),void(null==i||i(e,!1));var s;const l=Math.min(null!=(s=Z.current.getBoundingClientRect().height)?s:0,window.innerHeight);var u;const d=Math.min(null!=(u=Z.current.getBoundingClientRect().width)?u:0,window.innerWidth),f="left"===x||"right"===x;if(Math.abs(t)>=(f?d:l)*c)return fe(),void(null==i||i(e,!1));null==i||i(e,!0),me()},onDrag:function(e){var t;if(Z.current&&R){const r="bottom"===x||"right"===x?1:-1,n=(Y.current-(pM(x)?e.pageY:e.pageX))*r,i=n>0,l=a&&!p&&!i;if(l&&0===ne)return;const c=Math.abs(n),u=document.querySelector("[data-vaul-drawer-wrapper]");let d=c/("bottom"===x||"top"===x?Q.current:J.current);const m=ce(c,i);if(null!==m&&(d=m),l&&d>=1)return;if(!q.current&&!de(e.target,i))return;if(Z.current.classList.add(vM),q.current=!0,uM(Z.current,{transition:"none"}),uM(W.current,{transition:"none"}),a&&se({draggedDistance:n}),i&&!a){const e=(t=n,8*(Math.log(t+1)-2)),o=Math.min(-1*e,0)*r;return void uM(Z.current,{transform:pM(x)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}const h=1-d;if((le||f&&ne===f-1)&&(null==o||o(e,d),uM(W.current,{opacity:`${h}`,transition:"none"},!0)),u&&W.current&&s){const e=Math.min(pe()+d*(1-pe()),1),t=8-8*d,r=Math.max(0,14-14*d);uM(u,{borderRadius:`${t}px`,transform:pM(x)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!a){const e=c*r;uM(Z.current,{transform:pM(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:p,shouldAnimate:X,handleOnly:d,isOpen:L,isDragging:R,shouldFade:le,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const r=(window.innerWidth-hM)/window.innerWidth,n=r+t*(1-r),o=t*hM-16;uM(Z.current,{transform:pM(x)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-hM)/window.innerWidth:1,r=e?-16:0;U.current&&window.clearTimeout(U.current),uM(Z.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(x)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&Z.current&&(U.current=setTimeout(()=>{const e=dM(Z.current,x);uM(Z.current,{transition:"none",transform:pM(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){const r=pM(x)?window.innerHeight:window.innerWidth,n=t?(r-hM)/r:1,o=t?-16:0;t&&uM(Z.current,{transition:`transform ${mM.DURATION}s cubic-bezier(${mM.EASE.join(",")})`,transform:pM(x)?`scale(${n}) translate3d(0, ${o}px, 0)`:`scale(${n}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:y,snapPointsOffset:ae,activeSnapPointIndex:ne,direction:x,shouldScaleBackground:s,setBackgroundColorOnScale:l,noBodyStyles:w,container:C,autoFocus:N}},n))},Content:xM,Overlay:wM,Portal:function(e){const r=qL(),{container:n=r.container,...o}=e;return t.createElement(UN,{container:n,...o})},Title:XN,Description:KN},kM=({shouldScaleBackground:t=!0,...r})=>e.createElement(EM.Root,{shouldScaleBackground:t,...r});kM.displayName="Drawer";const jM=EM.Portal,PM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Overlay,{ref:n,className:Be("fixed inset-0 z-50 bg-black/80",t),...r}));PM.displayName=EM.Overlay.displayName;const SM=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(jM,null,e.createElement(PM,null),e.createElement(EM.Content,{ref:o,className:Be("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...n},e.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),r)));SM.displayName="DrawerContent";const CM=({className:t,...r})=>e.createElement("div",{className:Be("grid gap-1.5 p-4 text-center sm:text-left",t),...r});CM.displayName="DrawerHeader";const NM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Title,{ref:n,className:Be("text-lg font-semibold leading-none tracking-tight",t),...r}));NM.displayName=EM.Title.displayName;const TM=e.forwardRef(({className:t,...r},n)=>e.createElement(EM.Description,{ref:n,className:Be("text-sm text-muted-foreground",t),...r}));TM.displayName=EM.Description.displayName;const zM={small:"h-64",medium:"h-80",large:"h-96",extraLarge:"h-[448px]",full:"h-screen"},LM=({children:e,isOpen:r,onClose:n,size:o="medium",title:i,description:a,showCloseButton:s=!0})=>{const l=zM[o];return t.createElement(kM,{open:r,onOpenChange:n},t.createElement(SM,{className:`fixed inset-x-0 bottom-0 ${l} bg-background`},t.createElement(CM,{className:"relative"},i?t.createElement(NM,null,i):t.createElement(NM,{className:"sr-only"},"Drawer Content"),a?t.createElement(TM,null,a):t.createElement(TM,{className:"sr-only"},i||"Drawer Content"," panel"),s&&t.createElement("button",{onClick:n,className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","aria-label":"Close drawer"},t.createElement(it,{className:"h-4 w-4"}),t.createElement("span",{className:"sr-only"},"Close"))),t.createElement("div",{className:"mt-6 px-4"},e)))},MM=m({});const DM="undefined"!=typeof window,AM=DM?d:a,RM=m(null);function IM(e,t){-1===e.indexOf(t)&&e.push(t)}function BM(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const _M=(e,t,r)=>r>t?t:r<e?e:r;function WM(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let FM=()=>{},VM=()=>{};"production"!==process.env.NODE_ENV&&(FM=(e,t,r)=>{e||"undefined"==typeof console||console.warn(WM(t,r))},VM=(e,t,r)=>{if(!e)throw new Error(WM(t,r))});const $M={},HM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qM(e){return"object"==typeof e&&null!==e}const UM=e=>/^0[^.\s]+$/u.test(e);function YM(e){let t;return()=>(void 0===t&&(t=e()),t)}const GM=e=>e,XM=(e,t)=>r=>t(e(r)),KM=(...e)=>e.reduce(XM),ZM=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n};class QM{constructor(){this.subscriptions=[]}add(e){return IM(this.subscriptions,e),()=>BM(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const JM=e=>1e3*e,eD=e=>e/1e3;function tD(e,t){return t?e*(1e3/t):0}const rD=new Set;function nD(e,t,r){e||rD.has(t)||(console.warn(WM(t,r)),rD.add(t))}const oD=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function iD(e,t,r,n){if(e===t&&r===n)return GM;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=oD(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,r);return e=>0===e||1===e?e:oD(o(e),t,n)}const aD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sD=e=>t=>1-e(1-t),lD=iD(.33,1.53,.69,.99),cD=sD(lD),uD=aD(cD),pD=e=>(e*=2)<1?.5*cD(e):.5*(2-Math.pow(2,-10*(e-1))),dD=e=>1-Math.sin(Math.acos(e)),fD=sD(dD),mD=aD(dD),hD=iD(.42,0,1,1),vD=iD(0,0,.58,1),yD=iD(.42,0,.58,1),gD=e=>Array.isArray(e)&&"number"==typeof e[0],bD={linear:GM,easeIn:hD,easeInOut:yD,easeOut:vD,circIn:dD,circInOut:mD,circOut:fD,backIn:cD,backInOut:uD,backOut:lD,anticipate:pD},wD=e=>{if(gD(e)){VM(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return iD(t,r,n,o)}return"string"==typeof e?(VM(void 0!==bD[e],`Invalid easing type '${e}'`,"invalid-easing-type"),bD[e]):e},xD=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function OD(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=xD.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{a=e,n?o=!0:(n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,o&&(o=!1,l.process(e)))}};return l}(i),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:p,preRender:d,render:f,postRender:m}=a,h=()=>{const i=$M.useManualTiming?o.timestamp:performance.now();r=!1,$M.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),p.process(o),d.process(o),f.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(h))};return{schedule:xD.reduce((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(h)),s.schedule(t,i,a)),t},{}),cancel:e=>{for(let t=0;t<xD.length;t++)a[xD[t]].cancel(e)},state:o,steps:a}}const{schedule:ED,cancel:kD,state:jD,steps:PD}=OD("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:GM,!0);let SD;function CD(){SD=void 0}const ND={now:()=>(void 0===SD&&ND.set(jD.isProcessing||$M.useManualTiming?jD.timestamp:performance.now()),SD),set:e=>{SD=e,queueMicrotask(CD)}},TD=e=>t=>"string"==typeof t&&t.startsWith(e),zD=TD("--"),LD=TD("var(--"),MD=e=>!!LD(e)&&DD.test(e.split("/*")[0].trim()),DD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,AD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},RD={...AD,transform:e=>_M(0,1,e)},ID={...AD,default:1},BD=e=>Math.round(1e5*e)/1e5,_D=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const WD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,FD=(e,t)=>r=>Boolean("string"==typeof r&&WD.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),VD=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(_D);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},$D={...AD,transform:e=>Math.round((e=>_M(0,255,e))(e))},HD={test:FD("rgb","red"),parse:VD("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+$D.transform(e)+", "+$D.transform(t)+", "+$D.transform(r)+", "+BD(RD.transform(n))+")"};const qD={test:FD("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:HD.transform},UD=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),YD=UD("deg"),GD=UD("%"),XD=UD("px"),KD=UD("vh"),ZD=UD("vw"),QD=(()=>({...GD,parse:e=>GD.parse(e)/100,transform:e=>GD.transform(100*e)}))(),JD={test:FD("hsl","hue"),parse:VD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+GD.transform(BD(t))+", "+GD.transform(BD(r))+", "+BD(RD.transform(n))+")"},eA={test:e=>HD.test(e)||qD.test(e)||JD.test(e),parse:e=>HD.test(e)?HD.parse(e):JD.test(e)?JD.parse(e):qD.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?HD.transform(e):JD.transform(e),getAnimatableNone:e=>{const t=eA.parse(e);return t.alpha=0,eA.transform(t)}},tA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const rA="number",nA="color",oA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function iA(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(oA,e=>(eA.test(e)?(n.color.push(i),o.push(nA),r.push(eA.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(rA),r.push(parseFloat(e))),++i,"${}")).split("${}");return{values:r,split:a,indexes:n,types:o}}function aA(e){return iA(e).values}function sA(e){const{split:t,types:r}=iA(e),n=t.length;return e=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],void 0!==e[i]){const t=r[i];o+=t===rA?BD(e[i]):t===nA?eA.transform(e[i]):e[i]}return o}}const lA=e=>"number"==typeof e?0:eA.test(e)?eA.getAnimatableNone(e):e;const cA={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(_D)?.length||0)+(e.match(tA)?.length||0)>0},parse:aA,createTransformer:sA,getAnimatableNone:function(e){const t=aA(e);return sA(e)(t.map(lA))}};function uA(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pA(e,t){return r=>r>0?t:e}const dA=(e,t,r)=>e+(t-e)*r,fA=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},mA=[qD,HD,JD];function hA(e){const t=(r=e,mA.find(e=>e.test(r)));var r;if(FM(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(t))return!1;let n=t.parse(e);return t===JD&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=uA(s,n,e+1/3),i=uA(s,n,e),a=uA(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const vA=(e,t)=>{const r=hA(e),n=hA(t);if(!r||!n)return pA(e,t);const o={...r};return e=>(o.red=fA(r.red,n.red,e),o.green=fA(r.green,n.green,e),o.blue=fA(r.blue,n.blue,e),o.alpha=dA(r.alpha,n.alpha,e),HD.transform(o))},yA=new Set(["none","hidden"]);function gA(e,t){return r=>dA(e,t,r)}function bA(e){return"number"==typeof e?gA:"string"==typeof e?MD(e)?pA:eA.test(e)?vA:OA:Array.isArray(e)?wA:"object"==typeof e?eA.test(e)?vA:xA:pA}function wA(e,t){const r=[...e],n=r.length,o=e.map((e,r)=>bA(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function xA(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=bA(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const OA=(e,t)=>{const r=cA.createTransformer(t),n=iA(e),o=iA(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?yA.has(e)&&!o.values.length||yA.has(t)&&!n.values.length?function(e,t){return yA.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):KM(wA(function(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][n[i]],s=e.values[a]??0;r[o]=s,n[i]++}return r}(n,o),o.values),r):(FM(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pA(e,t))};function EA(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return dA(e,t,r);return bA(e)(e,t)}const kA=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>ED.update(t,e),stop:()=>kD(t),now:()=>jD.isProcessing?jD.timestamp:ND.now()}},jA=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let t=0;t<o;t++)n+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},PA=2e4;function SA(e){let t=0;let r=e.next(t);for(;!r.done&&t<PA;)t+=50,r=e.next(t);return t>=PA?1/0:t}function CA(e,t,r){const n=Math.max(t-5,0);return tD(r-e(n),t-n)}const NA=100,TA=10,zA=1,LA=0,MA=800,DA=.3,AA=.3,RA={granular:.01,default:2},IA={granular:.005,default:.5},BA=.01,_A=10,WA=.05,FA=1,VA=.001;function $A({duration:e=MA,bounce:t=DA,velocity:r=LA,mass:n=zA}){let o,i;FM(e<=JM(_A),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=_M(WA,FA,a),e=_M(BA,_A,eD(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=qA(t,a),l=Math.exp(-o);return VA-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=qA(Math.pow(t,2),a);return(-o(t)+VA>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<HA;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=JM(e),isNaN(s))return{stiffness:NA,damping:TA,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const HA=12;function qA(e,t){return e*Math.sqrt(1-t*t)}const UA=["duration","bounce"],YA=["stiffness","damping","mass"];function GA(e,t){return t.some(t=>void 0!==e[t])}function XA(e=AA,t=DA){const r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:p,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:LA,stiffness:NA,damping:TA,mass:zA,isResolvedFromDuration:!1,...e};if(!GA(e,YA)&&GA(e,UA))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*_M(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:zA,stiffness:o,damping:i}}else{const r=$A(e);t={...t,...r,mass:zA},t.isResolvedFromDuration=!0}return t}({...r,velocity:-eD(r.velocity||0)}),m=d||0,h=c/(2*Math.sqrt(l*u)),v=a-i,y=eD(Math.sqrt(l/u)),g=Math.abs(v)<5;let b;if(n||(n=g?RA.granular:RA.default),o||(o=g?IA.granular:IA.default),h<1){const e=qA(y,h);b=t=>{const r=Math.exp(-h*y*t);return a-r*((m+h*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===h)b=e=>a-Math.exp(-y*e)*(v+(m+y*v)*e);else{const e=y*Math.sqrt(h*h-1);b=t=>{const r=Math.exp(-h*y*t),n=Math.min(e*t,300);return a-r*((m+h*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}const w={calculatedDuration:f&&p||null,next:e=>{const t=b(e);if(f)s.done=e>=p;else{let r=0===e?m:0;h<1&&(r=0===e?JM(m):CA(b,e,t));const i=Math.abs(r)<=n,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(SA(w),PA),t=jA(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function KA({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const p=e[0],d={done:!1,value:p},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=r*t;const h=p+m,v=void 0===a?h:a(h);v!==h&&(m=v-p);const y=e=>-m*Math.exp(-e/n),g=e=>v+y(e),b=e=>{const t=y(e),r=g(e);d.done=Math.abs(t)<=c,d.value=d.done?v:r};let w,x;const O=e=>{var t;(t=d.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=XA({keyframes:[d.value,f(d.value)],velocity:CA(g,e,d.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return O(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),O(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),d)}}}function ZA(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(VM(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,r){const n=[],o=r||$M.mix||EA,i=e.length-1;for(let r=0;r<i;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||GM:t;i=KM(e,i)}n.push(i)}return n}(t,n,o),l=s.length,c=r=>{if(a&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);const o=ZM(e[n],e[n+1],r);return s[n](o)};return r?t=>c(_M(e[0],e[i-1],t)):c}function QA(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ZM(0,t,n);e.push(dA(r,1,o))}}(t,e.length-1),t}function JA({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(wD):wD(n),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:QA(t),e),s=ZA(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||yD).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}XA.applyToOptions=e=>{const t=function(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(SA(n),PA);return{type:"keyframes",ease:e=>n.next(o*e).value/t,duration:eD(o)}}(e,100,XA);return e.ease=t.ease,e.duration=JM(t.duration),e.type="keyframes",e};const eR=e=>null!==e;function tR(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(eR),a=o<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return a&&void 0!==n?n:i[a]}const rR={decay:KA,inertia:KA,tween:JA,keyframes:JA,spring:XA};function nR(e){"string"==typeof e.type&&(e.type=rR[e.type])}class oR{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const iR=e=>e/100;class aR extends oR{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==ND.now()&&this.tick(ND.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;nR(e);const{type:t=JA,repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||JA;"production"!==process.env.NODE_ENV&&s!==JA&&VM(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),s!==JA&&"number"!=typeof a[0]&&(this.mixKeyframes=KM(iR,EA(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===o&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=SA(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:r,totalDuration:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return r.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:p,repeatDelay:d,type:f,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let g=this.currentTime,b=r;if(u){const e=Math.min(this.currentTime,n)/a;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,u+1);Boolean(t%2)&&("reverse"===p?(r=1-r,d&&(r-=d/a)):"mirror"===p&&(b=i)),g=_M(0,1,r)*a}const w=y?{done:!1,value:c[0]}:b.next(g);o&&(w.value=o(w.value));let{done:x}=w;y||null===s||(x=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const O=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return O&&f!==KA&&(w.value=tR(c,this.options,h,this.speed)),m&&m(w.value),O&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return eD(this.calculatedDuration)}get time(){return eD(this.currentTime)}set time(e){e=JM(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ND.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=eD(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=kA,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ND.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const sR=e=>180*e/Math.PI,lR=e=>{const t=sR(Math.atan2(e[1],e[0]));return uR(t)},cR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lR,rotateZ:lR,skewX:e=>sR(Math.atan(e[1])),skewY:e=>sR(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uR=e=>((e%=360)<0&&(e+=360),e),pR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pR,scaleY:dR,scale:e=>(pR(e)+dR(e))/2,rotateX:e=>uR(sR(Math.atan2(e[6],e[5]))),rotateY:e=>uR(sR(Math.atan2(-e[2],e[0]))),rotateZ:lR,rotate:lR,skewX:e=>sR(Math.atan(e[4])),skewY:e=>sR(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mR(e){return e.includes("scale")?1:0}function hR(e,t){if(!e||"none"===e)return mR(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=fR,o=r;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=cR,o=t}if(!o)return mR(t);const i=n[t],a=o[1].split(",").map(vR);return"function"==typeof i?i(a):a[i]}function vR(e){return parseFloat(e.trim())}const yR=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gR=(()=>new Set(yR))(),bR=e=>e===AD||e===XD,wR=new Set(["x","y","z"]),xR=yR.filter(e=>!wR.has(e));const OR={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>hR(t,"x"),y:(e,{transform:t})=>hR(t,"y")};OR.translateX=OR.x,OR.translateY=OR.y;const ER=new Set;let kR=!1,jR=!1,PR=!1;function SR(){if(jR){const e=Array.from(ER).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{const t=function(e){const t=[];return xR.forEach(r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}jR=!1,kR=!1,ER.forEach(e=>e.complete(PR)),ER.clear()}function CR(){ER.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jR=!0)})}class NR{constructor(e,t,r,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(ER.add(this),kR||(kR=!0,ED.read(CR),ED.resolveKeyframes(SR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){const o=n?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){const n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ER.delete(this)}cancel(){"scheduled"===this.state&&(ER.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const TR=YM(()=>void 0!==window.ScrollTimeline),zR={};function LR(e,t){const r=YM(e);return()=>zR[t]??r()}const MR=LR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),DR=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,AR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:DR([0,.65,.55,1]),circOut:DR([.55,0,1,.45]),backIn:DR([.31,.01,.66,-.59]),backOut:DR([.33,1.53,.69,.99])};function RR(e,t){return e?"function"==typeof e?MR()?jA(e,t):"ease-out":gD(e)?DR(e):Array.isArray(e)?e.map(e=>RR(e,t)||AR.easeOut):AR[e]:void 0}function IR(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const p=RR(s,o);Array.isArray(p)&&(u.easing=p);const d={delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(d.pseudoElement=c);return e.animate(u,d)}function BR(e){return"function"==typeof e&&"applyToOptions"in e}class _R extends oR{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,VM("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return BR(e)&&MR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=IR(t,r,n,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=tR(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,r){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,r):e.style[t]=r}(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return eD(Number(e))}get time(){return eD(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=JM(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&TR()?(this.animation.timeline=e,GM):t(this)}}const WR={anticipate:pD,backInOut:uD,circInOut:mD};function FR(e){"string"==typeof e.ease&&e.ease in WR&&(e.ease=WR[e.ease])}class VR extends _R{constructor(e){FR(e),nR(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:r,onComplete:n,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new aR({...i,autoplay:!1}),s=JM(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const $R=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!cA.test(e)&&"0"!==e||e.startsWith("url(")));function HR(e){e.duration=0,e.type}const qR=new Set(["opacity","clipPath","filter","transform"]),UR=YM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class YR extends oR{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ND.now();const p={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,name:s,motionValue:l,element:c,...u},d=c?.KeyframeResolver||NR;this.keyframeResolver=new d(a,(e,t,r)=>this.onKeyframesResolved(e,t,p,!r),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:s,isHandoff:l,onUpdate:c}=r;this.resolvedAt=ND.now(),function(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=$R(o,t),s=$R(i,t);return FM(a===s,`You are trying to animate ${t} from "${o}" to "${i}". "${a?i:o}" is not an animatable value.`,"value-not-animatable"),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||BR(r))&&n)}(e,o,i,a)||(!$M.instantAnimations&&s||c?.(tR(e,r,t)),e[0]=e[e.length-1],HR(r),r.repeat=0);const u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=!l&&function(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return UR()&&r&&qR.has(r)&&("transform"!==r||!c)&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new VR({...u,element:u.motionValue.owner.current}):new aR(u);p.finished.then(()=>this.notifyFinished()).catch(GM),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),PR=!0,CR(),SR(),PR=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const GR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XR(e,t,r=1){VM(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=function(e){const t=GR.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return HM(e)?parseFloat(e):e}return MD(o)?XR(o,t,r+1):o}function KR(e,t){return e?.[t]??e?.default??e}const ZR=new Set(["width","height","top","left","right","bottom",...yR]),QR=e=>t=>t.test(e),JR=[AD,XD,GD,YD,ZD,KD,{test:e=>"auto"===e,parse:e=>e}],eI=e=>JR.find(QR(e));function tI(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||UM(e))}const rI=new Set(["brightness","contrast","saturate","opacity"]);function nI(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(_D)||[];if(!n)return e;const o=r.replace(n,"");let i=rI.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const oI=/\b([a-z-]*)\(.*?\)/gu,iI={...cA,getAnimatableNone:e=>{const t=e.match(oI);return t?t.map(nI).join(" "):e}},aI={...AD,transform:Math.round},sI={borderWidth:XD,borderTopWidth:XD,borderRightWidth:XD,borderBottomWidth:XD,borderLeftWidth:XD,borderRadius:XD,radius:XD,borderTopLeftRadius:XD,borderTopRightRadius:XD,borderBottomRightRadius:XD,borderBottomLeftRadius:XD,width:XD,maxWidth:XD,height:XD,maxHeight:XD,top:XD,right:XD,bottom:XD,left:XD,padding:XD,paddingTop:XD,paddingRight:XD,paddingBottom:XD,paddingLeft:XD,margin:XD,marginTop:XD,marginRight:XD,marginBottom:XD,marginLeft:XD,backgroundPositionX:XD,backgroundPositionY:XD,...{rotate:YD,rotateX:YD,rotateY:YD,rotateZ:YD,scale:ID,scaleX:ID,scaleY:ID,scaleZ:ID,skew:YD,skewX:YD,skewY:YD,distance:XD,translateX:XD,translateY:XD,translateZ:XD,x:XD,y:XD,z:XD,perspective:XD,transformPerspective:XD,opacity:RD,originX:QD,originY:QD,originZ:XD},zIndex:aI,fillOpacity:RD,strokeOpacity:RD,numOctaves:aI},lI={...sI,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:iI,WebkitFilter:iI},cI=e=>lI[e];function uI(e,t){let r=cI(e);return r!==iI&&(r=cA),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const pI=new Set(["auto","none","0"]);class dI extends NR{constructor(e,t,r,n,o){super(e,t,r,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),MD(n))){const o=XR(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ZR.has(r)||2!==e.length)return;const[n,o]=e,i=eI(n),a=eI(o);if(i!==a)if(bR(i)&&bR(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else OR[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||tI(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){const t=e[o];"string"==typeof t&&!pI.has(t)&&iA(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=uI(r,n)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=OR[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=OR[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}const fI=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class mI{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=ND.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ND.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&nD(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new QM);const r=this.events[e].add(t);return"change"===e?()=>{r(),ED.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ND.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tD(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hI(e,t){return new mI(e,t)}const{schedule:vI}=OD(queueMicrotask,!1),yI={x:!1,y:!1};function gI(){return yI.x||yI.y}function bI(e,t){const r=function(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const n=r?.[e]??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function wI(e){return!("touch"===e.pointerType||gI())}const xI=(e,t)=>!!t&&(e===t||xI(e,t.parentElement)),OI=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,EI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const kI=new WeakSet;function jI(e){return t=>{"Enter"===t.key&&e(t)}}function PI(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function SI(e){return OI(e)&&!gI()}function CI(e,t,r={}){const[n,o,i]=bI(e,r),a=e=>{const n=e.currentTarget;if(!SI(e))return;kI.add(n);const i=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),kI.has(n)&&kI.delete(n),SI(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,n===window||n===document||r.useGlobalTarget||xI(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return n.forEach(e=>{var t;(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),qM(t=e)&&"offsetHeight"in t&&(e.addEventListener("focus",e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=jI(()=>{if(kI.has(r))return;PI(r,"down");const e=jI(()=>{PI(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>PI(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,o)),function(e){return EI.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function NI(e){return qM(e)&&"ownerSVGElement"in e}const TI=e=>Boolean(e&&e.getVelocity),zI=[...JR,eA,cA],LI=m({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});const MI=m({strict:!1}),DI={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},AI={};for(const e in DI)AI[e]={isEnabled:t=>DI[e].some(e=>!!t[e])};const RI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function II(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RI.has(e)}let BI=e=>!II(e);try{"function"==typeof(_I=require("@emotion/is-prop-valid").default)&&(BI=e=>e.startsWith("on")?!II(e):_I(e))}catch{}var _I;const WI=m({});function FI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function VI(e){return"string"==typeof e||Array.isArray(e)}const $I=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HI=["initial",...$I];function qI(e){return FI(e.animate)||HI.some(t=>VI(e[t]))}function UI(e){return Boolean(qI(e)||e.variants)}function YI(e){const{initial:t,animate:r}=function(e,t){if(qI(e)){const{initial:t,animate:r}=e;return{initial:!1===t||VI(t)?t:void 0,animate:VI(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,h(WI));return s(()=>({initial:t,animate:r}),[GI(t),GI(r)])}function GI(e){return Array.isArray(e)?e.join(" "):e}const XI={};function KI(e,{layout:t,layoutId:r}){return gR.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!XI[e]||"opacity"===e)}const ZI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QI=yR.length;function JI(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const r=t[e];if(gR.has(e))a=!0;else if(zD(e))o[e]=r;else{const t=fI(r,sI[e]);e.startsWith("origin")?(s=!0,i[e]=t):n[e]=t}}if(t.transform||(a||r?n.transform=function(e,t,r){let n="",o=!0;for(let i=0;i<QI;i++){const a=yR[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||r){const e=fI(s,sI[a]);l||(o=!1,n+=`${ZI[a]||a}(${e}) `),r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:r=0}=i;n.transformOrigin=`${e} ${t} ${r}`}}const eB=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tB(e,t,r){for(const n in t)TI(t[n])||KI(n,r)||(e[n]=t[n])}function rB(e,t){const r={};return tB(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t){return s(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return JI(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),r}function nB(e,t){const r={},n=rB(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const oB={offset:"stroke-dashoffset",array:"stroke-dasharray"},iB={offset:"strokeDashoffset",array:"strokeDasharray"};function aB(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(JI(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:d}=e;p.transform&&(d.transform=p.transform,delete p.transform),(d.transform||p.transformOrigin)&&(d.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete p.transformBox),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==o&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?oB:iB;e[i.offset]=XD.transform(-n);const a=XD.transform(t),s=XD.transform(r);e[i.array]=`${a} ${s}`}(p,o,i,a,!1)}const sB=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),lB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cB(e,t,r,n){const o=s(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return aB(r,t,lB(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const t={};tB(t,e.style,e),o.style={...t,...o.style}}return o}const uB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pB(e){return"string"==typeof e&&!e.includes("-")&&!!(uB.indexOf(e)>-1||/[A-Z]/u.test(e))}function dB(e,t,r,{latestValues:o},i,a=!1){const l=(pB(e)?cB:nB)(t,o,i,e),c=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(BI(o)||!0===r&&II(o)||!t&&!II(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(t,"string"==typeof e,a),u=e!==y?{...c,...l,ref:r}:{},{children:p}=t,d=s(()=>TI(p)?p.get():p,[p]);return n(e,{...u,children:d})}function fB(e){const t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function mB(e,t,r,n){if("function"==typeof t){const[o,i]=fB(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=fB(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function hB(e){return TI(e)?e.get():e}function vB(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=hB(i[e]);let{initial:a,animate:s}=e;const l=qI(e),c=UI(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const p=u?s:a;if(p&&"boolean"!=typeof p&&!FI(p)){const t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){const n=mB(e,t[r]);if(n){const{transitionEnd:e,transition:t,...r}=n;for(const e in r){let t=r[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const yB=e=>(t,r)=>{const n=h(WI),o=h(RM),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:vB(r,n,o,e),renderState:t()}}(e,t,n,o);return r?i():function(e){const t=c(null);return null===t.current&&(t.current=e()),t.current}(i)};function gB(e,t,r){const{style:n}=e,o={};for(const i in n)(TI(n[i])||t.style&&TI(t.style[i])||KI(i,e)||void 0!==r?.getValue(i)?.liveStyle)&&(o[i]=n[i]);return o}const bB=yB({scrapeMotionValuesFromProps:gB,createRenderState:eB});function wB(e,t,r){const n=gB(e,t,r);for(const r in e)if(TI(e[r])||TI(t[r])){n[-1!==yR.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}const xB=yB({scrapeMotionValuesFromProps:wB,createRenderState:sB}),OB=Symbol.for("motionComponentSymbol");function EB(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function kB(e,t,r){return l(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):EB(r)&&(r.current=n))},[t])}const jB=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),PB="data-"+jB("framerAppearId"),SB=m({});function CB(e,t,r,n,o){const{visualElement:i}=h(WI),s=h(MI),l=h(RM),u=h(LI).reducedMotion,p=c(null);n=n||s.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:i,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const d=p.current,f=h(SB);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:NB(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&EB(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}(p.current,r,o,f);const m=c(!1);b(()=>{d&&m.current&&d.update(r,l)});const v=r[PB],y=c(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return AM(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),a(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),d.enteringChildren=void 0)}),d}function NB(e){if(e)return!1!==e.options.allowProjection?e.projection:NB(e.parent)}function TB(e,{forwardMotionProps:t=!1}={},n,o){n&&function(e){for(const t in e)AI[t]={...AI[t],...e[t]}}(n);const i=pB(e)?xB:bB;function a(r,a){let s;const l={...h(LI),...r,layoutId:zB(r)},{isStatic:c}=l,u=YI(r),p=i(r,c);if(!c&&DM){!function(e,t){const r=h(MI).strict;if("production"!==process.env.NODE_ENV&&t&&r){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?FM(!1,t,"lazy-strict-mode"):VM(!1,t,"lazy-strict-mode")}}(l,n);const t=function(e){const{drag:t,layout:r}=AI;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);s=t.MeasureLayout,u.visualElement=CB(e,p,l,o,t.ProjectionNode)}return j(WI.Provider,{value:u,children:[s&&u.visualElement?E(s,{visualElement:u.visualElement,...l}):null,dB(e,r,kB(p,u.visualElement,a),p,c,t)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const s=r(a);return s[OB]=e,s}function zB({layoutId:e}){const t=h(MM).id;return t&&void 0!==e?t+"-"+e:e}function LB(e,t){if("undefined"==typeof Proxy)return TB;const r=new Map,n=(r,n)=>TB(r,n,e,t);return new Proxy((e,t)=>("production"!==process.env.NODE_ENV&&nD(!1,"motion() is deprecated. Use motion.create() instead."),n(e,t)),{get:(o,i)=>"create"===i?n:(r.has(i)||r.set(i,TB(i,void 0,e,t)),r.get(i))})}function MB({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function DB(e){return void 0===e||1===e}function AB({scale:e,scaleX:t,scaleY:r}){return!DB(e)||!DB(t)||!DB(r)}function RB(e){return AB(e)||IB(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function IB(e){return BB(e.x)||BB(e.y)}function BB(e){return e&&"0%"!==e}function _B(e,t,r){return r+t*(e-r)}function WB(e,t,r,n,o){return void 0!==o&&(e=_B(e,o,n)),_B(e,r,n)+t}function FB(e,t=0,r=1,n,o){e.min=WB(e.min,t,r,n,o),e.max=WB(e.max,t,r,n,o)}function VB(e,{x:t,y:r}){FB(e.x,t.translate,t.scale,t.originPoint),FB(e.y,r.translate,r.scale,r.originPoint)}const $B=.999999999999,HB=1.0000000000001;function qB(e,t){e.min=e.min+t,e.max=e.max+t}function UB(e,t,r,n,o=.5){FB(e,t,r,dA(e.min,e.max,o),n)}function YB(e,t){UB(e.x,t.x,t.scaleX,t.scale,t.originX),UB(e.y,t.y,t.scaleY,t.scale,t.originY)}function GB(e,t){return MB(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const XB=()=>({x:{min:0,max:0},y:{min:0,max:0}}),KB={current:null},ZB={current:!1};const QB=new WeakMap;const JB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class e_{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=NR,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=ND.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ED.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=qI(t),this.isVariantNode=UI(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&TI(t)&&t.set(s[e])}}mount(e){this.current=e,QB.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ZB.current||function(){if(ZB.current=!0,DM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>KB.current=e.matches;e.addEventListener("change",t),t()}else KB.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||KB.current),"production"!==process.env.NODE_ENV&&nD(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),kD(this.notifyUpdate),kD(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=gR.has(e);r&&this.onBindTransform&&this.onBindTransform();const n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ED.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in AI){const t=AI[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<JB.length;t++){const r=JB[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(const n in t){const o=t[n],i=r[n];if(TI(o))e.addValue(n,o);else if(TI(i))e.addValue(n,hI(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(n);e.addValue(n,hI(void 0!==t?t:o,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=hI(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var n;return null!=r&&("string"==typeof r&&(HM(r)||UM(r))?r=parseFloat(r):(n=r,!zI.find(QR(n))&&cA.test(t)&&(r=uI(e,t))),this.setBaseTarget(e,TI(r)?r.get():r)),TI(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let r;if("string"==typeof t||"object"==typeof t){const n=mB(this.props,t,this.presenceContext?.custom);n&&(r=n[e])}if(t&&void 0!==r)return r;const n=this.getBaseTargetFromProps(this.props,e);return void 0===n||TI(n)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new QM),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){vI.render(this.render)}}class t_ extends e_{constructor(){super(...arguments),this.KeyframeResolver=dI}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;TI(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function r_(e,{style:t,vars:r},n,o){const i=e.style;let a;for(a in t)i[a]=t[a];for(a in o?.applyProjectionStyles(i,n),r)i.setProperty(a,r[a])}class n_ extends t_{constructor(){super(...arguments),this.type="html",this.renderInstance=r_}readValueFromInstance(e,t){if(gR.has(t))return this.projection?.isProjecting?mR(t):((e,t)=>{const{transform:r="none"}=getComputedStyle(e);return hR(r,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),o=(zD(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return GB(e,t)}build(e,t,r){JI(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return gB(e,t,r)}}const o_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class i_ extends t_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=XB}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gR.has(t)){const e=cI(t);return e&&e.default||0}return t=o_.has(t)?t:jB(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return wB(e,t,r)}build(e,t,r){aB(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){!function(e,t,r,n){r_(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(o_.has(r)?r:jB(r),t.attrs[r])}(e,t,0,n)}mount(e){this.isSVGTag=lB(e.tagName),super.mount(e)}}const a_=(e,t)=>pB(e)?new i_(t):new n_(t,{allowProjection:e!==y});function s_(e,t,r){const n=e.getProps();return mB(n,t,void 0!==r?r:n.custom,e)}const l_=e=>Array.isArray(e);function c_(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,hI(r))}function u_(e){return l_(e)?e[e.length-1]||0:e}function p_(e,t){const r=e.getValue("willChange");if(n=r,Boolean(TI(n)&&n.add))return r.add(t);if(!r&&$M.WillChange){const r=new $M.WillChange("auto");e.addValue("willChange",r),r.add(t)}var n}function d_(e){return e.props[PB]}const f_=e=>null!==e;const m_={type:"spring",stiffness:500,damping:25,restSpeed:10},h_={type:"keyframes",duration:.8},v_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},y_=(e,{keyframes:t})=>t.length>2?h_:gR.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:m_:v_;const g_=(e,t,r,n={},o,i)=>a=>{const s=KR(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c-=JM(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||Object.assign(u,y_(e,u)),u.duration&&(u.duration=JM(u.duration)),u.repeatDelay&&(u.repeatDelay=JM(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(HR(u),0===u.delay&&(p=!0)),($M.instantAnimations||$M.skipAnimations)&&(p=!0,HR(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,p&&!i&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:r="loop"}){const n=e.filter(f_);return n[t&&"loop"!==r&&t%2==1?0:n.length-1]}(u.keyframes,s);if(void 0!==e)return void ED.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new aR(u):new YR(u)};function b_({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function w_(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;n&&(i=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const n=e.getValue(t,e.latestValues[t]??null),o=s[t];if(void 0===o||c&&b_(c,t))continue;const a={delay:r,...KR(i||{},t)},u=n.get();if(void 0!==u&&!n.isAnimating&&!Array.isArray(o)&&o===u&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const r=d_(e);if(r){const e=window.MotionHandoffAnimation(r,t,ED);null!==e&&(a.startTime=e,p=!0)}}p_(e,t),n.start(g_(t,n,o,e.shouldReduceMotion&&ZR.has(t)?{type:!1}:a,e,p));const d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{ED.update(()=>{a&&function(e,t){const r=s_(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)c_(e,t,u_(i[t]))}(e,a)})}),l}function x_(e,t,r,n=0,o=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*n;return"function"==typeof r?r(i,a):1===o?i*n:s-i*n}function O_(e,t,r={}){const n=s_(e,t,"exit"===r.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(w_(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(O_(l,t,{...a,delay:r+("function"==typeof n?0:n)+x_(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,i,a,s,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(r.delay)])}function E_(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const k_=HI.length;function j_(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&j_(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;r<k_;r++){const n=HI[r],o=e.props[n];(VI(o)||!1===o)&&(t[n]=o)}return t}const P_=[...$I].reverse(),S_=$I.length;function C_(e){return t=>Promise.all(t.map(({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>O_(e,t,r));n=Promise.all(o)}else if("string"==typeof t)n=O_(e,t,r);else{const o="function"==typeof t?s_(e,t,r.custom):t;n=Promise.all(w_(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,t,r)))}function N_(e){let t=C_(e),r=L_(),n=!0;const o=t=>(r,n)=>{const o=s_(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function i(i){const{props:a}=e,s=j_(e.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let t=0;t<S_;t++){const d=P_[t],f=r[d],m=void 0!==a[d]?a[d]:s[d],h=VI(m),v=d===i?f.isActive:null;!1===v&&(p=t);let y=m===s[d]&&m!==a[d]&&h;if(y&&n&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===v||!m&&!f.prevProp||FI(m)||"boolean"==typeof m)continue;const g=T_(f.prevProp,m);let b=g||d===i&&f.isActive&&!y&&h||t>p&&h,w=!1;const x=Array.isArray(m)?m:[m];let O=x.reduce(o(d),{});!1===v&&(O={});const{prevResolvedValues:E={}}=f,k={...E,...O},j=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),f.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in k){const t=O[e],r=E[e];if(u.hasOwnProperty(e))continue;let n=!1;n=l_(t)&&l_(r)?!E_(t,r):t!==r,n?null!=t?j(e):c.add(e):void 0!==t&&c.has(e)?j(e):f.protectedKeys[e]=!0}f.prevProp=m,f.prevResolvedValues=O,f.isActive&&(u={...u,...O}),n&&e.blockInitialAnimation&&(b=!1);const P=y&&g;b&&(!P||w)&&l.push(...x.map(t=>{const r={type:d};if("string"==typeof t&&n&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:n}=e,o=s_(n,t);if(n.enteringChildren&&o){const{delayChildren:t}=o.transition||{};r.delay=x_(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){const t={};if("boolean"!=typeof a.initial){const r=s_(e,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let d=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(d=!1),n=!1,d?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;const o=i(t);for(const e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=L_(),n=!0}}}function T_(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!E_(t,e)}function z_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function L_(){return{animate:z_(!0),whileInView:z_(),whileHover:z_(),whileTap:z_(),whileDrag:z_(),whileFocus:z_(),exit:z_()}}class M_{constructor(e){this.isMounted=!1,this.node=e}update(){}}let D_=0;const A_={animation:{Feature:class extends M_{constructor(e){super(e),e.animationState||(e.animationState=N_(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();FI(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends M_{constructor(){super(...arguments),this.id=D_++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function R_(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function I_(e){return{point:{x:e.pageX,y:e.pageY}}}function B_(e,t,r,n){return R_(e,t,(e=>t=>OI(t)&&e(t,I_(t)))(r),n)}function __(e){return e.max-e.min}function W_(e,t,r,n=.5){e.origin=n,e.originPoint=dA(t.min,t.max,e.origin),e.scale=__(r)/__(t),e.translate=dA(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function F_(e,t,r,n){W_(e.x,t.x,r.x,n?n.originX:void 0),W_(e.y,t.y,r.y,n?n.originY:void 0)}function V_(e,t,r){e.min=r.min+t.min,e.max=e.min+__(t)}function $_(e,t,r){e.min=t.min-r.min,e.max=e.min+__(t)}function H_(e,t,r){$_(e.x,t.x,r.x),$_(e.y,t.y,r.y)}function q_(e){return[e("x"),e("y")]}const U_=({current:e})=>e?e.ownerDocument.defaultView:null,Y_=(e,t)=>Math.abs(e-t);class G_{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Z_(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Y_(e.x,t.x),n=Y_(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=jD;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=X_(t,this.transformPagePoint),ED.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Z_("pointercancel"===e.type?this.lastMoveEventInfo:X_(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!OI(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;const a=X_(I_(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=jD;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,Z_(a,this.history)),this.removeListeners=KM(B_(this.contextWindow,"pointermove",this.handlePointerMove),B_(this.contextWindow,"pointerup",this.handlePointerUp),B_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),kD(this.updatePoint)}}function X_(e,t){return t?{point:t(e.point)}:e}function K_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Z_({point:e},t){return{point:e,delta:K_(e,J_(t)),offset:K_(e,Q_(t)),velocity:eW(t,.1)}}function Q_(e){return e[0]}function J_(e){return e[e.length-1]}function eW(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=J_(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>JM(t)));)r--;if(!n)return{x:0,y:0};const i=eD(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tW(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rW(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const nW=.35;function oW(e,t,r){return{min:iW(e,t),max:iW(e,r)}}function iW(e,t){return"number"==typeof e?e:e[t]||0}const aW=new WeakMap;class sW{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new G_(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(I_(e).point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=r)||"y"===i?yI[i]?null:(yI[i]=!0,()=>{yI[i]=!1}):yI.x||yI.y?null:(yI.x=yI.y=!0,()=>{yI.x=yI.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(GD.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=__(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&ED.postRender(()=>o(e,t)),p_(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>q_(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:r,contextWindow:U_(this.visualElement)})}stop(e,t){const r=e||this.latestPointerEvent,n=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ED.postRender(()=>a(r,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!lW(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?dA(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?dA(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&EB(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:tW(e.x,r,o),y:tW(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=nW){return!1===e?e=0:!0===e&&(e=nW),{x:oW(e,"left","right"),y:oW(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&q_(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!EB(e))return!1;const r=e.current;VM(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=GB(e,r),{scroll:o}=t;return o&&(qB(n.x,o.offset.x),qB(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:rW(e.x,t.x),y:rW(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=MB(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=q_(a=>{if(!lW(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,p={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return p_(this.visualElement,e),r.start(g_(e,r,0,t,this.visualElement,!1))}stopAnimation(){q_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){q_(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){q_(t=>{const{drag:r}=this.getProps();if(!lW(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-dA(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!EB(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};q_(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=__(e),o=__(t);return o>n?r=ZM(t.min,t.max-n,e.min):n>o&&(r=ZM(e.min,e.max-o,t.min)),_M(0,1,r)}({min:r,max:r},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),q_(t=>{if(!lW(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(dA(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;aW.set(this.visualElement,this);const e=B_(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();EB(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ED.read(t);const o=R_(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(q_(t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=nW,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function lW(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const cW=e=>(t,r)=>{e&&ED.postRender(()=>e(t,r))};const uW={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!XD.test(e))return e;e=parseFloat(e)}return`${pW(e,t.target.x)}% ${pW(e,t.target.y)}%`}},fW={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=cA.parse(e);if(o.length>5)return n;const i=cA.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=dA(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};let mW=!1;class hW extends w{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;!function(e){for(const t in e)XI[t]=e[t],zD(t)&&(XI[t].isCSSVariable=!0)}(yW),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),mW&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),uW.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,{projection:i}=r;return i?(i.isPresent=o,mW=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ED.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vI.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;mW=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vW(e){const[t,r]=function(e=!0){const t=h(RM);if(null===t)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=g();a(()=>{if(e)return o(i)},[e]);const s=l(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,s]:[!0]}(),n=h(MM);return E(hW,{...e,layoutGroup:n,switchLayoutGroup:h(SB),isPresent:t,safeToRemove:r})}const yW={borderRadius:{...dW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dW,borderTopRightRadius:dW,borderBottomLeftRadius:dW,borderBottomRightRadius:dW,boxShadow:fW};const gW=(e,t)=>e.depth-t.depth;class bW{constructor(){this.children=[],this.isDirty=!1}add(e){IM(this.children,e),this.isDirty=!0}remove(e){BM(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gW),this.isDirty=!1,this.children.forEach(e)}}const wW=["TopLeft","TopRight","BottomLeft","BottomRight"],xW=wW.length,OW=e=>"string"==typeof e?parseFloat(e):e,EW=e=>"number"==typeof e||XD.test(e);function kW(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jW=SW(0,.5,fD),PW=SW(.5,.95,GM);function SW(e,t,r){return n=>n<e?0:n>t?1:r(ZM(e,t,n))}function CW(e,t){e.min=t.min,e.max=t.max}function NW(e,t){CW(e.x,t.x),CW(e.y,t.y)}function TW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zW(e,t,r,n,o){return e=_B(e-=t,1/r,n),void 0!==o&&(e=_B(e,1/o,n)),e}function LW(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){GD.test(t)&&(t=parseFloat(t),t=dA(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=dA(i.min,i.max,n);e===i&&(s-=t),e.min=zW(e.min,t,r,s,o),e.max=zW(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const MW=["x","scaleX","originX"],DW=["y","scaleY","originY"];function AW(e,t,r,n){LW(e.x,t,MW,r?r.x:void 0,n?n.x:void 0),LW(e.y,t,DW,r?r.y:void 0,n?n.y:void 0)}function RW(e){return 0===e.translate&&1===e.scale}function IW(e){return RW(e.x)&&RW(e.y)}function BW(e,t){return e.min===t.min&&e.max===t.max}function _W(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WW(e,t){return _W(e.x,t.x)&&_W(e.y,t.y)}function FW(e){return __(e.x)/__(e.y)}function VW(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $W{constructor(){this.members=[]}add(e){IM(this.members,e),e.scheduleRender()}remove(e){if(BM(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const HW=["","X","Y","Z"];let qW=0;function UW(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function YW(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=d_(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",ED,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&YW(n)}function GW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=t?.()){this.id=qW++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZW),this.nodes.forEach(oF),this.nodes.forEach(iF),this.nodes.forEach(QW)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new bW)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new QM),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var r;this.isSVG=NI(t)&&!(NI(r=t)&&"svg"===r.tagName),this.instance=t;const{layoutId:n,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||n)&&(this.isLayoutDirty=!0),e){let r,n=0;const o=()=>this.root.updateBlockedByResize=!1;ED.read(()=>{n=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=ND.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(kD(n),e(i-t))};return ED.setup(n,!0),()=>kD(n)}(o,250),uW.hasAnimatedSinceResize&&(uW.hasAnimatedSinceResize=!1,this.nodes.forEach(nF)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||pF,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!WW(this.targetLayout,n),c=!t&&r;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...KR(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||nF(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kD(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aF),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&YW(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(eF);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tF);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rF),this.nodes.forEach(XW),this.nodes.forEach(KW)):this.nodes.forEach(tF),this.clearAllSnapshots();const e=ND.now();jD.delta=_M(0,1e3/60,e-jD.timestamp),jD.timestamp=e,jD.isProcessing=!0,PD.update.process(jD),PD.preRender.process(jD),PD.render.process(jD),jD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vI.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(JW),this.sharedNodes.forEach(sF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ED.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ED.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||__(this.snapshot.measuredBox.x)||__(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!IW(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||RB(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),mF((n=r).x),mF(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vF))){const{scroll:e}=this.root;e&&(qB(t.x,e.offset.x),qB(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(NW(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&NW(t,e),qB(t.x,o.offset.x),qB(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};NW(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&YB(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),RB(n.latestValues)&&YB(r,n.latestValues)}return RB(this.latestValues)&&YB(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};NW(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!RB(r.latestValues))continue;AB(r.latestValues)&&r.updateSnapshot();const n=XB();NW(n,r.measurePageBox()),AW(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return RB(this.latestValues)&&AW(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:n,layoutId:o}=this.options;if(this.layout&&(n||o)){if(this.resolvedRelativeTargetAt=jD.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},H_(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),NW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,a,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,s=this.relativeParent.target,V_(i.x,a.x,s.x),V_(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):NW(this.target,this.layout.layoutBox),VB(this.target,this.targetDelta)):NW(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},H_(this.relativeTargetOrigin,this.target,e.target),NW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!AB(this.parent.latestValues)&&!IB(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===jD.timestamp&&(r=!1),r)return;const{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!o)return;NW(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&YB(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,VB(e,a)),n&&RB(i.latestValues)&&YB(e,i.latestValues))}t.x<HB&&t.x>$B&&(t.x=1),t.y<HB&&t.y>$B&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(TW(this.prevProjectionDelta.x,this.projectionDelta.x),TW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),F_(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&VW(this.projectionDelta.x,this.prevProjectionDelta.x)&&VW(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(uF));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,d,f,m,h,v;lF(i.x,e.x,r),lF(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(H_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,v=r,cF(f.x,m.x,h.x,v),cF(f.y,m.y,h.y,v),p&&(l=this.relativeTarget,d=p,BW(l.x,d.x)&&BW(l.y,d.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),NW(p,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=dA(0,r.opacity??1,jW(n)),e.opacityExit=dA(t.opacity??1,0,PW(n))):i&&(e.opacity=dA(t.opacity??1,r.opacity??1,n));for(let o=0;o<xW;o++){const i=`border${wW[o]}Radius`;let a=kW(t,i),s=kW(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||EW(a)===EW(s)?(e[i]=Math.max(dA(OW(a),OW(s),n),0),(GD.test(s)||GD.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=dA(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(kD(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ED.update(()=>{uW.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hI(0)),this.currentAnimation=function(e,t,r){const n=TI(e)?e:hI(e);return n.start(g_("",n,t,r)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&hF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=__(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=__(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}NW(t,r),YB(t,o),F_(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new $W);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&UW("z",e,n,this.animationValues);for(let t=0;t<HW.length;t++)UW(`rotate${HW[t]}`,e,n,this.animationValues),UW(`skew${HW[t]}`,e,n,this.animationValues);e.render();for(const t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=hB(t?.pointerEvents)||"",void(e.transform=r?r(this.latestValues,""):"none");const n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=hB(t?.pointerEvents)||""),void(this.hasProjected&&!RB(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1));e.visibility="";const o=n.animationValues||n.latestValues;this.applyTransformsToTarget();let i=function(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);r&&(i=r(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in XI){if(void 0===o[t])continue;const{correct:r,applyTo:a,isCSSVariable:s}=XI[t],l="none"===i?o[t]:r(o[t],n);if(a){const t=a.length;for(let r=0;r<t;r++)e[a[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?hB(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(eF),this.root.sharedNodes.clear()}}}function XW(e){e.updateLayout()}function KW(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;"size"===o?q_(e=>{const n=i?t.measuredBox[e]:t.layoutBox[e],o=__(n);n.min=r[e].min,n.max=n.min+o}):hF(o,t.layoutBox,r)&&q_(n=>{const o=i?t.measuredBox[n]:t.layoutBox[n],a=__(r[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};F_(a,r,t.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?F_(s,e.applyTransform(n,!0),t.measuredBox):F_(s,r,t.layoutBox);const l=!IW(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};H_(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};H_(s,r,i.layoutBox),WW(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ZW(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function JW(e){e.clearSnapshot()}function eF(e){e.clearMeasurements()}function tF(e){e.isLayoutDirty=!1}function rF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oF(e){e.resolveTargetDelta()}function iF(e){e.calcProjection()}function aF(e){e.resetSkewAndRotation()}function sF(e){e.removeLeadSnapshot()}function lF(e,t,r){e.translate=dA(t.translate,0,r),e.scale=dA(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function cF(e,t,r,n){e.min=dA(t.min,r.min,n),e.max=dA(t.max,r.max,n)}function uF(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const pF={duration:.45,ease:[.4,0,.1,1]},dF=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fF=dF("applewebkit/")&&!dF("chrome/")?Math.round:GM;function mF(e){e.min=fF(e.min),e.max=fF(e.max)}function hF(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=FW(t),o=FW(r),i=.2,!(Math.abs(n-o)<=i));var n,o,i}function vF(e){return e!==e.root&&e.scroll?.wasRoot}const yF=GW({attachResizeListener:(e,t)=>R_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gF={current:void 0},bF=GW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gF.current){const e=new yF({});e.mount(window),e.setOptions({layoutScroll:!0}),gF.current=e}return gF.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),wF={pan:{Feature:class extends M_{constructor(){super(...arguments),this.removePointerDownListener=GM}onPointerDown(e){this.session=new G_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U_(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:cW(e),onStart:cW(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ED.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=B_(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends M_{constructor(e){super(e),this.removeGroupControls=GM,this.removeListeners=GM,this.controls=new sW(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||GM}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:bF,MeasureLayout:vW}};function xF(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&ED.postRender(()=>o(t,I_(t)))}function OF(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);const o=n["onTap"+("End"===r?"":r)];o&&ED.postRender(()=>o(t,I_(t)))}const EF=new WeakMap,kF=new WeakMap,jF=e=>{const t=EF.get(e.target);t&&t(e)},PF=e=>{e.forEach(jF)};function SF(e,t,r){const n=function({root:e,...t}){const r=e||document;kF.has(r)||kF.set(r,{});const n=kF.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(PF,{root:e,...t})),n[o]}(t);return EF.set(e,r),n.observe(e),()=>{EF.delete(e),n.unobserve(e)}}const CF={some:0,all:1};const NF={inView:{Feature:class extends M_{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:CF[n]};return SF(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends M_{mount(){const{current:e}=this.node;e&&(this.unmount=CI(e,(e,t)=>(OF(this.node,t,"Start"),(e,{success:t})=>OF(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends M_{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=KM(R_(this.node.current,"focus",()=>this.onFocus()),R_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends M_{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=bI(e,r),a=e=>{if(!wI(e))return;const{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;const i=e=>{wI(e)&&(n(e),r.removeEventListener("pointerleave",i))};r.addEventListener("pointerleave",i,o)};return n.forEach(e=>{e.addEventListener("pointerenter",a,o)}),i}(e,(e,t)=>(xF(this.node,t,"Start"),e=>xF(this.node,e,"End"))))}unmount(){}}}},TF=LB({...A_,...NF,...wF,...{layout:{ProjectionNode:bF,MeasureLayout:vW}}},a_),zF="right",LF={top:{in:"slide-in-from-top",out:"slide-out-to-top"},right:{in:"slide-in-from-right",out:"slide-out-to-right"},bottom:{in:"slide-in-from-bottom",out:"slide-out-to-bottom"},left:{in:"slide-in-from-left",out:"slide-out-to-left"}},MF=({children:e,side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d,...f})=>{const m=c({side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d});return a(()=>{m.current={side:r,overlay:n,showFooter:o,title:i,description:s,buttonText:l,className:u,fullWidth:p,fullHeight:d}},[r,n,o,i,s,l,u,p,d]),t.createElement(HN,{...f},e)};MF.displayName="Sheet";const DF=t.forwardRef(({children:e,...r},n)=>t.createElement(qN,{...r,ref:n},e));DF.displayName="SheetTrigger";const AF=ZN;AF.displayName="SheetClose";const RF=UN;RF.displayName="SheetPortal";const IF=t.forwardRef(({className:e,...r},n)=>t.createElement(YN,{asChild:!0,...r,ref:n},t.createElement(TF.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:Be("fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",e)})));IF.displayName=YN.displayName;const BF=t.forwardRef(({side:e=zF,className:r,children:n,overlay:o=!0,fullWidth:i=!1,fullHeight:a=!0,...s},l)=>{const c=LF[e]?e:zF;return t.createElement(RF,null,o&&t.createElement(IF,null),t.createElement(GN,{ref:l,className:Be("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-all ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-300",a?"h-full":"h-auto",i?"w-full":"w-3/4","left"===c&&"inset-y-0 left-0 border-r","right"===c&&"inset-y-0 right-0 border-l","top"===c&&"inset-x-0 top-0 border-b","bottom"===c&&"inset-x-0 bottom-0 border-t",`data-[state=closed]:${LF[c].out}`,`data-[state=open]:${LF[c].in}`,r),...s},n,t.createElement(ZN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-all duration-200 hover:opacity-100 hover:scale-110 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},t.createElement(it,{className:"h-4 w-4"}),t.createElement("span",{className:"sr-only"},"Close"))))});BF.displayName=GN.displayName;const _F=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,className:Be("flex flex-col space-y-2 text-center sm:text-left",e),...n},r));_F.displayName="SheetHeader";const WF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,className:Be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n},r));WF.displayName="SheetFooter";const FF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement(XN,{ref:o,className:Be("text-lg font-semibold text-foreground",e),...n},r));FF.displayName=XN.displayName;const VF=t.forwardRef(({className:e,children:r,...n},o)=>t.createElement(KN,{ref:o,className:Be("text-sm text-muted-foreground",e),...n},r));VF.displayName=KN.displayName;t.forwardRef(({side:e=zF,overlay:r=!0,showFooter:n=!1,title:o,description:i,buttonText:a="Close",children:s,className:l,contentProps:c,fullWidth:u,fullHeight:p,...d},f)=>{const m=LF[e]?e:zF;return t.createElement(MF,{...d},t.createElement(BF,{side:m,overlay:r,className:l,fullWidth:u,fullHeight:p,...c},t.createElement("div",{ref:f},(o||i)&&t.createElement(_F,null,o&&t.createElement(FF,null,o),i&&t.createElement(VF,null,i)),t.createElement("div",{className:"py-4"},s),n&&t.createElement(WF,null,t.createElement(AF,{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors duration-200"},a)))))}).displayName="SheetDrawer";const $F=BL,HF=_L,qF=e.forwardRef(({className:t,align:r="center",sideOffset:n=4,side:o="bottom",...i},a)=>e.createElement(WL,null,e.createElement(FL,{ref:a,align:r,sideOffset:n,side:o,className:Be("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})));qF.displayName=FL.displayName;const UF=["top","right","bottom","left"],YF=["start","center","end"],GF="bottom",XF="center",KF=4,ZF=150,QF={DEFAULT:"default",FORM:"form"};function JF(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function eV(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{const n=e[r],o=t[r];return"function"==typeof n?`${n}`==`${o}`:JF(n)&&JF(o)?eV(n,o):n===o})}function tV(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function rV(e){return"number"==typeof e}function nV(e){return"string"==typeof e}function oV(e){return"boolean"==typeof e}function iV(e){return"[object Object]"===Object.prototype.toString.call(e)}function aV(e){return Math.abs(e)}function sV(e){return Math.sign(e)}function lV(e,t){return aV(e-t)}function cV(e){return mV(e).map(Number)}function uV(e){return e[pV(e)]}function pV(e){return Math.max(0,e.length-1)}function dV(e,t){return t===pV(e)}function fV(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function mV(e){return Object.keys(e)}function hV(e,t){return[e,t].reduce((e,t)=>(mV(t).forEach(r=>{const n=e[r],o=t[r],i=iV(n)&&iV(o);e[r]=i?hV(n,o):o}),e),{})}function vV(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function yV(){let e=[];const t={add:function(r,n,o,i={passive:!0}){let a;if("addEventListener"in r)r.addEventListener(n,o,i),a=()=>r.removeEventListener(n,o,i);else{const e=r;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function gV(e,t,r,n){const o=yV(),i=1e3/60;let a=null,s=0,l=0;function c(e){if(!l)return;a||(a=e,r(),r());const o=e-a;for(a=e,s+=o;s>=i;)r(),s-=i;n(s/i),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){u(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:r,render:n}}function bV(e=0,t=0){const r=aV(e-t);function n(t){return t<e}function o(e){return e>t}function i(e){return n(e)||o(e)}return{length:r,max:t,min:e,constrain:function(r){return i(r)?n(r)?e:t:r},reachedAny:i,reachedMax:o,reachedMin:n,removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function wV(e,t,r){const{constrain:n}=bV(0,e),o=e+1;let i=a(t);function a(e){return r?aV((o+e)%o):n(e)}function s(){return i}function l(){return wV(e,s(),r)}const c={get:s,set:function(e){return i=a(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function xV(e,t,r,n,o,i,a,s,l,c,u,p,d,f,m,h,v,y,g){const{cross:b,direction:w}=e,x=["INPUT","SELECT","TEXTAREA"],O={passive:!1},E=yV(),k=yV(),j=bV(50,225).constrain(f.measure(20)),P={mouse:300,touch:400},S={mouse:500,touch:600},C=m?43:25;let N=!1,T=0,z=0,L=!1,M=!1,D=!1,A=!1;function R(e){if(!vV(e,n)&&e.touches.length>=2)return I(e);const t=i.readPoint(e),r=i.readPoint(e,b),a=lV(t,T),l=lV(r,z);if(!M&&!A){if(!e.cancelable)return I(e);if(M=a>l,!M)return I(e)}const u=i.pointerMove(e);a>h&&(D=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(w(u)),e.preventDefault()}function I(e){const t=u.byDistance(0,!1).index!==p.get(),r=i.pointerUp(e)*(m?S:P)[A?"mouse":"touch"],n=function(e,t){const r=p.add(-1*sV(e)),n=u.byDistance(e,!m).distance;return m||aV(e)<j?n:v&&t?.5*n:u.byIndex(r.get(),0).distance}(w(r),t),o=function(e,t){if(0===e||0===t)return 0;if(aV(e)<=aV(t))return 0;const r=lV(aV(e),aV(t));return aV(r/e)}(r,n),a=C-10*o,s=y+o/50;M=!1,L=!1,k.clear(),c.useDuration(a).useFriction(s),l.distance(n,!m),A=!1,d.emit("pointerUp")}function B(e){D&&(e.stopPropagation(),e.preventDefault(),D=!1)}return{init:function(e){if(!g)return;function s(s){(oV(g)||g(e,s))&&function(e){const s=vV(e,n);if(A=s,D=m&&s&&!e.buttons&&N,N=lV(o.get(),a.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target))return;L=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),o.set(a),function(){const e=A?r:t;k.add(e,"touchmove",R,O).add(e,"touchend",I).add(e,"mousemove",R,O).add(e,"mouseup",I)}(),T=i.readPoint(e),z=i.readPoint(e,b),d.emit("pointerDown")}(s)}const l=t;E.add(l,"dragstart",e=>e.preventDefault(),O).add(l,"touchmove",()=>{},O).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",I).add(l,"contextmenu",I).add(l,"click",B,!0)},destroy:function(){E.clear(),k.clear()},pointerDown:function(){return L}}}function OV(e,t){let r,n;function o(e){return e.timeStamp}function i(r,n){const o="client"+("x"===(n||e.scroll)?"X":"Y");return(vV(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,i(e)},pointerMove:function(e){const t=i(e)-i(n),a=o(e)-o(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;const t=i(n)-i(r),a=o(e)-o(r),s=o(e)-o(n)>170,l=t/a;return a&&!s&&aV(l)>.1?l:0},readPoint:i}}function EV(e,t,r,n,o,i,a){const s=[e].concat(n);let l,c,u=[],p=!1;function d(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(c=d(e),u=n.map(d),l=new ResizeObserver(r=>{(oV(i)||i(o,r))&&function(r){for(const i of r){if(p)return;const r=i.target===e,a=n.indexOf(i.target),s=r?c:u[a];if(aV(d(r?e:n[a])-s)>=.5){o.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function kV(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),s=bV(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(r.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",u=aV(e[l]-t.get()),p=r.get()-t.get(),d=s.constrain(u/a);r.subtract(p*d),!o&&aV(p)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function jV(e,t,r,n){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:s}=bV(o,i);return{loop:function(t){if(!function(e){return 1===e?s(r.get()):-1===e&&a(r.get())}(t))return;const o=e*(-1*t);n.forEach(e=>e.add(o))}}}function PV(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>aV(e)-aV(t))[0]}function c(t,n){const o=[t,t+r,t-r];if(!e)return t;if(!n)return l(o);const i=o.filter(e=>sV(e)===n);return i.length?l(i):uV(o)-r}const u={byDistance:function(r,n){const l=o.get()+r,{index:u,distance:p}=function(r){const n=e?a(r):s(r),o=t.map((e,t)=>({diff:c(e-n,0),index:t})).sort((e,t)=>aV(e.diff)-aV(t.diff)),{index:i}=o[0];return{index:i,distance:n}}(l),d=!e&&i(l);return!n||d?{index:u,distance:r}:{index:u,distance:r+c(t[u]-p,0)}},byIndex:function(e,r){return{index:e,distance:c(t[e]-o.get(),r)}},shortcut:c};return u}function SV(e,t,r,n,o,i,a,s){const l={passive:!0,capture:!0};let c=0;function u(e){"Tab"===e.code&&(c=(new Date).getTime())}const p={init:function(p){s&&(i.add(document,"keydown",u,!1),t.forEach((t,u)=>{i.add(t,"focus",t=>{(oV(s)||s(p,t))&&function(t){if((new Date).getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const i=r.findIndex(e=>e.includes(t));rV(i)&&(o.useDuration(0),n.index(i,0),a.emit("slideFocus"))}(u)},l)}))}};return p}function CV(e){let t=e;function r(e){return rV(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function NV(e,t){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style;let o=null,i=!1;return{clear:function(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const a=(s=e.direction(t),Math.round(100*s)/100);var s;a!==o&&(n.transform=r(a),o=a)},toggleActive:function(e){i=!e}}}function TV(e,t,r,n,o,i,a,s,l){const c=cV(o),u=cV(o).reverse(),p=function(){const e=a[0];return m(f(u,e),r,!1)}().concat(function(){const e=t-a[0]-1;return m(f(c,e),-r,!0)}());function d(e,t){return e.reduce((e,t)=>e-o[t],t)}function f(e,t){return e.reduce((e,r)=>d(e,t)>0?e.concat([r]):e,[])}function m(o,a,c){const u=function(e){return i.map((r,o)=>({start:r-n[o]+.5+e,end:r+t-.5+e}))}(a);return o.map(t=>{const n=c?0:-r,o=c?r:0,i=c?"end":"start",a=u[t][i];return{index:t,loopPoint:a,slideLocation:CV(-1),translate:NV(e,l[t]),target:()=>s.get()>a?n:o}})}const h={canLoop:function(){return p.every(({index:e})=>d(c.filter(t=>t!==e),t)<=.1)},clear:function(){p.forEach(e=>e.translate.clear())},loop:function(){p.forEach(e=>{const{target:t,translate:r,slideLocation:n}=e,o=t();o!==n.get()&&(r.to(o),n.set(o))})},loopPoints:p};return h}function zV(e,t,r){let n,o=!1;return{init:function(i){r&&(n=new MutationObserver(e=>{o||(oV(r)||r(i,e))&&function(e){for(const r of e)if("childList"===r.type){i.reInit(),t.emit("slidesChanged");break}}(e)}),n.observe(e,{childList:!0}))},destroy:function(){n&&n.disconnect(),o=!0}}}function LV(e,t,r,n){const o={};let i,a=null,s=null,l=!1;const c={init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{const r=t.indexOf(e.target);o[r]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return mV(o).reduce((t,r)=>{const n=parseInt(r),{isIntersecting:i}=o[n];return(e&&i||!e&&!i)&&t.push(n),t},[])}(e);return e&&(a=t),e||(s=t),t}};return c}function MV(e,t,r,n,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:p}=e,d=rV(r);const f={groupSlides:function(e){return d?function(e,t){return cV(e).filter(e=>e%t===0).map(r=>e.slice(r,r+t))}(e,r):function(e){return e.length?cV(e).reduce((r,d,f)=>{const m=uV(r)||0,h=0===m,v=d===pV(e),y=o[c]-i[m][c],g=o[c]-i[d][u],b=!n&&h?p(a):0,w=aV(g-(!n&&v?p(s):0)-(y+b));return f&&w>t+l&&r.push(d),v&&r.push(e.length),r},[]).map((t,r,n)=>{const o=Math.max(n[r-1]||0);return e.slice(o,t)}):[]}(e)}};return f}function DV(e,t,r,n,o,i,a){const{align:s,axis:l,direction:c,startIndex:u,loop:p,duration:d,dragFree:f,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:g,watchResize:b,watchSlides:w,watchDrag:x,watchFocus:O}=i,E={measure:function(e){const{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:o}=e;return{top:t,right:r+n,bottom:t+o,left:r,width:n,height:o}}},k=E.measure(t),j=r.map(E.measure),P=function(e,t){const r="rtl"===t,n="y"===e,o=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){const{height:t,width:r}=e;return n?t:r},direction:function(e){return e*o}}}(l,c),S=P.measureSize(k),C=function(e){return{measure:function(t){return e*(t/100)}}}(S),N=function(e,t){const r={start:function(){return 0},center:function(e){return n(e)/2},end:n};function n(e){return t-e}const o={measure:function(n,o){return nV(e)?r[e](n):e(t,n,o)}};return o}(s,S),T=!p&&!!g,z=p||!!g,{slideSizes:L,slideSizesWithGaps:M,startGap:D,endGap:A}=function(e,t,r,n,o,i){const{measureSize:a,startEdge:s,endEdge:l}=e,c=r[0]&&o,u=function(){if(!c)return 0;const e=r[0];return aV(t[s]-e[s])}(),p=function(){if(!c)return 0;const e=i.getComputedStyle(uV(n));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),d=r.map(a),f=r.map((e,t,r)=>{const n=!t,o=dV(r,t);return n?d[t]+u:o?d[t]+p:r[t+1][s]-e[s]}).map(aV);return{slideSizes:d,slideSizesWithGaps:f,startGap:u,endGap:p}}(P,k,j,r,z,o),R=MV(P,S,v,p,k,j,D,A,2),{snaps:I,snapsAligned:B}=function(e,t,r,n,o){const{startEdge:i,endEdge:a}=e,{groupSlides:s}=o,l=s(n).map(e=>uV(e)[a]-e[0][i]).map(aV).map(t.measure),c=n.map(e=>r[i]-e[i]).map(e=>-aV(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(P,N,k,j,R),_=-uV(I)+uV(M),{snapsContained:W,scrollContainLimit:F}=function(e,t,r,n,o){const i=bV(-t+e,0),a=r.map((e,t)=>{const{min:n,max:o}=i,a=i.constrain(e),s=!t,l=dV(r,t);return s?o:l||c(n,a)?n:c(o,a)?o:a}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=a[0],t=uV(a);return bV(a.lastIndexOf(e),a.indexOf(t)+1)}(),l=function(){if(t<=e+o)return[i.max];if("keepSnaps"===n)return a;const{min:r,max:l}=s;return a.slice(r,l)}();function c(e,t){return lV(e,t)<=1}return{snapsContained:l,scrollContainLimit:s}}(S,_,B,g,2),V=T?W:B,{limit:$}=function(e,t,r){const n=t[0];return{limit:bV(r?n-e:uV(t),n)}}(_,V,p),H=wV(pV(V),u,p),q=H.clone(),U=cV(r),Y=gV(n,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(se),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:o,scrollLooper:i,slideLooper:a,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:p}},d)=>{const f=e.settled(),m=!u.shouldConstrain(),h=p?f:f&&m,v=h&&!s.pointerDown();v&&l.stop();const y=r.get()*d+o.get()*(1-d);n.set(y),p&&(i.loop(e.direction()),a.loop()),t.to(n.get()),v&&c.emit("settle"),h||c.emit("scroll")})(se,e)),G=V[H.get()],X=CV(G),K=CV(G),Z=CV(G),Q=CV(G),J=function(e,t,r,n,o,i){let a=0,s=0,l=o,c=i,u=e.get(),p=0;function d(e){return l=e,m}function f(e){return c=e,m}const m={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let o=0;return l?(r.set(e),a+=t/l,a*=c,u+=a,e.add(a),o=u-p):(a=0,r.set(n),e.set(n),o=t),s=sV(o),p=u,m},settled:function(){return aV(n.get()-t.get())<.001},useBaseFriction:function(){return f(i)},useBaseDuration:function(){return d(o)},useFriction:f,useDuration:d};return m}(X,Z,K,Q,d,.68),ee=PV(p,V,_,$,Q),te=function(e,t,r,n,o,i,a){function s(o){const s=o.distance,l=o.index!==t.get();i.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,r){const n=t.clone().set(e);s(o.byIndex(n.get(),r))}}}(Y,H,q,J,ee,Q,a),re=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}($),ne=yV(),oe=LV(t,r,a,h),{slideRegistry:ie}=function(e,t,r,n,o,i){const{groupSlides:a}=o,{min:s,max:l}=n,c=function(){const n=a(i),o=!e||"keepSnaps"===t;return 1===r.length?[i]:o?n:n.slice(s,l).map((e,t,r)=>{const n=!t,o=dV(r,t);return n?fV(uV(r[0])+1):o?fV(pV(i)-uV(r)[0]+1,uV(r)[0]):e})}();return{slideRegistry:c}}(T,g,V,F,R,U),ae=SV(e,r,ie,te,J,ne,a,O),se={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:k,slideRects:j,animation:Y,axis:P,dragHandler:xV(P,e,n,o,Q,OV(P,o),X,Y,te,J,ee,H,a,C,f,m,y,.68,x),eventStore:ne,percentOfView:C,index:H,indexPrevious:q,limit:$,location:X,offsetLocation:Z,previousLocation:K,options:i,resizeHandler:EV(t,a,o,r,P,b,E),scrollBody:J,scrollBounds:kV($,Z,Q,J,C),scrollLooper:jV(_,$,Z,[X,Z,K,Q]),scrollProgress:re,scrollSnapList:V.map(re.get),scrollSnaps:V,scrollTarget:ee,scrollTo:te,slideLooper:TV(P,S,_,L,M,I,V,Z,r),slideFocus:ae,slidesHandler:zV(t,a,w),slidesInView:oe,slideIndexes:U,slideRegistry:ie,slidesToScroll:R,target:Q,translate:NV(P,t)};return se}const AV={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function RV(e){function t(e,t){return hV(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},o=mV(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,o)},optionsMediaQueries:function(t){return t.map(e=>mV(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return r}function IV(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=RV(o),a=function(e){let t=[];const r={init:function(r,n){return t=n.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(r,e)),n.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}};return r}(i),s=yV(),l=function(){let e,t={};function r(e){return t[e]||[]}const n={init:function(t){e=t},emit:function(t){return r(t).forEach(r=>r(e,t)),n},off:function(e,o){return t[e]=r(e).filter(e=>e!==o),n},on:function(e,o){return t[e]=r(e).concat([o]),n},clear:function(){t={}}};return n}(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:p}=i,{on:d,off:f,emit:m}=l,h=P;let v,y,g,b,w=!1,x=c(AV,IV.globalOptions),O=c(x),E=[];function k(t){const r=DV(e,g,b,n,o,t,l);if(t.loop&&!r.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}))}return r}function j(t,r){w||(x=c(x,t),O=u(x),E=r||E,function(){const{container:t,slides:r}=O,n=nV(t)?e.querySelector(t):t;g=n||e.children[0];const o=nV(r)?g.querySelectorAll(r):r;b=[].slice.call(o||g.children)}(),v=k(O),p([x,...E.map(({options:e})=>e)]).forEach(e=>s.add(e,"change",P)),O.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(T),v.eventHandler.init(T),v.resizeHandler.init(T),v.slidesHandler.init(T),v.options.loop&&v.slideLooper.loop(),g.offsetParent&&b.length&&v.dragHandler.init(T),y=a.init(T,E)))}function P(e,t){const r=N();S(),j(c({startIndex:r},e),t),l.emit("reInit")}function S(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),s.clear()}function C(e,t,r){O.active&&!w&&(v.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),v.scrollTo.index(e,r||0))}function N(){return v.index.get()}const T={canScrollNext:function(){return v.index.add(1).get()!==N()},canScrollPrev:function(){return v.index.add(-1).get()!==N()},containerNode:function(){return g},internalEngine:function(){return v},destroy:function(){w||(w=!0,s.clear(),S(),l.emit("destroy"),l.clear())},off:f,on:d,emit:m,plugins:function(){return y},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){C(v.index.add(1).get(),e,-1)},scrollPrev:function(e){C(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.offsetLocation.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:C,selectedScrollSnap:N,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return j(t,r),setTimeout(()=>l.emit("init"),0),T}function BV(e={},t=[]){const r=c(e),n=c(t),[o,s]=i(),[u,p]=i(),d=l(()=>{o&&o.reInit(r.current,n.current)},[o]);return a(()=>{eV(r.current,e)||(r.current=e,d())},[e,d]),a(()=>{(function(e,t){if(e.length!==t.length)return!1;const r=tV(e),n=tV(t);return r.every((e,t)=>eV(e,n[t]))})(n.current,t)||(n.current=t,d())},[t,d]),a(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){IV.globalOptions=BV.globalOptions;const e=IV(u,r.current,n.current);return s(e),()=>e.destroy()}s(void 0)},[u,s]),[p,o]}IV.globalOptions=void 0,BV.globalOptions=void 0;const _V=5e3,WV=m(null),FV=r(({children:e,orientation:r="x",showArrows:n=!0,showDots:o=!0,autoPlay:c=!1,interval:u=_V,disabled:p=!1,onSlideChange:d,className:f,...m},h)=>{const v="y"===r,[y,g]=BV({loop:!0,align:"start",axis:v?"y":"x",dragFree:!1,slidesToScroll:1,containScroll:"keepSnaps"}),[b,w]=i(!0),[O,E]=i(!0),[k,j]=i(0),P=x.count(e),S=s(()=>({selectedIndex:k,scrollNext:()=>g?.scrollNext(),scrollPrev:()=>g?.scrollPrev(),canScrollNext:!O,canScrollPrev:!b,setSelectedIndex:e=>{g?.scrollTo(e)}}),[g,O,b,k]),C=l(e=>{j(e.selectedScrollSnap()),w(!e.canScrollPrev()),E(!e.canScrollNext()),d?.(e.selectedScrollSnap())},[d]);return a(()=>{g&&(C(g),g.on("select",()=>C(g)),g.on("reInit",()=>C(g)))},[g,C]),a(()=>{if(!g||!c)return;const e=setInterval(()=>{O?g.scrollTo(0):g.scrollNext()},u);return()=>clearInterval(e)},[g,c,u,O]),t.createElement(WV.Provider,{value:S},t.createElement("div",{ref:h,className:Be("relative group",v?"h-96":"w-full",f),role:"region","aria-roledescription":"carousel",style:{perspective:"1000px",perspectiveOrigin:"center center",overflow:"hidden"},...m},t.createElement("div",{ref:y,className:Be("overflow-hidden h-full","rounded-2xl"),style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",willChange:"transform",transformStyle:"preserve-3d"}},t.createElement("div",{className:Be("flex will-change-transform h-full",v?"flex-col":"flex-row")},x.map(e,(e,r)=>t.createElement("div",{className:Be("transform transition-all duration-700 ease-out",v?"min-h-0 h-full w-full flex-[0_0_100%]":"min-w-0 w-full flex-[0_0_100%]",r===k?"scale-100 rotate-0 translate-z-0 opacity-100":"scale-95 opacity-0 -translate-z-8"),key:r},e)))),t.createElement("div",{className:Be("absolute z-20 bg-background/30 backdrop-blur-xl px-4 py-2 rounded-full text-sm font-medium text-foreground shadow-xl border border-primary/20 transition-all duration-500 hover:bg-background/50 overflow-hidden group-hover:scale-105",v?"top-4 right-1/2 translate-x-1/2":"bottom-6 right-6")},t.createElement("div",{className:"absolute inset-0 bg-linear-to-r from-primary/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),t.createElement("span",{className:"text-primary font-bold"},k+1),t.createElement("span",{className:"mx-1 opacity-50"},"/"),t.createElement("span",null,P)),n&&t.createElement(t.Fragment,null,t.createElement("div",{className:Be("absolute z-10 transition-opacity duration-300",v?"right-4 top-4":"top-1/2 -translate-y-1/2 left-4 opacity-0 group-hover:opacity-100")},t.createElement(st,{variant:"secondary",size:"small",className:Be("h-12 w-12 rounded-full bg-background/20 backdrop-blur-xl shadow-xl border border-primary/20 transition-all duration-500 ease-out hover:bg-background/40 hover:scale-110 hover:border-primary/50 hover:shadow-primary/30 group/btn"),disabled:p||b,onClick:()=>S.scrollPrev()},t.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),v?t.createElement(Ze,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):t.createElement(Xe,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),t.createElement("span",{className:"sr-only"},"Previous slide"))),t.createElement("div",{className:Be("absolute z-10 transition-opacity duration-300",v?"right-4 bottom-4":"top-1/2 -translate-y-1/2 right-4 opacity-0 group-hover:opacity-100")},t.createElement(st,{variant:"secondary",size:"small",className:Be("h-12 w-12 rounded-full bg-background/20 backdrop-blur-xl shadow-xl border border-primary/20 transition-all duration-500 ease-out hover:bg-background/40 hover:scale-110 hover:border-primary/50 hover:shadow-primary/30 group/btn"),disabled:p||O,onClick:()=>S.scrollNext()},t.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),v?t.createElement(Ge,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):t.createElement(Ke,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),t.createElement("span",{className:"sr-only"},"Next slide")))),o&&t.createElement("div",{className:Be("absolute z-10",v?"right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 px-2 py-4 rounded-full bg-background/10 backdrop-blur-md transition-all duration-700 group-hover:bg-background/20 border border-primary/10 group-hover:border-primary/20":"bottom-6 left-1/2 -translate-x-1/2 flex gap-3 px-4 py-2 rounded-full bg-background/10 backdrop-blur-md transition-all duration-700 group-hover:bg-background/20 border border-primary/10 group-hover:border-primary/20")},x.map(e,(e,r)=>t.createElement("button",{key:r,type:"button",className:Be("h-8 w-8 flex items-center justify-center transition-all duration-500 ease-out hover:scale-125",r===k?"scale-110":"opacity-60 hover:opacity-90"),disabled:p,onClick:()=>S.setSelectedIndex(r)},r===k?t.createElement("div",{className:"w-2 h-2 rounded-full bg-primary shadow-md shadow-primary/30 ring-4 ring-primary/20 transition-all duration-500"}):t.createElement("div",{className:"w-2 h-2 rounded-full bg-muted transition-all duration-500 hover:bg-primary/50"}),t.createElement("span",{className:"sr-only"},"Jump to slide ",r+1))))))});FV.displayName="Carousel";r(({className:e,children:r,...n},o)=>t.createElement("div",{ref:o,role:"group","aria-roledescription":"slide",className:Be("min-w-0 shrink-0 grow-0 basis-full h-full relative overflow-hidden rounded-xl backdrop-blur-lg transition-all duration-700 ease-out will-change-transform shadow-2xl",e),...n},t.createElement("div",{className:"absolute inset-0 bg-linear-to-br from-background/5 via-primary/5 to-background/5 opacity-80 mix-blend-overlay pointer-events-none"}),t.createElement("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 bg-linear-to-t from-primary/10 to-transparent transition-opacity duration-700 ease-out pointer-events-none"}),t.createElement("div",{className:"absolute top-0 right-0 w-24 h-24 -translate-y-8 translate-x-8 bg-primary/20 rounded-full blur-3xl pointer-events-none"}),t.createElement("div",{className:"absolute bottom-0 left-0 w-32 h-32 translate-y-16 -translate-x-16 bg-secondary/10 rounded-full blur-3xl pointer-events-none"}),r)).displayName="CarouselItem";var VV=Object.defineProperty,$V=Object.defineProperties,HV=Object.getOwnPropertyDescriptors,qV=Object.getOwnPropertySymbols,UV=Object.prototype.hasOwnProperty,YV=Object.prototype.propertyIsEnumerable,GV=(e,t,r)=>t in e?VV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var XV=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var KV=e.createContext({}),ZV=e.forwardRef((t,r)=>{var n,o,i,a,s,l=t,{value:c,onChange:u,maxLength:p,textAlign:d="left",pattern:f,placeholder:m,inputMode:h="numeric",onComplete:v,pushPasswordManagerStrategy:y="increase-width",pasteTransformer:g,containerClassName:b,noScriptCSSFallback:w=JV,render:x,children:O}=l,E=((e,t)=>{var r={};for(var n in e)UV.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&qV)for(var n of qV(e))t.indexOf(n)<0&&YV.call(e,n)&&(r[n]=e[n]);return r})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,j]=e.useState("string"==typeof E.defaultValue?E.defaultValue:""),P=null!=c?c:k,S=function(t){let r=e.useRef();return e.useEffect(()=>{r.current=t}),r.current}(P),C=e.useCallback(e=>{null==u||u(e),j(e)},[u]),N=e.useMemo(()=>f?"string"==typeof f?new RegExp(f):f:null,[f]),T=e.useRef(null),z=e.useRef(null),L=e.useRef({value:P,onChange:C,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),M=e.useRef({prev:[null==(i=T.current)?void 0:i.selectionStart,null==(a=T.current)?void 0:a.selectionEnd,null==(s=T.current)?void 0:s.selectionDirection]});e.useImperativeHandle(r,()=>T.current,[]),e.useEffect(()=>{let e=T.current,t=z.current;if(!e||!t)return;function r(){if(document.activeElement!==e)return _(null),void F(null);let t,r=e.selectionStart,n=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=M.current.prev,l=-1,c=-1;if(0!==a.length&&null!==r&&null!==n){let e=r===n,o=r===a.length&&a.length<i;if(e&&!o){let e=r;if(0===e)l=0,c=1,t="forward";else if(e===i)l=e-1,c=e,t="backward";else if(i>1&&a.length>1){let r=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let n=s[0]===s[1]&&s[0]<i;"backward"===t&&!n&&(r=-1)}l=r+e,c=r+e+1}}-1!==l&&-1!==c&&l!==c&&T.current.setSelectionRange(l,c,t)}let u=-1!==l?l:r,p=-1!==c?c:n,d=null!=t?t:o;_(u),F(p),M.current.prev=[u,p,d]}if(L.current.value!==e.value&&L.current.onChange(e.value),M.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&I(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";QV(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),QV(e.sheet,`[data-input-otp]:autofill { ${t} }`),QV(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),QV(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),QV(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let o=new ResizeObserver(n);return o.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),o.disconnect()}},[]);let[D,A]=e.useState(!1),[R,I]=e.useState(!1),[B,_]=e.useState(null),[W,F]=e.useState(null);e.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,r,n;null==(e=T.current)||e.dispatchEvent(new Event("input"));let o=null==(t=T.current)?void 0:t.selectionStart,i=null==(r=T.current)?void 0:r.selectionEnd,a=null==(n=T.current)?void 0:n.selectionDirection;null!==o&&null!==i&&(_(o),F(i),M.current.prev=[o,i,a])})},[P,R]),e.useEffect(()=>{void 0!==S&&P!==S&&S.length<p&&P.length===p&&(null==v||v(P))},[p,v,S,P]);let V=function({containerRef:t,inputRef:r,pushPasswordManagerStrategy:n,isFocused:o}){let[i,a]=e.useState(!1),[s,l]=e.useState(!1),[c,u]=e.useState(!1),p=e.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&s,[i,s,n]),d=e.useCallback(()=>{let e=t.current,o=r.current;if(!e||!o||c||"none"===n)return;let i=e,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(XV).length&&document.elementFromPoint(s,l)===e||(a(!0),u(!0))},[t,r,c,n]);return e.useEffect(()=>{let e=t.current;if(!e||"none"===n)return;function r(){let t=window.innerWidth-e.getBoundingClientRect().right;l(t>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}},[t,n]),e.useEffect(()=>{let e=o||document.activeElement===r.current;if("none"===n||!e)return;let t=setTimeout(d,0),i=setTimeout(d,2e3),a=setTimeout(d,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(t),clearTimeout(i),clearTimeout(a),clearTimeout(s)}},[r,o,n,d]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:T,pushPasswordManagerStrategy:y,isFocused:R}),$=e.useCallback(e=>{let t=e.currentTarget.value.slice(0,p);t.length>0&&N&&!N.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),C(t))},[p,C,S,N]),H=e.useCallback(()=>{var e;if(T.current){let t=Math.min(T.current.value.length,p-1),r=T.current.value.length;null==(e=T.current)||e.setSelectionRange(t,r),_(t),F(r)}I(!0)},[p]),q=e.useCallback(e=>{var t,r;let n=T.current;if(!(g||L.current.isIOS&&e.clipboardData&&n))return;let o=e.clipboardData.getData("text/plain"),i=g?g(o):o;e.preventDefault();let a=null==(t=T.current)?void 0:t.selectionStart,s=null==(r=T.current)?void 0:r.selectionEnd,l=(a!==s?P.slice(0,a)+i+P.slice(s):P.slice(0,a)+i+P.slice(a)).slice(0,p);if(l.length>0&&N&&!N.test(l))return;n.value=l,C(l);let c=Math.min(l.length,p-1),u=l.length;n.setSelectionRange(c,u),_(c),F(u)},[p,C,N,P]),U=e.useMemo(()=>({position:"relative",cursor:E.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[E.disabled]),Y=e.useMemo(()=>({position:"absolute",inset:0,width:V.willPushPWMBadge?`calc(100% + ${V.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:V.willPushPWMBadge?`inset(0 ${V.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:d,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[V.PWM_BADGE_SPACE_WIDTH,V.willPushPWMBadge,d]),G=e.useMemo(()=>e.createElement("input",((e,t)=>$V(e,HV(t)))(((e,t)=>{for(var r in t||(t={}))UV.call(t,r)&&GV(e,r,t[r]);if(qV)for(var r of qV(t))YV.call(t,r)&&GV(e,r,t[r]);return e})({autoComplete:E.autoComplete||"one-time-code"},E),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":B,"data-input-otp-mse":W,inputMode:h,pattern:null==N?void 0:N.source,"aria-placeholder":m,style:Y,maxLength:p,value:P,ref:T,onPaste:e=>{var t;q(e),null==(t=E.onPaste)||t.call(E,e)},onChange:$,onMouseOver:e=>{var t;A(!0),null==(t=E.onMouseOver)||t.call(E,e)},onMouseLeave:e=>{var t;A(!1),null==(t=E.onMouseLeave)||t.call(E,e)},onFocus:e=>{var t;H(),null==(t=E.onFocus)||t.call(E,e)},onBlur:e=>{var t;I(!1),null==(t=E.onBlur)||t.call(E,e)}})),[$,H,q,h,Y,p,W,B,E,null==N?void 0:N.source,P]),X=e.useMemo(()=>({slots:Array.from({length:p}).map((e,t)=>{var r;let n=R&&null!==B&&null!==W&&(B===W&&t===B||t>=B&&t<W),o=void 0!==P[t]?P[t]:null;return{char:o,placeholderChar:void 0!==P[0]?null:null!=(r=null==m?void 0:m[t])?r:null,isActive:n,hasFakeCaret:n&&null===o}}),isFocused:R,isHovering:!E.disabled&&D}),[R,D,p,W,B,E.disabled,P]),K=e.useMemo(()=>x?x(X):e.createElement(KV.Provider,{value:X},O),[O,X,x]);return e.createElement(e.Fragment,null,null!==w&&e.createElement("noscript",null,e.createElement("style",null,w)),e.createElement("div",{ref:z,"data-input-otp-container":!0,style:U,className:b},K,e.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});function QV(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}ZV.displayName="Input";var JV="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const e$=e.forwardRef(({className:t,containerClassName:r,...n},o)=>e.createElement(ZV,{ref:o,containerClassName:Be("flex items-center gap-2 has-disabled:opacity-50",r),className:Be("disabled:cursor-not-allowed",t),...n}));e$.displayName="InputOTP";const t$=e.forwardRef(({className:t,...r},n)=>e.createElement("div",{ref:n,className:Be("flex items-center",t),...r}));t$.displayName="InputOTPGroup";const r$=e.forwardRef(({index:t,className:r,...n},o)=>{const i=e.useContext(KV),{char:a,hasFakeCaret:s,isActive:l}=i.slots[t];return e.createElement("div",{ref:o,className:Be("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-xs transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-1 ring-ring",r),...n},a,s&&e.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center"},e.createElement("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})))});r$.displayName="InputOTPSlot";e.forwardRef(({...t},r)=>e.createElement("div",{ref:r,role:"separator",...t},e.createElement(jk,null))).displayName="InputOTPSeparator";const n$=({value:e,maxLength:r=6,onChange:n,disabled:o=!1,isError:i=!1,placeholder:a="○",className:s})=>t.createElement(e$,{value:e,maxLength:r,onChange:n,disabled:o,className:s},t.createElement("div",{"aria-disabled":o},t.createElement(t$,{role:"group",className:Be("gap-2",i&&"input-error")},Array.from({length:r}).map((r,n)=>t.createElement("div",{key:n,role:"textbox","data-value":e?.[n]||""},t.createElement(r$,{index:n,className:Be("rounded-md border",i&&"border-destructive focus:ring-destructive")},e?.[n]||a))))));n$.displayName="OTPInput";var o$="AlertDialog",[i$,a$]=Eg(o$,[fN]),s$=fN(),l$=e=>{const{__scopeAlertDialog:t,...r}=e,n=s$(t);return E(HN,{...n,...r,modal:!0})};l$.displayName=o$;var c$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(qN,{...o,...n,ref:t})});c$.displayName="AlertDialogTrigger";var u$=e=>{const{__scopeAlertDialog:t,...r}=e,n=s$(t);return E(UN,{...n,...r})};u$.displayName="AlertDialogPortal";var p$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(YN,{...o,...n,ref:t})});p$.displayName="AlertDialogOverlay";var d$="AlertDialogContent",[f$,m$]=i$(d$),h$=function(e){const t=({children:e})=>E(k,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Cg,t}("AlertDialogContent"),v$=e.forwardRef((t,r)=>{const{__scopeAlertDialog:n,children:o,...i}=t,a=s$(n),s=e.useRef(null),l=Og(r,s),c=e.useRef(null);return E(WN,{contentName:d$,titleName:y$,docsSlug:"alert-dialog",children:E(f$,{scope:n,cancelRef:c,children:j(GN,{role:"alertdialog",...a,...i,ref:l,onOpenAutoFocus:bg(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[E(h$,{children:o}),E(k$,{contentRef:s})]})})})});v$.displayName=d$;var y$="AlertDialogTitle",g$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(XN,{...o,...n,ref:t})});g$.displayName=y$;var b$="AlertDialogDescription",w$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(KN,{...o,...n,ref:t})});w$.displayName=b$;var x$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=s$(r);return E(ZN,{...o,...n,ref:t})});x$.displayName="AlertDialogAction";var O$="AlertDialogCancel",E$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=m$(O$,r),i=s$(r),a=Og(t,o);return E(ZN,{...i,...n,ref:a})});E$.displayName=O$;var k$=({contentRef:t})=>{const r=`\`${d$}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${d$}\` by passing a \`${b$}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${d$}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},j$=p$,P$=v$,S$=x$,C$=E$,N$=g$,T$=w$;const z$=l$,L$=c$,M$=u$,D$=e.forwardRef(({className:t,...r},n)=>e.createElement(j$,{className:Be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:n}));D$.displayName=j$.displayName;const A$=e.forwardRef(({className:t,...r},n)=>e.createElement(M$,null,e.createElement(D$,null),e.createElement(P$,{ref:n,className:Be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})));A$.displayName=P$.displayName;const R$=({className:t,...r})=>e.createElement("div",{className:Be("flex flex-col space-y-2 text-center sm:text-left",t),...r});R$.displayName="AlertDialogHeader";const I$=({className:t,...r})=>e.createElement("div",{className:Be("space-x-3 text-right",t),...r});I$.displayName="AlertDialogFooter";const B$=e.forwardRef(({className:t,...r},n)=>e.createElement(N$,{ref:n,className:Be("text-lg font-semibold",t),...r}));B$.displayName=N$.displayName;const _$=e.forwardRef(({className:t,...r},n)=>e.createElement(T$,{ref:n,className:Be("text-sm text-muted-foreground",t),...r}));_$.displayName=T$.displayName;const W$=e.forwardRef(({className:t,...r},n)=>e.createElement(S$,{ref:n,className:Be(vS(),t),...r}));W$.displayName=S$.displayName;const F$=e.forwardRef(({className:t,...r},n)=>e.createElement(C$,{ref:n,className:Be(vS({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));F$.displayName=C$.displayName;const V$={CANCEL_TEXT:"Cancel",VARIANT:"default",DISABLED:!1},$$=({title:e,description:r,trigger:n,action:o,cancel:i=V$.CANCEL_TEXT,onAction:a,onCancel:s,variant:l=V$.VARIANT,disabled:c=V$.DISABLED,open:u,onOpenChange:p})=>t.createElement(z$,{open:u,onOpenChange:p},!u&&t.createElement(L$,{asChild:!0},"string"==typeof n?t.createElement(st,{variant:"secondary",disabled:c},n):n),t.createElement(A$,null,t.createElement(R$,null,t.createElement(B$,null,e),t.createElement(_$,null,r)),t.createElement(I$,null,t.createElement(F$,{onClick:s,className:Be("destructive"===l&&"border-destructive/50")},i),t.createElement(W$,{onClick:a,className:Be("destructive"===l&&"bg-destructive hover:bg-destructive/90")},o)))),H$=!1,q$="chevron",U$="right",Y$="",G$="",X$="",K$=300,Z$=({title:e,children:r,defaultOpen:n=H$,icon:o=q$,iconPosition:a=U$,className:s=Y$,headerClassName:c=G$,contentClassName:u=X$,animationDuration:p=K$,onToggle:d})=>{const[f,m]=i(n),h=l(()=>{const e=!f;m(e),d&&d(e)},[f,d]),v=l(()=>"chevron"===o?f?t.createElement(Ze,{size:20}):t.createElement(Ge,{size:20}):null,[o,f]);return t.createElement("div",{className:`collapsible-container border rounded-md overflow-hidden ${s}`,"data-state":f?"open":"closed"},t.createElement("button",{type:"button",onClick:h,className:`flex items-center justify-between w-full p-4 text-left font-medium transition-all hover:bg-muted/50 ${c}`,"aria-expanded":f},"left"===a&&v(),t.createElement("span",null,e),"right"===a&&v()),t.createElement("div",{className:`overflow-hidden transition-all ${u}`,style:{maxHeight:f?"1000px":"0px",opacity:f?1:0,transitionDuration:`${p}ms`}},t.createElement("div",{className:"p-4 border-t bg-background"},r)))},Q$={simple:{title:"Click to expand",content:t.createElement(()=>t.createElement("div",null,"This is a simple collapsible content area."),null)},complex:{title:"Product Information",content:t.createElement(()=>t.createElement("div",null,t.createElement("h3",{className:"text-lg font-semibold mb-2"},"Product Features"),t.createElement("ul",{className:"list-disc pl-5 mb-4"},t.createElement("li",null,"Feature one with detailed description"),t.createElement("li",null,"Feature two with even more details about functionality"),t.createElement("li",null,"Feature three with technical specifications")),t.createElement("p",{className:"text-sm text-muted-foreground"},"Additional information about the product can be found in the documentation.")),null)},faq:[{title:"How do I reset my password?",content:t.createElement(()=>t.createElement("div",null,'You can reset your password by clicking on the "Forgot Password" link on the login page and following the instructions sent to your email.'),null)},{title:"What payment methods do you accept?",content:t.createElement(()=>t.createElement("div",null,"We accept all major credit cards, PayPal, and bank transfers. For enterprise customers, we also offer invoicing options."),null)},{title:"Can I cancel my subscription?",content:t.createElement(()=>t.createElement("div",null,"Yes, you can cancel your subscription at any time from your account settings. Your access will continue until the end of your billing period."),null)}]},J$=e=>t.createElement("div",{className:"w-full max-w-3xl mx-auto p-6 rounded-lg border bg-card text-card-foreground shadow-sm"},t.createElement("h2",{className:"text-xl font-bold mb-4"},"Frequently Asked Questions"),Q$.faq.map((r,n)=>t.createElement("div",{key:n,className:n>0?"mt-2":""},t.createElement(Z$,{...e,title:r.title},r.content)))),eH="xsmall",tH="small",rH="medium",nH="large",oH={xsmall:"max-w-xs",small:"max-w-sm",medium:"max-w-2xl",large:"max-w-4xl"},iH={[eH]:{containerPadding:"p-1.5",avatarSize:"w-8 h-8",nameTextSize:"text-sm",metaTextSize:"text-xs",chevronSize:"w-3 h-3"},[tH]:{containerPadding:"p-2",avatarSize:"w-10 h-10",nameTextSize:"text-base",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[rH]:{containerPadding:"p-3",avatarSize:"w-12 h-12",nameTextSize:"text-lg",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[nH]:{containerPadding:"p-4",avatarSize:"w-14 h-14",nameTextSize:"text-xl",metaTextSize:"text-sm",chevronSize:"w-4 h-4"}},aH=({avatarUrl:e,name:r,email:n,position:o,dropdownItems:i=[],size:s=rH,className:u,isDropdownOpen:p=!1,onToggleDropdown:d})=>{const f=c(null),m=i.length,h=iH[s],{containerPadding:v,avatarSize:y,nameTextSize:g,metaTextSize:b,chevronSize:w}=h,x=l(e=>{"Enter"!==e.key&&" "!==e.key||!d||(e.preventDefault(),d())},[d]),O=l((e,t)=>{e.stopPropagation(),t.isDisabled?e.preventDefault():t.onClick&&(e.preventDefault(),t.onClick(),d&&d())},[d]);return a(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&p&&d&&d()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,d]),t.createElement("div",{ref:f,role:m>0?"button":void 0,tabIndex:m>0?0:void 0,onClick:m>0&&d?d:void 0,onKeyDown:m>0?x:void 0,"aria-expanded":m>0?p:void 0,"aria-haspopup":m>0?"menu":void 0,className:Be("inline-block bg-card/95 text-card-foreground rounded-xl overflow-visible backdrop-blur-xs transition-all duration-300",m>0&&d&&"cursor-pointer",oH[s],u)},t.createElement("div",{className:Be("flex items-center gap-3",v)},t.createElement("img",{src:e,alt:`${r} profile`,className:Be("rounded-full border-2 border-background transition-transform duration-300","ring-1 ring-primary/10",y)}),t.createElement("div",null,t.createElement("h2",{className:Be("font-semibold text-foreground",g)},r),o&&t.createElement("p",{className:Be("text-muted-foreground",b)},o),n&&t.createElement("p",{className:Be("text-muted-foreground mt-0.5",b)},n)),m>0&&d&&t.createElement("div",{className:"ml-auto"},t.createElement("div",{className:"p-1"},p?t.createElement(Ze,{className:Be("text-muted-foreground",w)}):t.createElement(Ge,{className:Be("text-muted-foreground",w)})))),p&&m>0&&t.createElement("div",{role:"menu",className:"absolute mt-1 w-full bg-card rounded-md border border-border/30 z-20 py-1 left-0"},i.map((e,r)=>t.createElement("a",{key:r,href:e.link,className:Be("block",{"pointer-events-none":e.isDisabled}),onClick:t=>O(t,e)},t.createElement("div",{role:"menuitem",className:Be("flex items-center px-4 py-2 text-sm",{"opacity-50":e.isDisabled,"cursor-pointer hover:bg-accent/50":!e.isDisabled})},e.icon&&t.createElement("span",{className:"mr-2"},e.icon),e.name)))))},sH="horizontal",lH="tab1",cH=!1,uH="100%";var pH;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(pH||(pH={}));const dH=({items:e,defaultValue:r=lH,orientation:n=sH,disabled:o=cH,onValueChange:s,className:c,width:u=uH})=>{const[p,d]=i(r);a(()=>{if("undefined"!=typeof window){const t=new URLSearchParams(window.location.search).get("tab");t&&e.some(e=>e.value===t)&&(d(t),s?.(t))}},[e,s]);const f=l((e,t)=>{if("undefined"==typeof window)return"";const r=new URLSearchParams(window.location.search);return r.set(e,t),r.toString()},[]),m=l(e=>{if(d(e),"undefined"!=typeof window){const t=f("tab",e),r=`${window.location.pathname}?${t}`;window.history&&window.history.pushState&&window.history.pushState({path:r},"",r)}s&&s(e)},[s,f]),h="vertical"===n,v=e=>Be("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all duration-200",h?"px-4 py-3 w-full justify-start text-left rounded-l-md":"px-5 py-2.5 relative",p===e.value?h?"bg-background/80 text-primary font-semibold shadow-xs backdrop-blur-xs":"text-primary font-semibold":h?"text-muted-foreground hover:text-foreground hover:bg-muted/30":"text-muted-foreground hover:text-foreground",(o||e.disabled)&&"opacity-40 pointer-events-none"),y=l(e=>{o||e.disabled||m(e.value)},[o,m]);return t.createElement("div",{className:Be(h?"flex space-x-6":"space-y-4 flex flex-col items-center",c),style:{width:u}},t.createElement("div",{role:"tablist","aria-orientation":n,className:Be("flex relative",h?"flex-col h-full space-y-1 min-w-[200px] border-r border-border/40 pr-2":"w-full justify-center pb-px")},t.createElement("div",{className:Be("flex relative",h?"flex-col w-full":"border-b border-border/30")},e.map(e=>t.createElement("div",{key:e.value,className:Be("relative",h?"":"border-b-2 border-transparent",p===e.value&&!h&&"border-b-2 border-primary z-10")},t.createElement("button",{role:"tab",type:"button","aria-selected":p===e.value,"aria-controls":`tabpanel-${e.value}`,tabIndex:p===e.value?0:-1,className:v(e),onClick:()=>y(e),disabled:o||e.disabled},e.label,p===e.value&&!h&&t.createElement("div",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-primary rounded-full"})),p===e.value&&h&&t.createElement("div",{className:"absolute top-0 left-0 h-full w-0.5 bg-primary rounded-full"}))))),e.map(e=>t.createElement("div",{key:e.value,role:"tabpanel",id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,hidden:p!==e.value,className:Be("focus-visible:outline-hidden rounded-md",h?"flex-1":"w-full",p===e.value?"animate-in fade-in-0 duration-300":"hidden"),style:h?void 0:{width:u}},e.content)))},fH={small:{node:"w-4 h-4",innerDot:{active:"w-2 h-2",completed:"w-1.5 h-1.5",default:"w-1 h-1"},text:"text-sm",description:"text-xs",connectorTop:"top-2",connectorHeight:"h-10",spacing:"mb-6",marginRight:"mr-4",verticalConnector:{left:"left-[7px]",top:"top-[16px]",height:"h-[calc(100%-16px)]"}},medium:{node:"w-6 h-6",innerDot:{active:"w-3 h-3",completed:"w-2.5 h-2.5",default:"w-2 h-2"},text:"text-base",description:"text-sm",connectorTop:"top-3",connectorHeight:"h-14",spacing:"mb-8",marginRight:"mr-6",verticalConnector:{left:"left-[11px]",top:"top-[24px]",height:"h-[calc(100%-24px)]"}},large:{node:"w-8 h-8",innerDot:{active:"w-4 h-4",completed:"w-3.5 h-3.5",default:"w-3 h-3"},text:"text-lg",description:"text-base",connectorTop:"top-4",connectorHeight:"h-16",spacing:"mb-10",marginRight:"mr-8",verticalConnector:{left:"left-[15px]",top:"top-[32px]",height:"h-[calc(100%-32px)]"}}},mH=({steps:e,activeStep:r=0,orientation:n="horizontal",size:o="medium",className:i,onStepClick:a})=>{const s="horizontal"===n,l=fH[o];return t.createElement("div",{className:Be("max-w-full mx-auto mb-4 px-8",i)},t.createElement("div",{className:Be("flex relative p-0",s?"flex-row justify-between":"flex-col")},e.map((n,o)=>{const i=o===r,c=o<r,u=a?t.createElement("button",{type:"button",className:Be("relative text-left w-full bg-transparent border-0 p-0 m-0",s?"flex-1 flex flex-col items-center px-4":"flex items-start w-full p-0 pb-12 last:pb-0",i&&"active",c&&"completed"),onClick:()=>a(o),"aria-current":i?"step":void 0},t.createElement("div",{className:Be("flex justify-center items-center rounded-full relative transition-all duration-300 ease-in-out z-10",l.node,s?"mb-6":"absolute",i?"border-2 border-primary shadow-[0_0_0_4px_rgba(var(--primary),0.2)] bg-background":c?"border-2 border-primary bg-primary":"border-2 border-border bg-background")},t.createElement("div",{className:Be("rounded-full transition-all duration-300 ease-in-out",i?Be(l.innerDot.active,"bg-primary"):c?Be(l.innerDot.completed,"bg-primary-foreground"):Be(l.innerDot.default,"bg-muted-foreground/50"))})),o<e.length-1&&t.createElement("div",{className:Be("absolute transition-all duration-300 ease-in-out",s?`h-0.5 ${l.connectorTop} -translate-y-1/2 left-[calc(50%+12px+1rem)] right-[calc(-50%+12px+1rem)]`:`w-0.5 ${l.verticalConnector.left} ${l.verticalConnector.top} ${l.verticalConnector.height}`,c?"bg-primary":"bg-border")}),t.createElement("div",{className:Be(s?"text-center px-4":"flex-1 ml-10")},t.createElement("h3",{className:Be("transition-opacity duration-300 ease-in-out m-0",l.text,i?"text-primary font-medium opacity-100":c?"text-primary font-normal opacity-90":"text-foreground font-normal opacity-70")},n.label),n.description&&t.createElement("p",{className:Be("text-muted-foreground mt-1",l.description)},n.description))):t.createElement("div",{className:Be("relative",s?"flex-1 flex flex-col items-center px-4":"flex items-start w-full p-0 pb-12 last:pb-0",i&&"active",c&&"completed"),"aria-current":i?"step":void 0},t.createElement("div",{className:Be("flex justify-center items-center rounded-full relative transition-all duration-300 ease-in-out z-10",l.node,s?"mb-6":"absolute",i?"border-2 border-primary shadow-[0_0_0_4px_rgba(var(--primary),0.2)] bg-background":c?"border-2 border-primary bg-primary":"border-2 border-border bg-background")},t.createElement("div",{className:Be("rounded-full transition-all duration-300 ease-in-out",i?Be(l.innerDot.active,"bg-primary"):c?Be(l.innerDot.completed,"bg-primary-foreground"):Be(l.innerDot.default,"bg-muted-foreground/50"))})),o<e.length-1&&t.createElement("div",{className:Be("absolute transition-all duration-300 ease-in-out",s?`h-0.5 ${l.connectorTop} -translate-y-1/2 left-[calc(50%+12px+1rem)] right-[calc(-50%+12px+1rem)]`:"w-0.5 left-[12px] top-[24px] h-[calc(100%-24px)]",c?"bg-primary":"bg-border")}),t.createElement("div",{className:Be(s?"text-center px-4":"flex-1 ml-10")},t.createElement("h3",{className:Be("transition-opacity duration-300 ease-in-out m-0",l.text,i?"text-primary font-medium opacity-100":c?"text-primary font-normal opacity-90":"text-foreground font-normal opacity-70")},n.label),n.description&&t.createElement("p",{className:Be("text-muted-foreground mt-1",l.description)},n.description)));return t.createElement(t.Fragment,{key:n.id},u)})))},hH=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function vH(e,t,r){const n=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const r=t.split(".").pop().toLowerCase(),n=hH.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:o}=e,i="string"==typeof t?t:"string"==typeof o&&o.length>0?o:`./${e.name}`;return"string"!=typeof n.path&&yH(n,"path",i),yH(n,"relativePath",i),n}function yH(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}const gH=[".DS_Store","Thumbs.db"];function bH(e){return"object"==typeof e&&null!==e}function wH(e){return e.filter(e=>-1===gH.indexOf(e.name))}function xH(e){if(null===e)return[];const t=[];for(let r=0;r<e.length;r++){const n=e[r];t.push(n)}return t}function OH(e){if("function"!=typeof e.webkitGetAsEntry)return kH(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?PH(t):kH(e,t)}function EH(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?EH(t):[t]],[])}function kH(e,t){return gC(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,vH(e)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return vH(n,null!==(r=null==t?void 0:t.fullPath)&&void 0!==r?r:void 0)})}function jH(e){return gC(this,void 0,void 0,function*(){return e.isDirectory?PH(e):function(e){return gC(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{const n=vH(r,e.fullPath);t(n)},e=>{r(e)})})})}(e)})}function PH(e){const t=e.createReader();return new Promise((e,r)=>{const n=[];!function o(){t.readEntries(t=>gC(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(jH));n.push(e),o()}else try{const t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}()})}var SH,CH={};var NH=lt((SH||(SH=1,CH.__esModule=!0,CH.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}),CH));function TH(e){return function(e){if(Array.isArray(e))return RH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zH(Object(r),!0).forEach(function(t){MH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zH(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function MH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||AH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AH(e,t){if(e){if("string"==typeof e)return RH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?RH(e,t):void 0}}function RH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var IH="function"==typeof NH?NH:NH.default,BH=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(t)}},_H=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},WH=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},FH={code:"too-many-files",message:"Too many files"};function VH(e,t){var r="application/x-moz-file"===e.type||IH(e,t);return[r,r?null:BH(t)]}function $H(e,t,r){if(HH(e.size))if(HH(t)&&HH(r)){if(e.size>r)return[!1,_H(r)];if(e.size<t)return[!1,WH(t)]}else{if(HH(t)&&e.size<t)return[!1,WH(t)];if(HH(r)&&e.size>r)return[!1,_H(r)]}return[!0,null]}function HH(e){return null!=e}function qH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function UH(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function YH(e){e.preventDefault()}function GH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.some(function(t){return!qH(e)&&t&&t.apply(void 0,[e].concat(n)),qH(e)})}}function XH(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function KH(e){return/^.*\.[\w]+$/.test(e)}var ZH=["children"],QH=["open"],JH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],eq=["refKey","onChange","onClick"];function tq(e){return function(e){if(Array.isArray(e))return oq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||nq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nq(e,t){if(e){if("string"==typeof e)return oq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oq(e,t):void 0}}function oq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iq(Object(r),!0).forEach(function(t){sq(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iq(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var cq=r(function(e,r){var n=e.children,o=dq(lq(e,ZH)),i=o.open,a=lq(o,QH);return f(r,function(){return{open:i}},[i]),t.createElement(y,null,n(aq(aq({},a),{},{open:i})))});cq.displayName="Dropzone";var uq={disabled:!1,getFilesFromEvent:function(e){return gC(this,void 0,void 0,function*(){return bH(e)&&bH(e.dataTransfer)?function(e,t){return gC(this,void 0,void 0,function*(){if(e.items){const r=xH(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return r;return wH(EH(yield Promise.all(r.map(OH))))}return wH(xH(e.files).map(e=>vH(e)))})}(e.dataTransfer,e.type):function(e){return bH(e)&&bH(e.target)}(e)?function(e){return xH(e.target.files).map(e=>vH(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return gC(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>vH(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};cq.defaultProps=uq,cq.propTypes={children:It.func,accept:It.objectOf(It.arrayOf(It.string)),multiple:It.bool,preventDropOnDocument:It.bool,noClick:It.bool,noKeyboard:It.bool,noDrag:It.bool,noDragEventsBubbling:It.bool,minSize:It.number,maxSize:It.number,maxFiles:It.number,disabled:It.bool,getFilesFromEvent:It.func,onFileDialogCancel:It.func,onFileDialogOpen:It.func,useFsAccessApi:It.bool,autoFocus:It.bool,onDragEnter:It.func,onDragLeave:It.func,onDragOver:It.func,onDrop:It.func,onDropAccepted:It.func,onDropRejected:It.func,onError:It.func,validator:It.func};var pq={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function dq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=aq(aq({},uq),e),r=t.accept,n=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,u=t.minSize,p=t.multiple,d=t.maxFiles,f=t.onDragEnter,m=t.onDragLeave,h=t.onDragOver,v=t.onDrop,y=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,x=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,j=t.noClick,P=t.noKeyboard,S=t.noDrag,C=t.noDragEventsBubbling,N=t.onError,T=t.validator,z=s(function(){return function(e){if(HH(e))return Object.entries(e).reduce(function(e,t){var r=DH(t,2),n=r[0],o=r[1];return[].concat(TH(e),[n],TH(o))},[]).filter(function(e){return XH(e)||KH(e)}).join(",")}(r)},[r]),L=s(function(){return function(e){return HH(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=DH(e,2),r=t[0],n=t[1],o=!0;return XH(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(n)&&n.every(KH)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var r=DH(t,2),n=r[0],o=r[1];return LH(LH({},e),{},MH({},n,o))},{})}]:e}(r)},[r]),M=s(function(){return"function"==typeof w?w:mq},[w]),D=s(function(){return"function"==typeof b?b:mq},[b]),A=c(null),R=c(null),I=rq(O(fq,pq),2),B=I[0],_=I[1],W=B.isFocused,F=B.isFileDialogActive,V=c("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),$=function(){!V.current&&F&&setTimeout(function(){R.current&&(R.current.files.length||(_({type:"closeDialog"}),D()))},300)};a(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[R,F,D,V]);var H=c([]),q=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),H.current=[])};a(function(){return k&&(document.addEventListener("dragover",YH,!1),document.addEventListener("drop",q,!1)),function(){k&&(document.removeEventListener("dragover",YH),document.removeEventListener("drop",q))}},[A,k]),a(function(){return!n&&E&&A.current&&A.current.focus(),function(){}},[A,E,n]);var U=l(function(e){N?N(e):console.error(e)},[N]),Y=l(function(e){e.preventDefault(),e.persist(),ae(e),H.current=[].concat(tq(H.current),[e.target]),UH(e)&&Promise.resolve(o(e)).then(function(t){if(!qH(e)||C){var r=t.length,n=r>0&&function(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every(function(e){var t=DH(VH(e,r),1)[0],i=DH($H(e,n,o),1)[0],a=s?s(e):null;return t&&i&&!a})}({files:t,accept:z,minSize:u,maxSize:i,multiple:p,maxFiles:d,validator:T});_({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),f&&f(e)}}).catch(function(e){return U(e)})},[o,f,U,C,z,u,i,p,d,T]),G=l(function(e){e.preventDefault(),e.persist(),ae(e);var t=UH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1},[h,C]),X=l(function(e){e.preventDefault(),e.persist(),ae(e);var t=H.current.filter(function(e){return A.current&&A.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),H.current=t,t.length>0||(_({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),UH(e)&&m&&m(e))},[A,m,C]),K=l(function(e,t){var r=[],n=[];e.forEach(function(e){var t=rq(VH(e,z),2),o=t[0],a=t[1],s=rq($H(e,u,i),2),l=s[0],c=s[1],p=T?T(e):null;if(o&&l&&!p)r.push(e);else{var d=[a,c];p&&(d=d.concat(p)),n.push({file:e,errors:d.filter(function(e){return e})})}}),(!p&&r.length>1||p&&d>=1&&r.length>d)&&(r.forEach(function(e){n.push({file:e,errors:[FH]})}),r.splice(0)),_({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),v&&v(r,n,t),n.length>0&&g&&g(n,t),r.length>0&&y&&y(r,t)},[_,p,z,u,i,d,v,y,g,T]),Z=l(function(e){e.preventDefault(),e.persist(),ae(e),H.current=[],UH(e)&&Promise.resolve(o(e)).then(function(t){qH(e)&&!C||K(t,e)}).catch(function(e){return U(e)}),_({type:"reset"})},[o,K,U,C]),Q=l(function(){if(V.current){_({type:"openDialog"}),M();var e={multiple:p,types:L};window.showOpenFilePicker(e).then(function(e){return o(e)}).then(function(e){K(e,null),_({type:"closeDialog"})}).catch(function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(D(e),_({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(V.current=!1,R.current?(R.current.value=null,R.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))})}else R.current&&(_({type:"openDialog"}),M(),R.current.value=null,R.current.click())},[_,M,D,x,K,U,L,p]),J=l(function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Q()))},[A,Q]),ee=l(function(){_({type:"focus"})},[]),te=l(function(){_({type:"blur"})},[]),re=l(function(){j||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Q():setTimeout(Q,0))},[j,Q]),ne=function(e){return n?null:e},oe=function(e){return P?null:ne(e)},ie=function(e){return S?null:ne(e)},ae=function(e){C&&e.stopPropagation()},se=s(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,p=e.onDragLeave,d=e.onDrop,f=lq(e,JH);return aq(aq(sq({onKeyDown:oe(GH(i,J)),onFocus:oe(GH(a,ee)),onBlur:oe(GH(s,te)),onClick:ne(GH(l,re)),onDragEnter:ie(GH(c,Y)),onDragOver:ie(GH(u,G)),onDragLeave:ie(GH(p,X)),onDrop:ie(GH(d,Z)),role:"string"==typeof o&&""!==o?o:"presentation"},r,A),n||P?{}:{tabIndex:0}),f)}},[A,J,ee,te,re,Y,G,X,Z,P,S,n]),le=l(function(e){e.stopPropagation()},[]),ce=s(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,o=e.onClick,i=lq(e,eq);return aq(aq({},sq({accept:z,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ne(GH(n,Z)),onClick:ne(GH(o,le)),tabIndex:-1},r,R)),i)}},[R,r,p,Z,n]);return aq(aq({},B),{},{isFocused:W&&!n,getRootProps:se,getInputProps:ce,rootRef:A,inputRef:R,open:ne(Q)})}function fq(e,t){switch(t.type){case"focus":return aq(aq({},e),{},{isFocused:!0});case"blur":return aq(aq({},e),{},{isFocused:!1});case"openDialog":return aq(aq({},pq),{},{isFileDialogActive:!0});case"closeDialog":return aq(aq({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return aq(aq({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return aq(aq({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return aq({},pq);default:return e}}function mq(){}const hq=10485760,vq=5,yq=1/0,gq={IMAGE:"image/*",PDF:"application/pdf",DOCUMENT:".doc,.docx,.pdf,.txt",ALL:"*"},bq={FILE_TOO_LARGE:"File size exceeds maximum allowed size",TOO_MANY_FILES:"Maximum number of files exceeded",INVALID_FILE_TYPE:"File type not supported",UPLOAD_FAILED:"Upload failed"},wq={UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},xq=e=>{if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},Oq=e=>{if("*"===e||!e||""===e.trim())return;return/^[a-zA-Z0-9][a-zA-Z0-9-]*\/[a-zA-Z0-9][a-zA-Z0-9\-*]*$/.test(e.trim())?{[e.trim()]:[]}:void 0},Eq=({onFilesChange:e,accept:r="*",multiple:n=!1,maxSize:o=10485760,maxFiles:a=(n?yq:1),disabled:s=!1,className:c="",width:u="w-full",children:p,fileActions:d=[],showRemoveButton:f=!0})=>{const[m,h]=i([]),[v,y]=i([]),g=l(()=>{y([])},[]),b=l(t=>{const r=m.filter(e=>(e.id===t&&e.preview&&URL.revokeObjectURL(e.preview),e.id!==t));h(r),e(r.map(e=>e.file))},[m,e]),w=l(e=>()=>{b(e)},[b]),x=l((e,t)=>()=>{e.onClick(t)},[]),O=l(e=>m.some(t=>t.name===e.name&&t.size===e.size&&t.type===e.type),[m]),E=l((t,r)=>{y([]);const n=[];r.length>0&&r.forEach(e=>{e.errors&&e.errors.forEach(e=>{"file-too-large"===e.code?n.push(bq.FILE_TOO_LARGE):"file-invalid-type"===e.code&&n.push(bq.INVALID_FILE_TYPE)})});const o=[],i=t.filter(e=>{const t=O(e);return t&&o.push(e.name),!t});if(o.length>0){const e=1===o.length?`The following file is already uploaded:\n• ${o[0]}`:`The following files are already uploaded:\n${o.map(e=>`• ${e}`).join("\n")}`;n.push(e)}if(a!==1/0&&m.length+i.length>a&&n.push(bq.TOO_MANY_FILES),i.length>0&&(a===1/0||m.length+i.length<=a)){const t=i.map((e,t)=>({id:`${Date.now()}-${t}`,file:e,name:e.name,size:e.size,type:e.type,status:"success",preview:e.type.startsWith("image/")?URL.createObjectURL(e):void 0})),r=[...m,...t];h(r),e(r.map(e=>e.file))}n.length>0&&y(n)},[m,a,e,O]),{getRootProps:k,getInputProps:j,isDragActive:P}=dq({onDrop:E,accept:Oq(r),multiple:n,maxSize:o,disabled:s});return t.createElement("div",{className:`file-uploader ${u} ${c}`},t.createElement("div",{...k(),className:`\n border-2 border-dashed rounded-lg p-6 center cursor-pointer transition-colors\n ${P?"border-primary bg-primary/5":"border-border hover:border-primary/50"}\n ${s?"opacity-50 cursor-not-allowed":""}\n `},t.createElement("input",{...j()}),p?t.createElement("div",{className:"flex flex-col items-center justify-center"},p):t.createElement("div",{className:"flex flex-col items-center justify-center"},t.createElement("div",{className:"mb-2"},P?t.createElement(vg,{variant:"body",color:"quinary",textAlign:"center"},"Drop the files here..."):t.createElement(vg,{variant:"body",color:"quinary",textAlign:"center"},"Drag & drop files here, or click to select files")),t.createElement("div",{className:"flex flex-col items-center"},n&&a!==1/0&&t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum ",a," files"),n&&a===1/0&&t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"No file limit"),t.createElement(vg,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum file size: ",xq(o))))),v.length>0&&t.createElement("div",{className:"mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-md"},t.createElement("div",{className:"flex items-start justify-between"},t.createElement("div",{className:"flex-1"},v.map((e,r)=>t.createElement(vg,{key:r,variant:"caption",color:"tertiary",className:"whitespace-pre-line"},e))),t.createElement(st,{onClick:g,type:"button",variant:"link",size:"small",className:"ml-2 text-destructive hover:text-destructive/80 p-1 min-w-0"},"✕"))),m.length>0&&t.createElement("div",{className:"mt-4 flex flex-col items-center"},t.createElement(yg,{variant:"h6",color:"quinary",fontWeight:"semibold",marginBottom:"small",textAlign:"center"},"Uploaded Files"),t.createElement("div",{className:"space-y-2 w-full"},m.map(e=>t.createElement("div",{key:e.id,className:"flex items-center justify-between p-3 bg-muted rounded-md"},t.createElement("div",{className:"flex items-center space-x-3"},e.preview&&t.createElement("img",{src:e.preview,alt:e.name,className:"w-10 h-10 object-cover rounded"}),t.createElement("div",{className:"flex flex-col items-start"},t.createElement(vg,{variant:"caption",color:"quinary",fontWeight:"semibold"},e.name),t.createElement(vg,{variant:"captionSm",color:"quinary"},xq(e.size)))),t.createElement("div",{className:"flex items-center space-x-2"},d.map((r,n)=>t.createElement(st,{key:n,onClick:x(r,e),type:"button",variant:r.variant||"secondary",size:"small"},r.icon&&t.createElement("span",{className:r.label?"mr-1":""},r.icon),r.label)),f&&t.createElement(st,{onClick:w(e.id),type:"button",variant:"danger",size:"small"},"Remove")))))))};function kq(e,t){return Array(t+1).join(e)}var jq=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Pq(e){return Tq(e,jq)}var Sq=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Cq(e){return Tq(e,Sq)}var Nq=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Tq(e,t){return t.indexOf(e.nodeName)>=0}function zq(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var Lq={};function Mq(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function Dq(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function Aq(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(Rq(o,t,r))return o}}function Rq(e,t,r){var n=e.filter;if("string"==typeof n){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof n)throw new TypeError("`filter` needs to be a string, array, or function");if(n.call(e,t,r))return!0}}function Iq(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Bq(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}Lq.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},Lq.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},Lq.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));return"setext"===r.headingStyle&&n<3?"\n\n"+e+"\n"+kq(1===n?"=":"-",e.length)+"\n\n":"\n\n"+kq("#",n)+" "+e+"\n\n"}},Lq.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},Lq.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return"LI"===r.nodeName&&r.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},Lq.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var n=r.bulletListMarker+" ",o=t.parentNode;if("OL"===o.nodeName){var i=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);n=(i?Number(i)+a:a+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},Lq.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},Lq.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var n,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,a=r.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm");n=l.exec(i);)n[0].length>=s&&(s=n[0].length+1);var c=kq(a,s);return"\n\n"+c+o+"\n"+i.replace(/\n$/,"")+"\n"+c+"\n\n"}},Lq.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},Lq.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=Mq(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},Lq.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,r){var n,o,i=t.getAttribute("href"),a=Mq(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),r.linkReferenceStyle){case"collapsed":n="["+e+"][]",o="["+e+"]: "+i+a;break;case"shortcut":n="["+e+"]",o="["+e+"]: "+i+a;break;default:var s=this.references.length+1;n="["+e+"]["+s+"]",o="["+s+"]: "+i+a}return this.references.push(o),n},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},Lq.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},Lq.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},Lq.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];-1!==n.indexOf(r);)r+="`";return r+t+e+t+r}},Lq.image={filter:"img",replacement:function(e,t){var r=Mq(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=Mq(t.getAttribute("title"));return n?"!["+r+"]("+n+(o?' "'+o+'"':"")+")":""}},Dq.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=Aq(this.array,e,this.options))||(t=Aq(this._keep,e,this.options))||(t=Aq(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var _q="undefined"!=typeof window?window:{};var Wq,Fq,Vq,$q=function(){var e=_q.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?_q.DOMParser:(Wq=function(){},Fq=require("@mixmark-io/domino"),Wq.prototype.parseFromString=function(e){return Fq.createDocument(e)},Wq);function Hq(e,t){var r;"string"==typeof e?r=(Vq=Vq||new $q).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):r=e.cloneNode(!0);return function(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!o(t)){for(var i=null,a=!1,s=null,l=Bq(s,t,o);l!==t;){if(3===l.nodeType||4===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(i&&!/ $/.test(i.data)||a||" "!==c[0]||(c=c.substr(1)),!c){l=Iq(l);continue}l.data=c,i=l}else{if(1!==l.nodeType){l=Iq(l);continue}r(l)||"BR"===l.nodeName?(i&&(i.data=i.data.replace(/ $/,"")),i=null,a=!1):n(l)||o(l)?(i=null,a=!0):i&&(a=!1)}var u=Bq(s,l,o);s=l,l=u}i&&(i.data=i.data.replace(/ $/,""),i.data||Iq(i))}}({element:r,isBlock:Pq,isVoid:Cq,isPre:t.preformattedCode?qq:null}),r}function qq(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function Uq(e,t){return e.isBlock=Pq(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!Cq(e)&&!function(e){return Tq(e,Nq)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return zq(e,Sq)}(e)&&!function(e){return zq(e,Nq)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=(n=e.textContent,o=n.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:o[1],leadingAscii:o[2],leadingNonAscii:o[3],trailing:o[4],trailingNonAscii:o[5],trailingAscii:o[6]});var n,o;r.leadingAscii&&Yq("left",e,t)&&(r.leading=r.leadingNonAscii);r.trailingAscii&&Yq("right",e,t)&&(r.trailing=r.trailingNonAscii);return{leading:r.leading,trailing:r.trailing}}(e,t),e}function Yq(e,t,r){var n,o,i;return"left"===e?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(3===n.nodeType?i=o.test(n.nodeValue):r.preformattedCode&&"CODE"===n.nodeName?i=!1:1!==n.nodeType||Pq(n)||(i=o.test(n.textContent))),i}var Gq=Array.prototype.reduce,Xq=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Kq(e){if(!(this instanceof Kq))return new Kq(e);var t={rules:Lq,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},t,e),this.rules=new Dq(this.options)}function Zq(e){var t=this;return Gq.call(e.childNodes,function(e,r){var n="";return 3===(r=new Uq(r,t.options)).nodeType?n=r.isCode?r.nodeValue:t.escape(r.nodeValue):1===r.nodeType&&(n=Jq.call(t,r)),eU(e,n)},"")}function Qq(e){var t=this;return this.rules.forEach(function(r){"function"==typeof r.append&&(e=eU(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Jq(e){var t=this.rules.forNode(e),r=Zq.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function eU(e,t){var r=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),n=t.replace(/^\n*/,""),o=Math.max(e.length-r.length,t.length-n.length);return r+"\n\n".substring(0,o)+n}Kq.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=Zq.call(this,new Hq(e,this.options));return Qq.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Xq.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};const tU=({value:e="",onChange:r,placeholder:n="Start writing...",className:o,disabled:s=!1,showToolbar:u=!0,minHeight:p=200})=>{const[d,f]=i(e),[m,h]=i(!1),[v,y]=i(""),[g,b]=i(new Set),[w,x]=i("left"),[O,E]=i("p"),[k,j]=i({ul:!1,ol:!1}),P=c(null),S=c(null),C=c(new Kq({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"*",emDelimiter:"*",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full"}));a(()=>{const e=C.current;e.addRule("paragraph",{filter:["p","div"],replacement:function(e){return e?"\n\n"+e+"\n\n":""}}),e.addRule("blockquote",{filter:"blockquote",replacement:function(e){return"\n\n> "+e.trim().replace(/\n/g,"\n> ")+"\n\n"}}),e.addRule("codeBlock",{filter:"pre",replacement:function(e){return"\n\n```\n"+e.trim()+"\n```\n\n"}}),e.addRule("inlineCode",{filter:"code",replacement:function(e){return"`"+e+"`"}})},[]);const N=[{id:"p",label:"Paragraph",icon:t.createElement(Qy,{name:"Type",size:16})},{id:"h1",label:"Heading 1",icon:t.createElement(Qy,{name:"Type",size:20})},{id:"h2",label:"Heading 2",icon:t.createElement(Qy,{name:"Type",size:16})},{id:"h3",label:"Heading 3",icon:t.createElement(Qy,{name:"Type",size:12})}],T=[{id:"left",label:"Left",icon:t.createElement(Qy,{name:"AlignLeft",size:16})},{id:"center",label:"Center",icon:t.createElement(Qy,{name:"AlignCenter",size:16})},{id:"right",label:"Right",icon:t.createElement(Qy,{name:"AlignRight",size:16})}],z=l(()=>{const e=window.getSelection();if(!e||0===e.rangeCount)return null;let t=e.anchorNode;return t?(t.nodeType===Node.TEXT_NODE&&(t=t.parentElement),t):null},[]),L=l(()=>{const e=z();if(!e)return{ul:!1,ol:!1};return{ul:!!e.closest("ul"),ol:!!e.closest("ol")}},[z]),M=l(()=>{if(!P.current)return;const e=window.getSelection();if(!e||0===e.rangeCount)return;const t=new Set;document.queryCommandState("bold")&&t.add("bold"),document.queryCommandState("italic")&&t.add("italic"),document.queryCommandState("underline")&&t.add("underline"),document.queryCommandState("justifyLeft")?x("left"):document.queryCommandState("justifyCenter")?x("center"):document.queryCommandState("justifyRight")?x("right"):x("left");const r=document.queryCommandValue("formatBlock").toLowerCase();r.includes("h1")?E("h1"):r.includes("h2")?E("h2"):r.includes("h3")?E("h3"):r.includes("pre")?(t.add("code"),E("p")):r.includes("blockquote")?(t.add("quote"),E("p")):E("p");const n=L();j(n),b(t)},[L]),D=l(()=>{if(P.current){const e=P.current.innerHTML;let t="";try{t=C.current.turndown(e),t=t.replace(/\n{3,}/g,"\n\n").replace(/^\n+/,"").replace(/\n+$/,"").trim()}catch{t=e}f(t),r?.(t),setTimeout(M,10)}},[r,M]),A=l(()=>{const e=window.getSelection();e&&P.current&&P.current.contains(e.anchorNode)&&setTimeout(M,10)},[M]),R=l((e,t)=>{s||(document.execCommand(e,!1,t),D(),P.current?.focus())},[s,D]),I=l(e=>{if(s)return;const t={bold:"bold",italic:"italic",underline:"underline",code:"formatBlock"};"code"===e?g.has("code")?R("formatBlock","<div>"):R("formatBlock","<pre>"):R(t[e])},[R,g,s]),B=l(e=>{if(s)return;const t=e?"insertOrderedList":"insertUnorderedList",r=L();e&&r.ol?R("insertOrderedList"):!e&&r.ul?R("insertUnorderedList"):R(t)},[R,L,s]),_=l(()=>{s||(g.has("quote")?R("formatBlock","<div>"):R("formatBlock","<blockquote>"))},[R,g,s]),W=l(e=>{if(s)return;R("formatBlock",{p:"<div>",h1:"<h1>",h2:"<h2>",h3:"<h3>"}[e])},[R,s]),F=l(e=>{s||R("justify"+e.charAt(0).toUpperCase()+e.slice(1))},[R,s]),V=l(()=>{v.trim()&&(R("createLink",v),y(""),h(!1))},[R,v]),$=l(e=>{if("Enter"===e.key&&m&&(e.preventDefault(),V()),"Escape"===e.key&&m&&(h(!1),y("")),e.ctrlKey||e.metaKey)switch(e.key){case"b":e.preventDefault(),I("bold");break;case"i":e.preventDefault(),I("italic");break;case"u":e.preventDefault(),I("underline")}},[m,V,I]),H=l(e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},[]),q=l(()=>{setTimeout(M,10)},[M]),U=l(()=>{h(!1),y("")},[]),Y=l(()=>{h(!0)},[]),G=l((e,t)=>{e.preventDefault(),e.stopPropagation(),t()},[]);return a(()=>{e!==d&&(f(e),P.current&&e!==P.current.innerHTML&&(P.current.innerHTML=e))},[e,d]),a(()=>{m&&S.current&&S.current.focus()},[m]),a(()=>(document.addEventListener("selectionchange",A),()=>{document.removeEventListener("selectionchange",A)}),[A]),t.createElement("div",{className:Be("border border-border rounded-lg bg-background overflow-hidden","focus-within:border-primary/30 focus-within:ring-1 focus-within:ring-primary/20","transition-all duration-200",s&&"opacity-50 cursor-not-allowed",o)},u&&t.createElement("div",{className:"flex items-center gap-1 p-2 border-b border-border bg-muted/30 flex-wrap"},t.createElement(CS,{options:N,value:O,onValueChange:W,placeholder:"Format",size:"small",className:"min-w-[120px]"}),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>I("bold")),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("bold")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Bold",size:16})),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>I("italic")),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("italic")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Italic",size:16})),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>I("underline")),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("underline")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Underline",size:16})),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>B(!1)),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",k.ul&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"List",size:16})),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>B(!0)),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",k.ol&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Hash",size:16})),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,_),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("quote")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"MessageSquare",size:16})),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,()=>I("code")),disabled:s,className:Be("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",g.has("code")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},t.createElement(Qy,{name:"Code",size:16})),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),t.createElement(CS,{options:T,value:w,onValueChange:F,placeholder:"Align",size:"small",className:"min-w-[100px]"}),t.createElement("div",{className:"h-6 w-px bg-border mx-1"}),m?t.createElement("div",{className:"flex items-center gap-2"},t.createElement("input",{ref:S,type:"text",value:v,onChange:e=>y(e.target.value),onKeyDown:$,placeholder:"Enter URL",className:"px-2 py-1 text-sm border border-border rounded bg-background focus:outline-none focus:border-primary/30 focus:ring-1 focus:ring-primary/20 transition-all duration-150"}),t.createElement(st,{type:"button",variant:"primary",size:"small",onClick:e=>G(e,V),className:"h-8 transition-all duration-150"},"Add"),t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,U),className:"h-8 transition-all duration-150"},"Cancel")):t.createElement(st,{type:"button",variant:"tertiary",size:"small",onClick:e=>G(e,Y),disabled:s,className:"h-8 w-8 p-0 transition-all duration-150 ease-in-out hover:bg-primary/10 hover:scale-105"},t.createElement(Qy,{name:"Link2",size:16}))),t.createElement("div",{ref:P,contentEditable:!s,role:"textbox",onInput:D,onKeyDown:$,onPaste:H,onFocus:q,suppressContentEditableWarning:!0,className:Be("p-4 focus:outline-none min-h-0","prose prose-sm max-w-none","text-foreground","[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:text-foreground [&_h1]:mt-6 [&_h1]:mb-4","[&_h2]:text-xl [&_h2]:font-semibold [&_h2]:text-foreground [&_h2]:mt-5 [&_h2]:mb-3","[&_h3]:text-lg [&_h3]:font-medium [&_h3]:text-foreground [&_h3]:mt-4 [&_h3]:mb-2","[&_p]:text-foreground [&_p]:leading-relaxed [&_p]:mb-3","[&_div]:text-foreground [&_div]:leading-relaxed [&_div]:mb-3","[&_ul]:text-foreground [&_ul]:ml-6 [&_ul]:mb-3 [&_ul]:list-disc","[&_ol]:text-foreground [&_ol]:ml-6 [&_ol]:mb-3 [&_ol]:list-decimal","[&_li]:text-foreground [&_li]:mb-1 [&_li]:ml-2","[&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:italic [&_blockquote]:text-muted-foreground [&_blockquote]:mb-4","[&_pre]:bg-muted [&_pre]:text-foreground [&_pre]:p-3 [&_pre]:rounded [&_pre]:mb-4 [&_pre]:font-mono [&_pre]:text-sm [&_pre]:overflow-x-auto","[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-2 [&_a]:decoration-primary/50 [&_a:hover]:decoration-primary","[&_strong]:font-semibold [&_strong]:text-foreground","[&_em]:italic [&_em]:text-foreground","[&_u]:underline [&_u]:text-foreground","empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground empty:before:pointer-events-none empty:before:absolute"),style:{minHeight:p},"data-placeholder":n}))};export{gq as ACCEPTED_FILE_TYPES,V$ as ALERT_DIALOG_DEFAULTS,ZF as ANIMATION_DURATION,$$ as AlertDialogComponent,$S as BADGE_POSITIONS,kS as BreadCrumb,st as Button,VS as CARD_BORDER_RADIUS,FS as CARD_HOVER_EFFECTS,WS as CARD_SHADOWS,BS as CARD_SIZES,_S as CARD_SPACING,HS as CARD_VARIANTS,wS as Calendar,qS as Card,FV as Carousel,yw as CellType,rg as Checkbox,Z$ as Collapse,Q$ as CollapseData,IS as CustomSkeleton,XF as DEFAULT_ALIGN,VL as DEFAULT_DATE_FORMAT,vq as DEFAULT_MAX_FILES,hq as DEFAULT_MAX_SIZE,GF as DEFAULT_SIDE,KF as DEFAULT_SIDE_OFFSET,eT as DIALOG_DEFAULTS,$L as DatePicker,_y as Disable,LM as Drawer,CS as Dropdown,qy as EditFilled,tU as Editor,$y as Error,Yy as ExcelFile,J$ as FAQCollapseGroup,Xy as FBLike,Ky as FBLove,bq as FILE_UPLOAD_ERRORS,Uy as FileUpload,Eq as FileUploader,yg as Heading,Wy as Hide,Qy as Icon,Fy as Info,gg as Input,YS as LoaderComponent,nw as MessageComponent,rw as MessagePosition,tw as MessageVariants,n$ as OTPInput,YF as POPOVER_ALIGN_OPTIONS,UF as POPOVER_SIDES,QF as POPOVER_VARIANTS,mw as PaginationComponent,vw as PaginationPosition,$F as Popover,qF as PopoverContent,HF as PopoverTrigger,aH as ProfileCard,Mb as RadioGroup,fH as STEPPER_SIZE_STYLES,MF as Sheet,AF as SheetClose,BF as SheetContent,VF as SheetDescription,WF as SheetFooter,_F as SheetHeader,FF as SheetTitle,DF as SheetTrigger,mH as Stepper,Gy as Success,Zb as Switch,Ww as Table,Aw as TableCell,hw as TableColumnAlign,_w as TableHeader,dH as Tabs,vg as Text,ew as TextArea,vk as Tooltip,yq as UNLIMITED_FILES,wq as UPLOAD_STATUS,Hy as Upload,tT as VARIANT_STYLES,Vy as Warning,xS as breadCrumbVariants,Xb as colorVariants,bw as columnInfo,Vw as createDateColumn,Hw as createPersonDataColumns,$w as createStatusColumn,Fw as createTextColumn,ww as getColumnInfo,Ew as getEffectivePositions,gw as getFlexAlignment,Ow as getPaginationContainerClass,xw as getShowingEntriesPositionClass,rT as getSizeClass,ow as message,Iw as renderHeader,Rw as renderSortIcon,Bw as renderTableHeader,Gb as sizeVariants,Qb as sizes,kw as truncateText,Jb as variants};
54
54
  //# sourceMappingURL=index.esm.js.map