@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.
package/build/index.js
CHANGED
|
@@ -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 Vw=(Ww||(Ww=1,"production"===process.env.NODE_ENV?Iw.exports=function(){if(Aw)return Bw;Aw=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"),Bw.ContextConsumer=s,Bw.ContextProvider=a,Bw.Element=t,Bw.ForwardRef=c,Bw.Fragment=n,Bw.Lazy=f,Bw.Memo=d,Bw.Portal=r,Bw.Profiler=i,Bw.StrictMode=o,Bw.Suspense=u,Bw.SuspenseList=p,Bw.isAsyncMode=function(){return!1},Bw.isConcurrentMode=function(){return!1},Bw.isContextConsumer=function(e){return h(e)===s},Bw.isContextProvider=function(e){return h(e)===a},Bw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bw.isForwardRef=function(e){return h(e)===c},Bw.isFragment=function(e){return h(e)===n},Bw.isLazy=function(e){return h(e)===f},Bw.isMemo=function(e){return h(e)===d},Bw.isPortal=function(e){return h(e)===r},Bw.isProfiler=function(e){return h(e)===i},Bw.isStrictMode=function(e){return h(e)===o},Bw.isSuspense=function(e){return h(e)===u},Bw.isSuspenseList=function(e){return h(e)===p},Bw.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)},Bw.typeOf=h,Bw}():Iw.exports=(_w||(_w=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,T=!1;Fw.ContextConsumer=v,Fw.ContextProvider=y,Fw.Element=g,Fw.ForwardRef=b,Fw.Fragment=w,Fw.Lazy=x,Fw.Memo=O,Fw.Portal=E,Fw.Profiler=k,Fw.StrictMode=j,Fw.Suspense=P,Fw.SuspenseList=S,Fw.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Fw.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Fw.isContextConsumer=function(e){return h(e)===s},Fw.isContextProvider=function(e){return h(e)===a},Fw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Fw.isForwardRef=function(e){return h(e)===c},Fw.isFragment=function(e){return h(e)===n},Fw.isLazy=function(e){return h(e)===f},Fw.isMemo=function(e){return h(e)===d},Fw.isPortal=function(e){return h(e)===r},Fw.isProfiler=function(e){return h(e)===i},Fw.isStrictMode=function(e){return h(e)===o},Fw.isSuspense=function(e){return h(e)===u},Fw.isSuspenseList=function(e){return h(e)===p},Fw.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)},Fw.typeOf=h}()),Fw)),Iw.exports);var $w=Symbol.for("react.element"),Hw=Symbol.for("react.transitional.element"),Uw=Symbol.for("react.fragment");function qw(e){return e&&"object"===ww(e)&&(e.$$typeof===$w||e.$$typeof===Hw)&&e.type===Uw}var Yw=Number(e.version.split(".")[0]),Gw=function(e,t){"function"==typeof e?e(t):"object"===ww(e)&&e&&"current"in e&&(e.current=t)},Xw=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){Gw(t,e)})}},Kw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n=function(){return Xw.apply(void 0,t)},o=t,a=function(e,t){return e.length!==t.length||e.every(function(e,r){return e!==t[r]})},"value"in(s=i.useRef({})).current&&!a(s.current.condition,o)||(s.current.value=n(),s.current.condition=o),s.current.value;var n,o,a,s},Zw=function(e){var t,r;if(!e)return!1;if(Qw(e)&&Yw>=19)return!0;var n=Vw.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===Vw.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===Vw.ForwardRef)};function Qw(t){return e.isValidElement(t)&&!qw(t)}var Jw=function(e){if(e&&Qw(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ex=i.createContext(null);function tx(e){return function(e){if(Array.isArray(e))return Pw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sw(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 rx="test"!==process.env.NODE_ENV&&Tw()?i.useLayoutEffect:i.useEffect,nx=function(e,t){var r=i.useRef(!0);rx(function(){return e(r.current)},t),rx(function(){return r.current=!1,function(){r.current=!0}},[])},ox=[];var ix="data-rc-order",ax="data-rc-priority",sx=new Map;function lx(){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 cx(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ux(e){return Array.from((sx.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function px(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Tw())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(ix,a),s&&i&&l.setAttribute(ax,"".concat(i)),null!=r&&r.nonce&&(l.nonce=null==r?void 0:r.nonce),l.innerHTML=e;var c=cx(t),u=c.firstChild;if(n){if(s){var p=(t.styles||ux(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ix)))return!1;var t=Number(e.getAttribute(ax)||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 dx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=cx(t);return(t.styles||ux(r)).find(function(r){return r.getAttribute(lx(t))===e})}function fx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=dx(e,t);r&&cx(t).removeChild(r)}function mx(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=cx(r),o=ux(n),i=kw(kw({},r),{},{styles:o});!function(e,t){var r=sx.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=px("",t),o=n.parentNode;sx.set(e,o),e.removeChild(n)}}(n,i);var a=dx(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=px(e,i);return u.setAttribute(lx(i),t),u}function hx(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,";"):"";mx("\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),fx(t),{width:d,height:f}}(e):{width:0,height:0}}var vx="rc-util-locker-".concat(Date.now()),yx=0;function gx(e){var t=!!e,r=Cw(i.useState(function(){return yx+=1,"".concat(vx,"_").concat(yx)}),1)[0];nx(function(){if(t){var e=hx(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;mx("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else fx(r);return function(){fx(r)}},[t,r])}var bx=function(e){return!1!==e&&(Tw()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wx=i.forwardRef(function(e,t){var n=e.open,o=e.autoLock,a=e.getContainer,s=e.debug,l=e.autoDestroy,c=void 0===l||l,u=e.children,p=Cw(i.useState(n),2),d=p[0],f=p[1],m=d||n;"production"!==process.env.NODE_ENV&&Dw(Tw()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),i.useEffect(function(){(c||n)&&f(n)},[n,c]);var h=Cw(i.useState(function(){return bx(a)}),2),v=h[0],y=h[1];i.useEffect(function(){var e=bx(a);y(null!=e?e:null)});var g=function(e,t){var r=Cw(i.useState(function(){if(!Tw())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),1)[0],n=i.useRef(!1),o=i.useContext(ex),a=Cw(i.useState(ox),2),s=a[0],l=a[1],c=o||(n.current?void 0:function(e){l(function(t){return[e].concat(tx(t))})});function u(){r.parentElement||document.body.appendChild(r),n.current=!0}function p(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),n.current=!1}return nx(function(){return e?o?o(u):u():p(),p},[e]),nx(function(){s.length&&(s.forEach(function(e){return e()}),l(ox))},[s]),[r,c]}(m&&!v,s),b=Cw(g,2),w=b[0],x=b[1],O=null!=v?v:w;gx(o&&n&&Tw()&&(O===w||O===document.body));var E=null;u&&Zw(u)&&t&&(E=u.ref);var k=Kw(E,t);if(!m||!Tw()||void 0===v)return null;var j=!1===O||!1,P=u;return t&&(P=i.cloneElement(u,{ref:k})),i.createElement(ex.Provider,{value:x},j?P:r.createPortal(P,O))});function xx(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return e.Children.forEach(t,function(e){(null!=e||r.keepEmpty)&&(Array.isArray(e)?n=n.concat(xx(e)):qw(e)&&e.props?n=n.concat(xx(e.props.children,r)):n.push(e))}),n}function Ox(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ex(t){var n,o=function(e){return e&&"object"===ww(e)&&Ox(e.nativeElement)?e.nativeElement:Ox(e)?e:null}(t);return o||(t instanceof e.Component?null===(n=r.findDOMNode)||void 0===n?void 0:n.call(r,t):null)}"production"!==process.env.NODE_ENV&&(wx.displayName="Portal");var kx=i.createContext(null);var jx=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}()}(),Px="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Sx="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Cx="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Sx):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Tx=["top","right","bottom","left","width","height","size","weight"],Nx="undefined"!=typeof MutationObserver,zx=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(){Cx(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(){Px&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nx?(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(){Px&&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;Tx.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}(),Lx=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},Mx=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Sx},Rx=Wx(0,0,0,0);function Dx(e){return parseFloat(e)||0}function Ax(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+Dx(e["border-"+r+"-width"])},0)}function Ix(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Rx;var n=Mx(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]=Dx(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=Dx(n.width),l=Dx(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=Ax(n,"left","right")+i),Math.round(l+a)!==r&&(l-=Ax(n,"top","bottom")+a)),!function(e){return e===Mx(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 Wx(o.left,o.top,s,l)}var Bx="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Mx(e).SVGGraphicsElement}:function(e){return e instanceof Mx(e).SVGElement&&"function"==typeof e.getBBox};function _x(e){return Px?Bx(e)?function(e){var t=e.getBBox();return Wx(0,0,t.width,t.height)}(e):Ix(e):Rx}function Wx(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Fx=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wx(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_x(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}(),Vx=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),Lx(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);Lx(this,{target:e,contentRect:c})},$x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new jx,"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 Mx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Fx(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 Mx(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 Vx(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}(),Hx="undefined"!=typeof WeakMap?new WeakMap:new jx,Ux=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=zx.getInstance(),n=new $x(t,r,this);Hx.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){Ux.prototype[e]=function(){var t;return(t=Hx.get(this))[e].apply(t,arguments)}});var qx=void 0!==Sx.ResizeObserver?Sx.ResizeObserver:Ux,Yx=new Map;function Gx(e){e.forEach(function(e){var t,r=e.target;null===(t=Yx.get(r))||void 0===t||t.forEach(function(e){return e(r)})})}var Xx=new qx(Gx);function Kx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zx(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,xw(n.key),n)}}function Qx(e,t,r){return t&&Zx(e.prototype,t),r&&Zx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jx(e,t)}function eO(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&&Jx(e,t)}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tO(e)}function rO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rO=function(){return!!e})()}function nO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oO(e){var t=rO();return function(){var r,n=tO(e);if(t){var o=tO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==ww(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nO(e)}(this,r)}}process.env.NODE_ENV,process.env.NODE_ENV;var iO=function(){eO(t,i.Component);var e=oO(t);function t(){return Kx(this,t),e.apply(this,arguments)}return Qx(t,[{key:"render",value:function(){return this.props.children}}]),t}();function aO(e,t){var r=e.children,n=e.disabled,o=i.useRef(null),a=i.useRef(null),s=i.useContext(kx),l="function"==typeof r,c=l?r(o):r,u=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&i.isValidElement(c)&&Zw(c),d=p?Jw(c):null,f=Kw(d,o),m=function(){var e;return Ex(o.current)||(o.current&&"object"===ww(o.current)?Ex(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Ex(a.current)};i.useImperativeHandle(t,function(){return m()});var h=i.useRef(e);h.current=e;var v=i.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=kw(kw({},f),{},{offsetWidth:m,offsetHeight:v});null==s||s(y,e,n),r&&Promise.resolve().then(function(){r(y,e)})}},[]);return i.useEffect(function(){var e,t,r=m();return r&&!n&&(e=r,t=v,Yx.has(e)||(Yx.set(e,new Set),Xx.observe(e)),Yx.get(e).add(t)),function(){return function(e,t){Yx.has(e)&&(Yx.get(e).delete(t),Yx.get(e).size||(Xx.unobserve(e),Yx.delete(e)))}(r,v)}},[o.current,n]),i.createElement(iO,{ref:a},p?i.cloneElement(c,{ref:f}):c)}var sO=i.forwardRef(aO);"production"!==process.env.NODE_ENV&&(sO.displayName="SingleObserver");function lO(e,t){var r=e.children,n="function"==typeof r?[r]:xx(r);return"production"!==process.env.NODE_ENV&&(n.length>1?Lw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===n.length&&Lw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,n){var o=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(n);return i.createElement(sO,bw({},e,{key:o,ref:0===n?t:void 0}),r)})}var cO=i.forwardRef(lO);function uO(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function pO(e){return function(e){return uO(e)instanceof ShadowRoot}(e)?uO(e):null}function dO(e){var t=i.useRef();t.current=e;var r=i.useCallback(function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(n))},[]);return r}"production"!==process.env.NODE_ENV&&(cO.displayName="ResizeObserver"),cO.Collection=function(e){var t=e.children,r=e.onBatchResize,n=i.useRef(0),o=i.useRef([]),a=i.useContext(kx),s=i.useCallback(function(e,t,i){n.current+=1;var s=n.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){s===n.current&&(null==r||r(o.current),o.current=[])}),null==a||a(e,t,i)},[r,a]);return i.createElement(kx.Provider,{value:s},t)};var fO=0,mO=kw({},i).useId,hO=mO?function(e){var t=mO();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Cw(i.useState("ssr-id"),2),r=t[0],n=t[1];return i.useEffect(function(){var e=fO;fO+=1,n("rc_unique_".concat(e))},[]),e||("test"===process.env.NODE_ENV?"test-id":r)},vO=i.createContext({}),yO=function(){eO(t,i.Component);var e=oO(t);function t(){return Kx(this,t),e.apply(this,arguments)}return Qx(t,[{key:"render",value:function(){return this.props.children}}]),t}();function gO(e){var t=i.useRef(!1),r=Cw(i.useState(e),2),n=r[0],o=r[1];return i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[n,function(e,r){r&&t.current||o(e)}]}var bO="none",wO="appear",xO="enter",OO="leave",EO="none",kO="prepare",jO="start",PO="active",SO="end",CO="prepared";function TO(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 NO,zO,LO,MO=(NO=Tw(),zO="undefined"!=typeof window?window:{},LO={animationend:TO("Animation","AnimationEnd"),transitionend:TO("Transition","TransitionEnd")},NO&&("AnimationEvent"in zO||delete LO.animationend.animation,"TransitionEvent"in zO||delete LO.transitionend.transition),LO),RO={};if(Tw()){var DO=document.createElement("div");RO=DO.style}var AO={};function IO(e){if(AO[e])return AO[e];var t=MO[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 RO)return AO[e]=t[i],AO[e]}return""}var BO=IO("animationend"),_O=IO("transitionend"),WO=!(!BO||!_O),FO=BO||"animationend",VO=_O||"transitionend";function $O(e,t){if(!e)return null;if("object"===ww(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var HO=Tw()?e.useLayoutEffect:e.useEffect,UO=function(e){return+setTimeout(e,16)},qO=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(UO=function(e){return window.requestAnimationFrame(e)},qO=function(e){return window.cancelAnimationFrame(e)});var YO=0,GO=new Map;function XO(e){GO.delete(e)}var KO=function(e){var t=YO+=1;return function r(n){if(0===n)XO(t),e();else{var o=UO(function(){r(n-1)});GO.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};KO.cancel=function(e){var t=GO.get(e);return XO(e),qO(t)},"production"!==process.env.NODE_ENV&&(KO.ids=function(){return GO});var ZO=[kO,jO,PO,SO],QO=[kO,CO],JO=!1;function eE(e){return e===PO||e===SO}var tE=function(e,t,r){var n=Cw(gO(EO),2),o=n[0],a=n[1],s=function(){var e=i.useRef(null);function t(){KO.cancel(e.current)}return i.useEffect(function(){return function(){t()}},[]),[function r(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=KO(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i},t]}(),l=Cw(s,2),c=l[0],u=l[1];var p=t?QO:ZO;return HO(function(){if(o!==EO&&o!==SO){var e=p.indexOf(o),t=p[e+1],n=r(o);n===JO?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,o]),i.useEffect(function(){return function(){u()}},[]),[function(){a(kO,!0)},o]};function rE(t,r,n,o){var a,s,l,c=o.motionEnter,u=void 0===c||c,p=o.motionAppear,d=void 0===p||p,f=o.motionLeave,m=void 0===f||f,h=o.motionDeadline,v=o.motionLeaveImmediately,y=o.onAppearPrepare,g=o.onEnterPrepare,b=o.onLeavePrepare,w=o.onAppearStart,x=o.onEnterStart,O=o.onLeaveStart,E=o.onAppearActive,k=o.onEnterActive,j=o.onLeaveActive,P=o.onAppearEnd,S=o.onEnterEnd,C=o.onLeaveEnd,T=o.onVisibleChanged,N=Cw(gO(),2),z=N[0],L=N[1],M=(a=bO,s=Cw(i.useReducer(function(e){return e+1},0),2)[1],l=i.useRef(a),[dO(function(){return l.current}),dO(function(e){l.current="function"==typeof e?e(l.current):e,s()})]),R=Cw(M,2),D=R[0],A=R[1],I=Cw(gO(null),2),B=I[0],_=I[1],W=D(),F=e.useRef(!1),V=e.useRef(null);function $(){return n()}var H=e.useRef(!1);function U(){A(bO),_(null,!0)}var q=dO(function(e){var t=D();if(t!==bO){var r=$();if(!e||e.deadline||e.target===r){var n,o=H.current;t===wO&&o?n=null==P?void 0:P(r,e):t===xO&&o?n=null==S?void 0:S(r,e):t===OO&&o&&(n=null==C?void 0:C(r,e)),o&&!1!==n&&U()}}}),Y=function(t){var r=e.useRef();function n(e){e&&(e.removeEventListener(VO,t),e.removeEventListener(FO,t))}return i.useEffect(function(){return function(){n(r.current)}},[]),[function(e){r.current&&r.current!==e&&n(r.current),e&&e!==r.current&&(e.addEventListener(VO,t),e.addEventListener(FO,t),r.current=e)},n]}(q),G=Cw(Y,1)[0],X=function(e){switch(e){case wO:return Ow(Ow(Ow({},kO,y),jO,w),PO,E);case xO:return Ow(Ow(Ow({},kO,g),jO,x),PO,k);case OO:return Ow(Ow(Ow({},kO,b),jO,O),PO,j);default:return{}}},K=i.useMemo(function(){return X(W)},[W]),Z=Cw(tE(W,!t,function(e){if(e===kO){var t=K[kO];return t?t($()):JO}var r;J in K&&_((null===(r=K[J])||void 0===r?void 0:r.call(K,$(),null))||null);return J===PO&&W!==bO&&(G($()),h>0&&(clearTimeout(V.current),V.current=setTimeout(function(){q({deadline:!0})},h))),J===CO&&U(),true}),2),Q=Z[0],J=Z[1],ee=eE(J);H.current=ee;var te=e.useRef(null);HO(function(){if(!F.current||te.current!==r){L(r);var e,n=F.current;F.current=!0,!n&&r&&d&&(e=wO),n&&r&&u&&(e=xO),(n&&!r&&m||!n&&v&&!r&&m)&&(e=OO);var o=X(e);e&&(t||o[kO])?(A(e),Q()):A(bO),te.current=r}},[r]),e.useEffect(function(){(W===wO&&!d||W===xO&&!u||W===OO&&!m)&&A(bO)},[d,u,m]),e.useEffect(function(){return function(){F.current=!1,clearTimeout(V.current)}},[]);var re=i.useRef(!1);e.useEffect(function(){z&&(re.current=!0),void 0!==z&&W===bO&&((re.current||z)&&(null==T||T(z)),re.current=!0)},[z,W]);var ne=B;return K[kO]&&J===jO&&(ne=kw({transition:"none"},ne)),[W,J,ne,null!=z?z:r]}var nE=function(t){var r=t;"object"===ww(t)&&(r=t.transitionSupport);var n=i.forwardRef(function(t,n){var o=t.visible,a=void 0===o||o,s=t.removeOnLeave,l=void 0===s||s,c=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,i.useContext(vO).motion),h=e.useRef(),v=e.useRef();var y=Cw(rE(m,a,function(){try{return h.current instanceof HTMLElement?h.current:Ex(v.current)}catch(e){return null}},t),4),g=y[0],b=y[1],w=y[2],x=y[3],O=i.useRef(x);x&&(O.current=!0);var E,k=i.useCallback(function(e){h.current=e,Gw(n,e)},[n]),j=kw(kw({},f),{},{visible:a});if(u)if(g===bO)E=x?u(kw({},j),k):!l&&O.current&&d?u(kw(kw({},j),{},{className:d}),k):c||!l&&!d?u(kw(kw({},j),{},{style:{display:"none"}}),k):null;else{var P;b===kO?P="prepare":eE(b)?P="active":b===jO&&(P="start");var S=$O(p,"".concat(g,"-").concat(P));E=u(kw(kw({},j),{},{className:By($O(p,g),Ow(Ow({},S,S&&P),p,"string"==typeof p)),style:w}),k)}else E=null;i.isValidElement(E)&&Zw(E)&&(Jw(E)||(E=i.cloneElement(E,{ref:k})));return i.createElement(yO,{ref:v},E)});return n.displayName="CSSMotion",n}(WO),oE="add",iE="keep",aE="remove",sE="removed";function lE(e){var t;return kw(kw({},t=e&&"object"===ww(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function cE(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(lE)}var uE=["component","children","onVisibleChanged","onAllRemoved"],pE=["status"],dE=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fE(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},s=a.className,l=a.content,c=o.x,u=void 0===c?0:c,p=o.y,d=void 0===p?0:p,f=i.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var h=r.points[0],v=r.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 i.createElement("div",{ref:f,className:By("".concat(t,"-arrow"),s),style:m},l)}function mE(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(nE,bw({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return i.createElement("div",{style:{zIndex:n},className:By("".concat(t,"-mask"),r)})}):null}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nE,t=function(){eO(r,i.Component);var t=oO(r);function r(){var e;Kx(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Ow(nO(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Ow(nO(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:kw(kw({},e),{},{status:sE})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==sE}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Qx(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,n=this.props,o=n.component,a=n.children,s=n.onVisibleChanged;n.onAllRemoved;var l=jw(n,uE),c=o||i.Fragment,u={};return dE.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,i.createElement(c,l,r.map(function(r,n){var o=r.status,l=jw(r,pE),c=o===oE||o===iE;return i.createElement(e,bw({},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(kw(kw({},e),{},{index:n}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=cE(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=cE(e),a=cE(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 kw(kw({},e),{},{status:oE})})),n=i),r.push(kw(kw({},s),{},{status:iE})),n+=1,t=!0;break}}t||r.push(kw(kw({},e),{},{status:aE}))}),n<o&&(r=r.concat(a.slice(n).map(function(e){return kw(kw({},e),{},{status:oE})})));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!==aE})).forEach(function(t){t.key===e&&(t.status=iE)})}),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!==sE||e.status!==aE})}}}]),r}();Ow(t,"defaultProps",{component:"div"})}(WO);var hE=i.memo(function(e){return e.children},function(e,t){return t.cache});"production"!==process.env.NODE_ENV&&(hE.displayName="PopupContent");var vE=i.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,p=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,b=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,O=e.portal,E=e.zIndex,k=e.onMouseEnter,j=e.onMouseLeave,P=e.onPointerEnter,S=e.onPointerDownCapture,C=e.ready,T=e.offsetX,N=e.offsetY,z=e.offsetR,L=e.offsetB,M=e.onAlign,R=e.onPrepare,D=e.stretch,A=e.targetWidth,I=e.targetHeight,B="function"==typeof r?r():r,_=c||u,W=(null==w?void 0:w.length)>0,F=Cw(i.useState(!w||!W),2),V=F[0],$=F[1];if(nx(function(){!V&&W&&s&&$(!0)},[V,W,s]),!V)return null;var H="auto",U={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!c){var q,Y=v.points,G=v.dynamicInset||(null===(q=v._experimental)||void 0===q?void 0:q.dynamicInset),X=G&&"r"===Y[0][1],K=G&&"b"===Y[0][0];X?(U.right=z,U.left=H):(U.left=T,U.right=H),K?(U.bottom=L,U.top=H):(U.top=N,U.bottom=H)}var Z={};return D&&(D.includes("height")&&I?Z.height=I:D.includes("minHeight")&&I&&(Z.minHeight=I),D.includes("width")&&A?Z.width=A:D.includes("minWidth")&&A&&(Z.minWidth=A)),c||(Z.pointerEvents="none"),i.createElement(O,{open:b||_,getContainer:w&&function(){return w(s)},autoDestroy:x},i.createElement(mE,{prefixCls:o,open:c,zIndex:E,mask:f,motion:g}),i.createElement(cO,{onResize:M,disabled:!c},function(e){return i.createElement(nE,bw({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),function(r,s){var l=r.className,u=r.style,f=By(o,l,n);return i.createElement("div",{ref:Xw(e,t,s),className:f,style:kw(kw(kw(kw({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Z),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:k,onMouseLeave:j,onPointerEnter:P,onClick:d,onPointerDownCapture:S},m&&i.createElement(fE,{prefixCls:o,arrow:m,arrowPos:h,align:v}),i.createElement(hE,{cache:!c&&!p},B))})}))});"production"!==process.env.NODE_ENV&&(vE.displayName="Popup");var yE=i.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Zw(r),a=i.useCallback(function(e){Gw(t,n?n(e):e)},[n]),s=Kw(a,Jw(r));return o?i.cloneElement(r,{ref:s}):r});"production"!==process.env.NODE_ENV&&(yE.displayName="TriggerWrapper");var gE=i.createContext(null);function bE(e){return e?Array.isArray(e)?e:[e]:[]}function wE(){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 xE(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function OE(e){return e.ownerDocument.defaultView}function EE(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=OE(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 kE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function jE(e){return kE(parseFloat(e),0)}function PE(e,t){var r=kw({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=OE(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=jE(i),h=jE(a),v=jE(s),y=jE(l),g=kE(Math.round(c.width/d*1e3)/1e3),b=kE(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=jE(o);P=C*g,S=C*b}var T=c.x+k-P,N=c.y+O-S,z=T+c.width+2*P-k-j-w,L=N+c.height+2*S-O-E-x;r.left=Math.max(r.left,T),r.top=Math.max(r.top,N),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,L)}}),r}function SE(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 CE(e,t){var r=Cw(t||[],2),n=r[0],o=r[1];return[SE(e.width,n),SE(e.height,o)]}function TE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function NE(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 zE(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 LE(e,t,r,n,o,a,s){var l=Cw(i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),2),c=l[0],u=l[1],p=i.useRef(0),d=i.useMemo(function(){return t?EE(t):[]},[t]),f=i.useRef({});e||(f.current={});var m=dO(function(){if(t&&r&&e){var i,l,c,p,m,h=t,v=h.ownerDocument,y=OE(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=kw(kw({},o[n]),a),j=v.createElement("div");if(null===(i=h.parentElement)||void 0===i||i.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(r))m={x:r[0],y:r[1],width:0,height:0};else{var P,S,C=r.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 T=h.getBoundingClientRect(),N=y.getComputedStyle(h),z=N.height,L=N.width;T.x=null!==(l=T.x)&&void 0!==l?l:T.left,T.y=null!==(c=T.y)&&void 0!==c?c:T.top;var M=v.documentElement,R=M.clientWidth,D=M.clientHeight,A=M.scrollWidth,I=M.scrollHeight,B=M.scrollTop,_=M.scrollLeft,W=T.height,F=T.width,V=m.height,$=m.width,H={left:0,top:0,right:R,bottom:D},U={left:-_,top:-B,right:A-_,bottom:I-B},q=k.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==q&&q!==G&&(q=Y);var X=q===G,K=PE(U,d),Z=PE(H,d),Q=q===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=kE(Math.round(F/parseFloat(L)*1e3)/1e3),re=kE(Math.round(W/parseFloat(z)*1e3)/1e3);if(0===te||0===re||Ox(r)&&!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}(r))return;var ne=k.offset,oe=k.targetOffset,ie=Cw(CE(T,ne),2),ae=ie[0],se=ie[1],le=Cw(CE(m,oe),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var pe=Cw(k.points||[],2),de=pe[0],fe=TE(pe[1]),me=TE(de),he=NE(m,fe),ve=NE(T,me),ye=kw({},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=T.x+e,o=T.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=NE(m,["t","l"]),Se=NE(T,["t","l"]),Ce=NE(m,["b","r"]),Te=NE(T,["b","r"]),Ne=k.overflow||{},ze=Ne.adjustX,Le=Ne.adjustY,Me=Ne.shiftX,Re=Ne.shiftY,De=function(e){return"boolean"==typeof e?e:e>=0};function ft(){we=T.y+be,xe=we+W,Oe=T.x+ge,Ee=Oe+F}ft();var Ae=De(Le),Ie=me[0]===fe[0];if(Ae&&"t"===me[0]&&(xe>J.bottom||f.current.bt)){var Be=be;Ie?Be-=W-V:Be=Pe.y-Te.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=[zE(me,0),zE(fe,0)]):f.current.bt=!1}if(Ae&&"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=[zE(me,0),zE(fe,0)]):f.current.tb=!1}var He=De(ze),Ue=me[1]===fe[1];if(He&&"l"===me[1]&&(Ee>J.right||f.current.rl)){var qe=ge;Ue?qe-=F-$:qe=Pe.x-Te.x-ae;var Ye=dt(qe,be),Ge=dt(qe,be,Z);Ye>ke||Ye===ke&&(!X||Ge>=je)?(f.current.rl=!0,ge=qe,ae=-ae,ye.points=[zE(me,1),zE(fe,1)]):f.current.rl=!1}if(He&&"r"===me[1]&&(Oe<J.left||f.current.lr)){var Xe=ge;Ue?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=[zE(me,1),zE(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===Re?0:Re;"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=T.x+ge,tt=et+F,rt=T.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(t,ye);var ut=ee.right-T.x-(ge+T.width),pt=ee.bottom-T.y-(be+T.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 kw(kw({},e),{},{ready:!1})})};return nx(h,[n]),nx(function(){e||h()},[e]),[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 ME=["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 RE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wx,t=i.forwardRef(function(t,r){var n=t.prefixCls,o=void 0===n?"rc-trigger-popup":n,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,p=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,v=t.mouseLeaveDelay,y=void 0===v?.1:v,g=t.focusDelay,b=t.blurDelay,w=t.mask,x=t.maskClosable,O=void 0===x||x,E=t.getPopupContainer,k=t.forceRender,j=t.autoDestroy,P=t.destroyPopupOnHide,S=t.popup,C=t.popupClassName,T=t.popupStyle,N=t.popupPlacement,z=t.builtinPlacements,L=void 0===z?{}:z,M=t.popupAlign,R=t.zIndex,D=t.stretch,A=t.getPopupClassNameFromAlign,I=t.fresh,B=t.alignPoint,_=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,V=t.popupMotion,$=t.maskMotion,H=t.popupTransitionName,U=t.popupAnimation,q=t.maskTransitionName,Y=t.maskAnimation,G=t.className,X=t.getTriggerDOMNode,K=jw(t,ME),Z=j||P||!1,Q=Cw(i.useState(!1),2),J=Q[0],ee=Q[1];nx(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=i.useRef({}),re=i.useContext(gE),ne=i.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==re||re.registerSubPopup(e,t)}}},[re]),oe=hO(),ie=Cw(i.useState(null),2),ae=ie[0],se=ie[1],le=i.useRef(null),ce=dO(function(e){le.current=e,Ox(e)&&ae!==e&&se(e),null==re||re.registerSubPopup(oe,e)}),ue=Cw(i.useState(null),2),pe=ue[0],de=ue[1],fe=i.useRef(null),me=dO(function(e){Ox(e)&&pe!==e&&(de(e),fe.current=e)}),he=i.Children.only(a),ve=(null==he?void 0:he.props)||{},ye={},ge=dO(function(e){var t,r,n=pe;return(null==n?void 0:n.contains(e))||(null===(t=pO(n))||void 0===t?void 0:t.host)===e||e===n||(null==ae?void 0:ae.contains(e))||(null===(r=pO(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=xE(o,V,U,H),we=xE(o,$,Y,q),xe=Cw(i.useState(d||!1),2),Oe=xe[0],Ee=xe[1],ke=null!=p?p:Oe,je=dO(function(e){void 0===p&&Ee(e)});nx(function(){Ee(p||!1)},[p]);var Pe=i.useRef(ke);Pe.current=ke;var Se=i.useRef([]);Se.current=[];var Ce=dO(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))}),Te=i.useRef(),Ne=function(){clearTimeout(Te.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ne(),0===t?Ce(e):Te.current=setTimeout(function(){Ce(e)},1e3*t)};i.useEffect(function(){return Ne},[]);var Le=Cw(i.useState(!1),2),Me=Le[0],Re=Le[1];nx(function(e){e&&!ke||Re(!0)},[ke]);var De=Cw(i.useState(null),2),Ae=De[0],Ie=De[1],Be=Cw(i.useState(null),2),_e=Be[0],We=Be[1],Fe=function(e){We([e.clientX,e.clientY])},Ve=Cw(LE(ke,ae,B&&null!==_e?_e:pe,N,L,M,W),11),$e=Ve[0],He=Ve[1],Ue=Ve[2],qe=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(e,t,r,n){return i.useMemo(function(){var o=bE(null!=r?r:t),i=bE(null!=n?n:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}(J,l,c,u),tt=Cw(et,2),rt=tt[0],nt=tt[1],ot=rt.has("click"),it=nt.has("click")||nt.has("contextMenu"),at=dO(function(){Me||Je()});!function(e,t,r,n,o){nx(function(){if(e&&t&&r){var i=r,a=EE(t),s=EE(i),l=OE(i),c=new Set([l].concat(tx(a),tx(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)}),nx(function(){at()},[_e,N]),nx(function(){!ke||null!=L&&L[N]||at()},[JSON.stringify(M)]);var st=i.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(wE(null===(s=e[l])||void 0===s?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}(L,o,Qe,B);return By(e,null==A?void 0:A(Qe))},[Qe,A,L,o,B]);i.useImperativeHandle(r,function(){return{nativeElement:fe.current,popupElement:le.current,forceAlign:at}});var lt=Cw(i.useState(0),2),ct=lt[0],ut=lt[1],pt=Cw(i.useState(0),2),dt=pt[0],ft=pt[1],mt=function(){if(D&&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))}}nx(function(){Ae&&(Je(),Ae(),Ie(null))},[Ae]),(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(e,t,r,n,o,a,s,l){var c=i.useRef(e);c.current=e;var u=i.useRef(!1);return i.useEffect(function(){if(t&&n&&(!o||a)){var e=function(){u.current=!1},i=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=OE(n);p.addEventListener("pointerdown",e,!0),p.addEventListener("mousedown",i,!0),p.addEventListener("contextmenu",i,!0);var d,f,m=pO(r);return m&&(m.addEventListener("mousedown",i,!0),m.addEventListener("contextmenu",i,!0)),"production"!==process.env.NODE_ENV&&Lw((null==r||null===(d=r.getRootNode)||void 0===d?void 0:d.call(r))===(null===(f=n.getRootNode)||void 0===f?void 0:f.call(n)),"trigger element and popup element should in same shadow root."),function(){p.removeEventListener("pointerdown",e,!0),p.removeEventListener("mousedown",i,!0),p.removeEventListener("contextmenu",i,!0),m&&(m.removeEventListener("mousedown",i,!0),m.removeEventListener("contextmenu",i,!0))}}},[t,r,n,o,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=By(ve.className,G));var xt=i.useRef(!1);xt.current||(xt.current=k||ke||Me);var Ot=kw(kw({},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=i.cloneElement(he,kw(kw({},Ot),Et)),jt={x:Ge,y:Xe},Pt=F?kw({},!0!==F?F:{}):null;return i.createElement(i.Fragment,null,i.createElement(cO,{disabled:!ke,ref:me,onResize:function(){mt(),at()}},i.createElement(yE,{getTriggerDOMNode:X},kt)),xt.current&&i.createElement(gE.Provider,{value:ne},i.createElement(vE,{portal:e,ref:ce,prefixCls:o,popup:S,className:By(C,st),style:T,target:pe,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:R,open:ke,keepDom:Me,fresh:I,onClick:_,onPointerDownCapture:gt,mask:w,motion:be,maskMotion:we,onVisibleChanged:function(e){Re(!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:Ue,offsetR:qe,offsetB:Ye,onAlign:at,stretch:D,targetWidth:ct/Ke,targetHeight:dt/Ze})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(wx),DE={shiftX:64,adjustY:1},AE={adjustX:1,shiftY:!0},IE=[0,0],BE={left:{points:["cr","cl"],overflow:AE,offset:[-4,0],targetOffset:IE},right:{points:["cl","cr"],overflow:AE,offset:[4,0],targetOffset:IE},top:{points:["bc","tc"],overflow:DE,offset:[0,-4],targetOffset:IE},bottom:{points:["tc","bc"],overflow:DE,offset:[0,4],targetOffset:IE},topLeft:{points:["bl","tl"],overflow:DE,offset:[0,-4],targetOffset:IE},leftTop:{points:["tr","tl"],overflow:AE,offset:[-4,0],targetOffset:IE},topRight:{points:["br","tr"],overflow:DE,offset:[0,-4],targetOffset:IE},rightTop:{points:["tl","tr"],overflow:AE,offset:[4,0],targetOffset:IE},bottomRight:{points:["tr","br"],overflow:DE,offset:[0,4],targetOffset:IE},rightBottom:{points:["bl","br"],overflow:AE,offset:[4,0],targetOffset:IE},bottomLeft:{points:["tl","bl"],overflow:DE,offset:[0,4],targetOffset:IE},leftBottom:{points:["br","bl"],overflow:AE,offset:[-4,0],targetOffset:IE}},_E=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],WE=function(t,r){var n=t.overlayClassName,o=t.trigger,a=void 0===o?["hover"]:o,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,p=t.overlayStyle,d=t.prefixCls,f=void 0===d?"rc-tooltip":d,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,b=t.motion,w=t.placement,x=void 0===w?"right":w,O=t.align,E=void 0===O?{}:O,k=t.destroyTooltipOnHide,j=void 0!==k&&k,P=t.defaultVisible,S=t.getTooltipContainer,C=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,N=t.id,z=t.showArrow,L=void 0===z||z,M=t.classNames,R=t.styles,D=jw(t,_E),A=hO(N),I=e.useRef(null);e.useImperativeHandle(r,function(){return I.current});var B=kw({},D);"visible"in t&&(B.popupVisible=t.visible);var _,W;return i.createElement(RE,bw({popupClassName:By(n,null==M?void 0:M.root),prefixCls:f,popup:function(){return i.createElement(gw,{key:"content",prefixCls:f,id:A,bodyClassName:null==M?void 0:M.body,overlayInnerStyle:kw(kw({},C),null==R?void 0:R.body)},T)},action:a,builtinPlacements:BE,popupPlacement:x,ref:I,popupAlign:E,getPopupContainer:S,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:b,defaultPopupVisible:P,autoDestroy:j,mouseLeaveDelay:u,popupStyle:kw(kw({},p),null==R?void 0:R.root),mouseEnterDelay:l,arrow:L},B),(_=i.Children.only(m),W=kw(kw({},(null==_?void 0:_.props)||{}),{},{"aria-describedby":T?A:null}),i.cloneElement(m,W)))},FE=e.forwardRef(WE);const VE=({title:t,description:r,footer:n,dataTestId:o,variant:i="default"})=>{const a=Boolean(r||n);return e.createElement("div",{"data-test-id":o,className:he("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})},e.createElement("div",{className:he("flex items-center",!a&&"justify-center")},e.createElement(Yy,{fontWeight:"bold",variant:a?"regular":"small",className:he({"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},t)),r&&e.createElement("div",{className:"mt-1.5"},e.createElement(Yy,{variant:"small",className:he("opacity-90",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},r)),n&&e.createElement("div",{className:he("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?e.createElement(Yy,{variant:"small",className:he("opacity-75",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},n):n))},$E=({overlay:t,title:r,description:n,footer:o,children:i,trigger:a="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:l=.1,placement:c="top",variant:u="default",className:p,...d})=>{const f=e.useMemo(()=>"function"==typeof t?t():t?e.createElement(e.Fragment,null,t):e.createElement(VE,{title:r,description:n,footer:o,variant:u,dataTestId:d.dataTestId}),[n,o,t,r,u,d.dataTestId]);return r||n||t?e.createElement(FE,{overlay:f,trigger:a,mouseEnterDelay:s,mouseLeaveDelay:l,placement:c,destroyTooltipOnHide:!0,overlayClassName:he("max-w-xs z-50",p),...d},e.createElement("span",{className:"inline-flex"},i)):i||null};function HE(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 UE=["color"],qE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,UE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),YE=["color"],GE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,YE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),XE=["color"],KE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,XE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),ZE=["color"],QE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,ZE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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 JE=6048e5,ek=Symbol.for("constructDateFrom");function tk(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ek in e?e[ek](t):e instanceof Date?new e.constructor(t):new Date(t)}function rk(e,t){return tk(t||e,e)}function nk(e,t,r){const n=rk(e,r?.in);return isNaN(t)?tk(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function ok(e,t,r){const n=rk(e,r?.in);if(isNaN(t))return tk(r?.in||e,NaN);if(!t)return n;const o=n.getDate(),i=tk(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 ik={};function ak(){return ik}function sk(e,t){const r=ak(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=rk(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 lk(e,t){return sk(e,{...t,weekStartsOn:1})}function ck(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=tk(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=lk(o),a=tk(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=lk(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function uk(e){const t=rk(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 pk(e,...t){const r=tk.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function dk(e,t){const r=rk(e,t?.in);return r.setHours(0,0,0,0),r}function fk(e,t,r){const[n,o]=pk(r?.in,e,t),i=dk(n),a=dk(o),s=+i-uk(i),l=+a-uk(a);return Math.round((s-l)/864e5)}function mk(e,t,r){return nk(e,7*t,r)}function hk(e,t,r){return ok(e,12*t,r)}function vk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=tk.bind(null,e));const t=rk(e,n);(!r||r<t||isNaN(+t))&&(r=t)}),tk(n,r||NaN)}function yk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=tk.bind(null,e));const t=rk(e,n);(!r||r>t||isNaN(+t))&&(r=t)}),tk(n,r||NaN)}function gk(e,t,r){const[n,o]=pk(r?.in,e,t);return+dk(n)===+dk(o)}function bk(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wk(e,t,r){const[n,o]=pk(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}function xk(e,t){const r=rk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Ok(e,t){const r=rk(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Ek(e,t){const r=rk(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function kk(e,t){const r=ak(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=rk(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 jk(e,t){return kk(e,{...t,weekStartsOn:1})}const Pk={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 Sk(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ck={date:Sk({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sk({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:Sk({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Nk(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 zk={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:Nk({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Nk({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:Nk({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:Nk({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:Nk({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 Lk(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 Mk={ordinalNumber:(Rk={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Rk.matchPattern);if(!r)return null;const n=r[0],o=e.match(Rk.parsePattern);if(!o)return null;let i=Rk.valueCallback?Rk.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:Lk({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:Lk({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:Lk({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:Lk({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:Lk({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 Rk;const Dk={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=Pk[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:Ck,formatRelative:(e,t,r,n)=>Tk[e],localize:zk,match:Mk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ak(e,t){const r=rk(e,t?.in),n=+lk(r)-+function(e,t){const r=ck(e,t),n=tk(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),lk(n)}(r);return Math.round(n/JE)+1}function Ik(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=ak(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=tk(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=sk(a,t),l=tk(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=sk(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function Bk(e,t){const r=rk(e,t?.in),n=+sk(r,t)-+function(e,t){const r=ak(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Ik(e,t),i=tk(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),sk(i,t)}(r,t);return Math.round(n/JE)+1}function _k(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Wk={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return _k("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):_k(r+1,2)},d:(e,t)=>_k(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)=>_k(e.getHours()%12||12,t.length),H:(e,t)=>_k(e.getHours(),t.length),m:(e,t)=>_k(e.getMinutes(),t.length),s:(e,t)=>_k(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return _k(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Fk="midnight",Vk="noon",$k="morning",Hk="afternoon",Uk="evening",qk="night",Yk={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 Wk.y(e,t)},Y:function(e,t,r,n){const o=Ik(e,n),i=o>0?o:1-o;if("YY"===t){return _k(i%100,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):_k(i,t.length)},R:function(e,t){return _k(ck(e),t.length)},u:function(e,t){return _k(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 _k(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 _k(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 Wk.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 _k(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=Bk(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):_k(o,t.length)},I:function(e,t,r){const n=Ak(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):_k(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Wk.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=rk(e,t?.in);return fk(r,Ek(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):_k(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 _k(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 _k(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 _k(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?Vk:0===n?Fk: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?Uk:n>=12?Hk:n>=4?$k:qk,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 Wk.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Wk.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):_k(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):_k(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wk.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Wk.s(e,t)},S:function(e,t){return Wk.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Xk(n);case"XXXX":case"XX":return Kk(n);default:return Kk(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Xk(n);case"xxxx":case"xx":return Kk(n);default:return Kk(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gk(n,":");default:return"GMT"+Kk(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gk(n,":");default:return"GMT"+Kk(n,":")}},t:function(e,t,r){return _k(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return _k(+e,t.length)}};function Gk(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+_k(i,2)}function Xk(e,t){if(e%60==0){return(e>0?"-":"+")+_k(Math.abs(e)/60,2)}return Kk(e,t)}function Kk(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+_k(Math.trunc(n/60),2)+t+_k(n%60,2)}const Zk=(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"})}},Qk=(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"})}},Jk={p:Qk,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Zk(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}}",Zk(n,t)).replace("{{time}}",Qk(o,t))}},ej=/^D+$/,tj=/^Y+$/,rj=["D","DD","YY","YYYY"];const nj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ij=/^'([^]*?)'?$/,aj=/''/g,sj=/[a-zA-Z]/;function lj(e,t,r){const n=ak(),o=r?.locale??n.locale??Dk,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=rk(e,r?.in);if(!function(e){return!(!bk(e)&&"number"!=typeof e||isNaN(+rk(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(oj).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Jk[t])(e,o.formatLong)}return e}).join("").match(nj).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:cj(e)};if(Yk[t])return{isToken:!0,value:e};if(t.match(sj))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 tj.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return ej.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),rj.includes(e))throw new RangeError(n)}(i,t,String(e));return(0,Yk[i[0]])(s,i,o.localize,c)}).join("")}function cj(e){const t=e.match(ij);return t?t[1].replace(aj,"'"):e}function uj(e,t){const r=rk(e,t?.in);return function(e,t,r){const[n,o]=pk(r?.in,e,t),i=sk(n,r),a=sk(o,r),s=+i-uk(i),l=+a-uk(a);return Math.round((s-l)/JE)}(function(e,t){const r=rk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),rk(r,t?.in)}(r,t),Ok(r,t),t)+1}function pj(e,t){return+rk(e)>+rk(t)}function dj(e,t){return+rk(e)<+rk(t)}function fj(e,t,r){const[n,o]=pk(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function mj(e,t,r){return nk(e,-t,r)}function hj(e,t,r){const n=rk(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=tk(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=tk(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 vj(e,t,r){const n=rk(e,r?.in);return isNaN(+n)?tk(e,NaN):(n.setFullYear(t),n)}var yj=function(){return yj=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},yj.apply(this,arguments)};function gj(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 bj(e){return"multiple"===e.mode}function wj(e){return"range"===e.mode}function xj(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Oj={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 Ej=Object.freeze({__proto__:null,formatCaption:function(e,t){return lj(e,"LLLL y",t)},formatDay:function(e,t){return lj(e,"d",t)},formatMonthCaption:function(e,t){return lj(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return lj(e,"cccccc",t)},formatYearCaption:function(e,t){return lj(e,"yyyy",t)}}),kj=Object.freeze({__proto__:null,labelDay:function(e,t,r){return lj(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 lj(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var jj=e.createContext(void 0);function Pj(e){var r,n,o=e.initialProps,i=function(){var e=Oj,t=Dk,r=new Date;return{captionLayout:"buttons",classNames:e,formatters:Ej,labels:kj,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:r,mode:"default"}}(),a=function(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,i=e.fromDate,a=e.toDate;return n?i=Ok(n):t&&(i=new Date(t,0,1)),o?a=xk(o):r&&(a=new Date(r,11,31)),{fromDate:i?dk(i):void 0,toDate:a?dk(a):void 0}}(o),s=a.fromDate,l=a.toDate,c=null!==(r=o.captionLayout)&&void 0!==r?r:i.captionLayout;"buttons"===c||s&&l||(c="buttons"),(xj(o)||bj(o)||wj(o))&&(n=o.onSelect);var u=yj(yj(yj({},i),o),{captionLayout:c,classNames:yj(yj({},i.classNames),o.classNames),components:yj({},o.components),formatters:yj(yj({},i.formatters),o.formatters),fromDate:s,labels:yj(yj({},i.labels),o.labels),mode:o.mode||i.mode,modifiers:yj(yj({},i.modifiers),o.modifiers),modifiersClassNames:yj(yj({},i.modifiersClassNames),o.modifiersClassNames),onSelect:n,styles:yj(yj({},i.styles),o.styles),toDate:l});return t.jsx(jj.Provider,{value:u,children:e.children})}function Sj(){var t=e.useContext(jj);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function Cj(e){var r=Sj(),n=r.locale,o=r.classNames,i=r.styles,a=r.formatters.formatCaption;return t.jsx("div",{className:o.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Tj(e){return t.jsx("svg",yj({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:t.jsx("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 Nj(e){var r,n,o=e.onChange,i=e.value,a=e.children,s=e.caption,l=e.className,c=e.style,u=Sj(),p=null!==(n=null===(r=u.components)||void 0===r?void 0:r.IconDropdown)&&void 0!==n?n:Tj;return t.jsxs("div",{className:l,style:c,children:[t.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),t.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:i,onChange:o,children:a}),t.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[s,t.jsx(p,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function zj(e){var r,n=Sj(),o=n.fromDate,i=n.toDate,a=n.styles,s=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,u=n.components,p=n.labels.labelMonthDropdown;if(!o)return t.jsx(t.Fragment,{});if(!i)return t.jsx(t.Fragment,{});var d=[];if(function(e,t,r){const[n,o]=pk(r?.in,e,t);return n.getFullYear()===o.getFullYear()}(o,i))for(var f=Ok(o),m=o.getMonth();m<=i.getMonth();m++)d.push(hj(f,m));else for(f=Ok(new Date),m=0;m<=11;m++)d.push(hj(f,m));var h=null!==(r=null==u?void 0:u.Dropdown)&&void 0!==r?r:Nj;return t.jsx(h,{name:"months","aria-label":p(),className:c.dropdown_month,style:a.dropdown_month,onChange:function(t){var r=Number(t.target.value),n=hj(Ok(e.displayMonth),r);e.onChange(n)},value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s}),children:d.map(function(e){return t.jsx("option",{value:e.getMonth(),children:l(e,{locale:s})},e.getMonth())})})}function Lj(e){var r,n=e.displayMonth,o=Sj(),i=o.fromDate,a=o.toDate,s=o.locale,l=o.styles,c=o.classNames,u=o.components,p=o.formatters.formatYearCaption,d=o.labels.labelYearDropdown,f=[];if(!i)return t.jsx(t.Fragment,{});if(!a)return t.jsx(t.Fragment,{});for(var m=i.getFullYear(),h=a.getFullYear(),v=m;v<=h;v++)f.push(vj(Ek(new Date),v));var y=null!==(r=null==u?void 0:u.Dropdown)&&void 0!==r?r:Nj;return t.jsx(y,{name:"years","aria-label":d(),className:c.dropdown_year,style:l.dropdown_year,onChange:function(t){var r=vj(Ok(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:p(n,{locale:s}),children:f.map(function(e){return t.jsx("option",{value:e.getFullYear(),children:p(e,{locale:s})},e.getFullYear())})})}function Mj(){var t=Sj(),r=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&&wk(i,o)<0&&(o=ok(i,-1*(l-1))),a&&wk(o,a)<0&&(o=a),Ok(o)}(t),n=function(t,r){var n=e.useState(t),o=n[0];return[void 0===r?o:r,n[1]]}(r,t.month),o=n[0],i=n[1];return[o,function(e){var r;if(!t.disableNavigation){var n=Ok(e);i(n),null===(r=t.onMonthChange)||void 0===r||r.call(t,n)}}]}var Rj=e.createContext(void 0);function Dj(e){var r=Sj(),n=Mj(),o=n[0],i=n[1],a=function(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Ok(e),i=wk(Ok(ok(o,n)),o),a=[],s=0;s<i;s++){var l=ok(o,s);a.push(l)}return r&&(a=a.reverse()),a}(o,r),s=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=Ok(e);if(!r)return ok(s,a);if(!(wk(r,e)<i))return ok(s,a)}}(o,r),l=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=Ok(e);if(!r)return ok(a,-i);if(!(wk(a,r)<=0))return ok(a,-i)}}(o,r),c=function(e){return a.some(function(t){return fj(e,t)})},u={currentMonth:o,displayMonths:a,goToMonth:i,goToDate:function(e,t){c(e)||(t&&dj(e,t)?i(ok(e,1+-1*r.numberOfMonths)):i(e))},previousMonth:l,nextMonth:s,isDateDisplayed:c};return t.jsx(Rj.Provider,{value:u,children:e.children})}function Aj(){var t=e.useContext(Rj);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function Ij(e){var r,n=Sj(),o=n.classNames,i=n.styles,a=n.components,s=Aj().goToMonth,l=function(t){s(ok(t,e.displayIndex?-e.displayIndex:0))},c=null!==(r=null==a?void 0:a.CaptionLabel)&&void 0!==r?r:Cj,u=t.jsx(c,{id:e.id,displayMonth:e.displayMonth});return t.jsxs("div",{className:o.caption_dropdowns,style:i.caption_dropdowns,children:[t.jsx("div",{className:o.vhidden,children:u}),t.jsx(zj,{onChange:l,displayMonth:e.displayMonth}),t.jsx(Lj,{onChange:l,displayMonth:e.displayMonth})]})}function Bj(e){return t.jsx("svg",yj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:t.jsx("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 _j(e){return t.jsx("svg",yj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:t.jsx("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 Wj=e.forwardRef(function(e,r){var n=Sj(),o=n.classNames,i=n.styles,a=[o.button_reset,o.button];e.className&&a.push(e.className);var s=a.join(" "),l=yj(yj({},i.button_reset),i.button);return e.style&&Object.assign(l,e.style),t.jsx("button",yj({},e,{ref:r,type:"button",className:s,style:l}))});function Fj(e){var r,n,o=Sj(),i=o.dir,a=o.locale,s=o.classNames,l=o.styles,c=o.labels,u=c.labelPrevious,p=c.labelNext,d=o.components;if(!e.nextMonth&&!e.previousMonth)return t.jsx(t.Fragment,{});var f=u(e.previousMonth,{locale:a}),m=[s.nav_button,s.nav_button_previous].join(" "),h=p(e.nextMonth,{locale:a}),v=[s.nav_button,s.nav_button_next].join(" "),y=null!==(r=null==d?void 0:d.IconRight)&&void 0!==r?r:_j,g=null!==(n=null==d?void 0:d.IconLeft)&&void 0!==n?n:Bj;return t.jsxs("div",{className:s.nav,style:l.nav,children:[!e.hidePrevious&&t.jsx(Wj,{name:"previous-month","aria-label":f,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===i?t.jsx(y,{className:s.nav_icon,style:l.nav_icon}):t.jsx(g,{className:s.nav_icon,style:l.nav_icon})}),!e.hideNext&&t.jsx(Wj,{name:"next-month","aria-label":h,className:v,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===i?t.jsx(g,{className:s.nav_icon,style:l.nav_icon}):t.jsx(y,{className:s.nav_icon,style:l.nav_icon})})]})}function Vj(e){var r=Sj().numberOfMonths,n=Aj(),o=n.previousMonth,i=n.nextMonth,a=n.goToMonth,s=n.displayMonths,l=s.findIndex(function(t){return fj(e.displayMonth,t)}),c=0===l,u=l===s.length-1,p=r>1&&(c||!u),d=r>1&&(u||!c);return t.jsx(Fj,{displayMonth:e.displayMonth,hideNext:p,hidePrevious:d,nextMonth:i,previousMonth:o,onPreviousClick:function(){o&&a(o)},onNextClick:function(){i&&a(i)}})}function $j(e){var r,n,o=Sj(),i=o.classNames,a=o.disableNavigation,s=o.styles,l=o.captionLayout,c=o.components,u=null!==(r=null==c?void 0:c.CaptionLabel)&&void 0!==r?r:Cj;return n=a?t.jsx(u,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===l?t.jsx(Ij,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===l?t.jsxs(t.Fragment,{children:[t.jsx(Ij,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.jsx(Vj,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):t.jsxs(t.Fragment,{children:[t.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.jsx(Vj,{displayMonth:e.displayMonth,id:e.id})]}),t.jsx("div",{className:i.caption,style:s.caption,children:n})}function Hj(e){var r=Sj(),n=r.footer,o=r.styles,i=r.classNames.tfoot;return n?t.jsx("tfoot",{className:i,style:o.tfoot,children:t.jsx("tr",{children:t.jsx("td",{colSpan:8,children:n})})}):t.jsx(t.Fragment,{})}function Uj(){var e=Sj(),r=e.classNames,n=e.styles,o=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=function(e,t,r){for(var n=r?lk(new Date):sk(new Date,{locale:e,weekStartsOn:t}),o=[],i=0;i<7;i++){var a=nk(n,i);o.push(a)}return o}(i,a,s);return t.jsxs("tr",{style:n.head_row,className:r.head_row,children:[o&&t.jsx("td",{style:n.head_cell,className:r.head_cell}),u.map(function(e,o){return t.jsx("th",{scope:"col",className:r.head_cell,style:n.head_cell,"aria-label":c(e,{locale:i}),children:l(e,{locale:i})},o)})]})}function qj(){var e,r=Sj(),n=r.classNames,o=r.styles,i=r.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:Uj;return t.jsx("thead",{style:o.head,className:n.head,children:t.jsx(a,{})})}function Yj(e){var r=Sj(),n=r.locale,o=r.formatters.formatDay;return t.jsx(t.Fragment,{children:o(e.date,{locale:n})})}var Gj=e.createContext(void 0);function Xj(e){if(!bj(e.initialProps)){var r={selected:void 0,modifiers:{disabled:[]}};return t.jsx(Gj.Provider,{value:r,children:e.children})}return t.jsx(Kj,{initialProps:e.initialProps,children:e.children})}function Kj(e){var r=e.initialProps,n=e.children,o=r.selected,i=r.min,a=r.max,s={disabled:[]};o&&s.disabled.push(function(e){var t=a&&o.length>a-1,r=o.some(function(t){return gk(t,e)});return Boolean(t&&!r)});var l={selected:o,onDayClick:function(e,t,n){var s,l;if((null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,n),!Boolean(t.selected&&i&&(null==o?void 0:o.length)===i))&&!Boolean(!t.selected&&a&&(null==o?void 0:o.length)===a)){var c=o?gj([],o):[];if(t.selected){var u=c.findIndex(function(t){return gk(e,t)});c.splice(u,1)}else c.push(e);null===(l=r.onSelect)||void 0===l||l.call(r,c,e,t,n)}},modifiers:s};return t.jsx(Gj.Provider,{value:l,children:n})}function Zj(){var t=e.useContext(Gj);if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}var Qj,Jj=e.createContext(void 0);function eP(e){if(!wj(e.initialProps)){var r={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return t.jsx(Jj.Provider,{value:r,children:e.children})}return t.jsx(tP,{initialProps:e.initialProps,children:e.children})}function tP(e){var r=e.initialProps,n=e.children,o=r.selected,i=o||{},a=i.from,s=i.to,l=r.min,c=r.max,u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],gk(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),l&&(a&&!s&&u.disabled.push({after:mj(a,l-1),before:nk(a,l-1)}),a&&s&&u.disabled.push({after:a,before:nk(a,l-1)}),!a&&s&&u.disabled.push({after:mj(s,l-1),before:nk(s,l-1)})),c){if(a&&!s&&(u.disabled.push({before:nk(a,1-c)}),u.disabled.push({after:nk(a,c-1)})),a&&s){var p=c-(fk(s,a)+1);u.disabled.push({before:mj(a,p)}),u.disabled.push({after:nk(s,p)})}!a&&s&&(u.disabled.push({before:nk(s,1-c)}),u.disabled.push({after:nk(s,c-1)}))}return t.jsx(Jj.Provider,{value:{selected:o,onDayClick:function(e,t,n){var i,a;null===(i=r.onDayClick)||void 0===i||i.call(r,e,t,n);var s=function(e,t){var r=t||{},n=r.from,o=r.to;if(n&&o){if(gk(o,e)&&gk(n,e))return;if(gk(o,e))return{from:o,to:void 0};if(gk(n,e))return;return pj(n,e)?{from:e,to:o}:{from:n,to:e}}return o?pj(e,o)?{from:o,to:e}:{from:e,to:o}:n?dj(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}(e,o);null===(a=r.onSelect)||void 0===a||a.call(r,s,e,t,n)},modifiers:u},children:n})}function rP(){var t=e.useContext(Jj);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function nP(e){return Array.isArray(e)?gj([],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"}(Qj||(Qj={}));var oP=Qj.Selected,iP=Qj.Disabled,aP=Qj.Hidden,sP=Qj.Today,lP=Qj.RangeEnd,cP=Qj.RangeMiddle,uP=Qj.RangeStart,pP=Qj.Outside;var dP=e.createContext(void 0);function fP(e){var r=Sj(),n=function(e,t,r){var n,o=((n={})[oP]=nP(e.selected),n[iP]=nP(e.disabled),n[aP]=nP(e.hidden),n[sP]=[e.today],n[lP]=[],n[cP]=[],n[uP]=[],n[pP]=[],n);return e.fromDate&&o[iP].push({before:e.fromDate}),e.toDate&&o[iP].push({after:e.toDate}),bj(e)?o[iP]=o[iP].concat(t.modifiers[iP]):wj(e)&&(o[iP]=o[iP].concat(r.modifiers[iP]),o[uP]=r.modifiers[uP],o[cP]=r.modifiers[cP],o[lP]=r.modifiers[lP]),o}(r,Zj(),rP()),o=function(e){var t={};return Object.entries(e).forEach(function(e){var r=e[0],n=e[1];t[r]=nP(n)}),t}(r.modifiers),i=yj(yj({},n),o);return t.jsx(dP.Provider,{value:i,children:e.children})}function mP(){var t=e.useContext(dP);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function hP(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(bk(t))return gk(e,t);if(function(e){return Array.isArray(e)&&e.every(bk)}(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?(fk(o,n)<0&&(n=(r=[o,n])[0],o=r[1]),fk(e,n)>=0&&fk(o,e)>=0):o?gk(o,e):!!n&&gk(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=fk(t.before,e)>0,n=fk(t.after,e)<0;return pj(t.before,t.after)?n&&r:r||n}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?fk(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?fk(t.before,e)>0:"function"==typeof t&&t(e)})}function vP(e,t,r){var n=Object.keys(t).reduce(function(r,n){var o=t[n];return hP(e,o)&&r.push(n),r},[]),o={};return n.forEach(function(e){return o[e]=!0}),r&&!fj(e,r)&&(o.outside=!0),o}function yP(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:nk,week:mk,month:ok,year:hk,startOfWeek:function(e){return o.ISOWeek?lk(e):sk(e,{locale:p,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?jk(e):kk(e,{locale:p,weekStartsOn:l})}}[r](e,"after"===n?1:-1);"before"===n&&c?d=vk([c,d]):"after"===n&&u&&(d=yk([u,d]));var f=!0;if(i){var m=vP(d,i);f=!m.disabled&&!m.hidden}return f?d:s.count>365?s.lastFocused:yP(d,{moveBy:r,direction:n,context:o,modifiers:i,retry:yj(yj({},s),{count:s.count+1})})}var gP=e.createContext(void 0);function bP(r){var n=Aj(),o=mP(),i=e.useState(),a=i[0],s=i[1],l=e.useState(),c=l[0],u=l[1],p=function(e,t){for(var r,n,o=Ok(e[0]),i=xk(e[e.length-1]),a=o;a<=i;){var s=vP(a,t);if(s.disabled||s.hidden)a=nk(a,1);else{if(s.selected)return a;s.today&&!n&&(n=a),r||(r=a),a=nk(a,1)}}return n||r}(n.displayMonths,o),d=(null!=a?a:c&&n.isDateDisplayed(c))?c:p,f=function(e){s(e)},m=Sj(),h=function(e,t){if(a){var r=yP(a,{moveBy:e,direction:t,context:m,modifiers:o});gk(a,r)||(n.goToDate(r,a),f(r))}},v={focusedDay:a,focusTarget:d,blur:function(){u(a),s(void 0)},focus:f,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return t.jsx(gP.Provider,{value:v,children:r.children})}function wP(){var t=e.useContext(gP);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}var xP=e.createContext(void 0);function OP(e){if(!xj(e.initialProps)){var r={selected:void 0};return t.jsx(xP.Provider,{value:r,children:e.children})}return t.jsx(EP,{initialProps:e.initialProps,children:e.children})}function EP(e){var r=e.initialProps,n=e.children,o={selected:r.selected,onDayClick:function(e,t,n){var o,i,a;null===(o=r.onDayClick)||void 0===o||o.call(r,e,t,n),!t.selected||r.required?null===(a=r.onSelect)||void 0===a||a.call(r,e,e,t,n):null===(i=r.onSelect)||void 0===i||i.call(r,void 0,e,t,n)}};return t.jsx(xP.Provider,{value:o,children:n})}function kP(){var t=e.useContext(xP);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function jP(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(Qj).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&r.push(o)}}),r}function PP(r,n,o){var i,a,s,l=Sj(),c=wP(),u=function(e,t){return vP(e,mP(),t)}(r,n),p=function(e,t){var r=Sj(),n=kP(),o=Zj(),i=rP(),a=wP(),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;xj(r)?null===(s=n.onDayClick)||void 0===s||s.call(n,e,t,a):bj(r)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):wj(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}(r,u),d=function(){var e=Sj(),t=kP(),r=Zj(),n=rP();return xj(e)?t.selected:bj(e)?r.selected:wj(e)?n.selected:void 0}(),f=Boolean(l.onDayClick||"default"!==l.mode);e.useEffect(function(){var e;u.outside||c.focusedDay&&f&&gk(c.focusedDay,r)&&(null===(e=o.current)||void 0===e||e.focus())},[c.focusedDay,r,o,f,u.outside]);var m=jP(l,u).join(" "),h=function(e,t){var r=yj({},e.styles.day);return Object.keys(t).forEach(function(t){var n;r=yj(yj({},r),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])}),r}(l,u),v=Boolean(u.outside&&!l.showOutsideDays||u.hidden),y=null!==(s=null===(a=l.components)||void 0===a?void 0:a.DayContent)&&void 0!==s?s:Yj,g={style:h,className:m,children:t.jsx(y,{date:r,displayMonth:n,activeModifiers:u}),role:"gridcell"},b=c.focusTarget&&gk(c.focusTarget,r)&&!u.outside,w=c.focusedDay&&gk(c.focusedDay,r),x=yj(yj(yj({},g),((i={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,i.tabIndex=w||b?0:-1,i)),p);return{isButton:f,isHidden:v,activeModifiers:u,selectedDays:d,buttonProps:x,divProps:g}}function SP(r){var n=e.useRef(null),o=PP(r.date,r.displayMonth,n);return o.isHidden?t.jsx("div",{role:"gridcell"}):o.isButton?t.jsx(Wj,yj({name:"day",ref:n},o.buttonProps)):t.jsx("div",yj({},o.divProps))}function CP(e){var r=e.number,n=e.dates,o=Sj(),i=o.onWeekNumberClick,a=o.styles,s=o.classNames,l=o.locale,c=o.labels.labelWeekNumber,u=(0,o.formatters.formatWeekNumber)(Number(r),{locale:l});if(!i)return t.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var p=c(Number(r),{locale:l});return t.jsx(Wj,{name:"week-number","aria-label":p,className:s.weeknumber,style:a.weeknumber,onClick:function(e){i(r,n,e)},children:u})}function TP(e){var r,n,o,i=Sj(),a=i.styles,s=i.classNames,l=i.showWeekNumber,c=i.components,u=null!==(r=null==c?void 0:c.Day)&&void 0!==r?r:SP,p=null!==(n=null==c?void 0:c.WeekNumber)&&void 0!==n?n:CP;return l&&(o=t.jsx("td",{className:s.cell,style:a.cell,children:t.jsx(p,{number:e.weekNumber,dates:e.dates})})),t.jsxs("tr",{className:s.row,style:a.row,children:[o,e.dates.map(function(r){return t.jsx("td",{className:s.cell,style:a.cell,role:"presentation",children:t.jsx(u,{displayMonth:e.displayMonth,date:r})},function(e){return Math.trunc(+rk(e)/1e3)}(r))})]})}function NP(e,t,r){for(var n=(null==r?void 0:r.ISOWeek)?jk(t):kk(t,r),o=(null==r?void 0:r.ISOWeek)?lk(e):sk(e,r),i=fk(n,o),a=[],s=0;s<=i;s++)a.push(nk(o,s));return a.reduce(function(e,t){var n=(null==r?void 0:r.ISOWeek)?Ak(t):Bk(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 zP(e){var r,n,o,i=Sj(),a=i.locale,s=i.classNames,l=i.styles,c=i.hideHead,u=i.fixedWeeks,p=i.components,d=i.weekStartsOn,f=i.firstWeekContainsDate,m=i.ISOWeek,h=function(e,t){var r=NP(Ok(e),xk(e),t);if(null==t?void 0:t.useFixedWeeks){var n=uj(e,t);if(n<6){var o=r[r.length-1],i=o.dates[o.dates.length-1],a=mk(i,6-n),s=NP(mk(i,1),a,t);r.push.apply(r,s)}}return r}(e.displayMonth,{useFixedWeeks:Boolean(u),ISOWeek:m,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),v=null!==(r=null==p?void 0:p.Head)&&void 0!==r?r:qj,y=null!==(n=null==p?void 0:p.Row)&&void 0!==n?n:TP,g=null!==(o=null==p?void 0:p.Footer)&&void 0!==o?o:Hj;return t.jsxs("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&t.jsx(v,{}),t.jsx("tbody",{className:s.tbody,style:l.tbody,children:h.map(function(r){return t.jsx(y,{displayMonth:e.displayMonth,dates:r.dates,weekNumber:r.weekNumber},r.weekNumber)})}),t.jsx(g,{displayMonth:e.displayMonth})]})}var LP="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,MP=!1,RP=0;function DP(){return"react-day-picker-".concat(++RP)}function AP(r){var n,o,i=Sj(),a=i.dir,s=i.classNames,l=i.styles,c=i.components,u=Aj().displayMonths,p=function(t){var r,n=null!=t?t:MP?DP():null,o=e.useState(n),i=o[0],a=o[1];return LP(function(){null===i&&a(DP())},[]),e.useEffect(function(){!1===MP&&(MP=!0)},[]),null!==(r=null!=t?t:i)&&void 0!==r?r:void 0}(i.id?"".concat(i.id,"-").concat(r.displayIndex):void 0),d=i.id?"".concat(i.id,"-grid-").concat(r.displayIndex):void 0,f=[s.month],m=l.month,h=0===r.displayIndex,v=r.displayIndex===u.length-1,y=!h&&!v;"rtl"===a&&(v=(n=[h,v])[0],h=n[1]),h&&(f.push(s.caption_start),m=yj(yj({},m),l.caption_start)),v&&(f.push(s.caption_end),m=yj(yj({},m),l.caption_end)),y&&(f.push(s.caption_between),m=yj(yj({},m),l.caption_between));var g=null!==(o=null==c?void 0:c.Caption)&&void 0!==o?o:$j;return t.jsxs("div",{className:f.join(" "),style:m,children:[t.jsx(g,{id:p,displayMonth:r.displayMonth,displayIndex:r.displayIndex}),t.jsx(zP,{id:d,"aria-labelledby":p,displayMonth:r.displayMonth})]},r.displayIndex)}function IP(e){var r=Sj(),n=r.classNames,o=r.styles;return t.jsx("div",{className:n.months,style:o.months,children:e.children})}function BP(r){var n,o,i=r.initialProps,a=Sj(),s=wP(),l=Aj(),c=e.useState(!1),u=c[0],p=c[1];e.useEffect(function(){a.initialFocus&&s.focusTarget&&(u||(s.focus(s.focusTarget),p(!0)))},[a.initialFocus,u,s.focus,s.focusTarget,s]);var d=[a.classNames.root,a.className];a.numberOfMonths>1&&d.push(a.classNames.multiple_months),a.showWeekNumber&&d.push(a.classNames.with_weeknumber);var f=yj(yj({},a.styles.root),a.style),m=Object.keys(i).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var r;return yj(yj({},e),((r={})[t]=i[t],r))},{}),h=null!==(o=null===(n=i.components)||void 0===n?void 0:n.Months)&&void 0!==o?o:IP;return t.jsx("div",yj({className:d.join(" "),style:f,dir:a.dir,id:a.id,nonce:i.nonce,title:i.title,lang:i.lang},m,{children:t.jsx(h,{children:l.displayMonths.map(function(e,r){return t.jsx(AP,{displayIndex:r,displayMonth:e},r)})})}))}function _P(e){var r=e.children,n=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 t.jsx(Pj,{initialProps:n,children:t.jsx(Dj,{children:t.jsx(OP,{initialProps:n,children:t.jsx(Xj,{initialProps:n,children:t.jsx(eP,{initialProps:n,children:t.jsx(fP,{children:t.jsx(bP,{children:r})})})})})})})}function WP(e){return t.jsx(_P,yj({},e,{children:t.jsx(BP,{initialProps:e})}))}const FP=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,VP=l,$P=(HP="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",UP={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==UP?void 0:UP.variants))return VP(HP,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:n}=UP,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=FP(o)||FP(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==UP||null===(t=UP.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 VP(HP,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});var HP,UP;const qP=i.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const s=n?ng:"button";return i.createElement(s,{className:he($P({variant:t,size:r,className:e})),ref:a,...o})});qP.displayName="Button";const YP=({className:t,classNames:r,showOutsideDays:n=!0,...o})=>e.createElement(WP,{showOutsideDays:n,className:he("p-3",t),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:he($P({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:he("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:he($P({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:()=>e.createElement(qE,{className:"h-4 w-4"}),IconRight:()=>e.createElement(GE,{className:"h-4 w-4"})},...o});YP.displayName="Calendar";const GP={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"}},XP=i.forwardRef(({variant:e,size:t,className:r,...n},o)=>{const a={slash:i.createElement("span",{className:"mx-2 text-muted-foreground/50 select-none"},"/"),arrow:i.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},i.createElement(Se,{className:he(GP[t].icon,"text-muted-foreground/50")})),icon:i.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},i.createElement(Se,{className:he(GP[t].icon,"text-muted-foreground/50")}))};return i.createElement("span",{ref:o,className:he("flex items-center",r),...n},a[e])});XP.displayName="BreadCrumbSeparator";const KP=i.forwardRef(({items:t,variant:r="slash",size:n="medium",maxItems:o=4,className:a,...s},l)=>{const[c,u]=e.useState(!1),[p,d]=e.useState(null),f=e.useMemo(()=>{if(c||t.length<=o)return t;return[...t.slice(0,1),{label:"...",href:"#"},...t.slice(-2)]},[t,o,c]);return i.createElement("nav",{ref:l,"aria-label":"BreadCrumb",className:he("w-full p-3 select-none",a),...s},i.createElement("ol",{className:"flex items-center flex-wrap gap-y-2"},"icon"===r&&i.createElement("li",{className:"flex items-center"},i.createElement("a",{href:"/",className:he("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")},i.createElement(Le,{className:GP[n].icon}),i.createElement("span",{className:"sr-only"},"Home"))),f.map((e,t)=>{const o=t===f.length-1,a="..."===e.label,s=p===t;return i.createElement("li",{key:e.href,className:"flex items-center group",onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},t>0&&i.createElement(XP,{variant:r,size:n}),"icon"===r&&!a&&i.createElement("span",{className:"mr-1"},e.icon||i.createElement(ze,{className:he(GP[n].icon,"text-muted-foreground/80")})),i.createElement("a",{href:a?void 0:e.href,className:he("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",GP[n].text,GP[n].spacing,o?"text-primary cursor-default font-semibold":"text-muted-foreground/80 hover:text-muted-foreground",!o&&["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(),u(!0))},...!o&&{role:"link","aria-current":void 0},...o&&{"aria-current":"page"}},i.createElement("span",{className:"relative"},e.label)))})))});KP.displayName="BreadCrumb";const ZP={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"}},QP={basic:{trigger:"border border-border hover:border-primary/20",content:"border border-border"},"shadow-sm":{trigger:"shadow-lg hover:shadow-xl",content:"shadow-xl"}},JP=({text:t,className:r=""})=>{const{textRef:n,isTruncated:o}=(()=>{const t=e.useRef(null),[r,n]=e.useState(!1),o=e.useCallback(()=>{if(t.current){const e=t.current;n(e.scrollWidth>e.clientWidth)}},[]);return e.useEffect(()=>{o();const e=t.current,r=new ResizeObserver(()=>{o()});return e&&r.observe(e),window.addEventListener("resize",o),()=>{e&&r.unobserve(e),r.disconnect(),window.removeEventListener("resize",o)}},[o]),{textRef:t,isTruncated:r}})();return o?e.createElement($E,{title:t,trigger:"hover"},e.createElement("span",{ref:n,className:he("truncate block w-full max-w-full",r)},t)):e.createElement("span",{ref:n,className:he("truncate block w-full max-w-full",r)},t)},eS=e.forwardRef(({options:t,value:r,onValueChange:n,placeholder:o="",disabled:i=!1,showIcons:a=!0,size:s="medium",variant:l="basic",className:c,classNames:u,searchable:p=!1,onSearch:d},f)=>{const[m,h]=e.useState(!1),[v,y]=e.useState(-1),[g,b]=e.useState(""),[w,x]=e.useState(null),[O,E]=e.useState(""),[k,j]=e.useState(0),[P,S]=e.useState(!1),C=e.useRef(null),T=e.useRef(null),N=e.useRef(null),z=e.useRef([]),L=e.useMemo(()=>t.find(e=>e.id===r),[t,r]),M=e.useMemo(()=>ZP[s],[s]),R=e.useMemo(()=>p&&O?t.filter(e=>e.label.toLowerCase().includes(O.toLowerCase())):t,[t,p,O]);e.useEffect(()=>{if(m&&T.current){const e=T.current.getBoundingClientRect(),t=300,r=window.innerHeight-e.bottom,n=e.top;S(r<t&&n>t)}},[m]),e.useEffect(()=>()=>{w&&clearTimeout(w)},[w]),e.useEffect(()=>{const e=()=>{T.current&&j(T.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e.useEffect(()=>{m?p&&N.current&&N.current.focus():(y(-1),E(""))},[m,p]),e.useEffect(()=>{m&&v>=0&&z.current[v]&&z.current[v]?.scrollIntoView({block:"nearest"})},[m,v]),e.useEffect(()=>{const e=e=>{C.current&&!C.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e.useEffect(()=>{p&&d&&d(O)},[O,d,p]);const D=e.useCallback(e=>{n?.(e),h(!1)},[n]),A=e.useMemo(()=>{if(!l)return{trigger:"",content:""};const e=QP[l]||{trigger:"",content:""};return{trigger:e.trigger||"",content:e.content||""}},[l]),I=e.useCallback(e=>{if(!i)switch(e.key){case"ArrowDown":e.preventDefault(),m?y(e=>Math.min(e+1,R.length-1)):(h(!0),y(0));break;case"ArrowUp":e.preventDefault(),m?y(e=>Math.max(e-1,0)):(h(!0),y(R.length-1));break;case"Home":e.preventDefault(),m&&y(0);break;case"End":e.preventDefault(),m&&y(R.length-1);break;case"Enter":case" ":if(e.preventDefault(),m&&v>=0){const e=R[v];e.disabled||D(e.id)}else h(!m);break;case"Escape":e.preventDefault(),h(!1);break;default:if(!p&&1===e.key.length){const t=e.key.toLowerCase();w&&clearTimeout(w);const r=g+t;b(r);const n=R.findIndex(e=>e.label.toLowerCase().startsWith(r));n>=0&&(y(n),m||h(!0));const o=setTimeout(()=>{b("")},1e3);x(o)}}},[i,m,R,g,w,D,v,p]),B=e.useCallback((e,t,r)=>{r||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),D(t))},[D]),_=e.useCallback(e=>{E(e.target.value),y(0)},[]);return e.createElement("div",{ref:C,className:"relative max-w-full"},e.createElement("button",{type:"button",ref:e=>{"function"==typeof f?f(e):f&&(f.current=e),T.current=e},onClick:()=>!i&&h(!m),onKeyDown:I,className:he("group flex w-full items-center justify-between rounded-xl",L?"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",i&&"cursor-not-allowed opacity-50",m&&"border-primary/30 bg-primary/5 shadow-lg","max-w-full text-ellipsis whitespace-nowrap",M.trigger,A.trigger,c,u?.trigger),disabled:i,"aria-expanded":m,"aria-haspopup":"listbox","aria-controls":"dropdown-options","aria-label":o},e.createElement("div",{className:"flex items-center gap-3 min-w-0 w-full overflow-hidden"},a&&L?.icon&&e.createElement("span",{className:"text-primary/70 transition-colors duration-200 group-hover:text-primary flex-shrink-0"},e.cloneElement(L.icon,{})),e.createElement(JP,{text:L?L.label:o,className:he("font-medium",M.optionText)})),e.createElement(je,{className:he("text-primary/70 transition-all duration-300","group-hover:text-primary",m&&"rotate-180",M.icon,"flex-shrink-0 ml-2")})),e.createElement("div",{id:"dropdown-options",role:"listbox","aria-label":o,className:he("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",m?"visible scale-100 opacity-100":"invisible scale-95 opacity-0","absolute left-0","max-w-full overflow-hidden",P?"bottom-full mb-2":"top-full mt-2",A.content,u?.content),style:{width:k>0?`${k}px`:"auto",maxWidth:"100%"}},p&&e.createElement("div",{className:"sticky top-0 z-10 mb-1.5 bg-background/100 px-2 py-1.5 max-w-full"},e.createElement("div",{className:"relative max-w-full"},e.createElement(De,{className:he("absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",M.icon)}),e.createElement("input",{ref:N,type:"text",value:O,onChange:_,onClick:e=>e.stopPropagation(),placeholder:"Search...",className:he("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",M.optionText)}))),e.createElement("div",{className:"max-h-72 overflow-auto max-w-full"},0===R.length?e.createElement("div",{className:"px-3 py-2 text-sm text-muted-foreground truncate max-w-full"},"No options found"):R.map((t,n)=>e.createElement(e.Fragment,{key:t.id},e.createElement("div",{ref:e=>{z.current[n]=e},role:"option",tabIndex:m&&!t.disabled?0:-1,"aria-selected":r===t.id,onClick:()=>!t.disabled&&D(t.id),onKeyDown:e=>B(e,t.id,!!t.disabled),className:he("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",t.disabled&&"pointer-events-none opacity-50",(r===t.id||n===v)&&"bg-primary/5 border border-primary/20","max-w-full",M.option,u?.item)},a&&t.icon&&e.createElement("span",{className:he("text-primary/70 transition-colors duration-200","group-hover:text-primary","flex-shrink-0",u?.itemIcon)},e.cloneElement(t.icon)),e.createElement("div",{className:"flex flex-col gap-0.5 min-w-0 flex-grow overflow-hidden max-w-full"},e.createElement(JP,{text:t.label,className:he("font-medium leading-none","transition-colors duration-200","group-hover:text-primary",M.optionText,u?.itemText)}),t.description&&e.createElement(JP,{text:t.description,className:he("text-muted-foreground","transition-colors duration-200","group-hover:text-primary/70",M.description,u?.description)})),r===t.id&&e.createElement(ke,{className:he("ml-auto text-primary flex-shrink-0",M.icon)})),n<R.length-1&&e.createElement("div",{className:he("my-1.5 h-px bg-border/50",u?.separator)}))))))});eS.displayName="Dropdown";const tS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("rounded-xl border bg-card text-card-foreground shadow-sm",e),...t}));tS.displayName="Card";const rS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex flex-col space-y-1.5 p-6",e),...t}));rS.displayName="CardHeader";i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("font-semibold leading-none tracking-tight",e),...t})).displayName="CardTitle";i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("text-sm text-muted-foreground",e),...t})).displayName="CardDescription";const nS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("p-6 pt-0",e),...t}));nS.displayName="CardContent";function oS({className:t,...r}){return e.createElement("div",{className:he("animate-pulse rounded-md bg-primary/10",t),...r})}i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter";const iS=({headerRows:t=2,contentRows:r=3,headerRowHeight:n="h-6",contentRowHeight:o="h-5",gridCols:i=2,gridHeight:a="h-64",className:s})=>e.createElement(tS,{className:he("overflow-hidden",s)},e.createElement(rS,{className:"border-b"},e.createElement("div",{className:"space-y-8"},Array.from({length:t}).map((t,r)=>e.createElement(oS,{key:r,className:he(n,0===r?"w-1/3":"w-2/3")})),i>0&&e.createElement("div",{className:he("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((t,r)=>e.createElement(oS,{key:r,className:a}))))),e.createElement(nS,{className:"mt-6 space-y-6"},Array.from({length:r}).map((t,r)=>e.createElement("div",{key:r,className:"flex gap-4"},e.createElement(oS,{className:he("w-5",o)}),e.createElement("div",{className:"space-y-2 flex-1"},e.createElement(oS,{className:he("w-3/4",o)}),e.createElement(oS,{className:he("w-1/2",o)})))))),aS=({rows:t=5,className:r})=>e.createElement(tS,{className:he("shadow-lg border-border",r)},e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-48"})),e.createElement(nS,null,e.createElement("div",{className:"space-y-4"},Array.from({length:t}).map((t,r)=>e.createElement(oS,{key:r,className:"h-16 w-full"}))))),sS=({className:t,rows:r=3,rowHeight:n="h-4",mainHeight:o="h-24",firstRowWidth:i="w-3/5",secondRowWidth:a="w-4/5"})=>e.createElement(tS,{className:t},e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-48"})),e.createElement(nS,{className:"space-y-4"},e.createElement(oS,{className:o}),Array.from({length:r}).map((t,r)=>e.createElement(oS,{key:r,className:he(n,0===r?i:a)})))),lS=()=>e.createElement("div",{className:"space-y-6"},e.createElement("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4"},Array.from({length:4}).map((t,r)=>e.createElement(tS,{key:r},e.createElement(rS,{className:"flex flex-row items-center justify-between pb-2"},e.createElement(oS,{className:"h-5 w-1/2"}),e.createElement(oS,{className:"h-4 w-4"})),e.createElement(nS,null,e.createElement(oS,{className:"h-8 w-full"}),e.createElement(oS,{className:"mt-4 h-4 w-3/4"}))))),e.createElement("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2"},e.createElement(tS,null,e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-40"})),e.createElement(nS,null,e.createElement(oS,{className:"h-[200px]"}))),e.createElement(tS,null,e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-40"})),e.createElement(nS,null,e.createElement("div",{className:"space-y-2"},Array.from({length:5}).map((t,r)=>e.createElement("div",{key:r,className:"flex justify-between"},e.createElement(oS,{className:"h-4 w-[100px]"}),e.createElement(oS,{className:"h-4 w-[60px]"})))))))),cS=e.forwardRef(({variant:t="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:e.createElement(iS,{headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,className:n}),table:e.createElement(aS,{rows:r,className:n}),simple:e.createElement(sS,{className:n,rows:r,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s}),dashboard:e.createElement(lS,null)};return e.createElement("div",{ref:h,...m},v[t])});cS.displayName="CustomSkeleton";const uS={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"}},pS={none:"",sm:"space-y-2",md:"space-y-3",lg:"space-y-4"},dS={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"},mS={none:"rounded-none",sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-3xl"},hS={"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"},vS={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"]}},yS=({title:t,description:r,children:n,variant:o="gradiant",size:i="medium",shadow:a="none",hoverEffect:s="none",borderRadius:l="lg",image:c,imagePosition:u="top",imageHeight:p,badge:d,badgePosition:f="top-right",footer:m,header:h,padding:v,spacing:y="md",width:g,height:b,maxWidth:w,className:x,contentClassName:O,titleClassName:E,descriptionClassName:k,imageClassName:j,onClick:P,href:S,interactive:C=!1,disabled:T=!1})=>{const[N,z]=e.useState(!c),L=e.useCallback(()=>{z(!0)},[]),M=vS[o],R=uS[i],D=dS[a],A=fS[s],I=mS[l],B="none"===y?"":pS[y]||R.spacing,_=hS[f],W=v||R.padding,F=p||R.imageHeight,V=C?"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":"",$=T?"opacity-60 pointer-events-none":"",H=e.useCallback(e=>{!T&&P&&P()},[T,P]),U=e.createElement(e.Fragment,null,h&&e.createElement("div",{"data-testid":"header",className:"mb-4"},h),d&&e.createElement("div",{"data-testid":"badge-wrapper",className:_},"string"==typeof d?e.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"},d):d),e.createElement("div",{className:he(B,M.content&&"default"!==o&&"p-6",O)},c&&"top"===u&&e.createElement("div",{"data-testid":"image-wrapper",className:he("relative w-full overflow-hidden",I,F,"mb-6",j)},e.createElement("div",{"data-testid":"image-container",className:he(N?"opacity-100":"opacity-0","transition-opacity duration-300")},e.createElement("img",{src:c,alt:t||"Card image",className:"h-full w-full object-cover",onLoad:L}))),t&&e.createElement("h3",{"data-testid":"title",className:he("font-semibold tracking-tight text-foreground dark:text-foreground-dark",R.titleSize,E)},t),r&&e.createElement("p",{"data-testid":"description",className:he("text-muted-foreground dark:text-muted-foreground-dark leading-relaxed",R.descSize,k)},r),n&&e.createElement("div",{className:he("mt-4")},n),m&&e.createElement("div",{"data-testid":"footer",className:"mt-6 pt-4 border-t border-border dark:border-border-dark"},m))),q=M.content?e.createElement("div",{className:M.content},U):U,Y={width:g||"auto",height:b||"auto",maxWidth:w||"none",...c&&"background"===u?{backgroundImage:`url(${c})`,backgroundSize:"cover",backgroundPosition:"center"}:{}},G=S?"a":"div",X=S?{href:S,...C?{tabIndex:0}:{}}:{},K=P?{onClick:H,role:"button",tabIndex:C&&!T?0:void 0}:{};return e.createElement(G,{...X,...K,className:he(M.wrapper,I,D,A,V,$,x),style:Y},e.createElement("div",{"data-testid":"gradient-wrapper"},M.gradients&&M.gradients.map((t,r)=>e.createElement("div",{key:r,className:t}))),M.inner?e.createElement("div",{className:he(M.inner,W)},e.createElement("div",{className:"relative"},q)):e.createElement("div",{className:he("relative",W)},q))};yS.displayName="Card";const gS={small:"h-10 w-10",medium:"h-14 w-14 md:h-20 md:w-20",large:"h-28 w-28"},bS=({variant:t="spinner",size:r="medium",className:n,ariaLabel:o="Loading",colorScheme:i})=>{const a=gS[r];return e.createElement("div",{role:"status","aria-label":o,className:he("flex items-center justify-center",n)},(()=>{switch(t){case"dots":return e.createElement("div",{className:"flex space-x-2"},[0,1,2].map(t=>e.createElement("div",{key:t,className:he("w-3 h-3 rounded-full","harford"!==i&&"bg-primary",0===t&&"animate-bounce",1===t&&"animate-bounce-delay-1",2===t&&"animate-bounce-delay-2"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"bars":return e.createElement("div",{className:"flex space-x-1 h-10 items-center"},[0,1,2,3].map(t=>e.createElement("div",{key:t,className:he("w-2 h-full rounded-full","harford"!==i&&"bg-primary",0===t&&"animate-bar-scale",1===t&&"animate-bar-scale-delay-1",2===t&&"animate-bar-scale-delay-2",3===t&&"animate-bar-scale-delay-3"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"orbit":return e.createElement("div",{className:he("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)},e.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:3rem]"},e.createElement("div",{className:he("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)"}:{}},e.createElement("div",{className:he("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),e.createElement("div",{className:he("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)"}:{}})),e.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:4rem]"},e.createElement("div",{className:he("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)"}:{}},e.createElement("div",{className:he("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),e.createElement("div",{className:he("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 e.createElement("div",{className:"relative"},e.createElement("div",{className:he("relative",a)},e.createElement("div",{className:he("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)"}:{}}),e.createElement("div",{className:he("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"}:{}}),e.createElement("div",{className:he("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)"}:{}}),e.createElement("div",{className:he("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)"}:{}})))}})(),e.createElement("span",{className:"sr-only"},o))};bS.displayName="Loader";var wS,xS="dismissableLayer.update",OS="dismissableLayer.pointerDownOutside",ES="dismissableLayer.focusOutside",kS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jS=i.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,p=i.useContext(kS),[d,f]=i.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=i.useState({}),v=Jy(r,e=>f(e)),y=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),w=d?y.indexOf(d):-1,x=p.layersWithOutsidePointerEventsDisabled.size>0,O=w>=b,E=function(e,t=globalThis?.document){const r=dg(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){SS(OS,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...p.branches].some(e=>e.contains(t));O&&!r&&(a?.(e),l?.(e),e.defaultPrevented||c?.())},m),k=function(e,t=globalThis?.document){const r=dg(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){SS(ES,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},m);return function(e,t=globalThis?.document){const r=dg(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===p.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),i.useEffect(()=>{if(d)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(wS=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),PS(),()=>{n&&1===p.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=wS)}},[d,m,n,p]),i.useEffect(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),PS())},[d,p]),i.useEffect(()=>{const e=()=>h({});return document.addEventListener(xS,e),()=>document.removeEventListener(xS,e)},[]),t.jsx(sg.div,{...u,ref:v,style:{pointerEvents:x?O?"auto":"none":void 0,...e.style},onFocusCapture:Ky(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ky(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ky(e.onPointerDownCapture,E.onPointerDownCapture)})});jS.displayName="DismissableLayer";function PS(){const e=new CustomEvent(xS);document.dispatchEvent(e)}function SS(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&&a.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}i.forwardRef((e,r)=>{const n=i.useContext(kS),o=i.useRef(null),a=Jy(r,o);return i.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),t.jsx(sg.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var CS="focusScope.autoFocusOnMount",TS="focusScope.autoFocusOnUnmount",NS={bubbles:!1,cancelable:!0},zS=i.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,u]=i.useState(null),p=dg(a),d=dg(s),f=i.useRef(null),m=Jy(r,e=>u(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:DS(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||DS(f.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&DS(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,c,h.paused]),i.useEffect(()=>{if(c){AS.add(h);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(CS,NS);c.addEventListener(CS,p),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(DS(n,{select:t}),document.activeElement!==r)return}((e=LS(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&DS(c))}return()=>{c.removeEventListener(CS,p),setTimeout(()=>{const e=new CustomEvent(TS,NS);c.addEventListener(TS,d),c.dispatchEvent(e),e.defaultPrevented||DS(t??document.body,{select:!0}),c.removeEventListener(TS,d),AS.remove(h)},0)}}var e},[c,p,d,h]);const v=i.useCallback(e=>{if(!n&&!o)return;if(h.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=LS(e),r=MS(t,e),n=MS(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&DS(i,{select:!0})):(e.preventDefault(),n&&DS(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return t.jsx(sg.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function LS(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 MS(e,t){for(const r of e)if(!RS(r,{upTo:t}))return r}function RS(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 DS(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()}}zS.displayName="FocusScope";var AS=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=IS(e,t),e.unshift(t)},remove(t){e=IS(e,t),e[0]?.resume()}}}();function IS(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var BS=i.forwardRef((e,n)=>{const{container:o,...a}=e,[s,l]=i.useState(!1);lg(()=>l(!0),[]);const c=o||s&&globalThis?.document?.body;return c?r.createPortal(t.jsx(sg.div,{...a,ref:n}),c):null});BS.displayName="Portal";var _S=0;function WS(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FS()),document.body.insertAdjacentElement("beforeend",e[1]??FS()),_S++,()=>{1===_S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),_S--}},[])}function FS(){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 VS=function(){return VS=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},VS.apply(this,arguments)};function $S(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 HS(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 US="right-scroll-bar-position",qS="width-before-scroll-bar";function YS(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var GS="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,XS=new WeakMap;function KS(t,r){var n,o,i,a=(n=null,o=function(e){return t.forEach(function(t){return YS(t,e)})},(i=e.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return GS(function(){var e=XS.get(a);if(e){var r=new Set(e),n=new Set(t),o=a.current;r.forEach(function(e){n.has(e)||YS(e,null)}),n.forEach(function(e){r.has(e)||YS(e,o)})}XS.set(a,t)},[t]),a}function ZS(e){return e}var QS=function(e){var t=e.sideCar,r=$S(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,VS({},r))};QS.isSideCarExport=!0;var JS=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ZS);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=VS({async:!0,ssr:!1},e),t}(),eC=function(){},tC=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:eC,onWheelCapture:eC,onTouchMoveCapture:eC}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,w=e.gapMode,x=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=f,E=KS([r,t]),k=VS(VS({},x),o);return i.createElement(i.Fragment,null,p&&i.createElement(O,{sideCar:JS,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:w}),s?i.cloneElement(i.Children.only(l),VS(VS({},k),{ref:E})):i.createElement(b,VS({},k,{className:c,ref:E}),l))});tC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tC.classNames={fullWidth:qS,zeroRight:US};function rC(){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 nC=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=rC())&&(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)}}},oC=function(){var e,t=(e=nC(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},iC={left:0,top:0,right:0,gap:0},aC=function(e){return parseInt(e||"",10)||0},sC=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return iC;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[aC(r),aC(n),aC(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])}},lC=oC(),cC="data-scroll-locked",uC=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(cC,"] {\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(US," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(qS," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(US," .").concat(US," {\n right: 0 ").concat(n,";\n }\n \n .").concat(qS," .").concat(qS," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(cC,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},pC=function(){var e=parseInt(document.body.getAttribute(cC)||"0",10);return isFinite(e)?e:0},dC=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(cC,(pC()+1).toString()),function(){var e=pC()-1;e<=0?document.body.removeAttribute(cC):document.body.setAttribute(cC,e.toString())}},[]);var a=i.useMemo(function(){return sC(o)},[o]);return i.createElement(lC,{styles:uC(a,!t,o,r?"":"!important")})},fC=!1;if("undefined"!=typeof window)try{var mC=Object.defineProperty({},"passive",{get:function(){return fC=!0,!0}});window.addEventListener("test",mC,mC),window.removeEventListener("test",mC,mC)}catch(e){fC=!1}var hC=!!fC&&{passive:!1},vC=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])},yC=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),gC(e,n)){var o=bC(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},gC=function(e,t){return"v"===e?function(e){return vC(e,"overflowY")}(t):function(e){return vC(e,"overflowX")}(t)},bC=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},wC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xC=function(e){return[e.deltaX,e.deltaY]},OC=function(e){return e&&"current"in e?e.current:e},EC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},kC=0,jC=[];function PC(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var SC,CC=(SC=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(kC++)[0],a=i.useState(oC)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=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))}([e.lockRef.current],(e.shards||[]).map(OC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=wC(e),a=r.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=yC(p,u);if(!d)return!0;if(d?o=p:(o="v"===p?"h":"v",d=yC(p,u)),!d)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var f=n.current||o;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=bC(e,a),f=d[0],m=d[1]-d[2]-o*f;(f||m)&&gC(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=i.useCallback(function(e){var r=e;if(jC.length&&jC[jC.length-1]===a){var n="deltaY"in r?xC(r):wC(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(OC).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?l(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:PC(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),p=i.useCallback(function(e){r.current=wC(e),n.current=void 0},[]),d=i.useCallback(function(t){u(t.type,xC(t),t.target,l(t,e.lockRef.current))},[]),f=i.useCallback(function(t){u(t.type,wC(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return jC.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,hC),document.addEventListener("touchmove",c,hC),document.addEventListener("touchstart",p,hC),function(){jC=jC.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,hC),document.removeEventListener("touchmove",c,hC),document.removeEventListener("touchstart",p,hC)}},[]);var m=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(a,{styles:EC(o)}):null,m?i.createElement(dC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},JS.useMedium(SC),QS),TC=i.forwardRef(function(e,t){return i.createElement(tC,VS({},e,{ref:t,sideCar:CC}))});TC.classNames=tC.classNames;var NC=new WeakMap,zC=new WeakMap,LC={},MC=0,RC=function(e){return e&&(e.host||RC(e.parentNode))},DC=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=RC(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]);LC[r]||(LC[r]=new WeakMap);var i=LC[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=(NC.get(e)||0)+1,c=(i.get(e)||0)+1;NC.set(e,l),i.set(e,c),a.push(e),1===l&&o&&zC.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(),MC++,function(){a.forEach(function(e){var t=NC.get(e)-1,o=i.get(e)-1;NC.set(e,t),i.set(e,o),t||(zC.has(e)||e.removeAttribute(n),zC.delete(e)),o||e.removeAttribute(r)}),--MC||(NC=new WeakMap,NC=new WeakMap,zC=new WeakMap,LC={})}},AC=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"))),DC(n,o,r,"aria-hidden")):function(){return null}},IC="Dialog",[BC,_C]=eg(IC),[WC,FC]=BC(IC),VC=e=>{const{__scopeDialog:r,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[p,d]=mg({prop:o,defaultProp:a??!1,onChange:s,caller:IC});return t.jsx(WC,{scope:r,triggerRef:c,contentRef:u,contentId:pg(),titleId:pg(),descriptionId:pg(),open:p,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:l,children:n})};VC.displayName=IC;var $C="DialogTrigger",HC=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC($C,n),a=Jy(r,i.triggerRef);return t.jsx(sg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":uT(i.open),...o,ref:a,onClick:Ky(e.onClick,i.onOpenToggle)})});HC.displayName=$C;var UC="DialogPortal",[qC,YC]=BC(UC,{forceMount:void 0}),GC=e=>{const{__scopeDialog:r,forceMount:n,children:o,container:a}=e,s=FC(UC,r);return t.jsx(qC,{scope:r,forceMount:n,children:i.Children.map(o,e=>t.jsx(Ig,{present:n||s.open,children:t.jsx(BS,{asChild:!0,container:a,children:e})}))})};GC.displayName=UC;var XC="DialogOverlay",KC=i.forwardRef((e,r)=>{const n=YC(XC,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=FC(XC,e.__scopeDialog);return a.modal?t.jsx(Ig,{present:o||a.open,children:t.jsx(QC,{...i,ref:r})}):null});KC.displayName=XC;var ZC=rg("DialogOverlay.RemoveScroll"),QC=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(XC,n);return t.jsx(TC,{as:ZC,allowPinchZoom:!0,shards:[i.contentRef],children:t.jsx(sg.div,{"data-state":uT(i.open),...o,ref:r,style:{pointerEvents:"auto",...o.style}})})}),JC="DialogContent",eT=i.forwardRef((e,r)=>{const n=YC(JC,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=FC(JC,e.__scopeDialog);return t.jsx(Ig,{present:o||a.open,children:a.modal?t.jsx(tT,{...i,ref:r}):t.jsx(rT,{...i,ref:r})})});eT.displayName=JC;var tT=i.forwardRef((e,r)=>{const n=FC(JC,e.__scopeDialog),o=i.useRef(null),a=Jy(r,n.contentRef,o);return i.useEffect(()=>{const e=o.current;if(e)return AC(e)},[]),t.jsx(nT,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ky(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ky(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:Ky(e.onFocusOutside,e=>e.preventDefault())})}),rT=i.forwardRef((e,r)=>{const n=FC(JC,e.__scopeDialog),o=i.useRef(!1),a=i.useRef(!1);return t.jsx(nT,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),nT=i.forwardRef((e,r)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,c=FC(JC,n),u=i.useRef(null),p=Jy(r,u);return WS(),t.jsxs(t.Fragment,{children:[t.jsx(zS,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:t.jsx(jS,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":uT(c.open),...l,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(mT,{titleId:c.titleId}),t.jsx(hT,{contentRef:u,descriptionId:c.descriptionId})]})]})}),oT="DialogTitle",iT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(oT,n);return t.jsx(sg.h2,{id:i.titleId,...o,ref:r})});iT.displayName=oT;var aT="DialogDescription",sT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(aT,n);return t.jsx(sg.p,{id:i.descriptionId,...o,ref:r})});sT.displayName=aT;var lT="DialogClose",cT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(lT,n);return t.jsx(sg.button,{type:"button",...o,ref:r,onClick:Ky(e.onClick,()=>i.onOpenChange(!1))})});function uT(e){return e?"open":"closed"}cT.displayName=lT;var pT="DialogTitleWarning",[dT,fT]=function(e,r){const n=i.createContext(r),o=e=>{const{children:r,...o}=e,a=i.useMemo(()=>o,Object.values(o));return t.jsx(n.Provider,{value:a,children:r})};return o.displayName=e+"Provider",[o,function(t){const o=i.useContext(n);if(o)return o;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(pT,{contentName:JC,titleName:oT,docsSlug:"dialog"}),mT=({titleId:e})=>{const t=fT(pT),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{if(e){document.getElementById(e)||console.error(r)}},[r,e]),null},hT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fT("DialogDescriptionWarning").contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}},[r,e,t]),null},vT=VC,yT=HC,gT=GC,bT=KC,wT=eT,xT=iT,OT=sT,ET=cT;const kT=gT,jT=i.forwardRef(({className:e,...t},r)=>i.createElement(bT,{ref:r,className:he("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",e),...t}));jT.displayName=bT.displayName;i.forwardRef(({className:e,children:t,...r},n)=>i.createElement(kT,null,i.createElement(jT,null),i.createElement(wT,{ref:n,className:he("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",e),...r},t,i.createElement(ET,{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"},i.createElement(KE,{className:"h-4 w-4"}),i.createElement("span",{className:"sr-only"},"Close"))))).displayName=wT.displayName;i.forwardRef(({className:e,...t},r)=>i.createElement(xT,{ref:r,className:he("text-lg font-semibold leading-none tracking-tight",e),...t})).displayName=xT.displayName;i.forwardRef(({className:e,...t},r)=>i.createElement(OT,{ref:r,className:he("text-sm text-muted-foreground",e),...t})).displayName=OT.displayName;const PT=["top","right","bottom","left"],ST=Math.min,CT=Math.max,TT=Math.round,NT=Math.floor,zT=e=>({x:e,y:e}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},MT={start:"end",end:"start"};function RT(e,t,r){return CT(e,ST(t,r))}function DT(e,t){return"function"==typeof e?e(t):e}function AT(e){return e.split("-")[0]}function IT(e){return e.split("-")[1]}function BT(e){return"x"===e?"y":"x"}function _T(e){return"y"===e?"height":"width"}const WT=new Set(["top","bottom"]);function FT(e){return WT.has(AT(e))?"y":"x"}function VT(e){return BT(FT(e))}function $T(e){return e.replace(/start|end/g,e=>MT[e])}const HT=["left","right"],UT=["right","left"],qT=["top","bottom"],YT=["bottom","top"];function GT(e,t,r,n){const o=IT(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?UT:HT:t?HT:UT;case"left":case"right":return t?qT:YT;default:return[]}}(AT(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map($T)))),i}function XT(e){return e.replace(/left|right|bottom|top/g,e=>LT[e])}function KT(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 ZT(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 QT(e,t,r){let{reference:n,floating:o}=e;const i=FT(t),a=VT(t),s=_T(a),l=AT(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(IT(t)){case"start":f[a]-=d*(r&&c?-1:1);break;case"end":f[a]+=d*(r&&c?-1:1)}return f}async function JT(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=KT(f),h=s[d?"floating"===p?"reference":"floating":p],v=ZT(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=ZT(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 eN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tN(e){return PT.some(t=>e[t]>=0)}const rN=new Set(["left","top"]);function nN(){return"undefined"!=typeof window}function oN(e){return sN(e)?(e.nodeName||"").toLowerCase():"#document"}function iN(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function aN(e){var t;return null==(t=(sN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function sN(e){return!!nN()&&(e instanceof Node||e instanceof iN(e).Node)}function lN(e){return!!nN()&&(e instanceof Element||e instanceof iN(e).Element)}function cN(e){return!!nN()&&(e instanceof HTMLElement||e instanceof iN(e).HTMLElement)}function uN(e){return!(!nN()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof iN(e).ShadowRoot)}const pN=new Set(["inline","contents"]);function dN(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=kN(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!pN.has(o)}const fN=new Set(["table","td","th"]);function mN(e){return fN.has(oN(e))}const hN=[":popover-open",":modal"];function vN(e){return hN.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const yN=["transform","translate","scale","rotate","perspective"],gN=["transform","translate","scale","rotate","perspective","filter"],bN=["paint","layout","strict","content"];function wN(e){const t=xN(),r=lN(e)?kN(e):e;return yN.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||gN.some(e=>(r.willChange||"").includes(e))||bN.some(e=>(r.contain||"").includes(e))}function xN(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ON=new Set(["html","body","#document"]);function EN(e){return ON.has(oN(e))}function kN(e){return iN(e).getComputedStyle(e)}function jN(e){return lN(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function PN(e){if("html"===oN(e))return e;const t=e.assignedSlot||e.parentNode||uN(e)&&e.host||aN(e);return uN(t)?t.host:t}function SN(e){const t=PN(e);return EN(t)?e.ownerDocument?e.ownerDocument.body:e.body:cN(t)&&dN(t)?t:SN(t)}function CN(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=SN(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=iN(o);if(i){const e=TN(a);return t.concat(a,a.visualViewport||[],dN(o)?o:[],e&&r?CN(e):[])}return t.concat(o,CN(o,[],r))}function TN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NN(e){const t=kN(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=cN(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=TT(r)!==i||TT(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function zN(e){return lN(e)?e:e.contextElement}function LN(e){const t=zN(e);if(!cN(t))return zT(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=NN(t);let a=(i?TT(r.width):r.width)/n,s=(i?TT(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const MN=zT(0);function RN(e){const t=iN(e);return xN()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:MN}function DN(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=zN(e);let a=zT(1);t&&(n?lN(n)&&(a=LN(n)):a=LN(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==iN(e))&&t}(i,r,n)?RN(i):zT(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=iN(i),t=n&&lN(n)?iN(n):n;let r=e,o=TN(r);for(;o&&n&&t!==r;){const e=LN(o),t=o.getBoundingClientRect(),n=kN(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=iN(o),o=TN(r)}}return ZT({width:u,height:p,x:l,y:c})}function AN(e,t){const r=jN(e).scrollLeft;return t?t.left+r:DN(aN(e)).left+r}function IN(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:AN(e,n)),y:n.top+t.scrollTop}}const BN=new Set(["absolute","fixed"]);function _N(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=iN(e),n=aN(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=xN();(!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=aN(e),r=jN(e),n=e.ownerDocument.body,o=CT(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=CT(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+AN(e);const s=-r.scrollTop;return"rtl"===kN(n).direction&&(a+=CT(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(aN(e));else if(lN(t))n=function(e,t){const r=DN(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=cN(e)?LN(e):zT(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=RN(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ZT(n)}function WN(e,t){const r=PN(e);return!(r===t||!lN(r)||EN(r))&&("fixed"===kN(r).position||WN(r,t))}function FN(e,t,r){const n=cN(t),o=aN(t),i="fixed"===r,a=DN(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=zT(0);function c(){l.x=AN(o)}if(n||!n&&!i)if(("body"!==oN(t)||dN(o))&&(s=jN(t)),n){const e=DN(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?zT(0):IN(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 VN(e){return"static"===kN(e).position}function $N(e,t){if(!cN(e)||"fixed"===kN(e).position)return null;if(t)return t(e);let r=e.offsetParent;return aN(e)===r&&(r=r.ownerDocument.body),r}function HN(e,t){const r=iN(e);if(vN(e))return r;if(!cN(e)){let t=PN(e);for(;t&&!EN(t);){if(lN(t)&&!VN(t))return t;t=PN(t)}return r}let n=$N(e,t);for(;n&&mN(n)&&VN(n);)n=$N(n,t);return n&&EN(n)&&VN(n)&&!wN(n)?r:n||function(e){let t=PN(e);for(;cN(t)&&!EN(t);){if(wN(t))return t;if(vN(t))return null;t=PN(t)}return null}(e)||r}const UN={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=aN(n),s=!!t&&vN(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=zT(1);const u=zT(0),p=cN(n);if((p||!p&&!i)&&(("body"!==oN(n)||dN(a))&&(l=jN(n)),cN(n))){const e=DN(n);c=LN(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||p||i?zT(0):IN(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:aN,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?vN(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=CN(e,[],!1).filter(e=>lN(e)&&"body"!==oN(e)),o=null;const i="fixed"===kN(e).position;let a=i?PN(e):e;for(;lN(a)&&!EN(a);){const t=kN(a),r=wN(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&BN.has(o.position)||dN(a)&&!r&&WN(e,a))?n=n.filter(e=>e!==a):o=t,a=PN(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=_N(t,r,o);return e.top=CT(n.top,e.top),e.right=ST(n.right,e.right),e.bottom=ST(n.bottom,e.bottom),e.left=CT(n.left,e.left),e},_N(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:HN,getElementRects:async function(e){const t=this.getOffsetParent||HN,r=this.getDimensions,n=await r(e.floating);return{reference:FN(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}=NN(e);return{width:t,height:r}},getScale:LN,isElement:lN,isRTL:function(e){return"rtl"===kN(e).direction}};function qN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YN(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=zN(e),u=o||i?[...c?CN(c):[],...CN(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=aN(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:-NT(p)+"px "+-NT(o.clientWidth-(u+d))+"px "+-NT(o.clientHeight-(p+f))+"px "+-NT(u)+"px",threshold:CT(0,ST(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||qN(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?DN(e):null;return l&&function t(){const n=DN(e);h&&!qN(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 GN=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=AT(r),s=IT(r),l="y"===FT(r),c=rN.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}}}}},XN=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 JT(t,l),p=FT(AT(o)),d=BT(p);let f=c[d],m=c[p];if(i){const e="y"===d?"bottom":"right";f=RT(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===p?"bottom":"right";m=RT(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}}}}}},KN=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=AT(o),g=FT(s),b=AT(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(b||!h?[XT(s)]:function(e){const t=XT(e);return[$T(e),t,$T(t)]}(s)),O="none"!==m;!d&&O&&x.push(...GT(s,h,m,w));const E=[s,...x],k=await JT(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=IT(e),o=VT(e),i=_T(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=XT(a)),[a,XT(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!==FT(t))||P.every(e=>FT(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 T;const e=null==(T=P.filter(e=>{if(O){const t=FT(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:T[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},ZN=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 JT(t,c),p=AT(o),d=IT(o),f="y"===FT(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=ST(h-u[v],g),x=ST(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=CT(u.left,0),t=CT(u.right,0),r=CT(u.top,0),n=CT(u.bottom,0);f?k=m-2*(0!==e||0!==t?e+t:CT(u.left,u.right)):E=h-2*(0!==r||0!==n?r+n:CT(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}}:{}}}},QN=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=eN(await JT(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:tN(e)}}}case"escaped":{const e=eN(await JT(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:tN(e)}}}default:return{}}}}},JN=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=KT(u),d={x:r,y:n},f=VT(o),m=_T(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=ST(p[y],j),S=ST(p[g],j),C=P,T=E-h[m]-S,N=E/2-h[m]/2+k,z=RT(C,N,T),L=!l.arrow&&null!=IT(o)&&N!==z&&i.reference[m]/2-(N<C?P:S)-h[m]/2<0,M=L?N<C?N-C:N-T:0;return{[f]:d[f]+M,data:{[f]:z,centerOffset:N-z-M,...L&&{alignmentOffset:M}},reset:L}}}),ez=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=FT(o),d=BT(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=rN.has(AT(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}}}},tz=(e,t,r)=>{const n=new Map,o={platform:UN,...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}=QT(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}=QT(c,d,l))),r=-1)}return{x:u,y:p,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var rz="undefined"!=typeof document?e.useLayoutEffect:function(){};function nz(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(!nz(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)&&!nz(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function oz(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iz(e,t){const r=oz(e);return Math.round(t*r)/r}function az(e){const t=i.useRef(e);return rz(()=>{t.current=e}),t}const sz=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?JN({element:r.current,padding:n}).fn(t):{}:r?JN({element:r,padding:n}).fn(t):{};var o}}),lz=(e,t)=>({...GN(e),options:[e,t]}),cz=(e,t)=>({...XN(e),options:[e,t]}),uz=(e,t)=>({...ez(e),options:[e,t]}),pz=(e,t)=>({...KN(e),options:[e,t]}),dz=(e,t)=>({...ZN(e),options:[e,t]}),fz=(e,t)=>({...QN(e),options:[e,t]}),mz=(e,t)=>({...sz(e),options:[e,t]});var hz=i.forwardRef((e,r)=>{const{children:n,width:o=10,height:i=5,...a}=e;return t.jsx(sg.svg,{...a,ref:r,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});hz.displayName="Arrow";var vz=hz,yz="Popper",[gz,bz]=eg(yz),[wz,xz]=gz(yz),Oz=e=>{const{__scopePopper:r,children:n}=e,[o,a]=i.useState(null);return t.jsx(wz,{scope:r,anchor:o,onAnchorChange:a,children:n})};Oz.displayName=yz;var Ez="PopperAnchor",kz=i.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,s=xz(Ez,n),l=i.useRef(null),c=Jy(r,l);return i.useEffect(()=>{s.onAnchorChange(o?.current||l.current)}),o?null:t.jsx(sg.div,{...a,ref:c})});kz.displayName=Ez;var jz="PopperContent",[Pz,Sz]=gz(jz),Cz=i.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:s=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=xz(jz,n),[w,x]=i.useState(null),O=Jy(r,e=>x(e)),[E,k]=i.useState(null),j=Dg(E),P=j?.width??0,S=j?.height??0,C=o+("center"!==l?"-"+l:""),T="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],z=N.length>0,L={padding:T,boundary:N.filter(Lz),altBoundary:z},{refs:M,floatingStyles:R,placement:D,isPositioned:A,middlewareData:I}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:p}=e,[d,f]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=i.useState(n);nz(m,n)||h(n);const[v,y]=i.useState(null),[g,b]=i.useState(null),w=i.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),x=i.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),O=s||v,E=l||g,k=i.useRef(null),j=i.useRef(null),P=i.useRef(d),S=null!=u,C=az(u),T=az(o),N=az(p),z=i.useCallback(()=>{if(!k.current||!j.current)return;const e={placement:t,strategy:r,middleware:m};T.current&&(e.platform=T.current),tz(k.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};L.current&&!nz(P.current,t)&&(P.current=t,a.flushSync(()=>{f(t)}))})},[m,t,r,T,N]);rz(()=>{!1===p&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[p]);const L=i.useRef(!1);rz(()=>(L.current=!0,()=>{L.current=!1}),[]),rz(()=>{if(O&&(k.current=O),E&&(j.current=E),O&&E){if(C.current)return C.current(O,E,z);z()}},[O,E,z,C,S]);const M=i.useMemo(()=>({reference:k,floating:j,setReference:w,setFloating:x}),[w,x]),R=i.useMemo(()=>({reference:O,floating:E}),[O,E]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=iz(R.floating,d.x),n=iz(R.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...oz(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,R.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:z,refs:M,elements:R,floatingStyles:D}),[d,z,M,R,D])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>YN(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[lz({mainAxis:s+S,alignmentAxis:c}),p&&cz({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?uz():void 0,...L}),p&&pz({...L}),dz({...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`)}}),E&&mz({element:E,padding:u}),Mz({arrowWidth:P,arrowHeight:S}),h&&fz({strategy:"referenceHidden",...L})]}),[B,_]=Rz(D),W=dg(y);lg(()=>{A&&W?.()},[A,W]);const F=I.arrow?.x,V=I.arrow?.y,$=0!==I.arrow?.centerOffset,[H,U]=i.useState();return lg(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),t.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:A?R.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:e.dir,children:t.jsx(Pz,{scope:n,placedSide:B,onArrowChange:k,arrowX:F,arrowY:V,shouldHideArrow:$,children:t.jsx(sg.div,{"data-side":B,"data-align":_,...g,ref:O,style:{...g.style,animation:A?void 0:"none"}})})})});Cz.displayName=jz;var Tz="PopperArrow",Nz={top:"bottom",right:"left",bottom:"top",left:"right"},zz=i.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,i=Sz(Tz,n),a=Nz[i.placedSide];return t.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:t.jsx(vz,{...o,ref:r,style:{...o.style,display:"block"}})})});function Lz(e){return null!==e}zz.displayName=Tz;var Mz=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]=Rz(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 Rz(e){const[t,r="center"]=e.split("-");return[t,r]}var Dz=Oz,Az=kz,Iz=Cz,Bz=zz,_z="Popover",[Wz,Fz]=eg(_z,[bz]),Vz=bz(),[$z,Hz]=Wz(_z),Uz=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Vz(r),u=i.useRef(null),[p,d]=i.useState(!1),[f,m]=mg({prop:o,defaultProp:a??!1,onChange:s,caller:_z});return t.jsx(Dz,{...c,children:t.jsx($z,{scope:r,contentId:pg(),triggerRef:u,open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:l,children:n})})};Uz.displayName=_z;var qz="PopoverAnchor";i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=Hz(qz,n),s=Vz(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return i.useEffect(()=>(l(),()=>c()),[l,c]),t.jsx(Az,{...s,...o,ref:r})}).displayName=qz;var Yz="PopoverTrigger",Gz=i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Hz(Yz,n),a=Vz(n),s=Jy(r,i.triggerRef),l=t.jsx(sg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":aL(i.open),...o,ref:s,onClick:Ky(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:t.jsx(Az,{asChild:!0,...a,children:l})});Gz.displayName=Yz;var Xz="PopoverPortal",[Kz,Zz]=Wz(Xz,{forceMount:void 0}),Qz=e=>{const{__scopePopover:r,forceMount:n,children:o,container:i}=e,a=Hz(Xz,r);return t.jsx(Kz,{scope:r,forceMount:n,children:t.jsx(Ig,{present:n||a.open,children:t.jsx(BS,{asChild:!0,container:i,children:o})})})};Qz.displayName=Xz;var Jz="PopoverContent",eL=i.forwardRef((e,r)=>{const n=Zz(Jz,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,a=Hz(Jz,e.__scopePopover);return t.jsx(Ig,{present:o||a.open,children:a.modal?t.jsx(rL,{...i,ref:r}):t.jsx(nL,{...i,ref:r})})});eL.displayName=Jz;var tL=rg("PopoverContent.RemoveScroll"),rL=i.forwardRef((e,r)=>{const n=Hz(Jz,e.__scopePopover),o=i.useRef(null),a=Jy(r,o),s=i.useRef(!1);return i.useEffect(()=>{const e=o.current;if(e)return AC(e)},[]),t.jsx(TC,{as:tL,allowPinchZoom:!0,children:t.jsx(oL,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ky(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ky(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:Ky(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nL=i.forwardRef((e,r)=>{const n=Hz(Jz,e.__scopePopover),o=i.useRef(!1),a=i.useRef(!1);return t.jsx(oL,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),oL=i.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...d}=e,f=Hz(Jz,n),m=Vz(n);return WS(),t.jsx(zS,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:t.jsx(jS,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:t.jsx(Iz,{"data-state":aL(f.open),role:"dialog",id:f.contentId,...m,...d,ref:r,style:{...d.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)"}})})})}),iL="PopoverClose";i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Hz(iL,n);return t.jsx(sg.button,{type:"button",...o,ref:r,onClick:Ky(e.onClick,()=>i.onOpenChange(!1))})}).displayName=iL;function aL(e){return e?"open":"closed"}i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Vz(n);return t.jsx(Bz,{...i,...o,ref:r})}).displayName="PopoverArrow";var sL=Uz,lL=Gz,cL=Qz,uL=eL;const pL=e.forwardRef(({type:t="single",value:r,onChange:n,placeholder:o="Select date",disabled:i=!1,minDate:a,maxDate:s,className:l,label:c,error:u,required:p=!1,clearable:d=!0,format:f="PPP",variant:m="tertiary",dataTestId:h},v)=>{const[y,g]=e.useState(!1),[b,w]=e.useState("range"!==t||!r||r instanceof Date?void 0:r);e.useEffect(()=>{"range"!==t||!r||r instanceof Date||w(r)},[r,t]);const x=e.useCallback(e=>{if(e.preventDefault(),e.stopPropagation(),"single"===t)n?.(void 0);else{const e={from:void 0,to:void 0};n?.(e),w(e)}g(!1)},[n,t]),O=e.useCallback(()=>{if(!r)return"";if("single"===t&&r instanceof Date)return lj(r,f);if("range"===t&&!(r instanceof Date)){const e=r;if(e.from){if(e.to){const t=lj(e.from,"MMM d"),r=lj(e.to,"MMM d"),n=lj(e.from,"yyyy"),o=lj(e.to,"yyyy");return n===o?`${t} - ${r}, ${n}`:`${t}, ${n} - ${r}, ${o}`}return lj(e.from,f)}}return""},[r,t,f]),E=e.useCallback(e=>{if(!e)return w(void 0),void n?.(void 0);if(e instanceof Date)return n?.(e),void g(!1);const t={from:e.from,to:e.to};!e.from||e.from&&e.to?(w(t),n?.(t),e.from&&e.to&&g(!1)):w(t)},[n]),k=e.useCallback(()=>{const o={initialFocus:!0,disabled:e=>!!i||(!!(a&&e<a)||!!(s&&e>s)),classNames:{months:he("flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0","sm:divide-x sm:divide-border"),month:he("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:he("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:he("text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]","flex items-center justify-center"),row:"flex w-full mt-2",cell:he("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:he("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:he("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"}},l=t=>e.createElement("div",{className:"relative"},t,d&&r&&e.createElement("button",{type:"button",onClick:x,className:he("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"},e.createElement(Ae,{className:"h-4 w-4"})));return l("single"===t?e.createElement(YP,{mode:"single",selected:r instanceof Date?r:void 0,onSelect:e=>{n?.(e),e&&g(!1)},...o}):e.createElement(YP,{mode:"range",selected:b,onSelect:E,numberOfMonths:2,...o}))},[t,r,n,b,E,i,a,s,d,x]);return e.createElement("div",{ref:v,className:"relative w-full","data-testid":h},c&&e.createElement("div",{className:he("mb-2 text-sm font-medium",u&&"text-destructive")},c,p&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(sL,{open:y,onOpenChange:g},e.createElement("div",{className:"relative"},e.createElement(lL,{asChild:!0},e.createElement(Be,{variant:m,className:he("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",u&&"border-destructive focus:ring-destructive","transition-all duration-200","sm:text-sm md:text-base",l),disabled:i},e.createElement("div",{className:"inline-flex items-center gap-2 w-full pr-8"},e.createElement(Ee,{className:"h-4 w-4 shrink-0"}),e.createElement("span",{className:"truncate flex-1 text-left","data-testid":"date-display"},O()||o)))),d&&r&&!y&&e.createElement("button",{type:"button",onClick:x,className:he("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"},e.createElement(Ae,{className:"h-4 w-4 hover:text-destructive transition-colors"}))),e.createElement(cL,null,e.createElement(uL,{className:he("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"===t?"sm:min-w-[600px]":"sm:min-w-[320px]","max-w-[95vw]"),align:"start",sideOffset:4},e.createElement("div",{className:"w-full overflow-hidden"},e.createElement("div",{className:he("w-full","range"===t&&"overflow-x-auto")},k()))))),u&&e.createElement("p",{className:"mt-2 text-sm text-destructive"},u))});pL.displayName="DatePicker";const dL=e.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}),fL=()=>{const t=e.useContext(dL);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};function mL(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function hL(){return yL(/^iPad/)||yL(/^Mac/)&&navigator.maxTouchPoints>1}function vL(){return yL(/^iPhone/)||hL()}function yL(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 gL="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function bL(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}const wL="undefined"!=typeof document&&window.visualViewport;function xL(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function OL(e){for(xL(e)&&(e=e.parentElement);e&&!xL(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const EL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let kL,jL=0;function PL(e={}){let{isDisabled:t}=e;gL(()=>{if(!t)return jL++,1===jL&&vL()&&(kL=function(){let e,t=0,r=r=>{e=OL(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;TL(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},i=e=>{let t=e.target;TL(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",wL&&(wL.height<window.innerHeight?requestAnimationFrame(()=>{CL(t)}):wL.addEventListener("resize",()=>CL(t),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=bL(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=bL(SL(document,"touchstart",r,{passive:!1,capture:!0}),SL(document,"touchmove",n,{passive:!1,capture:!0}),SL(document,"touchend",o,{passive:!1,capture:!0}),SL(document,"focus",i,!0),SL(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}()),()=>{jL--,0===jL&&(null==kL||kL())}},[t])}function SL(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function CL(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=OL(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 TL(e){return e instanceof HTMLInputElement&&!EL.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function NL(...e){return i.useCallback(function(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}(...e),e)}const zL=new WeakMap;function LL(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||zL.set(e,n)}const ML=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function RL(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(", ")[ML(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ML(t)?5:4]):null)}function DL(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}const AL={DURATION:.5,EASE:[.32,.72,0,1]},IL=16,BL="vaul-dragging";function _L(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>null==r.current?void 0:r.current.call(r,...e),[])}function WL({prop:t,defaultProp:r,onChange:n=()=>{}}){const[o,i]=function({defaultProp:t,onChange:r}){const n=e.useState(t),[o]=n,i=e.useRef(o),a=_L(r);return e.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:r,onChange:n}),a=void 0!==t,s=a?t:o,l=_L(n),c=e.useCallback(e=>{if(a){const r="function"==typeof e?e(t):e;r!==t&&l(r)}else i(e)},[a,t,i,l]);return[s,c]}let FL=null;const VL=e.forwardRef(function({...t},r){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:a,isOpen:s,modal:l,shouldAnimate:c}=fL(),u=NL(r,n),p=o&&o.length>0;if(!l)return null;const d=e.useCallback(e=>i(e),[i]);return e.createElement(bT,{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",...t})});VL.displayName="Drawer.Overlay";const $L=e.forwardRef(function({onPointerDownOutside:t,style:r,onOpenAutoFocus:n,...o},i){const{drawerRef:a,onPress:s,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:p,activeSnapPointIndex:d,modal:f,isOpen:m,direction:h,snapPoints:v,container:y,handleOnly:g,shouldAnimate:b,autoFocus:w}=fL(),[x,O]=e.useState(!1),E=NL(i,a),k=e.useRef(null),j=e.useRef(null),P=e.useRef(!1),S=v&&v.length>0;!function(){const{direction:t,isOpen:r,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=fL(),a=e.useRef(null),s=e.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-26)/window.innerWidth}e.useEffect(()=>{if(r&&n){a.current&&clearTimeout(a.current);const e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;o&&!i&&DL(document.body,{background:"black"}),DL(e,{transformOrigin:ML(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${AL.DURATION}s`,transitionTimingFunction:`cubic-bezier(${AL.EASE.join(",")})`});const r=DL(e,{borderRadius:"8px",overflow:"hidden",...ML(t)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{r(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},1e3*AL.DURATION)}}},[r,n,s])}();function C(e){k.current=null,P.current=!1,l(e)}return e.useEffect(()=>{S&&window.requestAnimationFrame(()=>{O(!0)})},[]),e.createElement(wT,{"data-vaul-drawer-direction":h,"data-vaul-drawer":"","data-vaul-delayed-snap-points":x?"true":"false","data-vaul-snap-points":m&&S?"true":"false","data-vaul-custom-container":y?"true":"false","data-vaul-animate":(null==b?void 0:b.current)?"true":"false",...o,ref:E,style:p&&p.length>0?{"--snap-point-height":`${p[null!=d?d:0]}px`,...r}:r,onPointerDown:e=>{g||(null==o.onPointerDown||o.onPointerDown.call(o,e),k.current={x:e.pageX,y:e.pageY},s(e))},onOpenAutoFocus:e=>{null==n||n(e),w||e.preventDefault()},onPointerDownOutside:e=>{null==t||t(e),f&&!e.defaultPrevented?u.current&&(u.current=!1):e.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(j.current=e,g)return;if(null==o.onPointerMove||o.onPointerMove.call(o,e),!k.current)return;const t=e.pageY-k.current.y,r=e.pageX-k.current.x,n="touch"===e.pointerType?10:2,i=((e,t,r=0)=>{if(P.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 P.current=!0,!0})({x:r,y:t},h,n);i?c(e):(Math.abs(r)>n||Math.abs(t)>n)&&(k.current=null)},onPointerUp:e=>{null==o.onPointerUp||o.onPointerUp.call(o,e),k.current=null,P.current=!1,l(e)},onPointerOut:e=>{null==o.onPointerOut||o.onPointerOut.call(o,e),C(j.current)},onContextMenu:e=>{null==o.onContextMenu||o.onContextMenu.call(o,e),j.current&&C(j.current)}})});$L.displayName="Drawer.Content";const HL=e.forwardRef(function({preventCycle:t=!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}=fL(),h=e.useRef(null),v=e.useRef(!1);function y(){h.current&&window.clearTimeout(h.current),v.current=!1}return e.createElement("div",{onClick:function(){v.current?y():window.setTimeout(()=>{!function(){if(a||t||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 e=s.findIndex(e=>e===l);if(-1===e)return;const r=s[e+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},e.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});HL.displayName="Drawer.Handle";const UL={Root:function({open:t,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:T=!1}){var N,z;const[L=!1,M]=WL({defaultProp:O,prop:t,onChange:e=>{null==r||r(e),e||b||ue(),setTimeout(()=>{null==S||S(e)},1e3*AL.DURATION),e&&!y&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[R,D]=e.useState(!1),[A,I]=e.useState(!1),[B,_]=e.useState(!1),W=e.useRef(null),F=e.useRef(null),V=e.useRef(null),$=e.useRef(null),H=e.useRef(null),U=e.useRef(!1),q=e.useRef(null),Y=e.useRef(0),G=e.useRef(!1),X=e.useRef(!O),K=e.useRef(0),Z=e.useRef(null),Q=e.useRef((null==(N=Z.current)?void 0:N.getBoundingClientRect().height)||0),J=e.useRef((null==(z=Z.current)?void 0:z.getBoundingClientRect().width)||0),ee=e.useRef(0),te=e.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:t,setActiveSnapPointProp:r,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[p,d]=WL({prop:t,defaultProp:null==n?void 0:n[0],onChange:r}),[f,m]=e.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);e.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const h=e.useMemo(()=>p===(null==n?void 0:n[n.length-1])||null,[n,p]),v=e.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=e.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)),ML(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=e.useMemo(()=>null!==v?null==g?void 0:g[v]:null,[g,v]),w=e.useCallback(e=>{var t;const r=null!=(t=null==g?void 0:g.findIndex(t=>t===e))?t:null;s(r),LL(o.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&r!==g.length-1&&void 0!==a&&r!==a&&r<a?LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"0"}):LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(r,0)])},[o.current,n,g,a,i,d]);return e.useEffect(()=>{if(p||t){var e;const r=null!=(e=null==n?void 0:n.findIndex(e=>e===t||e===p))?e:-1;g&&-1!==r&&"number"==typeof g[r]&&w(g[r])}},[p,t,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&&LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.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=ML(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]||LL(o.current,{transform:ML(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});PL({isDisabled:!L||A||!y||B||!R||!P||!E});const{restorePositionSetting:ue}=function({isOpen:t,modal:r,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:a}){const[s,l]=e.useState(()=>"undefined"!=typeof window?window.location.href:""),c=e.useRef(0),u=e.useCallback(()=>{if(mL()&&null===FL&&t&&!a){FL={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)}},[t]),p=e.useCallback(()=>{if(mL()&&null!==FL&&!a){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,FL),window.requestAnimationFrame(()=>{i&&s!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),FL=null}},[s]);return e.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),e.useEffect(()=>{if(r)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[r,p]),e.useEffect(()=>{!n&&o&&(t?(!window.matchMedia("(display-mode: standalone)").matches&&u(),r||window.setTimeout(()=>{p()},500)):p())},[t,o,s,r,n,u,p]),{restorePositionSetting:p}}({isOpen:L,modal:y,nested:null!=b&&b,hasBeenOpened:R,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?RL(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(!A||!Z.current)return;Z.current.classList.remove(BL),U.current=!1,I(!1),$.current=new Date}(),null==g||g(),e||M(!1),setTimeout(()=>{a&&oe(a[0])},1e3*AL.DURATION)}function me(){if(!Z.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=RL(Z.current,x);LL(Z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`}),LL(W.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"1"}),s&&t&&t>0&&L&&LL(e,{borderRadius:"8px",overflow:"hidden",...ML(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:`${AL.DURATION}s`,transitionTimingFunction:`cubic-bezier(${AL.EASE.join(",")})`},!0)}return e.useEffect(()=>{window.requestAnimationFrame(()=>{X.current=!0})},[]),e.useEffect(()=>{var e;function t(){if(!Z.current||!P)return;if(TL(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]),e.useEffect(()=>(L&&(LL(document.documentElement,{scrollBehavior:"auto"}),F.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let r=zL.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[L]),e.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]),e.createElement(vT,{defaultOpen:O,onOpenChange:e=>{(p||e)&&(e?D(!0):fe(!0),M(e))},open:L},e.createElement(dL.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,vL()&&window.addEventListener("touchend",()=>U.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),Y.current=ML(x)?e.pageY:e.pageX))},onRelease:function(e){if(!A||!Z.current)return;Z.current.classList.remove(BL),U.current=!1,I(!1),$.current=new Date;const t=RL(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-(ML(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&&A){const r="bottom"===x||"right"===x?1:-1,n=(Y.current-(ML(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(!U.current&&!de(e.target,i))return;if(Z.current.classList.add(BL),U.current=!0,LL(Z.current,{transition:"none"}),LL(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 LL(Z.current,{transform:ML(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),LL(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);LL(u,{borderRadius:`${t}px`,transform:ML(x)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!a){const e=c*r;LL(Z.current,{transform:ML(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:p,shouldAnimate:X,handleOnly:d,isOpen:L,isDragging:A,shouldFade:le,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const r=(window.innerWidth-IL)/window.innerWidth,n=r+t*(1-r),o=t*IL-16;LL(Z.current,{transform:ML(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-IL)/window.innerWidth:1,r=e?-16:0;q.current&&window.clearTimeout(q.current),LL(Z.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(x)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&Z.current&&(q.current=setTimeout(()=>{const e=RL(Z.current,x);LL(Z.current,{transition:"none",transform:ML(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){const r=ML(x)?window.innerHeight:window.innerWidth,n=t?(r-IL)/r:1,o=t?-16:0;t&&LL(Z.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(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:T}},n))},Content:$L,Overlay:VL,Portal:function(t){const r=fL(),{container:n=r.container,...o}=t;return e.createElement(gT,{container:n,...o})},Title:xT,Description:OT},qL=({shouldScaleBackground:e=!0,...t})=>i.createElement(UL.Root,{shouldScaleBackground:e,...t});qL.displayName="Drawer";const YL=UL.Portal,GL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Overlay,{ref:r,className:he("fixed inset-0 z-50 bg-black/80",e),...t}));GL.displayName=UL.Overlay.displayName;const XL=i.forwardRef(({className:e,children:t,...r},n)=>i.createElement(YL,null,i.createElement(GL,null),i.createElement(UL.Content,{ref:n,className:he("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r},i.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t)));XL.displayName="DrawerContent";const KL=({className:e,...t})=>i.createElement("div",{className:he("grid gap-1.5 p-4 text-center sm:text-left",e),...t});KL.displayName="DrawerHeader";const ZL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Title,{ref:r,className:he("text-lg font-semibold leading-none tracking-tight",e),...t}));ZL.displayName=UL.Title.displayName;const QL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Description,{ref:r,className:he("text-sm text-muted-foreground",e),...t}));QL.displayName=UL.Description.displayName;const JL={small:"h-64",medium:"h-80",large:"h-96",extraLarge:"h-[448px]",full:"h-screen"},eM=e.createContext({});const tM="undefined"!=typeof window,rM=tM?e.useLayoutEffect:e.useEffect,nM=e.createContext(null);function oM(e,t){-1===e.indexOf(t)&&e.push(t)}function iM(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const aM=(e,t,r)=>r>t?t:r<e?e:r;function sM(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let lM=()=>{},cM=()=>{};"production"!==process.env.NODE_ENV&&(lM=(e,t,r)=>{e||"undefined"==typeof console||console.warn(sM(t,r))},cM=(e,t,r)=>{if(!e)throw new Error(sM(t,r))});const uM={},pM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dM(e){return"object"==typeof e&&null!==e}const fM=e=>/^0[^.\s]+$/u.test(e);function mM(e){let t;return()=>(void 0===t&&(t=e()),t)}const hM=e=>e,vM=(e,t)=>r=>t(e(r)),yM=(...e)=>e.reduce(vM),gM=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n};class bM{constructor(){this.subscriptions=[]}add(e){return oM(this.subscriptions,e),()=>iM(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 wM=e=>1e3*e,xM=e=>e/1e3;function OM(e,t){return t?e*(1e3/t):0}const EM=new Set;function kM(e,t,r){e||EM.has(t)||(console.warn(sM(t,r)),EM.add(t))}const jM=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function PM(e,t,r,n){if(e===t&&r===n)return hM;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=jM(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:jM(o(e),t,n)}const SM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CM=e=>t=>1-e(1-t),TM=PM(.33,1.53,.69,.99),NM=CM(TM),zM=SM(NM),LM=e=>(e*=2)<1?.5*NM(e):.5*(2-Math.pow(2,-10*(e-1))),MM=e=>1-Math.sin(Math.acos(e)),RM=CM(MM),DM=SM(MM),AM=PM(.42,0,1,1),IM=PM(0,0,.58,1),BM=PM(.42,0,.58,1),_M=e=>Array.isArray(e)&&"number"==typeof e[0],WM={linear:hM,easeIn:AM,easeInOut:BM,easeOut:IM,circIn:MM,circInOut:DM,circOut:RM,backIn:NM,backInOut:zM,backOut:TM,anticipate:LM},FM=e=>{if(_M(e)){cM(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return PM(t,r,n,o)}return"string"==typeof e?(cM(void 0!==WM[e],`Invalid easing type '${e}'`,"invalid-easing-type"),WM[e]):e},VM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $M(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=VM.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=uM.useManualTiming?o.timestamp:performance.now();r=!1,uM.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:VM.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<VM.length;t++)a[VM[t]].cancel(e)},state:o,steps:a}}const{schedule:HM,cancel:UM,state:qM,steps:YM}=$M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:hM,!0);let GM;function XM(){GM=void 0}const KM={now:()=>(void 0===GM&&KM.set(qM.isProcessing||uM.useManualTiming?qM.timestamp:performance.now()),GM),set:e=>{GM=e,queueMicrotask(XM)}},ZM=e=>t=>"string"==typeof t&&t.startsWith(e),QM=ZM("--"),JM=ZM("var(--"),eR=e=>!!JM(e)&&tR.test(e.split("/*")[0].trim()),tR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rR={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nR={...rR,transform:e=>aM(0,1,e)},oR={...rR,default:1},iR=e=>Math.round(1e5*e)/1e5,aR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const sR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lR=(e,t)=>r=>Boolean("string"==typeof r&&sR.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),cR=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(aR);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},uR={...rR,transform:e=>Math.round((e=>aM(0,255,e))(e))},pR={test:lR("rgb","red"),parse:cR("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+uR.transform(e)+", "+uR.transform(t)+", "+uR.transform(r)+", "+iR(nR.transform(n))+")"};const dR={test:lR("#"),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:pR.transform},fR=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),mR=fR("deg"),hR=fR("%"),vR=fR("px"),yR=fR("vh"),gR=fR("vw"),bR=(()=>({...hR,parse:e=>hR.parse(e)/100,transform:e=>hR.transform(100*e)}))(),wR={test:lR("hsl","hue"),parse:cR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+hR.transform(iR(t))+", "+hR.transform(iR(r))+", "+iR(nR.transform(n))+")"},xR={test:e=>pR.test(e)||dR.test(e)||wR.test(e),parse:e=>pR.test(e)?pR.parse(e):wR.test(e)?wR.parse(e):dR.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?pR.transform(e):wR.transform(e),getAnimatableNone:e=>{const t=xR.parse(e);return t.alpha=0,xR.transform(t)}},OR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const ER="number",kR="color",jR=/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 PR(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(jR,e=>(xR.test(e)?(n.color.push(i),o.push(kR),r.push(xR.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(ER),r.push(parseFloat(e))),++i,"${}")).split("${}");return{values:r,split:a,indexes:n,types:o}}function SR(e){return PR(e).values}function CR(e){const{split:t,types:r}=PR(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===ER?iR(e[i]):t===kR?xR.transform(e[i]):e[i]}return o}}const TR=e=>"number"==typeof e?0:xR.test(e)?xR.getAnimatableNone(e):e;const NR={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(aR)?.length||0)+(e.match(OR)?.length||0)>0},parse:SR,createTransformer:CR,getAnimatableNone:function(e){const t=SR(e);return CR(e)(t.map(TR))}};function zR(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 LR(e,t){return r=>r>0?t:e}const MR=(e,t,r)=>e+(t-e)*r,RR=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},DR=[dR,pR,wR];function AR(e){const t=(r=e,DR.find(e=>e.test(r)));var r;if(lM(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===wR&&(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=zR(s,n,e+1/3),i=zR(s,n,e),a=zR(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 IR=(e,t)=>{const r=AR(e),n=AR(t);if(!r||!n)return LR(e,t);const o={...r};return e=>(o.red=RR(r.red,n.red,e),o.green=RR(r.green,n.green,e),o.blue=RR(r.blue,n.blue,e),o.alpha=MR(r.alpha,n.alpha,e),pR.transform(o))},BR=new Set(["none","hidden"]);function _R(e,t){return r=>MR(e,t,r)}function WR(e){return"number"==typeof e?_R:"string"==typeof e?eR(e)?LR:xR.test(e)?IR:$R:Array.isArray(e)?FR:"object"==typeof e?xR.test(e)?IR:VR:LR}function FR(e,t){const r=[...e],n=r.length,o=e.map((e,r)=>WR(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function VR(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=WR(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const $R=(e,t)=>{const r=NR.createTransformer(t),n=PR(e),o=PR(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?BR.has(e)&&!o.values.length||BR.has(t)&&!n.values.length?function(e,t){return BR.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):yM(FR(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):(lM(!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"),LR(e,t))};function HR(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return MR(e,t,r);return WR(e)(e,t)}const UR=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>HM.update(t,e),stop:()=>UM(t),now:()=>qM.isProcessing?qM.timestamp:KM.now()}},qR=(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)})`},YR=2e4;function GR(e){let t=0;let r=e.next(t);for(;!r.done&&t<YR;)t+=50,r=e.next(t);return t>=YR?1/0:t}function XR(e,t,r){const n=Math.max(t-5,0);return OM(r-e(n),t-n)}const KR=100,ZR=10,QR=1,JR=0,eD=800,tD=.3,rD=.3,nD={granular:.01,default:2},oD={granular:.005,default:.5},iD=.01,aD=10,sD=.05,lD=1,cD=.001;function uD({duration:e=eD,bounce:t=tD,velocity:r=JR,mass:n=QR}){let o,i;lM(e<=wM(aD),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=aM(sD,lD,a),e=aM(iD,aD,xM(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=dD(t,a),l=Math.exp(-o);return cD-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=dD(Math.pow(t,2),a);return(-o(t)+cD>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<pD;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=wM(e),isNaN(s))return{stiffness:KR,damping:ZR,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const pD=12;function dD(e,t){return e*Math.sqrt(1-t*t)}const fD=["duration","bounce"],mD=["stiffness","damping","mass"];function hD(e,t){return t.some(t=>void 0!==e[t])}function vD(e=rD,t=tD){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:JR,stiffness:KR,damping:ZR,mass:QR,isResolvedFromDuration:!1,...e};if(!hD(e,mD)&&hD(e,fD))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*aM(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:QR,stiffness:o,damping:i}}else{const r=uD(e);t={...t,...r,mass:QR},t.isResolvedFromDuration=!0}return t}({...r,velocity:-xM(r.velocity||0)}),m=d||0,h=c/(2*Math.sqrt(l*u)),v=a-i,y=xM(Math.sqrt(l/u)),g=Math.abs(v)<5;let b;if(n||(n=g?nD.granular:nD.default),o||(o=g?oD.granular:oD.default),h<1){const e=dD(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?wM(m):XR(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(GR(w),YR),t=qR(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function yD({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=vD({keyframes:[d.value,f(d.value)],velocity:XR(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 gD(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(cM(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||uM.mix||HR,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]||hM:t;i=yM(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=gM(e[n],e[n+1],r);return s[n](o)};return r?t=>c(aM(e[0],e[i-1],t)):c}function bD(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=gM(0,t,n);e.push(MR(r,1,o))}}(t,e.length-1),t}function wD({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(FM):FM(n),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:bD(t),e),s=gD(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||BM).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}vD.applyToOptions=e=>{const t=function(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(GR(n),YR);return{type:"keyframes",ease:e=>n.next(o*e).value/t,duration:xM(o)}}(e,100,vD);return e.ease=t.ease,e.duration=wM(t.duration),e.type="keyframes",e};const xD=e=>null!==e;function OD(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(xD),a=o<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return a&&void 0!==n?n:i[a]}const ED={decay:yD,inertia:yD,tween:wD,keyframes:wD,spring:vD};function kD(e){"string"==typeof e.type&&(e.type=ED[e.type])}class jD{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 PD=e=>e/100;class SD extends jD{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!==KM.now()&&this.tick(KM.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;kD(e);const{type:t=wD,repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||wD;"production"!==process.env.NODE_ENV&&s!==wD&&cM(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),s!==wD&&"number"!=typeof a[0]&&(this.mixKeyframes=yM(PD,HR(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=GR(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=aM(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!==yD&&(w.value=OD(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 xM(this.calculatedDuration)}get time(){return xM(this.currentTime)}set time(e){e=wM(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(KM.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=xM(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=UR,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(KM.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 CD=e=>180*e/Math.PI,TD=e=>{const t=CD(Math.atan2(e[1],e[0]));return zD(t)},ND={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:TD,rotateZ:TD,skewX:e=>CD(Math.atan(e[1])),skewY:e=>CD(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zD=e=>((e%=360)<0&&(e+=360),e),LD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),MD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),RD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:LD,scaleY:MD,scale:e=>(LD(e)+MD(e))/2,rotateX:e=>zD(CD(Math.atan2(e[6],e[5]))),rotateY:e=>zD(CD(Math.atan2(-e[2],e[0]))),rotateZ:TD,rotate:TD,skewX:e=>CD(Math.atan(e[4])),skewY:e=>CD(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function DD(e){return e.includes("scale")?1:0}function AD(e,t){if(!e||"none"===e)return DD(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=RD,o=r;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ND,o=t}if(!o)return DD(t);const i=n[t],a=o[1].split(",").map(ID);return"function"==typeof i?i(a):a[i]}function ID(e){return parseFloat(e.trim())}const BD=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_D=(()=>new Set(BD))(),WD=e=>e===rR||e===vR,FD=new Set(["x","y","z"]),VD=BD.filter(e=>!FD.has(e));const $D={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})=>AD(t,"x"),y:(e,{transform:t})=>AD(t,"y")};$D.translateX=$D.x,$D.translateY=$D.y;const HD=new Set;let UD=!1,qD=!1,YD=!1;function GD(){if(qD){const e=Array.from(HD).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 VD.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)})}qD=!1,UD=!1,HD.forEach(e=>e.complete(YD)),HD.clear()}function XD(){HD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qD=!0)})}class KD{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?(HD.add(this),UD||(UD=!0,HM.read(XD),HM.resolveKeyframes(GD))):(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),HD.delete(this)}cancel(){"scheduled"===this.state&&(HD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const ZD=mM(()=>void 0!==window.ScrollTimeline),QD={};function JD(e,t){const r=mM(e);return()=>QD[t]??r()}const eA=JD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tA=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tA([0,.65,.55,1]),circOut:tA([.55,0,1,.45]),backIn:tA([.31,.01,.66,-.59]),backOut:tA([.33,1.53,.69,.99])};function nA(e,t){return e?"function"==typeof e?eA()?qR(e,t):"ease-out":_M(e)?tA(e):Array.isArray(e)?e.map(e=>nA(e,t)||rA.easeOut):rA[e]:void 0}function oA(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=nA(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 iA(e){return"function"==typeof e&&"applyToOptions"in e}class aA extends jD{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,cM("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return iA(e)&&eA()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=oA(t,r,n,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=OD(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 xM(Number(e))}get time(){return xM(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=wM(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&&ZD()?(this.animation.timeline=e,hM):t(this)}}const sA={anticipate:LM,backInOut:zM,circInOut:DM};function lA(e){"string"==typeof e.ease&&e.ease in sA&&(e.ease=sA[e.ease])}class cA extends aA{constructor(e){lA(e),kD(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 SD({...i,autoplay:!1}),s=wM(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const uA=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!NR.test(e)&&"0"!==e||e.startsWith("url(")));function pA(e){e.duration=0,e.type}const dA=new Set(["opacity","clipPath","filter","transform"]),fA=mM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class mA extends jD{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=KM.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||KD;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=KM.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=uA(o,t),s=uA(i,t);return lM(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||iA(r))&&n)}(e,o,i,a)||(!uM.instantAnimations&&s||c?.(OD(e,r,t)),e[0]=e[e.length-1],pA(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 fA()&&r&&dA.has(r)&&("transform"!==r||!c)&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new cA({...u,element:u.motionValue.owner.current}):new SD(u);p.finished.then(()=>this.notifyFinished()).catch(hM),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(),YD=!0,XD(),GD(),YD=!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 hA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vA(e,t,r=1){cM(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=hA.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 pM(e)?parseFloat(e):e}return eR(o)?vA(o,t,r+1):o}function yA(e,t){return e?.[t]??e?.default??e}const gA=new Set(["width","height","top","left","right","bottom",...BD]),bA=e=>t=>t.test(e),wA=[rR,vR,hR,mR,gR,yR,{test:e=>"auto"===e,parse:e=>e}],xA=e=>wA.find(bA(e));function OA(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||fM(e))}const EA=new Set(["brightness","contrast","saturate","opacity"]);function kA(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(aR)||[];if(!n)return e;const o=r.replace(n,"");let i=EA.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const jA=/\b([a-z-]*)\(.*?\)/gu,PA={...NR,getAnimatableNone:e=>{const t=e.match(jA);return t?t.map(kA).join(" "):e}},SA={...rR,transform:Math.round},CA={borderWidth:vR,borderTopWidth:vR,borderRightWidth:vR,borderBottomWidth:vR,borderLeftWidth:vR,borderRadius:vR,radius:vR,borderTopLeftRadius:vR,borderTopRightRadius:vR,borderBottomRightRadius:vR,borderBottomLeftRadius:vR,width:vR,maxWidth:vR,height:vR,maxHeight:vR,top:vR,right:vR,bottom:vR,left:vR,padding:vR,paddingTop:vR,paddingRight:vR,paddingBottom:vR,paddingLeft:vR,margin:vR,marginTop:vR,marginRight:vR,marginBottom:vR,marginLeft:vR,backgroundPositionX:vR,backgroundPositionY:vR,...{rotate:mR,rotateX:mR,rotateY:mR,rotateZ:mR,scale:oR,scaleX:oR,scaleY:oR,scaleZ:oR,skew:mR,skewX:mR,skewY:mR,distance:vR,translateX:vR,translateY:vR,translateZ:vR,x:vR,y:vR,z:vR,perspective:vR,transformPerspective:vR,opacity:nR,originX:bR,originY:bR,originZ:vR},zIndex:SA,fillOpacity:nR,strokeOpacity:nR,numOctaves:SA},TA={...CA,color:xR,backgroundColor:xR,outlineColor:xR,fill:xR,stroke:xR,borderColor:xR,borderTopColor:xR,borderRightColor:xR,borderBottomColor:xR,borderLeftColor:xR,filter:PA,WebkitFilter:PA},NA=e=>TA[e];function zA(e,t){let r=NA(e);return r!==PA&&(r=NR),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const LA=new Set(["auto","none","0"]);class MA extends KD{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(),eR(n))){const o=vA(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!gA.has(r)||2!==e.length)return;const[n,o]=e,i=xA(n),a=xA(o);if(i!==a)if(WD(i)&&WD(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else $D[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||OA(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&&!LA.has(t)&&PR(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=zA(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=$D[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]=$D[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 RA=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class DA{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=KM.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=KM.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&&kM(!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 bM);const r=this.events[e].add(t);return"change"===e?()=>{r(),HM.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=KM.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return OM(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 AA(e,t){return new DA(e,t)}const{schedule:IA}=$M(queueMicrotask,!1),BA={x:!1,y:!1};function _A(){return BA.x||BA.y}function WA(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 FA(e){return!("touch"===e.pointerType||_A())}const VA=(e,t)=>!!t&&(e===t||VA(e,t.parentElement)),$A=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,HA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const UA=new WeakSet;function qA(e){return t=>{"Enter"===t.key&&e(t)}}function YA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function GA(e){return $A(e)&&!_A()}function XA(e,t,r={}){const[n,o,i]=WA(e,r),a=e=>{const n=e.currentTarget;if(!GA(e))return;UA.add(n);const i=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),UA.has(n)&&UA.delete(n),GA(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,n===window||n===document||r.useGlobalTarget||VA(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),dM(t=e)&&"offsetHeight"in t&&(e.addEventListener("focus",e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=qA(()=>{if(UA.has(r))return;YA(r,"down");const e=qA(()=>{YA(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>YA(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,o)),function(e){return HA.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function KA(e){return dM(e)&&"ownerSVGElement"in e}const ZA=e=>Boolean(e&&e.getVelocity),QA=[...wA,xR,NR],JA=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});const eI=e.createContext({strict:!1}),tI={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"]},rI={};for(const e in tI)rI[e]={isEnabled:t=>tI[e].some(e=>!!t[e])};const nI=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 oI(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nI.has(e)}let iI=e=>!oI(e);try{"function"==typeof(aI=require("@emotion/is-prop-valid").default)&&(iI=e=>e.startsWith("on")?!oI(e):aI(e))}catch{}var aI;const sI=e.createContext({});function lI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cI(e){return"string"==typeof e||Array.isArray(e)}const uI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pI=["initial",...uI];function dI(e){return lI(e.animate)||pI.some(t=>cI(e[t]))}function fI(e){return Boolean(dI(e)||e.variants)}function mI(t){const{initial:r,animate:n}=function(e,t){if(dI(e)){const{initial:t,animate:r}=e;return{initial:!1===t||cI(t)?t:void 0,animate:cI(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(sI));return e.useMemo(()=>({initial:r,animate:n}),[hI(r),hI(n)])}function hI(e){return Array.isArray(e)?e.join(" "):e}const vI={};function yI(e,{layout:t,layoutId:r}){return _D.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!vI[e]||"opacity"===e)}const gI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bI=BD.length;function wI(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(_D.has(e))a=!0;else if(QM(e))o[e]=r;else{const t=RA(r,CA[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<bI;i++){const a=BD[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=RA(s,CA[a]);l||(o=!1,n+=`${gI[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 xI=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function OI(e,t,r){for(const n in t)ZA(t[n])||yI(n,r)||(e[n]=t[n])}function EI(t,r){const n={};return OI(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},r){return e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return wI(e,r,t),Object.assign({},e.vars,e.style)},[r])}(t,r)),n}function kI(e,t){const r={},n=EI(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 jI={offset:"stroke-dashoffset",array:"stroke-dasharray"},PI={offset:"strokeDashoffset",array:"strokeDasharray"};function SI(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(wI(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?jI:PI;e[i.offset]=vR.transform(-n);const a=vR.transform(t),s=vR.transform(r);e[i.array]=`${a} ${s}`}(p,o,i,a,!1)}const CI=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),TI=e=>"string"==typeof e&&"svg"===e.toLowerCase();function NI(t,r,n,o){const i=e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return SI(e,r,TI(o),t.transformTemplate,t.style),{...e.attrs,style:{...e.style}}},[r]);if(t.style){const e={};OI(e,t.style,t),i.style={...e,...i.style}}return i}const zI=["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 LI(e){return"string"==typeof e&&!e.includes("-")&&!!(zI.indexOf(e)>-1||/[A-Z]/u.test(e))}function MI(t,r,n,{latestValues:o},i,a=!1){const s=(LI(t)?NI:kI)(r,o,i,t),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(iI(o)||!0===r&&oI(o)||!t&&!oI(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,a),c=t!==e.Fragment?{...l,...s,ref:n}:{},{children:u}=r,p=e.useMemo(()=>ZA(u)?u.get():u,[u]);return e.createElement(t,{...c,children:p})}function RI(e){const t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function DI(e,t,r,n){if("function"==typeof t){const[o,i]=RI(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]=RI(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function AI(e){return ZA(e)?e.get():e}function II(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=AI(i[e]);let{initial:a,animate:s}=e;const l=dI(e),c=fI(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&&!lI(p)){const t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){const n=DI(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 BI=t=>(r,n)=>{const o=e.useContext(sI),i=e.useContext(nM),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:II(r,n,o,e),renderState:t()}}(t,r,o,i);return n?a():function(t){const r=e.useRef(null);return null===r.current&&(r.current=t()),r.current}(a)};function _I(e,t,r){const{style:n}=e,o={};for(const i in n)(ZA(n[i])||t.style&&ZA(t.style[i])||yI(i,e)||void 0!==r?.getValue(i)?.liveStyle)&&(o[i]=n[i]);return o}const WI=BI({scrapeMotionValuesFromProps:_I,createRenderState:xI});function FI(e,t,r){const n=_I(e,t,r);for(const r in e)if(ZA(e[r])||ZA(t[r])){n[-1!==BD.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}const VI=BI({scrapeMotionValuesFromProps:FI,createRenderState:CI}),$I=Symbol.for("motionComponentSymbol");function HI(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function UI(t,r,n){return e.useCallback(e=>{e&&t.onMount&&t.onMount(e),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):HI(n)&&(n.current=e))},[r])}const qI=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),YI="data-"+qI("framerAppearId"),GI=e.createContext({});function XI(t,r,n,o,i){const{visualElement:a}=e.useContext(sI),s=e.useContext(eI),l=e.useContext(nM),c=e.useContext(JA).reducedMotion,u=e.useRef(null);o=o||s.renderer,!u.current&&o&&(u.current=o(t,{visualState:r,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const p=u.current,d=e.useContext(GI);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.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:KI(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&HI(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,i,d);const f=e.useRef(!1);e.useInsertionEffect(()=>{p&&f.current&&p.update(n,l)});const m=n[YI],h=e.useRef(Boolean(m)&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return rM(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),e.useEffect(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),h.current=!1),p.enteringChildren=void 0)}),p}function KI(e){if(e)return!1!==e.options.allowProjection?e.projection:KI(e.parent)}function ZI(r,{forwardMotionProps:n=!1}={},o,i){o&&function(e){for(const t in e)rI[t]={...rI[t],...e[t]}}(o);const a=LI(r)?VI:WI;function s(s,l){let c;const u={...e.useContext(JA),...s,layoutId:QI(s)},{isStatic:p}=u,d=mI(s),f=a(s,p);if(!p&&tM){!function(t,r){const n=e.useContext(eI).strict;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?lM(!1,e,"lazy-strict-mode"):cM(!1,e,"lazy-strict-mode")}}(u,o);const t=function(e){const{drag:t,layout:r}=rI;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);c=t.MeasureLayout,d.visualElement=XI(r,f,u,i,t.ProjectionNode)}return t.jsxs(sI.Provider,{value:d,children:[c&&d.visualElement?t.jsx(c,{visualElement:d.visualElement,...u}):null,MI(r,s,UI(f,d.visualElement,l),f,p,n)]})}s.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;const l=e.forwardRef(s);return l[$I]=r,l}function QI({layoutId:t}){const r=e.useContext(eM).id;return r&&void 0!==t?r+"-"+t:t}function JI(e,t){if("undefined"==typeof Proxy)return ZI;const r=new Map,n=(r,n)=>ZI(r,n,e,t);return new Proxy((e,t)=>("production"!==process.env.NODE_ENV&&kM(!1,"motion() is deprecated. Use motion.create() instead."),n(e,t)),{get:(o,i)=>"create"===i?n:(r.has(i)||r.set(i,ZI(i,void 0,e,t)),r.get(i))})}function eB({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function tB(e){return void 0===e||1===e}function rB({scale:e,scaleX:t,scaleY:r}){return!tB(e)||!tB(t)||!tB(r)}function nB(e){return rB(e)||oB(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oB(e){return iB(e.x)||iB(e.y)}function iB(e){return e&&"0%"!==e}function aB(e,t,r){return r+t*(e-r)}function sB(e,t,r,n,o){return void 0!==o&&(e=aB(e,o,n)),aB(e,r,n)+t}function lB(e,t=0,r=1,n,o){e.min=sB(e.min,t,r,n,o),e.max=sB(e.max,t,r,n,o)}function cB(e,{x:t,y:r}){lB(e.x,t.translate,t.scale,t.originPoint),lB(e.y,r.translate,r.scale,r.originPoint)}const uB=.999999999999,pB=1.0000000000001;function dB(e,t){e.min=e.min+t,e.max=e.max+t}function fB(e,t,r,n,o=.5){lB(e,t,r,MR(e.min,e.max,o),n)}function mB(e,t){fB(e.x,t.x,t.scaleX,t.scale,t.originX),fB(e.y,t.y,t.scaleY,t.scale,t.originY)}function hB(e,t){return eB(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 vB=()=>({x:{min:0,max:0},y:{min:0,max:0}}),yB={current:null},gB={current:!1};const bB=new WeakMap;const wB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xB{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=KD,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=KM.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,HM.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=dI(t),this.isVariantNode=fI(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]&&ZA(t)&&t.set(s[e])}}mount(e){this.current=e,bB.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)),gB.current||function(){if(gB.current=!0,tM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yB.current=e.matches;e.addEventListener("change",t),t()}else yB.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||yB.current),"production"!==process.env.NODE_ENV&&kM(!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(),UM(this.notifyUpdate),UM(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=_D.has(e);r&&this.onBindTransform&&this.onBindTransform();const n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&HM.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 rI){const t=rI[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<wB.length;t++){const r=wB[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(ZA(o))e.addValue(n,o);else if(ZA(i))e.addValue(n,AA(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,AA(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=AA(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&&(pM(r)||fM(r))?r=parseFloat(r):(n=r,!QA.find(bA(n))&&NR.test(t)&&(r=zA(e,t))),this.setBaseTarget(e,ZA(r)?r.get():r)),ZA(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=DI(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||ZA(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 bM),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){IA.render(this.render)}}class OB extends xB{constructor(){super(...arguments),this.KeyframeResolver=MA}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;ZA(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function EB(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 kB extends OB{constructor(){super(...arguments),this.type="html",this.renderInstance=EB}readValueFromInstance(e,t){if(_D.has(t))return this.projection?.isProjecting?DD(t):((e,t)=>{const{transform:r="none"}=getComputedStyle(e);return AD(r,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),o=(QM(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return hB(e,t)}build(e,t,r){wI(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return _I(e,t,r)}}const jB=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 PB extends OB{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vB}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(_D.has(t)){const e=NA(t);return e&&e.default||0}return t=jB.has(t)?t:qI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return FI(e,t,r)}build(e,t,r){SI(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){!function(e,t,r,n){EB(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(jB.has(r)?r:qI(r),t.attrs[r])}(e,t,0,n)}mount(e){this.isSVGTag=TI(e.tagName),super.mount(e)}}const SB=(t,r)=>LI(t)?new PB(r):new kB(r,{allowProjection:t!==e.Fragment});function CB(e,t,r){const n=e.getProps();return DI(n,t,void 0!==r?r:n.custom,e)}const TB=e=>Array.isArray(e);function NB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,AA(r))}function zB(e){return TB(e)?e[e.length-1]||0:e}function LB(e,t){const r=e.getValue("willChange");if(n=r,Boolean(ZA(n)&&n.add))return r.add(t);if(!r&&uM.WillChange){const r=new uM.WillChange("auto");e.addValue("willChange",r),r.add(t)}var n}function MB(e){return e.props[YI]}const RB=e=>null!==e;const DB={type:"spring",stiffness:500,damping:25,restSpeed:10},AB={type:"keyframes",duration:.8},IB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BB=(e,{keyframes:t})=>t.length>2?AB:_D.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:DB:IB;const _B=(e,t,r,n={},o,i)=>a=>{const s=yA(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c-=wM(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,BB(e,u)),u.duration&&(u.duration=wM(u.duration)),u.repeatDelay&&(u.repeatDelay=wM(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(pA(u),0===u.delay&&(p=!0)),(uM.instantAnimations||uM.skipAnimations)&&(p=!0,pA(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(RB);return n[t&&"loop"!==r&&t%2==1?0:n.length-1]}(u.keyframes,s);if(void 0!==e)return void HM.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new SD(u):new mA(u)};function WB({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function FB(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&&WB(c,t))continue;const a={delay:r,...yA(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=MB(e);if(r){const e=window.MotionHandoffAnimation(r,t,HM);null!==e&&(a.startTime=e,p=!0)}}LB(e,t),n.start(_B(t,n,o,e.shouldReduceMotion&&gA.has(t)?{type:!1}:a,e,p));const d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{HM.update(()=>{a&&function(e,t){const r=CB(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)NB(e,t,zB(i[t]))}(e,a)})}),l}function VB(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 $B(e,t,r={}){const n=CB(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(FB(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($B(l,t,{...a,delay:r+("function"==typeof n?0:n)+VB(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 HB(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 UB=pI.length;function qB(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qB(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;r<UB;r++){const n=pI[r],o=e.props[n];(cI(o)||!1===o)&&(t[n]=o)}return t}const YB=[...uI].reverse(),GB=uI.length;function XB(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=>$B(e,t,r));n=Promise.all(o)}else if("string"==typeof t)n=$B(e,t,r);else{const o="function"==typeof t?CB(e,t,r.custom):t;n=Promise.all(FB(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,t,r)))}function KB(e){let t=XB(e),r=JB(),n=!0;const o=t=>(r,n)=>{const o=CB(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=qB(e.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let t=0;t<GB;t++){const d=YB[t],f=r[d],m=void 0!==a[d]?a[d]:s[d],h=cI(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||lI(m)||"boolean"==typeof m)continue;const g=ZB(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=TB(t)&&TB(r)?!HB(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=CB(n,t);if(n.enteringChildren&&o){const{delayChildren:t}=o.transition||{};r.delay=VB(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){const t={};if("boolean"!=typeof a.initial){const r=CB(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=JB(),n=!0}}}function ZB(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!HB(t,e)}function QB(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JB(){return{animate:QB(!0),whileInView:QB(),whileHover:QB(),whileTap:QB(),whileDrag:QB(),whileFocus:QB(),exit:QB()}}class e_{constructor(e){this.isMounted=!1,this.node=e}update(){}}let t_=0;const r_={animation:{Feature:class extends e_{constructor(e){super(e),e.animationState||(e.animationState=KB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();lI(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 e_{constructor(){super(...arguments),this.id=t_++}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 n_(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function o_(e){return{point:{x:e.pageX,y:e.pageY}}}function i_(e,t,r,n){return n_(e,t,(e=>t=>$A(t)&&e(t,o_(t)))(r),n)}function a_(e){return e.max-e.min}function s_(e,t,r,n=.5){e.origin=n,e.originPoint=MR(t.min,t.max,e.origin),e.scale=a_(r)/a_(t),e.translate=MR(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 l_(e,t,r,n){s_(e.x,t.x,r.x,n?n.originX:void 0),s_(e.y,t.y,r.y,n?n.originY:void 0)}function c_(e,t,r){e.min=r.min+t.min,e.max=e.min+a_(t)}function u_(e,t,r){e.min=t.min-r.min,e.max=e.min+a_(t)}function p_(e,t,r){u_(e.x,t.x,r.x),u_(e.y,t.y,r.y)}function d_(e){return[e("x"),e("y")]}const f_=({current:e})=>e?e.ownerDocument.defaultView:null,m_=(e,t)=>Math.abs(e-t);class h_{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=g_(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=m_(e.x,t.x),n=m_(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}=qM;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=v_(t,this.transformPagePoint),HM.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=g_("pointercancel"===e.type?this.lastMoveEventInfo:v_(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!$A(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;const a=v_(o_(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=qM;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,g_(a,this.history)),this.removeListeners=yM(i_(this.contextWindow,"pointermove",this.handlePointerMove),i_(this.contextWindow,"pointerup",this.handlePointerUp),i_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),UM(this.updatePoint)}}function v_(e,t){return t?{point:t(e.point)}:e}function y_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function g_({point:e},t){return{point:e,delta:y_(e,w_(t)),offset:y_(e,b_(t)),velocity:x_(t,.1)}}function b_(e){return e[0]}function w_(e){return e[e.length-1]}function x_(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=w_(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>wM(t)));)r--;if(!n)return{x:0,y:0};const i=xM(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 O_(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 E_(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 k_=.35;function j_(e,t,r){return{min:P_(e,t),max:P_(e,r)}}function P_(e,t){return"number"==typeof e?e:e[t]||0}const S_=new WeakMap;class C_{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 h_(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(o_(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?BA[i]?null:(BA[i]=!0,()=>{BA[i]=!1}):BA.x||BA.y?null:(BA.x=BA.y=!0,()=>{BA.x=BA.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),d_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(hR.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=a_(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&HM.postRender(()=>o(e,t)),LB(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:()=>d_(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:r,contextWindow:f_(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&&HM.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||!T_(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?MR(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?MR(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&&HI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:O_(e.x,r,o),y:O_(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=k_){return!1===e?e=0:!0===e&&(e=k_),{x:j_(e,"left","right"),y:j_(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&d_(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||!HI(e))return!1;const r=e.current;cM(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=hB(e,r),{scroll:o}=t;return o&&(dB(n.x,o.offset.x),dB(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:E_(e.x,t.x),y:E_(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=eB(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=d_(a=>{if(!T_(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 LB(this.visualElement,e),r.start(_B(e,r,0,t,this.visualElement,!1))}stopAnimation(){d_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){d_(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){d_(t=>{const{drag:r}=this.getProps();if(!T_(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]-MR(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!HI(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};d_(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=a_(e),o=a_(t);return o>n?r=gM(t.min,t.max-n,e.min):n>o&&(r=gM(e.min,e.max-o,t.min)),aM(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(),d_(t=>{if(!T_(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(MR(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;S_.set(this.visualElement,this);const e=i_(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();HI(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()),HM.read(t);const o=n_(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(d_(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=k_,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function T_(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const N_=e=>(t,r)=>{e&&HM.postRender(()=>e(t,r))};const z_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function L_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const M_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!vR.test(e))return e;e=parseFloat(e)}return`${L_(e,t.target.x)}% ${L_(e,t.target.y)}%`}},R_={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=NR.parse(e);if(o.length>5)return n;const i=NR.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=MR(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 D_=!1;class A_ extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;!function(e){for(const t in e)vI[t]=e[t],QM(t)&&(vI[t].isCSSVariable=!0)}(B_),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),D_&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),z_.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,{projection:i}=r;return i?(i.isPresent=o,D_=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||HM.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),IA.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;D_=!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 I_(r){const[n,o]=function(t=!0){const r=e.useContext(nM);if(null===r)return[!0,null];const{isPresent:n,onExitComplete:o,register:i}=r,a=e.useId();e.useEffect(()=>{if(t)return i(a)},[t]);const s=e.useCallback(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,s]:[!0]}(),i=e.useContext(eM);return t.jsx(A_,{...r,layoutGroup:i,switchLayoutGroup:e.useContext(GI),isPresent:n,safeToRemove:o})}const B_={borderRadius:{...M_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M_,borderTopRightRadius:M_,borderBottomLeftRadius:M_,borderBottomRightRadius:M_,boxShadow:R_};const __=(e,t)=>e.depth-t.depth;class W_{constructor(){this.children=[],this.isDirty=!1}add(e){oM(this.children,e),this.isDirty=!0}remove(e){iM(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(__),this.isDirty=!1,this.children.forEach(e)}}const F_=["TopLeft","TopRight","BottomLeft","BottomRight"],V_=F_.length,$_=e=>"string"==typeof e?parseFloat(e):e,H_=e=>"number"==typeof e||vR.test(e);function U_(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const q_=G_(0,.5,RM),Y_=G_(.5,.95,hM);function G_(e,t,r){return n=>n<e?0:n>t?1:r(gM(e,t,n))}function X_(e,t){e.min=t.min,e.max=t.max}function K_(e,t){X_(e.x,t.x),X_(e.y,t.y)}function Z_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Q_(e,t,r,n,o){return e=aB(e-=t,1/r,n),void 0!==o&&(e=aB(e,1/o,n)),e}function J_(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){hR.test(t)&&(t=parseFloat(t),t=MR(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=MR(i.min,i.max,n);e===i&&(s-=t),e.min=Q_(e.min,t,r,s,o),e.max=Q_(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const eW=["x","scaleX","originX"],tW=["y","scaleY","originY"];function rW(e,t,r,n){J_(e.x,t,eW,r?r.x:void 0,n?n.x:void 0),J_(e.y,t,tW,r?r.y:void 0,n?n.y:void 0)}function nW(e){return 0===e.translate&&1===e.scale}function oW(e){return nW(e.x)&&nW(e.y)}function iW(e,t){return e.min===t.min&&e.max===t.max}function aW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sW(e,t){return aW(e.x,t.x)&&aW(e.y,t.y)}function lW(e){return a_(e.x)/a_(e.y)}function cW(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uW{constructor(){this.members=[]}add(e){oM(this.members,e),e.scheduleRender()}remove(e){if(iM(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 pW=["","X","Y","Z"];let dW=0;function fW(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function mW(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=MB(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",HM,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&mW(n)}function hW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=t?.()){this.id=dW++,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(gW),this.nodes.forEach(jW),this.nodes.forEach(PW),this.nodes.forEach(bW)},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 W_)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bM),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=KA(t)&&!(KA(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;HM.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=KM.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(UM(n),e(i-t))};return HM.setup(n,!0),()=>UM(n)}(o,250),z_.hasAnimatedSinceResize&&(z_.hasAnimatedSinceResize=!1,this.nodes.forEach(kW)))})}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()||LW,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!sW(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={...yA(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||kW(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(),UM(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(SW),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&&mW(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(xW);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(OW);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(EW),this.nodes.forEach(vW),this.nodes.forEach(yW)):this.nodes.forEach(OW),this.clearAllSnapshots();const e=KM.now();qM.delta=aM(0,1e3/60,e-qM.timestamp),qM.timestamp=e,qM.isProcessing=!0,YM.update.process(qM),YM.preRender.process(qM),YM.render.process(qM),qM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,IA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wW),this.sharedNodes.forEach(CW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,HM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){HM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||a_(this.snapshot.measuredBox.x)||a_(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&&!oW(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||nB(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)),DW((n=r).x),DW(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(IW))){const{scroll:e}=this.root;e&&(dB(t.x,e.offset.x),dB(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(K_(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&&K_(t,e),dB(t.x,o.offset.x),dB(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};K_(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&&mB(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nB(n.latestValues)&&mB(r,n.latestValues)}return nB(this.latestValues)&&mB(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};K_(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!nB(r.latestValues))continue;rB(r.latestValues)&&r.updateSnapshot();const n=vB();K_(n,r.measurePageBox()),rW(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nB(this.latestValues)&&rW(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!==qM.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=qM.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}},p_(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),K_(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,c_(i.x,a.x,s.x),c_(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):K_(this.target,this.layout.layoutBox),cB(this.target,this.targetDelta)):K_(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}},p_(this.relativeTargetOrigin,this.target,e.target),K_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!rB(this.parent.latestValues)&&!oB(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===qM.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;K_(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&&mB(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,cB(e,a)),n&&nB(i.latestValues)&&mB(e,i.latestValues))}t.x<pB&&t.x>uB&&(t.x=1),t.y<pB&&t.y>uB&&(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?(Z_(this.prevProjectionDelta.x,this.projectionDelta.x),Z_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),l_(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&cW(this.projectionDelta.x,this.prevProjectionDelta.x)&&cW(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(zW));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,d,f,m,h,v;TW(i.x,e.x,r),TW(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(p_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,v=r,NW(f.x,m.x,h.x,v),NW(f.y,m.y,h.y,v),p&&(l=this.relativeTarget,d=p,iW(l.x,d.x)&&iW(l.y,d.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),K_(p,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=MR(0,r.opacity??1,q_(n)),e.opacityExit=MR(t.opacity??1,0,Y_(n))):i&&(e.opacity=MR(t.opacity??1,r.opacity??1,n));for(let o=0;o<V_;o++){const i=`border${F_[o]}Radius`;let a=U_(t,i),s=U_(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||H_(a)===H_(s)?(e[i]=Math.max(MR($_(a),$_(s),n),0),(hR.test(s)||hR.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=MR(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&&(UM(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=HM.update(()=>{z_.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=AA(0)),this.currentAnimation=function(e,t,r){const n=ZA(e)?e:AA(e);return n.start(_B("",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&&AW(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=a_(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=a_(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}K_(t,r),mB(t,o),l_(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new uW);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&&fW("z",e,n,this.animationValues);for(let t=0;t<pW.length;t++)fW(`rotate${pW[t]}`,e,n,this.animationValues),fW(`skew${pW[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=AI(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=AI(t?.pointerEvents)||""),void(this.hasProjected&&!nB(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 vI){if(void 0===o[t])continue;const{correct:r,applyTo:a,isCSSVariable:s}=vI[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?AI(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(xW),this.root.sharedNodes.clear()}}}function vW(e){e.updateLayout()}function yW(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?d_(e=>{const n=i?t.measuredBox[e]:t.layoutBox[e],o=a_(n);n.min=r[e].min,n.max=n.min+o}):AW(o,t.layoutBox,r)&&d_(n=>{const o=i?t.measuredBox[n]:t.layoutBox[n],a=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}};l_(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?l_(s,e.applyTransform(n,!0),t.measuredBox):l_(s,r,t.layoutBox);const l=!oW(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}};p_(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};p_(s,r,i.layoutBox),sW(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 gW(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 bW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wW(e){e.clearSnapshot()}function xW(e){e.clearMeasurements()}function OW(e){e.isLayoutDirty=!1}function EW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kW(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jW(e){e.resolveTargetDelta()}function PW(e){e.calcProjection()}function SW(e){e.resetSkewAndRotation()}function CW(e){e.removeLeadSnapshot()}function TW(e,t,r){e.translate=MR(t.translate,0,r),e.scale=MR(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function NW(e,t,r,n){e.min=MR(t.min,r.min,n),e.max=MR(t.max,r.max,n)}function zW(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const LW={duration:.45,ease:[.4,0,.1,1]},MW=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),RW=MW("applewebkit/")&&!MW("chrome/")?Math.round:hM;function DW(e){e.min=RW(e.min),e.max=RW(e.max)}function AW(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=lW(t),o=lW(r),i=.2,!(Math.abs(n-o)<=i));var n,o,i}function IW(e){return e!==e.root&&e.scroll?.wasRoot}const BW=hW({attachResizeListener:(e,t)=>n_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_W={current:void 0},WW=hW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_W.current){const e=new BW({});e.mount(window),e.setOptions({layoutScroll:!0}),_W.current=e}return _W.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),FW={pan:{Feature:class extends e_{constructor(){super(...arguments),this.removePointerDownListener=hM}onPointerDown(e){this.session=new h_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:f_(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:N_(e),onStart:N_(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&HM.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=i_(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 e_{constructor(e){super(e),this.removeGroupControls=hM,this.removeListeners=hM,this.controls=new C_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hM}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:WW,MeasureLayout:I_}};function VW(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&HM.postRender(()=>o(t,o_(t)))}function $W(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&&HM.postRender(()=>o(t,o_(t)))}const HW=new WeakMap,UW=new WeakMap,qW=e=>{const t=HW.get(e.target);t&&t(e)},YW=e=>{e.forEach(qW)};function GW(e,t,r){const n=function({root:e,...t}){const r=e||document;UW.has(r)||UW.set(r,{});const n=UW.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(YW,{root:e,...t})),n[o]}(t);return HW.set(e,r),n.observe(e),()=>{HW.delete(e),n.unobserve(e)}}const XW={some:0,all:1};const KW={inView:{Feature:class extends e_{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:XW[n]};return GW(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 e_{mount(){const{current:e}=this.node;e&&(this.unmount=XA(e,(e,t)=>($W(this.node,t,"Start"),(e,{success:t})=>$W(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends e_{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=yM(n_(this.node.current,"focus",()=>this.onFocus()),n_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends e_{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=WA(e,r),a=e=>{if(!FA(e))return;const{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;const i=e=>{FA(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)=>(VW(this.node,t,"Start"),e=>VW(this.node,e,"End"))))}unmount(){}}}},ZW=JI({...r_,...KW,...FW,...{layout:{ProjectionNode:WW,MeasureLayout:I_}}},SB),QW="right",JW={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"}},eF=({children:t,side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u,...p})=>{const d=e.useRef({side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u});return e.useEffect(()=>{d.current={side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u}},[r,n,o,i,a,s,l,c,u]),e.createElement(vT,{...p},t)};eF.displayName="Sheet";const tF=e.forwardRef(({children:t,...r},n)=>e.createElement(yT,{...r,ref:n},t));tF.displayName="SheetTrigger";const rF=ET;rF.displayName="SheetClose";const nF=gT;nF.displayName="SheetPortal";const oF=e.forwardRef(({className:t,...r},n)=>e.createElement(bT,{asChild:!0,...r,ref:n},e.createElement(ZW.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:he("fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",t)})));oF.displayName=bT.displayName;const iF=e.forwardRef(({side:t=QW,className:r,children:n,overlay:o=!0,fullWidth:i=!1,fullHeight:a=!0,...s},l)=>{const c=JW[t]?t:QW;return e.createElement(nF,null,o&&e.createElement(oF,null),e.createElement(wT,{ref:l,className:he("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]:${JW[c].out}`,`data-[state=open]:${JW[c].in}`,r),...s},n,e.createElement(ET,{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"},e.createElement(Ae,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))))});iF.displayName=wT.displayName;const aF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,className:he("flex flex-col space-y-2 text-center sm:text-left",t),...n},r));aF.displayName="SheetHeader";const sF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n},r));sF.displayName="SheetFooter";const lF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(xT,{ref:o,className:he("text-lg font-semibold text-foreground",t),...n},r));lF.displayName=xT.displayName;const cF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(OT,{ref:o,className:he("text-sm text-muted-foreground",t),...n},r));cF.displayName=OT.displayName;e.forwardRef(({side:t=QW,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=JW[t]?t:QW;return e.createElement(eF,{...d},e.createElement(iF,{side:m,overlay:r,className:l,fullWidth:u,fullHeight:p,...c},e.createElement("div",{ref:f},(o||i)&&e.createElement(aF,null,o&&e.createElement(lF,null,o),i&&e.createElement(cF,null,i)),e.createElement("div",{className:"py-4"},s),n&&e.createElement(sF,null,e.createElement(rF,{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors duration-200"},a)))))}).displayName="SheetDrawer";const uF=sL,pF=lL,dF=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,side:n="bottom",...o},a)=>i.createElement(cL,null,i.createElement(uL,{ref:a,align:t,sideOffset:r,side:n,className:he("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",e),...o})));dF.displayName=uL.displayName;function fF(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function mF(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}`:fF(n)&&fF(o)?mF(n,o):n===o})}function hF(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function vF(e){return"number"==typeof e}function yF(e){return"string"==typeof e}function gF(e){return"boolean"==typeof e}function bF(e){return"[object Object]"===Object.prototype.toString.call(e)}function wF(e){return Math.abs(e)}function xF(e){return Math.sign(e)}function OF(e,t){return wF(e-t)}function EF(e){return CF(e).map(Number)}function kF(e){return e[jF(e)]}function jF(e){return Math.max(0,e.length-1)}function PF(e,t){return t===jF(e)}function SF(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function CF(e){return Object.keys(e)}function TF(e,t){return[e,t].reduce((e,t)=>(CF(t).forEach(r=>{const n=e[r],o=t[r],i=bF(n)&&bF(o);e[r]=i?TF(n,o):o}),e),{})}function NF(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function zF(){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 LF(e,t,r,n){const o=zF(),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 MF(e=0,t=0){const r=wF(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 RF(e,t,r){const{constrain:n}=MF(0,e),o=e+1;let i=a(t);function a(e){return r?wF((o+e)%o):n(e)}function s(){return i}function l(){return RF(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 DF(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=zF(),k=zF(),j=MF(50,225).constrain(f.measure(20)),P={mouse:300,touch:400},S={mouse:500,touch:600},C=m?43:25;let T=!1,N=0,z=0,L=!1,M=!1,R=!1,D=!1;function A(e){if(!NF(e,n)&&e.touches.length>=2)return I(e);const t=i.readPoint(e),r=i.readPoint(e,b),a=OF(t,N),l=OF(r,z);if(!M&&!D){if(!e.cancelable)return I(e);if(M=a>l,!M)return I(e)}const u=i.pointerMove(e);a>h&&(R=!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)[D?"mouse":"touch"],n=function(e,t){const r=p.add(-1*xF(e)),n=u.byDistance(e,!m).distance;return m||wF(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(wF(e)<=wF(t))return 0;const r=OF(wF(e),wF(t));return wF(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),D=!1,d.emit("pointerUp")}function B(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){if(!g)return;function s(s){(gF(g)||g(e,s))&&function(e){const s=NF(e,n);if(D=s,R=m&&s&&!e.buttons&&T,T=OF(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=D?r:t;k.add(e,"touchmove",A,O).add(e,"touchend",I).add(e,"mousemove",A,O).add(e,"mouseup",I)}(),N=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 AF(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(NF(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&&wF(l)>.1?l:0},readPoint:i}}function IF(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=>{(gF(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(wF(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 BF(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),s=MF(.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=wF(e[l]-t.get()),p=r.get()-t.get(),d=s.constrain(u/a);r.subtract(p*d),!o&&wF(p)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function _F(e,t,r,n){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:s}=MF(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 WF(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>wF(e)-wF(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=>xF(e)===n);return i.length?l(i):kF(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)=>wF(e.diff)-wF(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 FF(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=>{(gF(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));vF(i)&&(o.useDuration(0),n.index(i,0),a.emit("slideFocus"))}(u)},l)}))}};return p}function VF(e){let t=e;function r(e){return vF(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 $F(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 HF(e,t,r,n,o,i,a,s,l){const c=EF(o),u=EF(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:VF(-1),translate:$F(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 UF(e,t,r){let n,o=!1;return{init:function(i){r&&(n=new MutationObserver(e=>{o||(gF(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 qF(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 CF(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 YF(e,t,r,n,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:p}=e,d=vF(r);const f={groupSlides:function(e){return d?function(e,t){return EF(e).filter(e=>e%t===0).map(r=>e.slice(r,r+t))}(e,r):function(e){return e.length?EF(e).reduce((r,d,f)=>{const m=kF(r)||0,h=0===m,v=d===jF(e),y=o[c]-i[m][c],g=o[c]-i[d][u],b=!n&&h?p(a):0,w=wF(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 GF(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),T=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 yF(e)?r[e](n):e(t,n,o)}};return o}(s,S),N=!p&&!!g,z=p||!!g,{slideSizes:L,slideSizesWithGaps:M,startGap:R,endGap:D}=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 wF(t[s]-e[s])}(),p=function(){if(!c)return 0;const e=i.getComputedStyle(kF(n));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),d=r.map(a),f=r.map((e,t,r)=>{const n=!t,o=PF(r,t);return n?d[t]+u:o?d[t]+p:r[t+1][s]-e[s]}).map(wF);return{slideSizes:d,slideSizesWithGaps:f,startGap:u,endGap:p}}(P,k,j,r,z,o),A=YF(P,S,v,p,k,j,R,D,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=>kF(e)[a]-e[0][i]).map(wF).map(t.measure),c=n.map(e=>r[i]-e[i]).map(e=>-wF(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(P,T,k,j,A),_=-kF(I)+kF(M),{snapsContained:W,scrollContainLimit:F}=function(e,t,r,n,o){const i=MF(-t+e,0),a=r.map((e,t)=>{const{min:n,max:o}=i,a=i.constrain(e),s=!t,l=PF(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=kF(a);return MF(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 OF(e,t)<=1}return{snapsContained:l,scrollContainLimit:s}}(S,_,B,g,2),V=N?W:B,{limit:$}=function(e,t,r){const n=t[0];return{limit:MF(r?n-e:kF(t),n)}}(_,V,p),H=RF(jF(V),u,p),U=H.clone(),q=EF(r),Y=LF(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=VF(G),K=VF(G),Z=VF(G),Q=VF(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=xF(o),p=u,m},settled:function(){return wF(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=WF(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,U,J,ee,Q,a),re=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}($),ne=zF(),oe=qF(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=PF(r,t);return n?SF(kF(r[0])+1):o?SF(jF(i)-kF(r)[0]+1,kF(r)[0]):e})}();return{slideRegistry:c}}(N,g,V,F,A,q),ae=FF(e,r,ie,te,J,ne,a,O),se={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:k,slideRects:j,animation:Y,axis:P,dragHandler:DF(P,e,n,o,Q,AF(P,o),X,Y,te,J,ee,H,a,C,f,m,y,.68,x),eventStore:ne,percentOfView:C,index:H,indexPrevious:U,limit:$,location:X,offsetLocation:Z,previousLocation:K,options:i,resizeHandler:IF(t,a,o,r,P,b,E),scrollBody:J,scrollBounds:BF($,Z,Q,J,C),scrollLooper:_F(_,$,Z,[X,Z,K,Q]),scrollProgress:re,scrollSnapList:V.map(re.get),scrollSnaps:V,scrollTarget:ee,scrollTo:te,slideLooper:HF(P,S,_,L,M,I,V,Z,r),slideFocus:ae,slidesHandler:UF(t,a,w),slidesInView:oe,slideIndexes:q,slideRegistry:ie,slidesToScroll:A,target:Q,translate:$F(P,t)};return se}const XF={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 KF(e){function t(e,t){return TF(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},o=CF(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=>CF(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return r}function ZF(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=KF(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=zF(),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(XF,ZF.globalOptions),O=c(x),E=[];function k(t){const r=GF(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=yF(t)?e.querySelector(t):t;g=n||e.children[0];const o=yF(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(N),v.eventHandler.init(N),v.resizeHandler.init(N),v.slidesHandler.init(N),v.options.loop&&v.slideLooper.loop(),g.offsetParent&&b.length&&v.dragHandler.init(N),y=a.init(N,E)))}function P(e,t){const r=T();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 T(){return v.index.get()}const N={canScrollNext:function(){return v.index.add(1).get()!==T()},canScrollPrev:function(){return v.index.add(-1).get()!==T()},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:T,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),N}function QF(t={},r=[]){const n=e.useRef(t),o=e.useRef(r),[i,a]=e.useState(),[s,l]=e.useState(),c=e.useCallback(()=>{i&&i.reInit(n.current,o.current)},[i]);return e.useEffect(()=>{mF(n.current,t)||(n.current=t,c())},[t,c]),e.useEffect(()=>{(function(e,t){if(e.length!==t.length)return!1;const r=hF(e),n=hF(t);return r.every((e,t)=>mF(e,n[t]))})(o.current,r)||(o.current=r,c())},[r,c]),e.useEffect(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&s){ZF.globalOptions=QF.globalOptions;const e=ZF(s,n.current,o.current);return a(e),()=>e.destroy()}a(void 0)},[s,a]),[l,i]}ZF.globalOptions=void 0,QF.globalOptions=void 0;const JF=5e3,eV=e.createContext(null),tV=e.forwardRef(({children:t,orientation:r="x",showArrows:n=!0,showDots:o=!0,autoPlay:i=!1,interval:a=JF,disabled:s=!1,onSlideChange:l,className:c,...u},p)=>{const d="y"===r,[f,m]=QF({loop:!0,align:"start",axis:d?"y":"x",dragFree:!1,slidesToScroll:1,containScroll:"keepSnaps"}),[h,v]=e.useState(!0),[y,g]=e.useState(!0),[b,w]=e.useState(0),x=e.Children.count(t),O=e.useMemo(()=>({selectedIndex:b,scrollNext:()=>m?.scrollNext(),scrollPrev:()=>m?.scrollPrev(),canScrollNext:!y,canScrollPrev:!h,setSelectedIndex:e=>{m?.scrollTo(e)}}),[m,y,h,b]),E=e.useCallback(e=>{w(e.selectedScrollSnap()),v(!e.canScrollPrev()),g(!e.canScrollNext()),l?.(e.selectedScrollSnap())},[l]);return e.useEffect(()=>{m&&(E(m),m.on("select",()=>E(m)),m.on("reInit",()=>E(m)))},[m,E]),e.useEffect(()=>{if(!m||!i)return;const e=setInterval(()=>{y?m.scrollTo(0):m.scrollNext()},a);return()=>clearInterval(e)},[m,i,a,y]),e.createElement(eV.Provider,{value:O},e.createElement("div",{ref:p,className:he("relative group",d?"h-96":"w-full",c),role:"region","aria-roledescription":"carousel",style:{perspective:"1000px",perspectiveOrigin:"center center",overflow:"hidden"},...u},e.createElement("div",{ref:f,className:he("overflow-hidden h-full","rounded-2xl"),style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",willChange:"transform",transformStyle:"preserve-3d"}},e.createElement("div",{className:he("flex will-change-transform h-full",d?"flex-col":"flex-row")},e.Children.map(t,(t,r)=>e.createElement("div",{className:he("transform transition-all duration-700 ease-out",d?"min-h-0 h-full w-full flex-[0_0_100%]":"min-w-0 w-full flex-[0_0_100%]",r===b?"scale-100 rotate-0 translate-z-0 opacity-100":"scale-95 opacity-0 -translate-z-8"),key:r},t)))),e.createElement("div",{className:he("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",d?"top-4 right-1/2 translate-x-1/2":"bottom-6 right-6")},e.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"}),e.createElement("span",{className:"text-primary font-bold"},b+1),e.createElement("span",{className:"mx-1 opacity-50"},"/"),e.createElement("span",null,x)),n&&e.createElement(e.Fragment,null,e.createElement("div",{className:he("absolute z-10 transition-opacity duration-300",d?"right-4 top-4":"top-1/2 -translate-y-1/2 left-4 opacity-0 group-hover:opacity-100")},e.createElement(Be,{variant:"secondary",size:"small",className:he("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:s||h,onClick:()=>O.scrollPrev()},e.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),d?e.createElement(Ce,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):e.createElement(Pe,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),e.createElement("span",{className:"sr-only"},"Previous slide"))),e.createElement("div",{className:he("absolute z-10 transition-opacity duration-300",d?"right-4 bottom-4":"top-1/2 -translate-y-1/2 right-4 opacity-0 group-hover:opacity-100")},e.createElement(Be,{variant:"secondary",size:"small",className:he("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:s||y,onClick:()=>O.scrollNext()},e.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),d?e.createElement(je,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):e.createElement(Se,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),e.createElement("span",{className:"sr-only"},"Next slide")))),o&&e.createElement("div",{className:he("absolute z-10",d?"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")},e.Children.map(t,(t,r)=>e.createElement("button",{key:r,type:"button",className:he("h-8 w-8 flex items-center justify-center transition-all duration-500 ease-out hover:scale-125",r===b?"scale-110":"opacity-60 hover:opacity-90"),disabled:s,onClick:()=>O.setSelectedIndex(r)},r===b?e.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"}):e.createElement("div",{className:"w-2 h-2 rounded-full bg-muted transition-all duration-500 hover:bg-primary/50"}),e.createElement("span",{className:"sr-only"},"Jump to slide ",r+1))))))});tV.displayName="Carousel";e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,role:"group","aria-roledescription":"slide",className:he("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",t),...n},e.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"}),e.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"}),e.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"}),e.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 rV=Object.defineProperty,nV=Object.defineProperties,oV=Object.getOwnPropertyDescriptors,iV=Object.getOwnPropertySymbols,aV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,lV=(e,t,r)=>t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var cV=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var uV=i.createContext({}),pV=i.forwardRef((e,t)=>{var r,n,o,a,s,l=e,{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=fV,render:x,children:O}=l,E=((e,t)=>{var r={};for(var n in e)aV.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&iV)for(var n of iV(e))t.indexOf(n)<0&&sV.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]=i.useState("string"==typeof E.defaultValue?E.defaultValue:""),P=null!=c?c:k,S=function(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}(P),C=i.useCallback(e=>{null==u||u(e),j(e)},[u]),T=i.useMemo(()=>f?"string"==typeof f?new RegExp(f):f:null,[f]),N=i.useRef(null),z=i.useRef(null),L=i.useRef({value:P,onChange:C,isIOS:"undefined"!=typeof window&&(null==(n=null==(r=null==window?void 0:window.CSS)?void 0:r.supports)?void 0:n.call(r,"-webkit-touch-callout","none"))}),M=i.useRef({prev:[null==(o=N.current)?void 0:o.selectionStart,null==(a=N.current)?void 0:a.selectionEnd,null==(s=N.current)?void 0:s.selectionDirection]});i.useImperativeHandle(t,()=>N.current,[]),i.useEffect(()=>{let e=N.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&&N.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;";dV(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),dV(e.sheet,`[data-input-otp]:autofill { ${t} }`),dV(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),dV(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; } }"),dV(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[R,D]=i.useState(!1),[A,I]=i.useState(!1),[B,_]=i.useState(null),[W,F]=i.useState(null);i.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,r,n;null==(e=N.current)||e.dispatchEvent(new Event("input"));let o=null==(t=N.current)?void 0:t.selectionStart,i=null==(r=N.current)?void 0:r.selectionEnd,a=null==(n=N.current)?void 0:n.selectionDirection;null!==o&&null!==i&&(_(o),F(i),M.current.prev=[o,i,a])})},[P,A]),i.useEffect(()=>{void 0!==S&&P!==S&&S.length<p&&P.length===p&&(null==v||v(P))},[p,v,S,P]);let V=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[o,a]=i.useState(!1),[s,l]=i.useState(!1),[c,u]=i.useState(!1),p=i.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&o&&s,[o,s,r]),d=i.useCallback(()=>{let n=e.current,o=t.current;if(!n||!o||c||"none"===r)return;let i=n,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(cV).length&&document.elementFromPoint(s,l)===n||(a(!0),u(!0))},[e,t,c,r]);return i.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function n(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}n();let o=setInterval(n,1e3);return()=>{clearInterval(o)}},[e,r]),i.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===r||!e)return;let o=setTimeout(d,0),i=setTimeout(d,2e3),a=setTimeout(d,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(o),clearTimeout(i),clearTimeout(a),clearTimeout(s)}},[t,n,r,d]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:N,pushPasswordManagerStrategy:y,isFocused:A}),$=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,p);t.length>0&&T&&!T.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),C(t))},[p,C,S,T]),H=i.useCallback(()=>{var e;if(N.current){let t=Math.min(N.current.value.length,p-1),r=N.current.value.length;null==(e=N.current)||e.setSelectionRange(t,r),_(t),F(r)}I(!0)},[p]),U=i.useCallback(e=>{var t,r;let n=N.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=N.current)?void 0:t.selectionStart,s=null==(r=N.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&&T&&!T.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,T,P]),q=i.useMemo(()=>({position:"relative",cursor:E.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[E.disabled]),Y=i.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=i.useMemo(()=>i.createElement("input",((e,t)=>nV(e,oV(t)))(((e,t)=>{for(var r in t||(t={}))aV.call(t,r)&&lV(e,r,t[r]);if(iV)for(var r of iV(t))sV.call(t,r)&&lV(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==T?void 0:T.source,"aria-placeholder":m,style:Y,maxLength:p,value:P,ref:N,onPaste:e=>{var t;U(e),null==(t=E.onPaste)||t.call(E,e)},onChange:$,onMouseOver:e=>{var t;D(!0),null==(t=E.onMouseOver)||t.call(E,e)},onMouseLeave:e=>{var t;D(!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,U,h,Y,p,W,B,E,null==T?void 0:T.source,P]),X=i.useMemo(()=>({slots:Array.from({length:p}).map((e,t)=>{var r;let n=A&&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:A,isHovering:!E.disabled&&R}),[A,R,p,W,B,E.disabled,P]),K=i.useMemo(()=>x?x(X):i.createElement(uV.Provider,{value:X},O),[O,X,x]);return i.createElement(i.Fragment,null,null!==w&&i.createElement("noscript",null,i.createElement("style",null,w)),i.createElement("div",{ref:z,"data-input-otp-container":!0,style:q,className:b},K,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});function dV(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}pV.displayName="Input";var fV="\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 mV=i.forwardRef(({className:e,containerClassName:t,...r},n)=>i.createElement(pV,{ref:n,containerClassName:he("flex items-center gap-2 has-disabled:opacity-50",t),className:he("disabled:cursor-not-allowed",e),...r}));mV.displayName="InputOTP";const hV=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex items-center",e),...t}));hV.displayName="InputOTPGroup";const vV=i.forwardRef(({index:e,className:t,...r},n)=>{const o=i.useContext(uV),{char:a,hasFakeCaret:s,isActive:l}=o.slots[e];return i.createElement("div",{ref:n,className:he("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",t),...r},a,s&&i.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center"},i.createElement("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})))});vV.displayName="InputOTPSlot";i.forwardRef(({...e},t)=>i.createElement("div",{ref:t,role:"separator",...e},i.createElement(QE,null))).displayName="InputOTPSeparator";const yV=({value:t,maxLength:r=6,onChange:n,disabled:o=!1,isError:i=!1,placeholder:a="○",className:s})=>e.createElement(mV,{value:t,maxLength:r,onChange:n,disabled:o,className:s},e.createElement("div",{"aria-disabled":o},e.createElement(hV,{role:"group",className:he("gap-2",i&&"input-error")},Array.from({length:r}).map((r,n)=>e.createElement("div",{key:n,role:"textbox","data-value":t?.[n]||""},e.createElement(vV,{index:n,className:he("rounded-md border",i&&"border-destructive focus:ring-destructive")},t?.[n]||a))))));yV.displayName="OTPInput";var gV="AlertDialog",[bV,wV]=eg(gV,[_C]),xV=_C(),OV=e=>{const{__scopeAlertDialog:r,...n}=e,o=xV(r);return t.jsx(vT,{...o,...n,modal:!0})};OV.displayName=gV;var EV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(yT,{...i,...o,ref:r})});EV.displayName="AlertDialogTrigger";var kV=e=>{const{__scopeAlertDialog:r,...n}=e,o=xV(r);return t.jsx(gT,{...o,...n})};kV.displayName="AlertDialogPortal";var jV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(bT,{...i,...o,ref:r})});jV.displayName="AlertDialogOverlay";var PV="AlertDialogContent",[SV,CV]=bV(PV),TV=function(e){const r=({children:e})=>t.jsx(t.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=ig,r}("AlertDialogContent"),NV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,children:o,...a}=e,s=xV(n),l=i.useRef(null),c=Jy(r,l),u=i.useRef(null);return t.jsx(dT,{contentName:PV,titleName:zV,docsSlug:"alert-dialog",children:t.jsx(SV,{scope:n,cancelRef:u,children:t.jsxs(wT,{role:"alertdialog",...s,...a,ref:c,onOpenAutoFocus:Ky(a.onOpenAutoFocus,e=>{e.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[t.jsx(TV,{children:o}),t.jsx(BV,{contentRef:l})]})})})});NV.displayName=PV;var zV="AlertDialogTitle",LV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(xT,{...i,...o,ref:r})});LV.displayName=zV;var MV="AlertDialogDescription",RV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(OT,{...i,...o,ref:r})});RV.displayName=MV;var DV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(ET,{...i,...o,ref:r})});DV.displayName="AlertDialogAction";var AV="AlertDialogCancel",IV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:i}=CV(AV,n),a=xV(n),s=Jy(r,i);return t.jsx(ET,{...a,...o,ref:s})});IV.displayName=AV;var BV=({contentRef:e})=>{const t=`\`${PV}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${PV}\` by passing a \`${MV}\` 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 \`${PV}\`. 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 i.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_V=jV,WV=NV,FV=DV,VV=IV,$V=LV,HV=RV;const UV=OV,qV=EV,YV=kV,GV=i.forwardRef(({className:e,...t},r)=>i.createElement(_V,{className:he("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",e),...t,ref:r}));GV.displayName=_V.displayName;const XV=i.forwardRef(({className:e,...t},r)=>i.createElement(YV,null,i.createElement(GV,null),i.createElement(WV,{ref:r,className:he("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",e),...t})));XV.displayName=WV.displayName;const KV=({className:e,...t})=>i.createElement("div",{className:he("flex flex-col space-y-2 text-center sm:text-left",e),...t});KV.displayName="AlertDialogHeader";const ZV=({className:e,...t})=>i.createElement("div",{className:he("space-x-3 text-right",e),...t});ZV.displayName="AlertDialogFooter";const QV=i.forwardRef(({className:e,...t},r)=>i.createElement($V,{ref:r,className:he("text-lg font-semibold",e),...t}));QV.displayName=$V.displayName;const JV=i.forwardRef(({className:e,...t},r)=>i.createElement(HV,{ref:r,className:he("text-sm text-muted-foreground",e),...t}));JV.displayName=HV.displayName;const e$=i.forwardRef(({className:e,...t},r)=>i.createElement(FV,{ref:r,className:he($P(),e),...t}));e$.displayName=FV.displayName;const t$=i.forwardRef(({className:e,...t},r)=>i.createElement(VV,{ref:r,className:he($P({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));t$.displayName=VV.displayName;const r$={CANCEL_TEXT:"Cancel",VARIANT:"default",DISABLED:!1},n$=!1,o$="chevron",i$="right",a$="",s$="",l$="",c$=300,u$=({title:t,children:r,defaultOpen:n=n$,icon:o=o$,iconPosition:i=i$,className:a=a$,headerClassName:s=s$,contentClassName:l=l$,animationDuration:c=c$,onToggle:u})=>{const[p,d]=e.useState(n),f=e.useCallback(()=>{const e=!p;d(e),u&&u(e)},[p,u]),m=e.useCallback(()=>"chevron"===o?p?e.createElement(Ce,{size:20}):e.createElement(je,{size:20}):null,[o,p]);return e.createElement("div",{className:`collapsible-container border rounded-md overflow-hidden ${a}`,"data-state":p?"open":"closed"},e.createElement("button",{type:"button",onClick:f,className:`flex items-center justify-between w-full p-4 text-left font-medium transition-all hover:bg-muted/50 ${s}`,"aria-expanded":p},"left"===i&&m(),e.createElement("span",null,t),"right"===i&&m()),e.createElement("div",{className:`overflow-hidden transition-all ${l}`,style:{maxHeight:p?"1000px":"0px",opacity:p?1:0,transitionDuration:`${c}ms`}},e.createElement("div",{className:"p-4 border-t bg-background"},r)))},p$={simple:{title:"Click to expand",content:e.createElement(()=>e.createElement("div",null,"This is a simple collapsible content area."),null)},complex:{title:"Product Information",content:e.createElement(()=>e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-2"},"Product Features"),e.createElement("ul",{className:"list-disc pl-5 mb-4"},e.createElement("li",null,"Feature one with detailed description"),e.createElement("li",null,"Feature two with even more details about functionality"),e.createElement("li",null,"Feature three with technical specifications")),e.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:e.createElement(()=>e.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:e.createElement(()=>e.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:e.createElement(()=>e.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)}]},d$="xsmall",f$="small",m$="medium",h$="large",v$={xsmall:"max-w-xs",small:"max-w-sm",medium:"max-w-2xl",large:"max-w-4xl"},y$={[d$]:{containerPadding:"p-1.5",avatarSize:"w-8 h-8",nameTextSize:"text-sm",metaTextSize:"text-xs",chevronSize:"w-3 h-3"},[f$]:{containerPadding:"p-2",avatarSize:"w-10 h-10",nameTextSize:"text-base",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[m$]:{containerPadding:"p-3",avatarSize:"w-12 h-12",nameTextSize:"text-lg",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[h$]:{containerPadding:"p-4",avatarSize:"w-14 h-14",nameTextSize:"text-xl",metaTextSize:"text-sm",chevronSize:"w-4 h-4"}},g$="horizontal",b$="tab1",w$=!1,x$="100%";var O$;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(O$||(O$={}));const E$={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)]"}}},k$=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 j$(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=k$.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&&P$(n,"path",i),P$(n,"relativePath",i),n}function P$(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}const S$=[".DS_Store","Thumbs.db"];function C$(e){return"object"==typeof e&&null!==e}function T$(e){return e.filter(e=>-1===S$.indexOf(e.name))}function N$(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 z$(e){if("function"!=typeof e.webkitGetAsEntry)return M$(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?D$(t):M$(e,t)}function L$(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?L$(t):[t]],[])}function M$(e,t){return HS(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,j$(e)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return j$(n,null!==(r=null==t?void 0:t.fullPath)&&void 0!==r?r:void 0)})}function R$(e){return HS(this,void 0,void 0,function*(){return e.isDirectory?D$(e):function(e){return HS(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{const n=j$(r,e.fullPath);t(n)},e=>{r(e)})})})}(e)})}function D$(e){const t=e.createReader();return new Promise((e,r)=>{const n=[];!function o(){t.readEntries(t=>HS(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(R$));n.push(e),o()}else try{const t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}()})}var A$,I$={};var B$=_e((A$||(A$=1,I$.__esModule=!0,I$.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}),I$));function _$(e){return function(e){if(Array.isArray(e))return U$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H$(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 W$(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 F$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W$(Object(r),!0).forEach(function(t){V$(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V$(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $$(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)||H$(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 H$(e,t){if(e){if("string"==typeof e)return U$(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)?U$(e,t):void 0}}function U$(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 q$="function"==typeof B$?B$:B$.default,Y$=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)}},G$=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},X$=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},K$={code:"too-many-files",message:"Too many files"};function Z$(e,t){var r="application/x-moz-file"===e.type||q$(e,t);return[r,r?null:Y$(t)]}function Q$(e,t,r){if(J$(e.size))if(J$(t)&&J$(r)){if(e.size>r)return[!1,G$(r)];if(e.size<t)return[!1,X$(t)]}else{if(J$(t)&&e.size<t)return[!1,X$(t)];if(J$(r)&&e.size>r)return[!1,G$(r)]}return[!0,null]}function J$(e){return null!=e}function eH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function tH(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 rH(e){e.preventDefault()}function nH(){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!eH(e)&&t&&t.apply(void 0,[e].concat(n)),eH(e)})}}function oH(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function iH(e){return/^.*\.[\w]+$/.test(e)}var aH=["children"],sH=["open"],lH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],cH=["refKey","onChange","onClick"];function uH(e){return function(e){if(Array.isArray(e))return fH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dH(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 pH(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)||dH(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 dH(e,t){if(e){if("string"==typeof e)return fH(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)?fH(e,t):void 0}}function fH(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 mH(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 hH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mH(Object(r),!0).forEach(function(t){vH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mH(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(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 gH=e.forwardRef(function(t,r){var n=t.children,o=xH(yH(t,aH)),i=o.open,a=yH(o,sH);return e.useImperativeHandle(r,function(){return{open:i}},[i]),e.createElement(e.Fragment,null,n(hH(hH({},a),{},{open:i})))});gH.displayName="Dropzone";var bH={disabled:!1,getFilesFromEvent:function(e){return HS(this,void 0,void 0,function*(){return C$(e)&&C$(e.dataTransfer)?function(e,t){return HS(this,void 0,void 0,function*(){if(e.items){const r=N$(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return r;return T$(L$(yield Promise.all(r.map(z$))))}return T$(N$(e.files).map(e=>j$(e)))})}(e.dataTransfer,e.type):function(e){return C$(e)&&C$(e.target)}(e)?function(e){return N$(e.target.files).map(e=>j$(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return HS(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>j$(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};gH.defaultProps=bH,gH.propTypes={children:mt.func,accept:mt.objectOf(mt.arrayOf(mt.string)),multiple:mt.bool,preventDropOnDocument:mt.bool,noClick:mt.bool,noKeyboard:mt.bool,noDrag:mt.bool,noDragEventsBubbling:mt.bool,minSize:mt.number,maxSize:mt.number,maxFiles:mt.number,disabled:mt.bool,getFilesFromEvent:mt.func,onFileDialogCancel:mt.func,onFileDialogOpen:mt.func,useFsAccessApi:mt.bool,autoFocus:mt.bool,onDragEnter:mt.func,onDragLeave:mt.func,onDragOver:mt.func,onDrop:mt.func,onDropAccepted:mt.func,onDropRejected:mt.func,onError:mt.func,validator:mt.func};var wH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xH(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=hH(hH({},bH),t),n=r.accept,o=r.disabled,i=r.getFilesFromEvent,a=r.maxSize,s=r.minSize,l=r.multiple,c=r.maxFiles,u=r.onDragEnter,p=r.onDragLeave,d=r.onDragOver,f=r.onDrop,m=r.onDropAccepted,h=r.onDropRejected,v=r.onFileDialogCancel,y=r.onFileDialogOpen,g=r.useFsAccessApi,b=r.autoFocus,w=r.preventDropOnDocument,x=r.noClick,O=r.noKeyboard,E=r.noDrag,k=r.noDragEventsBubbling,j=r.onError,P=r.validator,S=e.useMemo(function(){return function(e){if(J$(e))return Object.entries(e).reduce(function(e,t){var r=$$(t,2),n=r[0],o=r[1];return[].concat(_$(e),[n],_$(o))},[]).filter(function(e){return oH(e)||iH(e)}).join(",")}(n)},[n]),C=e.useMemo(function(){return function(e){return J$(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=$$(e,2),r=t[0],n=t[1],o=!0;return oH(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(iH)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var r=$$(t,2),n=r[0],o=r[1];return F$(F$({},e),{},V$({},n,o))},{})}]:e}(n)},[n]),T=e.useMemo(function(){return"function"==typeof y?y:EH},[y]),N=e.useMemo(function(){return"function"==typeof v?v:EH},[v]),z=e.useRef(null),L=e.useRef(null),M=pH(e.useReducer(OH,wH),2),R=M[0],D=M[1],A=R.isFocused,I=R.isFileDialogActive,B=e.useRef("undefined"!=typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),_=function(){!B.current&&I&&setTimeout(function(){L.current&&(L.current.files.length||(D({type:"closeDialog"}),N()))},300)};e.useEffect(function(){return window.addEventListener("focus",_,!1),function(){window.removeEventListener("focus",_,!1)}},[L,I,N,B]);var W=e.useRef([]),F=function(e){z.current&&z.current.contains(e.target)||(e.preventDefault(),W.current=[])};e.useEffect(function(){return w&&(document.addEventListener("dragover",rH,!1),document.addEventListener("drop",F,!1)),function(){w&&(document.removeEventListener("dragover",rH),document.removeEventListener("drop",F))}},[z,w]),e.useEffect(function(){return!o&&b&&z.current&&z.current.focus(),function(){}},[z,b,o]);var V=e.useCallback(function(e){j?j(e):console.error(e)},[j]),$=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e),W.current=[].concat(uH(W.current),[e.target]),tH(e)&&Promise.resolve(i(e)).then(function(t){if(!eH(e)||k){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=$$(Z$(e,r),1)[0],i=$$(Q$(e,n,o),1)[0],a=s?s(e):null;return t&&i&&!a})}({files:t,accept:S,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:P});D({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return V(e)})},[i,u,V,k,S,s,a,l,c,P]),H=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e);var t=tH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,k]),U=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e);var t=W.current.filter(function(e){return z.current&&z.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),W.current=t,t.length>0||(D({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),tH(e)&&p&&p(e))},[z,p,k]),q=e.useCallback(function(e,t){var r=[],n=[];e.forEach(function(e){var t=pH(Z$(e,S),2),o=t[0],i=t[1],l=pH(Q$(e,s,a),2),c=l[0],u=l[1],p=P?P(e):null;if(o&&c&&!p)r.push(e);else{var d=[i,u];p&&(d=d.concat(p)),n.push({file:e,errors:d.filter(function(e){return e})})}}),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach(function(e){n.push({file:e,errors:[K$]})}),r.splice(0)),D({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),f&&f(r,n,t),n.length>0&&h&&h(n,t),r.length>0&&m&&m(r,t)},[D,l,S,s,a,c,f,m,h,P]),Y=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e),W.current=[],tH(e)&&Promise.resolve(i(e)).then(function(t){eH(e)&&!k||q(t,e)}).catch(function(e){return V(e)}),D({type:"reset"})},[i,q,V,k]),G=e.useCallback(function(){if(B.current){D({type:"openDialog"}),T();var e={multiple:l,types:C};window.showOpenFilePicker(e).then(function(e){return i(e)}).then(function(e){q(e,null),D({type:"closeDialog"})}).catch(function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(N(e),D({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?V(e):(B.current=!1,L.current?(L.current.value=null,L.current.click()):V(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 L.current&&(D({type:"openDialog"}),T(),L.current.value=null,L.current.click())},[D,T,N,g,q,V,C,l]),X=e.useCallback(function(e){z.current&&z.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))},[z,G]),K=e.useCallback(function(){D({type:"focus"})},[]),Z=e.useCallback(function(){D({type:"blur"})},[]),Q=e.useCallback(function(){x||(!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)}()?G():setTimeout(G,0))},[x,G]),J=function(e){return o?null:e},ee=function(e){return O?null:J(e)},te=function(e){return E?null:J(e)},re=function(e){k&&e.stopPropagation()},ne=e.useMemo(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.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=yH(e,lH);return hH(hH(vH({onKeyDown:ee(nH(i,X)),onFocus:ee(nH(a,K)),onBlur:ee(nH(s,Z)),onClick:J(nH(l,Q)),onDragEnter:te(nH(c,$)),onDragOver:te(nH(u,H)),onDragLeave:te(nH(p,U)),onDrop:te(nH(d,Y)),role:"string"==typeof n&&""!==n?n:"presentation"},r,z),o||O?{}:{tabIndex:0}),f)}},[z,X,K,Z,Q,$,H,U,Y,O,E,o]),oe=e.useCallback(function(e){e.stopPropagation()},[]),ie=e.useMemo(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=yH(e,cH);return hH(hH({},vH({accept:S,multiple:l,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:J(nH(n,Y)),onClick:J(nH(o,oe)),tabIndex:-1},r,L)),i)}},[L,n,l,Y,o]);return hH(hH({},R),{},{isFocused:A&&!o,getRootProps:ne,getInputProps:ie,rootRef:z,inputRef:L,open:J(G)})}function OH(e,t){switch(t.type){case"focus":return hH(hH({},e),{},{isFocused:!0});case"blur":return hH(hH({},e),{},{isFocused:!1});case"openDialog":return hH(hH({},wH),{},{isFileDialogActive:!0});case"closeDialog":return hH(hH({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return hH(hH({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return hH(hH({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return hH({},wH);default:return e}}function EH(){}const kH=10485760,jH=1/0,PH={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"},SH=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]},CH=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};function TH(e,t){return Array(t+1).join(e)}var NH=["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 zH(e){return DH(e,NH)}var LH=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function MH(e){return DH(e,LH)}var RH=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function DH(e,t){return t.indexOf(e.nodeName)>=0}function AH(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var IH={};function BH(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function _H(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 WH(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(FH(o,t,r))return o}}function FH(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 VH(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function $H(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}IH.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},IH.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},IH.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"+TH(1===n?"=":"-",e.length)+"\n\n":"\n\n"+TH("#",n)+" "+e+"\n\n"}},IH.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},IH.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"}},IH.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":"")}},IH.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"}},IH.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=TH(a,s);return"\n\n"+c+o+"\n"+i.replace(/\n$/,"")+"\n"+c+"\n\n"}},IH.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},IH.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=BH(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},IH.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=BH(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}},IH.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},IH.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},IH.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}},IH.image={filter:"img",replacement:function(e,t){var r=BH(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=BH(t.getAttribute("title"));return n?"+")":""}},_H.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=WH(this.array,e,this.options))||(t=WH(this._keep,e,this.options))||(t=WH(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 HH="undefined"!=typeof window?window:{};var UH,qH,YH,GH=function(){var e=HH.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?HH.DOMParser:(UH=function(){},qH=require("@mixmark-io/domino"),UH.prototype.parseFromString=function(e){return qH.createDocument(e)},UH);function XH(e,t){var r;"string"==typeof e?r=(YH=YH||new GH).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=$H(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=VH(l);continue}l.data=c,i=l}else{if(1!==l.nodeType){l=VH(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=$H(s,l,o);s=l,l=u}i&&(i.data=i.data.replace(/ $/,""),i.data||VH(i))}}({element:r,isBlock:zH,isVoid:MH,isPre:t.preformattedCode?KH:null}),r}function KH(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function ZH(e,t){return e.isBlock=zH(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!MH(e)&&!function(e){return DH(e,RH)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return AH(e,LH)}(e)&&!function(e){return AH(e,RH)}(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&&QH("left",e,t)&&(r.leading=r.leadingNonAscii);r.trailingAscii&&QH("right",e,t)&&(r.trailing=r.trailingNonAscii);return{leading:r.leading,trailing:r.trailing}}(e,t),e}function QH(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||zH(n)||(i=o.test(n.textContent))),i}var JH=Array.prototype.reduce,eU=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function tU(e){if(!(this instanceof tU))return new tU(e);var t={rules:IH,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 _H(this.options)}function rU(e){var t=this;return JH.call(e.childNodes,function(e,r){var n="";return 3===(r=new ZH(r,t.options)).nodeType?n=r.isCode?r.nodeValue:t.escape(r.nodeValue):1===r.nodeType&&(n=oU.call(t,r)),iU(e,n)},"")}function nU(e){var t=this;return this.rules.forEach(function(r){"function"==typeof r.append&&(e=iU(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function oU(e){var t=this.rules.forNode(e),r=rU.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 iU(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}tU.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=rU.call(this,new XH(e,this.options));return nU.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 eU.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};exports.ACCEPTED_FILE_TYPES={IMAGE:"image/*",PDF:"application/pdf",DOCUMENT:".doc,.docx,.pdf,.txt",ALL:"*"},exports.ALERT_DIALOG_DEFAULTS=r$,exports.ANIMATION_DURATION=150,exports.AlertDialogComponent=({title:t,description:r,trigger:n,action:o,cancel:i=r$.CANCEL_TEXT,onAction:a,onCancel:s,variant:l=r$.VARIANT,disabled:c=r$.DISABLED,open:u,onOpenChange:p})=>e.createElement(UV,{open:u,onOpenChange:p},!u&&e.createElement(qV,{asChild:!0},"string"==typeof n?e.createElement(Be,{variant:"secondary",disabled:c},n):n),e.createElement(XV,null,e.createElement(KV,null,e.createElement(QV,null,t),e.createElement(JV,null,r)),e.createElement(ZV,null,e.createElement(t$,{onClick:s,className:he("destructive"===l&&"border-destructive/50")},i),e.createElement(e$,{onClick:a,className:he("destructive"===l&&"bg-destructive hover:bg-destructive/90")},o)))),exports.BADGE_POSITIONS=hS,exports.BreadCrumb=KP,exports.Button=Be,exports.CARD_BORDER_RADIUS=mS,exports.CARD_HOVER_EFFECTS=fS,exports.CARD_SHADOWS=dS,exports.CARD_SIZES=uS,exports.CARD_SPACING=pS,exports.CARD_VARIANTS=vS,exports.Calendar=YP,exports.Card=yS,exports.Carousel=tV,exports.Checkbox=My,exports.Collapse=u$,exports.CollapseData=p$,exports.CustomSkeleton=cS,exports.DEFAULT_ALIGN="center",exports.DEFAULT_DATE_FORMAT="PPP",exports.DEFAULT_MAX_FILES=5,exports.DEFAULT_MAX_SIZE=kH,exports.DEFAULT_SIDE="bottom",exports.DEFAULT_SIDE_OFFSET=4,exports.DIALOG_DEFAULTS={CANCEL_TEXT:"Cancel",CONFIRM_TEXT:"Confirm",VARIANT:"default",SIZE:"medium",POSITION:"center",CLOSE_ON_OUTSIDE_CLICK:!0,SHOW_CLOSE_BUTTON:!1},exports.DatePicker=pL,exports.Disable=vy,exports.Drawer=({children:t,isOpen:r,onClose:n,size:o="medium",title:i,description:a,showCloseButton:s=!0})=>{const l=JL[o];return e.createElement(qL,{open:r,onOpenChange:n},e.createElement(XL,{className:`fixed inset-x-0 bottom-0 ${l} bg-background`},e.createElement(KL,{className:"relative"},i?e.createElement(ZL,null,i):e.createElement(ZL,{className:"sr-only"},"Drawer Content"),a?e.createElement(QL,null,a):e.createElement(QL,{className:"sr-only"},i||"Drawer Content"," panel"),s&&e.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"},e.createElement(Ae,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))),e.createElement("div",{className:"mt-6 px-4"},t)))},exports.Dropdown=eS,exports.EditFilled=Oy,exports.Editor=({value:t="",onChange:r,placeholder:n="Start writing...",className:o,disabled:i=!1,showToolbar:a=!0,minHeight:s=200})=>{const[l,c]=e.useState(t),[u,p]=e.useState(!1),[d,f]=e.useState(""),[m,h]=e.useState(new Set),[v,y]=e.useState("left"),[g,b]=e.useState("p"),[w,x]=e.useState({ul:!1,ol:!1}),O=e.useRef(null),E=e.useRef(null),k=e.useRef(new tU({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"*",emDelimiter:"*",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full"}));e.useEffect(()=>{const e=k.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 j=[{id:"p",label:"Paragraph",icon:e.createElement(Ty,{name:"Type",size:16})},{id:"h1",label:"Heading 1",icon:e.createElement(Ty,{name:"Type",size:20})},{id:"h2",label:"Heading 2",icon:e.createElement(Ty,{name:"Type",size:16})},{id:"h3",label:"Heading 3",icon:e.createElement(Ty,{name:"Type",size:12})}],P=[{id:"left",label:"Left",icon:e.createElement(Ty,{name:"AlignLeft",size:16})},{id:"center",label:"Center",icon:e.createElement(Ty,{name:"AlignCenter",size:16})},{id:"right",label:"Right",icon:e.createElement(Ty,{name:"AlignRight",size:16})}],S=e.useCallback(()=>{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},[]),C=e.useCallback(()=>{const e=S();if(!e)return{ul:!1,ol:!1};return{ul:!!e.closest("ul"),ol:!!e.closest("ol")}},[S]),T=e.useCallback(()=>{if(!O.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")?y("left"):document.queryCommandState("justifyCenter")?y("center"):document.queryCommandState("justifyRight")?y("right"):y("left");const r=document.queryCommandValue("formatBlock").toLowerCase();r.includes("h1")?b("h1"):r.includes("h2")?b("h2"):r.includes("h3")?b("h3"):r.includes("pre")?(t.add("code"),b("p")):r.includes("blockquote")?(t.add("quote"),b("p")):b("p");const n=C();x(n),h(t)},[C]),N=e.useCallback(()=>{if(O.current){const e=O.current.innerHTML;let t="";try{t=k.current.turndown(e),t=t.replace(/\n{3,}/g,"\n\n").replace(/^\n+/,"").replace(/\n+$/,"").trim()}catch{t=e}c(t),r?.(t),setTimeout(T,10)}},[r,T]),z=e.useCallback(()=>{const e=window.getSelection();e&&O.current&&O.current.contains(e.anchorNode)&&setTimeout(T,10)},[T]),L=e.useCallback((e,t)=>{i||(document.execCommand(e,!1,t),N(),O.current?.focus())},[i,N]),M=e.useCallback(e=>{if(i)return;const t={bold:"bold",italic:"italic",underline:"underline",code:"formatBlock"};"code"===e?m.has("code")?L("formatBlock","<div>"):L("formatBlock","<pre>"):L(t[e])},[L,m,i]),R=e.useCallback(e=>{if(i)return;const t=e?"insertOrderedList":"insertUnorderedList",r=C();e&&r.ol?L("insertOrderedList"):!e&&r.ul?L("insertUnorderedList"):L(t)},[L,C,i]),D=e.useCallback(()=>{i||(m.has("quote")?L("formatBlock","<div>"):L("formatBlock","<blockquote>"))},[L,m,i]),A=e.useCallback(e=>{if(i)return;L("formatBlock",{p:"<div>",h1:"<h1>",h2:"<h2>",h3:"<h3>"}[e])},[L,i]),I=e.useCallback(e=>{i||L("justify"+e.charAt(0).toUpperCase()+e.slice(1))},[L,i]),B=e.useCallback(()=>{d.trim()&&(L("createLink",d),f(""),p(!1))},[L,d]),_=e.useCallback(e=>{if("Enter"===e.key&&u&&(e.preventDefault(),B()),"Escape"===e.key&&u&&(p(!1),f("")),e.ctrlKey||e.metaKey)switch(e.key){case"b":e.preventDefault(),M("bold");break;case"i":e.preventDefault(),M("italic");break;case"u":e.preventDefault(),M("underline")}},[u,B,M]),W=e.useCallback(e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},[]),F=e.useCallback(()=>{setTimeout(T,10)},[T]),V=e.useCallback(()=>{p(!1),f("")},[]),$=e.useCallback(()=>{p(!0)},[]);return e.useEffect(()=>{t!==l&&(c(t),O.current&&t!==O.current.innerHTML&&(O.current.innerHTML=t))},[t,l]),e.useEffect(()=>{u&&E.current&&E.current.focus()},[u]),e.useEffect(()=>(document.addEventListener("selectionchange",z),()=>{document.removeEventListener("selectionchange",z)}),[z]),e.createElement("div",{className:he("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",i&&"opacity-50 cursor-not-allowed",o)},a&&e.createElement("div",{className:"flex items-center gap-1 p-2 border-b border-border bg-muted/30 flex-wrap"},e.createElement(eS,{options:j,value:g,onValueChange:A,placeholder:"Format",size:"small",className:"min-w-[120px]"}),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>M("bold"),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("bold")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Bold",size:16})),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>M("italic"),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("italic")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Italic",size:16})),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>M("underline"),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("underline")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Underline",size:16})),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>R(!1),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",w.ul&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"List",size:16})),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>R(!0),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",w.ol&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Hash",size:16})),e.createElement(Be,{variant:"tertiary",size:"small",onClick:D,disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("quote")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"MessageSquare",size:16})),e.createElement(Be,{variant:"tertiary",size:"small",onClick:()=>M("code"),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("code")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Code",size:16})),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(eS,{options:P,value:v,onValueChange:I,placeholder:"Align",size:"small",className:"min-w-[100px]"}),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),u?e.createElement("div",{className:"flex items-center gap-2"},e.createElement("input",{ref:E,type:"text",value:d,onChange:e=>f(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"}),e.createElement(Be,{variant:"primary",size:"small",onClick:B,className:"h-8 transition-all duration-150"},"Add"),e.createElement(Be,{variant:"tertiary",size:"small",onClick:V,className:"h-8 transition-all duration-150"},"Cancel")):e.createElement(Be,{variant:"tertiary",size:"small",onClick:$,disabled:i,className:"h-8 w-8 p-0 transition-all duration-150 ease-in-out hover:bg-primary/10 hover:scale-105"},e.createElement(Ty,{name:"Link2",size:16}))),e.createElement("div",{ref:O,contentEditable:!i,role:"textbox",onInput:N,onKeyDown:_,onPaste:W,onFocus:F,suppressContentEditableWarning:!0,className:he("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:s},"data-placeholder":n}))},exports.Error=wy,exports.ExcelFile=ky,exports.FAQCollapseGroup=t=>e.createElement("div",{className:"w-full max-w-3xl mx-auto p-6 rounded-lg border bg-card text-card-foreground shadow-sm"},e.createElement("h2",{className:"text-xl font-bold mb-4"},"Frequently Asked Questions"),p$.faq.map((r,n)=>e.createElement("div",{key:n,className:n>0?"mt-2":""},e.createElement(u$,{...t,title:r.title},r.content)))),exports.FBLike=Py,exports.FBLove=Sy,exports.FILE_UPLOAD_ERRORS=PH,exports.FileUpload=Ey,exports.FileUploader=({onFilesChange:t,accept:r="*",multiple:n=!1,maxSize:o=10485760,maxFiles:i=(n?jH:1),disabled:a=!1,className:s="",width:l="w-full",children:c,fileActions:u=[],showRemoveButton:p=!0})=>{const[d,f]=e.useState([]),[m,h]=e.useState([]),v=e.useCallback(()=>{h([])},[]),y=e.useCallback(e=>{const r=d.filter(t=>(t.id===e&&t.preview&&URL.revokeObjectURL(t.preview),t.id!==e));f(r),t(r.map(e=>e.file))},[d,t]),g=e.useCallback(e=>()=>{y(e)},[y]),b=e.useCallback((e,t)=>()=>{e.onClick(t)},[]),w=e.useCallback(e=>d.some(t=>t.name===e.name&&t.size===e.size&&t.type===e.type),[d]),x=e.useCallback((e,r)=>{h([]);const n=[];r.length>0&&r.forEach(e=>{e.errors&&e.errors.forEach(e=>{"file-too-large"===e.code?n.push(PH.FILE_TOO_LARGE):"file-invalid-type"===e.code&&n.push(PH.INVALID_FILE_TYPE)})});const o=[],a=e.filter(e=>{const t=w(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(i!==1/0&&d.length+a.length>i&&n.push(PH.TOO_MANY_FILES),a.length>0&&(i===1/0||d.length+a.length<=i)){const e=a.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=[...d,...e];f(r),t(r.map(e=>e.file))}n.length>0&&h(n)},[d,i,t,w]),{getRootProps:O,getInputProps:E,isDragActive:k}=xH({onDrop:x,accept:CH(r),multiple:n,maxSize:o,disabled:a});return e.createElement("div",{className:`file-uploader ${l} ${s}`},e.createElement("div",{...O(),className:`\n border-2 border-dashed rounded-lg p-6 center cursor-pointer transition-colors\n ${k?"border-primary bg-primary/5":"border-border hover:border-primary/50"}\n ${a?"opacity-50 cursor-not-allowed":""}\n `},e.createElement("input",{...E()}),c?e.createElement("div",{className:"flex flex-col items-center justify-center"},c):e.createElement("div",{className:"flex flex-col items-center justify-center"},e.createElement("div",{className:"mb-2"},k?e.createElement(Yy,{variant:"body",color:"quinary",textAlign:"center"},"Drop the files here..."):e.createElement(Yy,{variant:"body",color:"quinary",textAlign:"center"},"Drag & drop files here, or click to select files")),e.createElement("div",{className:"flex flex-col items-center"},n&&i!==1/0&&e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum ",i," files"),n&&i===1/0&&e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"No file limit"),e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum file size: ",SH(o))))),m.length>0&&e.createElement("div",{className:"mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-md"},e.createElement("div",{className:"flex items-start justify-between"},e.createElement("div",{className:"flex-1"},m.map((t,r)=>e.createElement(Yy,{key:r,variant:"caption",color:"tertiary",className:"whitespace-pre-line"},t))),e.createElement(Be,{onClick:v,type:"button",variant:"link",size:"small",className:"ml-2 text-destructive hover:text-destructive/80 p-1 min-w-0"},"✕"))),d.length>0&&e.createElement("div",{className:"mt-4 flex flex-col items-center"},e.createElement(Gy,{variant:"h6",color:"quinary",fontWeight:"semibold",marginBottom:"small",textAlign:"center"},"Uploaded Files"),e.createElement("div",{className:"space-y-2 w-full"},d.map(t=>e.createElement("div",{key:t.id,className:"flex items-center justify-between p-3 bg-muted rounded-md"},e.createElement("div",{className:"flex items-center space-x-3"},t.preview&&e.createElement("img",{src:t.preview,alt:t.name,className:"w-10 h-10 object-cover rounded"}),e.createElement("div",{className:"flex flex-col items-start"},e.createElement(Yy,{variant:"caption",color:"quinary",fontWeight:"semibold"},t.name),e.createElement(Yy,{variant:"captionSm",color:"quinary"},SH(t.size)))),e.createElement("div",{className:"flex items-center space-x-2"},u.map((r,n)=>e.createElement(Be,{key:n,onClick:b(r,t),type:"button",variant:r.variant||"secondary",size:"small"},r.icon&&e.createElement("span",{className:r.label?"mr-1":""},r.icon),r.label)),p&&e.createElement(Be,{onClick:g(t.id),type:"button",variant:"danger",size:"small"},"Remove")))))))},exports.Heading=Gy,exports.Hide=yy,exports.Icon=Ty,exports.Info=gy,exports.Input=Xy,exports.LoaderComponent=bS,exports.MessageComponent=Lb,exports.OTPInput=yV,exports.POPOVER_ALIGN_OPTIONS=["start","center","end"],exports.POPOVER_SIDES=["top","right","bottom","left"],exports.POPOVER_VARIANTS={DEFAULT:"default",FORM:"form"},exports.PaginationComponent=$b,exports.Popover=uF,exports.PopoverContent=dF,exports.PopoverTrigger=pF,exports.ProfileCard=({avatarUrl:t,name:r,email:n,position:o,dropdownItems:i=[],size:a=m$,className:s,isDropdownOpen:l=!1,onToggleDropdown:c})=>{const u=e.useRef(null),p=i.length,d=y$[a],{containerPadding:f,avatarSize:m,nameTextSize:h,metaTextSize:v,chevronSize:y}=d,g=e.useCallback(e=>{"Enter"!==e.key&&" "!==e.key||!c||(e.preventDefault(),c())},[c]),b=e.useCallback((e,t)=>{e.stopPropagation(),t.isDisabled?e.preventDefault():t.onClick&&(e.preventDefault(),t.onClick(),c&&c())},[c]);return e.useEffect(()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&l&&c&&c()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l,c]),e.createElement("div",{ref:u,role:p>0?"button":void 0,tabIndex:p>0?0:void 0,onClick:p>0&&c?c:void 0,onKeyDown:p>0?g:void 0,"aria-expanded":p>0?l:void 0,"aria-haspopup":p>0?"menu":void 0,className:he("inline-block bg-card/95 text-card-foreground rounded-xl overflow-visible backdrop-blur-xs transition-all duration-300",p>0&&c&&"cursor-pointer",v$[a],s)},e.createElement("div",{className:he("flex items-center gap-3",f)},e.createElement("img",{src:t,alt:`${r} profile`,className:he("rounded-full border-2 border-background transition-transform duration-300","ring-1 ring-primary/10",m)}),e.createElement("div",null,e.createElement("h2",{className:he("font-semibold text-foreground",h)},r),o&&e.createElement("p",{className:he("text-muted-foreground",v)},o),n&&e.createElement("p",{className:he("text-muted-foreground mt-0.5",v)},n)),p>0&&c&&e.createElement("div",{className:"ml-auto"},e.createElement("div",{className:"p-1"},l?e.createElement(Ce,{className:he("text-muted-foreground",y)}):e.createElement(je,{className:he("text-muted-foreground",y)})))),l&&p>0&&e.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((t,r)=>e.createElement("a",{key:r,href:t.link,className:he("block",{"pointer-events-none":t.isDisabled}),onClick:e=>b(e,t)},e.createElement("div",{role:"menuitem",className:he("flex items-center px-4 py-2 text-sm",{"opacity-50":t.isDisabled,"cursor-pointer hover:bg-accent/50":!t.isDisabled})},t.icon&&e.createElement("span",{className:"mr-2"},t.icon),t.name)))))},exports.RadioGroup=ub,exports.STEPPER_SIZE_STYLES=E$,exports.Sheet=eF,exports.SheetClose=rF,exports.SheetContent=iF,exports.SheetDescription=cF,exports.SheetFooter=sF,exports.SheetHeader=aF,exports.SheetTitle=lF,exports.SheetTrigger=tF,exports.Stepper=({steps:t,activeStep:r=0,orientation:n="horizontal",size:o="medium",className:i,onStepClick:a})=>{const s="horizontal"===n,l=E$[o];return e.createElement("div",{className:he("max-w-full mx-auto mb-4 px-8",i)},e.createElement("div",{className:he("flex relative p-0",s?"flex-row justify-between":"flex-col")},t.map((n,o)=>{const i=o===r,c=o<r,u=a?e.createElement("button",{type:"button",className:he("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},e.createElement("div",{className:he("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")},e.createElement("div",{className:he("rounded-full transition-all duration-300 ease-in-out",i?he(l.innerDot.active,"bg-primary"):c?he(l.innerDot.completed,"bg-primary-foreground"):he(l.innerDot.default,"bg-muted-foreground/50"))})),o<t.length-1&&e.createElement("div",{className:he("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")}),e.createElement("div",{className:he(s?"text-center px-4":"flex-1 ml-10")},e.createElement("h3",{className:he("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&&e.createElement("p",{className:he("text-muted-foreground mt-1",l.description)},n.description))):e.createElement("div",{className:he("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},e.createElement("div",{className:he("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")},e.createElement("div",{className:he("rounded-full transition-all duration-300 ease-in-out",i?he(l.innerDot.active,"bg-primary"):c?he(l.innerDot.completed,"bg-primary-foreground"):he(l.innerDot.default,"bg-muted-foreground/50"))})),o<t.length-1&&e.createElement("div",{className:he("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")}),e.createElement("div",{className:he(s?"text-center px-4":"flex-1 ml-10")},e.createElement("h3",{className:he("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&&e.createElement("p",{className:he("text-muted-foreground mt-1",l.description)},n.description)));return e.createElement(e.Fragment,{key:n.id},u)})))},exports.Success=jy,exports.Switch=Cb,exports.Table=({columns:t,data:r,sortable:n=!1,pagination:o=!1,searchable:i=!1,currentPage:a=1,pageSize:s=5,onSort:l,onPageChange:c,actions:u,showCustomCells:p=!0,useBuiltInStatus:d=!0,swapPaginationLayout:f=!1,selectable:m=!1,onSelectionChange:h})=>{const[v,y]=e.useState(null),[g,b]=e.useState(a),[w,x]=e.useState(s),[O,E]=e.useState(""),[k,j]=e.useState({}),[P,S]=e.useState(!1),{effectivePaginationPosition:C,effectiveEntriesPosition:T}=Qb(f);e.useEffect(()=>{b(a)},[a]),e.useEffect(()=>{m&&(j({}),S(!1))},[r,m]);const N=e.useCallback(e=>{n&&e.sortable&&(v?.key===e.key?"asc"===v.direction?(y({key:e.key,direction:"desc"}),l&&l(e.key,"desc")):(y(null),l&&l("__clear_sort__","asc")):(y({key:e.key,direction:"asc"}),l&&l(e.key,"asc")))},[v,n,l]),z=e.useCallback(e=>{n&&e.sortable&&N(e)},[n,N]),L=e.useMemo(()=>v&&n?[...r].sort((e,t)=>{const r=e[v.key],n=t[v.key];return r<n?"asc"===v.direction?-1:1:r>n?"asc"===v.direction?1:-1:0}):r,[r,v,n]),M=e.useCallback(e=>{E(e.target.value),b(1)},[]),R=e.useMemo(()=>i&&O.trim()?L.filter(e=>t.some(t=>{const r=e[t.key];return null!=r&&String(r).toLowerCase().includes(O.toLowerCase())})):L,[L,t,O,i]),D=e.useMemo(()=>Math.max(1,Math.ceil(R.length/w)),[R.length,w]),A=e.useMemo(()=>{if(o){const e=(g-1)*w;return R.slice(e,e+w)}return R},[R,g,w,o]),I=e.useCallback(e=>{e<1||e>D||(b(e),c&&c(e))},[D,c]),B=e.useCallback(e=>{x(e),b(1)},[]),_=e.useCallback((e,t)=>e.id||`row-${t}`,[]),W=e.useCallback((e,t)=>{const r=_(e,t),n={...k,[r]:!k[r]};j(n);const o=A.every((e,t)=>!0===n[_(e,t)]);if(S(o),h){const e=A.filter((e,t)=>n[_(e,t)]);h(e)}},[k,A,h,_]),F=e.useCallback(()=>{const e=!P;S(e);const t={...k};if(A.forEach((r,n)=>{const o=_(r,n);t[o]=e}),j(t),h){const t=e?[...A]:[];h(t)}},[P,A,k,h,_]),V=e.useMemo(()=>(e,t)=>uw(e,t,p,d),[p,d]);return e.createElement("div",{className:"w-full"},e.createElement("div",{className:"flex flex-wrap items-center justify-between mb-6 gap-6"},i&&e.createElement("div",{className:"w-80"},e.createElement(Xy,{id:"table-search",value:O,onChange:M,label:"Search",type:"search"})),o&&e.createElement("div",{className:"flex items-center space-x-3 ml-auto"},e.createElement("label",{htmlFor:"page-size-select",className:"text-sm font-medium text-muted-foreground"},"Rows per page"),e.createElement("select",{id:"page-size-select",value:w,onChange:e=>B(parseInt(e.target.value)),className:"h-9 rounded-md border border-input bg-background px-3 py-1 text-sm ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-colors"},[5,10,20,50].map(t=>e.createElement("option",{key:t,value:t},t))))),e.createElement("div",{className:"relative w-full overflow-auto rounded-lg border shadow-xs"},e.createElement("table",{className:"w-full caption-bottom text-sm"},e.createElement("thead",{className:"bg-muted/40"},e.createElement("tr",{className:"border-b border-border"},m&&e.createElement("th",{className:"h-11 px-3 font-medium text-muted-foreground w-10"},e.createElement(My,{checked:P,onChange:F,dataTestId:"select-all-checkbox"})),t.map(r=>e.createElement("th",{key:r.key,className:"h-11 px-6 font-medium text-muted-foreground",style:{width:r.width||"auto"}},e.createElement("div",{className:"h-full flex items-center",onClick:()=>z(r)},fw(r,e=>Xb(e,t,l,A,v,y),N,n,v)))),u&&e.createElement("th",{className:"h-11 px-6 text-right font-medium text-muted-foreground"},e.createElement("div",{className:"flex items-center h-9 justify-end"},e.createElement("span",{className:"truncate font-medium text-muted-foreground"},"Actions"))))),e.createElement("tbody",{className:"[&_tr:last-child]:border-0"},A.length>0?A.map((r,n)=>e.createElement("tr",{key:_(r,n),className:"border-b border-border transition-colors hover:bg-muted/30 "+(k[_(r,n)]?"bg-muted/50":"")},m&&e.createElement("td",{className:"p-4 px-5 w-10"},e.createElement(My,{checked:!!k[_(r,n)],onChange:()=>W(r,n),dataTestId:`select-row-${n}`})),t.map(t=>e.createElement("td",{key:t.key,className:"p-4 px-6",style:{width:t.width||"auto"}},V(t,r))),u&&e.createElement("td",{className:"p-4 px-6 text-right"},u(r)))):e.createElement("tr",null,e.createElement("td",{colSpan:t.length+(u?1:0)+(m?1:0),className:"py-10 px-6 text-center text-muted-foreground"},"No data available"))))),o&&D>0&&e.createElement("div",{className:"flex items-center justify-between px-3 mt-6 w-full"},e.createElement("div",{className:`text-sm font-medium text-muted-foreground whitespace-nowrap ${Kb(T)}`},"Showing"," ",e.createElement("span",{className:"text-foreground"},Math.min((g-1)*w+1,R.length))," ","to"," ",e.createElement("span",{className:"text-foreground"},Math.min(g*w,R.length))," ","of ",e.createElement("span",{className:"text-foreground"},R.length)," ","entries"),e.createElement("div",{className:Zb(C)},e.createElement($b,{currentPage:g,totalPages:D,onPageChange:I,disabled:!1,isLoading:!1}))))},exports.TableCell=uw,exports.TableHeader=mw,exports.Tabs=({items:t,defaultValue:r=b$,orientation:n=g$,disabled:o=w$,onValueChange:i,className:a,width:s=x$})=>{const[l,c]=e.useState(r);e.useEffect(()=>{if("undefined"!=typeof window){const e=new URLSearchParams(window.location.search).get("tab");e&&t.some(t=>t.value===e)&&(c(e),i?.(e))}},[t,i]);const u=e.useCallback((e,t)=>{if("undefined"==typeof window)return"";const r=new URLSearchParams(window.location.search);return r.set(e,t),r.toString()},[]),p=e.useCallback(e=>{if(c(e),"undefined"!=typeof window){const t=u("tab",e),r=`${window.location.pathname}?${t}`;window.history&&window.history.pushState&&window.history.pushState({path:r},"",r)}i&&i(e)},[i,u]),d="vertical"===n,f=e=>he("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all duration-200",d?"px-4 py-3 w-full justify-start text-left rounded-l-md":"px-5 py-2.5 relative",l===e.value?d?"bg-background/80 text-primary font-semibold shadow-xs backdrop-blur-xs":"text-primary font-semibold":d?"text-muted-foreground hover:text-foreground hover:bg-muted/30":"text-muted-foreground hover:text-foreground",(o||e.disabled)&&"opacity-40 pointer-events-none"),m=e.useCallback(e=>{o||e.disabled||p(e.value)},[o,p]);return e.createElement("div",{className:he(d?"flex space-x-6":"space-y-4 flex flex-col items-center",a),style:{width:s}},e.createElement("div",{role:"tablist","aria-orientation":n,className:he("flex relative",d?"flex-col h-full space-y-1 min-w-[200px] border-r border-border/40 pr-2":"w-full justify-center pb-px")},e.createElement("div",{className:he("flex relative",d?"flex-col w-full":"border-b border-border/30")},t.map(t=>e.createElement("div",{key:t.value,className:he("relative",d?"":"border-b-2 border-transparent",l===t.value&&!d&&"border-b-2 border-primary z-10")},e.createElement("button",{role:"tab",type:"button","aria-selected":l===t.value,"aria-controls":`tabpanel-${t.value}`,tabIndex:l===t.value?0:-1,className:f(t),onClick:()=>m(t),disabled:o||t.disabled},t.label,l===t.value&&!d&&e.createElement("div",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-primary rounded-full"})),l===t.value&&d&&e.createElement("div",{className:"absolute top-0 left-0 h-full w-0.5 bg-primary rounded-full"}))))),t.map(t=>e.createElement("div",{key:t.value,role:"tabpanel",id:`tabpanel-${t.value}`,"aria-labelledby":`tab-${t.value}`,hidden:l!==t.value,className:he("focus-visible:outline-hidden rounded-md",d?"flex-1":"w-full",l===t.value?"animate-in fade-in-0 duration-300":"hidden"),style:d?void 0:{width:s}},t.content)))},exports.Text=Yy,exports.TextArea=Tb,exports.Tooltip=$E,exports.UNLIMITED_FILES=jH,exports.UPLOAD_STATUS={UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},exports.Upload=xy,exports.VARIANT_STYLES={default:{button:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"}},exports.Warning=by,exports.breadCrumbVariants={arrow:"arrow",slash:"slash",icon:"icon"},exports.colorVariants=Pb,exports.columnInfo=Gb,exports.createDateColumn=vw,exports.createPersonDataColumns=(t,r)=>{const{enableTruncation:n=!1,maxWords:o=5}=r||{},i=hw("description","Description",{sortable:!0,...n&&{maxWords:2*o}});return[hw(iw,"Name",{width:aw,sortable:!0,...n&&{maxWords:o},customCell:t?t=>e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"h-8 w-8 rounded-full bg-gray-200 mr-3 flex items-center justify-center"},e.createElement(Yy,{variant:"small",color:"secondary"},t.charAt(0))),e.createElement(Yy,{variant:"small",color:"secondary",fontWeight:"semibold"},t)):void 0}),hw(sw,"Email",{...n&&{maxWords:o},customCell:t?t=>e.createElement("a",{href:`mailto:${t}`,className:"hover:underline"},e.createElement(Yy,{variant:"small",color:"secondary"},t)):void 0}),i,vw(lw,"Join Date",{sortable:!0,inputFormat:"YYYY-MM-DD",outputFormat:"MMM DD, YYYY"}),t?hw(cw,"Status",{align:exports.TableColumnAlign.Center,customCell:t=>{const r=t;return e.createElement("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full"},e.createElement(Yy,{variant:"small",color:"secondary",fontWeight:"semibold"},r))}}):yw(cw,"Status",{align:exports.TableColumnAlign.Center})]},exports.createStatusColumn=yw,exports.createTextColumn=hw,exports.getColumnInfo=Xb,exports.getEffectivePositions=Qb,exports.getFlexAlignment=Yb,exports.getPaginationContainerClass=Zb,exports.getShowingEntriesPositionClass=Kb,exports.getSizeClass=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]"}},exports.message=Mb,exports.renderHeader=dw,exports.renderSortIcon=pw,exports.renderTableHeader=fw,exports.sizeVariants=jb,exports.sizes=["small","medium","large"],exports.truncateText=Jb,exports.variants=["primary","success","danger","warning"];
|
|
53
|
+
*/var Vw=(Ww||(Ww=1,"production"===process.env.NODE_ENV?Iw.exports=function(){if(Aw)return Bw;Aw=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"),Bw.ContextConsumer=s,Bw.ContextProvider=a,Bw.Element=t,Bw.ForwardRef=c,Bw.Fragment=n,Bw.Lazy=f,Bw.Memo=d,Bw.Portal=r,Bw.Profiler=i,Bw.StrictMode=o,Bw.Suspense=u,Bw.SuspenseList=p,Bw.isAsyncMode=function(){return!1},Bw.isConcurrentMode=function(){return!1},Bw.isContextConsumer=function(e){return h(e)===s},Bw.isContextProvider=function(e){return h(e)===a},Bw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bw.isForwardRef=function(e){return h(e)===c},Bw.isFragment=function(e){return h(e)===n},Bw.isLazy=function(e){return h(e)===f},Bw.isMemo=function(e){return h(e)===d},Bw.isPortal=function(e){return h(e)===r},Bw.isProfiler=function(e){return h(e)===i},Bw.isStrictMode=function(e){return h(e)===o},Bw.isSuspense=function(e){return h(e)===u},Bw.isSuspenseList=function(e){return h(e)===p},Bw.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)},Bw.typeOf=h,Bw}():Iw.exports=(_w||(_w=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,T=!1;Fw.ContextConsumer=v,Fw.ContextProvider=y,Fw.Element=g,Fw.ForwardRef=b,Fw.Fragment=w,Fw.Lazy=x,Fw.Memo=O,Fw.Portal=E,Fw.Profiler=k,Fw.StrictMode=j,Fw.Suspense=P,Fw.SuspenseList=S,Fw.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Fw.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Fw.isContextConsumer=function(e){return h(e)===s},Fw.isContextProvider=function(e){return h(e)===a},Fw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Fw.isForwardRef=function(e){return h(e)===c},Fw.isFragment=function(e){return h(e)===n},Fw.isLazy=function(e){return h(e)===f},Fw.isMemo=function(e){return h(e)===d},Fw.isPortal=function(e){return h(e)===r},Fw.isProfiler=function(e){return h(e)===i},Fw.isStrictMode=function(e){return h(e)===o},Fw.isSuspense=function(e){return h(e)===u},Fw.isSuspenseList=function(e){return h(e)===p},Fw.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)},Fw.typeOf=h}()),Fw)),Iw.exports);var $w=Symbol.for("react.element"),Hw=Symbol.for("react.transitional.element"),Uw=Symbol.for("react.fragment");function qw(e){return e&&"object"===ww(e)&&(e.$$typeof===$w||e.$$typeof===Hw)&&e.type===Uw}var Yw=Number(e.version.split(".")[0]),Gw=function(e,t){"function"==typeof e?e(t):"object"===ww(e)&&e&&"current"in e&&(e.current=t)},Xw=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){Gw(t,e)})}},Kw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n=function(){return Xw.apply(void 0,t)},o=t,a=function(e,t){return e.length!==t.length||e.every(function(e,r){return e!==t[r]})},"value"in(s=i.useRef({})).current&&!a(s.current.condition,o)||(s.current.value=n(),s.current.condition=o),s.current.value;var n,o,a,s},Zw=function(e){var t,r;if(!e)return!1;if(Qw(e)&&Yw>=19)return!0;var n=Vw.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===Vw.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===Vw.ForwardRef)};function Qw(t){return e.isValidElement(t)&&!qw(t)}var Jw=function(e){if(e&&Qw(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ex=i.createContext(null);function tx(e){return function(e){if(Array.isArray(e))return Pw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sw(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 rx="test"!==process.env.NODE_ENV&&Tw()?i.useLayoutEffect:i.useEffect,nx=function(e,t){var r=i.useRef(!0);rx(function(){return e(r.current)},t),rx(function(){return r.current=!1,function(){r.current=!0}},[])},ox=[];var ix="data-rc-order",ax="data-rc-priority",sx=new Map;function lx(){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 cx(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ux(e){return Array.from((sx.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function px(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Tw())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(ix,a),s&&i&&l.setAttribute(ax,"".concat(i)),null!=r&&r.nonce&&(l.nonce=null==r?void 0:r.nonce),l.innerHTML=e;var c=cx(t),u=c.firstChild;if(n){if(s){var p=(t.styles||ux(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ix)))return!1;var t=Number(e.getAttribute(ax)||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 dx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=cx(t);return(t.styles||ux(r)).find(function(r){return r.getAttribute(lx(t))===e})}function fx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=dx(e,t);r&&cx(t).removeChild(r)}function mx(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=cx(r),o=ux(n),i=kw(kw({},r),{},{styles:o});!function(e,t){var r=sx.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=px("",t),o=n.parentNode;sx.set(e,o),e.removeChild(n)}}(n,i);var a=dx(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=px(e,i);return u.setAttribute(lx(i),t),u}function hx(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,";"):"";mx("\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),fx(t),{width:d,height:f}}(e):{width:0,height:0}}var vx="rc-util-locker-".concat(Date.now()),yx=0;function gx(e){var t=!!e,r=Cw(i.useState(function(){return yx+=1,"".concat(vx,"_").concat(yx)}),1)[0];nx(function(){if(t){var e=hx(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;mx("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else fx(r);return function(){fx(r)}},[t,r])}var bx=function(e){return!1!==e&&(Tw()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wx=i.forwardRef(function(e,t){var n=e.open,o=e.autoLock,a=e.getContainer,s=e.debug,l=e.autoDestroy,c=void 0===l||l,u=e.children,p=Cw(i.useState(n),2),d=p[0],f=p[1],m=d||n;"production"!==process.env.NODE_ENV&&Dw(Tw()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),i.useEffect(function(){(c||n)&&f(n)},[n,c]);var h=Cw(i.useState(function(){return bx(a)}),2),v=h[0],y=h[1];i.useEffect(function(){var e=bx(a);y(null!=e?e:null)});var g=function(e,t){var r=Cw(i.useState(function(){if(!Tw())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),1)[0],n=i.useRef(!1),o=i.useContext(ex),a=Cw(i.useState(ox),2),s=a[0],l=a[1],c=o||(n.current?void 0:function(e){l(function(t){return[e].concat(tx(t))})});function u(){r.parentElement||document.body.appendChild(r),n.current=!0}function p(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),n.current=!1}return nx(function(){return e?o?o(u):u():p(),p},[e]),nx(function(){s.length&&(s.forEach(function(e){return e()}),l(ox))},[s]),[r,c]}(m&&!v,s),b=Cw(g,2),w=b[0],x=b[1],O=null!=v?v:w;gx(o&&n&&Tw()&&(O===w||O===document.body));var E=null;u&&Zw(u)&&t&&(E=u.ref);var k=Kw(E,t);if(!m||!Tw()||void 0===v)return null;var j=!1===O||!1,P=u;return t&&(P=i.cloneElement(u,{ref:k})),i.createElement(ex.Provider,{value:x},j?P:r.createPortal(P,O))});function xx(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return e.Children.forEach(t,function(e){(null!=e||r.keepEmpty)&&(Array.isArray(e)?n=n.concat(xx(e)):qw(e)&&e.props?n=n.concat(xx(e.props.children,r)):n.push(e))}),n}function Ox(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ex(t){var n,o=function(e){return e&&"object"===ww(e)&&Ox(e.nativeElement)?e.nativeElement:Ox(e)?e:null}(t);return o||(t instanceof e.Component?null===(n=r.findDOMNode)||void 0===n?void 0:n.call(r,t):null)}"production"!==process.env.NODE_ENV&&(wx.displayName="Portal");var kx=i.createContext(null);var jx=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}()}(),Px="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Sx="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Cx="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Sx):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Tx=["top","right","bottom","left","width","height","size","weight"],Nx="undefined"!=typeof MutationObserver,zx=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(){Cx(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(){Px&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nx?(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(){Px&&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;Tx.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}(),Lx=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},Mx=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Sx},Rx=Wx(0,0,0,0);function Dx(e){return parseFloat(e)||0}function Ax(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+Dx(e["border-"+r+"-width"])},0)}function Ix(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Rx;var n=Mx(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]=Dx(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=Dx(n.width),l=Dx(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=Ax(n,"left","right")+i),Math.round(l+a)!==r&&(l-=Ax(n,"top","bottom")+a)),!function(e){return e===Mx(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 Wx(o.left,o.top,s,l)}var Bx="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Mx(e).SVGGraphicsElement}:function(e){return e instanceof Mx(e).SVGElement&&"function"==typeof e.getBBox};function _x(e){return Px?Bx(e)?function(e){var t=e.getBBox();return Wx(0,0,t.width,t.height)}(e):Ix(e):Rx}function Wx(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Fx=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wx(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_x(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}(),Vx=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),Lx(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);Lx(this,{target:e,contentRect:c})},$x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new jx,"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 Mx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Fx(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 Mx(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 Vx(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}(),Hx="undefined"!=typeof WeakMap?new WeakMap:new jx,Ux=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=zx.getInstance(),n=new $x(t,r,this);Hx.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){Ux.prototype[e]=function(){var t;return(t=Hx.get(this))[e].apply(t,arguments)}});var qx=void 0!==Sx.ResizeObserver?Sx.ResizeObserver:Ux,Yx=new Map;function Gx(e){e.forEach(function(e){var t,r=e.target;null===(t=Yx.get(r))||void 0===t||t.forEach(function(e){return e(r)})})}var Xx=new qx(Gx);function Kx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zx(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,xw(n.key),n)}}function Qx(e,t,r){return t&&Zx(e.prototype,t),r&&Zx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jx(e,t)}function eO(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&&Jx(e,t)}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tO(e)}function rO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rO=function(){return!!e})()}function nO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oO(e){var t=rO();return function(){var r,n=tO(e);if(t){var o=tO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==ww(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nO(e)}(this,r)}}process.env.NODE_ENV,process.env.NODE_ENV;var iO=function(){eO(t,i.Component);var e=oO(t);function t(){return Kx(this,t),e.apply(this,arguments)}return Qx(t,[{key:"render",value:function(){return this.props.children}}]),t}();function aO(e,t){var r=e.children,n=e.disabled,o=i.useRef(null),a=i.useRef(null),s=i.useContext(kx),l="function"==typeof r,c=l?r(o):r,u=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&i.isValidElement(c)&&Zw(c),d=p?Jw(c):null,f=Kw(d,o),m=function(){var e;return Ex(o.current)||(o.current&&"object"===ww(o.current)?Ex(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Ex(a.current)};i.useImperativeHandle(t,function(){return m()});var h=i.useRef(e);h.current=e;var v=i.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=kw(kw({},f),{},{offsetWidth:m,offsetHeight:v});null==s||s(y,e,n),r&&Promise.resolve().then(function(){r(y,e)})}},[]);return i.useEffect(function(){var e,t,r=m();return r&&!n&&(e=r,t=v,Yx.has(e)||(Yx.set(e,new Set),Xx.observe(e)),Yx.get(e).add(t)),function(){return function(e,t){Yx.has(e)&&(Yx.get(e).delete(t),Yx.get(e).size||(Xx.unobserve(e),Yx.delete(e)))}(r,v)}},[o.current,n]),i.createElement(iO,{ref:a},p?i.cloneElement(c,{ref:f}):c)}var sO=i.forwardRef(aO);"production"!==process.env.NODE_ENV&&(sO.displayName="SingleObserver");function lO(e,t){var r=e.children,n="function"==typeof r?[r]:xx(r);return"production"!==process.env.NODE_ENV&&(n.length>1?Lw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===n.length&&Lw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,n){var o=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(n);return i.createElement(sO,bw({},e,{key:o,ref:0===n?t:void 0}),r)})}var cO=i.forwardRef(lO);function uO(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function pO(e){return function(e){return uO(e)instanceof ShadowRoot}(e)?uO(e):null}function dO(e){var t=i.useRef();t.current=e;var r=i.useCallback(function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(n))},[]);return r}"production"!==process.env.NODE_ENV&&(cO.displayName="ResizeObserver"),cO.Collection=function(e){var t=e.children,r=e.onBatchResize,n=i.useRef(0),o=i.useRef([]),a=i.useContext(kx),s=i.useCallback(function(e,t,i){n.current+=1;var s=n.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){s===n.current&&(null==r||r(o.current),o.current=[])}),null==a||a(e,t,i)},[r,a]);return i.createElement(kx.Provider,{value:s},t)};var fO=0,mO=kw({},i).useId,hO=mO?function(e){var t=mO();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Cw(i.useState("ssr-id"),2),r=t[0],n=t[1];return i.useEffect(function(){var e=fO;fO+=1,n("rc_unique_".concat(e))},[]),e||("test"===process.env.NODE_ENV?"test-id":r)},vO=i.createContext({}),yO=function(){eO(t,i.Component);var e=oO(t);function t(){return Kx(this,t),e.apply(this,arguments)}return Qx(t,[{key:"render",value:function(){return this.props.children}}]),t}();function gO(e){var t=i.useRef(!1),r=Cw(i.useState(e),2),n=r[0],o=r[1];return i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[n,function(e,r){r&&t.current||o(e)}]}var bO="none",wO="appear",xO="enter",OO="leave",EO="none",kO="prepare",jO="start",PO="active",SO="end",CO="prepared";function TO(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 NO,zO,LO,MO=(NO=Tw(),zO="undefined"!=typeof window?window:{},LO={animationend:TO("Animation","AnimationEnd"),transitionend:TO("Transition","TransitionEnd")},NO&&("AnimationEvent"in zO||delete LO.animationend.animation,"TransitionEvent"in zO||delete LO.transitionend.transition),LO),RO={};if(Tw()){var DO=document.createElement("div");RO=DO.style}var AO={};function IO(e){if(AO[e])return AO[e];var t=MO[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 RO)return AO[e]=t[i],AO[e]}return""}var BO=IO("animationend"),_O=IO("transitionend"),WO=!(!BO||!_O),FO=BO||"animationend",VO=_O||"transitionend";function $O(e,t){if(!e)return null;if("object"===ww(e)){var r=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var HO=Tw()?e.useLayoutEffect:e.useEffect,UO=function(e){return+setTimeout(e,16)},qO=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(UO=function(e){return window.requestAnimationFrame(e)},qO=function(e){return window.cancelAnimationFrame(e)});var YO=0,GO=new Map;function XO(e){GO.delete(e)}var KO=function(e){var t=YO+=1;return function r(n){if(0===n)XO(t),e();else{var o=UO(function(){r(n-1)});GO.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};KO.cancel=function(e){var t=GO.get(e);return XO(e),qO(t)},"production"!==process.env.NODE_ENV&&(KO.ids=function(){return GO});var ZO=[kO,jO,PO,SO],QO=[kO,CO],JO=!1;function eE(e){return e===PO||e===SO}var tE=function(e,t,r){var n=Cw(gO(EO),2),o=n[0],a=n[1],s=function(){var e=i.useRef(null);function t(){KO.cancel(e.current)}return i.useEffect(function(){return function(){t()}},[]),[function r(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=KO(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i},t]}(),l=Cw(s,2),c=l[0],u=l[1];var p=t?QO:ZO;return HO(function(){if(o!==EO&&o!==SO){var e=p.indexOf(o),t=p[e+1],n=r(o);n===JO?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,o]),i.useEffect(function(){return function(){u()}},[]),[function(){a(kO,!0)},o]};function rE(t,r,n,o){var a,s,l,c=o.motionEnter,u=void 0===c||c,p=o.motionAppear,d=void 0===p||p,f=o.motionLeave,m=void 0===f||f,h=o.motionDeadline,v=o.motionLeaveImmediately,y=o.onAppearPrepare,g=o.onEnterPrepare,b=o.onLeavePrepare,w=o.onAppearStart,x=o.onEnterStart,O=o.onLeaveStart,E=o.onAppearActive,k=o.onEnterActive,j=o.onLeaveActive,P=o.onAppearEnd,S=o.onEnterEnd,C=o.onLeaveEnd,T=o.onVisibleChanged,N=Cw(gO(),2),z=N[0],L=N[1],M=(a=bO,s=Cw(i.useReducer(function(e){return e+1},0),2)[1],l=i.useRef(a),[dO(function(){return l.current}),dO(function(e){l.current="function"==typeof e?e(l.current):e,s()})]),R=Cw(M,2),D=R[0],A=R[1],I=Cw(gO(null),2),B=I[0],_=I[1],W=D(),F=e.useRef(!1),V=e.useRef(null);function $(){return n()}var H=e.useRef(!1);function U(){A(bO),_(null,!0)}var q=dO(function(e){var t=D();if(t!==bO){var r=$();if(!e||e.deadline||e.target===r){var n,o=H.current;t===wO&&o?n=null==P?void 0:P(r,e):t===xO&&o?n=null==S?void 0:S(r,e):t===OO&&o&&(n=null==C?void 0:C(r,e)),o&&!1!==n&&U()}}}),Y=function(t){var r=e.useRef();function n(e){e&&(e.removeEventListener(VO,t),e.removeEventListener(FO,t))}return i.useEffect(function(){return function(){n(r.current)}},[]),[function(e){r.current&&r.current!==e&&n(r.current),e&&e!==r.current&&(e.addEventListener(VO,t),e.addEventListener(FO,t),r.current=e)},n]}(q),G=Cw(Y,1)[0],X=function(e){switch(e){case wO:return Ow(Ow(Ow({},kO,y),jO,w),PO,E);case xO:return Ow(Ow(Ow({},kO,g),jO,x),PO,k);case OO:return Ow(Ow(Ow({},kO,b),jO,O),PO,j);default:return{}}},K=i.useMemo(function(){return X(W)},[W]),Z=Cw(tE(W,!t,function(e){if(e===kO){var t=K[kO];return t?t($()):JO}var r;J in K&&_((null===(r=K[J])||void 0===r?void 0:r.call(K,$(),null))||null);return J===PO&&W!==bO&&(G($()),h>0&&(clearTimeout(V.current),V.current=setTimeout(function(){q({deadline:!0})},h))),J===CO&&U(),true}),2),Q=Z[0],J=Z[1],ee=eE(J);H.current=ee;var te=e.useRef(null);HO(function(){if(!F.current||te.current!==r){L(r);var e,n=F.current;F.current=!0,!n&&r&&d&&(e=wO),n&&r&&u&&(e=xO),(n&&!r&&m||!n&&v&&!r&&m)&&(e=OO);var o=X(e);e&&(t||o[kO])?(A(e),Q()):A(bO),te.current=r}},[r]),e.useEffect(function(){(W===wO&&!d||W===xO&&!u||W===OO&&!m)&&A(bO)},[d,u,m]),e.useEffect(function(){return function(){F.current=!1,clearTimeout(V.current)}},[]);var re=i.useRef(!1);e.useEffect(function(){z&&(re.current=!0),void 0!==z&&W===bO&&((re.current||z)&&(null==T||T(z)),re.current=!0)},[z,W]);var ne=B;return K[kO]&&J===jO&&(ne=kw({transition:"none"},ne)),[W,J,ne,null!=z?z:r]}var nE=function(t){var r=t;"object"===ww(t)&&(r=t.transitionSupport);var n=i.forwardRef(function(t,n){var o=t.visible,a=void 0===o||o,s=t.removeOnLeave,l=void 0===s||s,c=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,i.useContext(vO).motion),h=e.useRef(),v=e.useRef();var y=Cw(rE(m,a,function(){try{return h.current instanceof HTMLElement?h.current:Ex(v.current)}catch(e){return null}},t),4),g=y[0],b=y[1],w=y[2],x=y[3],O=i.useRef(x);x&&(O.current=!0);var E,k=i.useCallback(function(e){h.current=e,Gw(n,e)},[n]),j=kw(kw({},f),{},{visible:a});if(u)if(g===bO)E=x?u(kw({},j),k):!l&&O.current&&d?u(kw(kw({},j),{},{className:d}),k):c||!l&&!d?u(kw(kw({},j),{},{style:{display:"none"}}),k):null;else{var P;b===kO?P="prepare":eE(b)?P="active":b===jO&&(P="start");var S=$O(p,"".concat(g,"-").concat(P));E=u(kw(kw({},j),{},{className:By($O(p,g),Ow(Ow({},S,S&&P),p,"string"==typeof p)),style:w}),k)}else E=null;i.isValidElement(E)&&Zw(E)&&(Jw(E)||(E=i.cloneElement(E,{ref:k})));return i.createElement(yO,{ref:v},E)});return n.displayName="CSSMotion",n}(WO),oE="add",iE="keep",aE="remove",sE="removed";function lE(e){var t;return kw(kw({},t=e&&"object"===ww(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function cE(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(lE)}var uE=["component","children","onVisibleChanged","onAllRemoved"],pE=["status"],dE=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fE(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},s=a.className,l=a.content,c=o.x,u=void 0===c?0:c,p=o.y,d=void 0===p?0:p,f=i.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var h=r.points[0],v=r.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 i.createElement("div",{ref:f,className:By("".concat(t,"-arrow"),s),style:m},l)}function mE(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(nE,bw({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return i.createElement("div",{style:{zIndex:n},className:By("".concat(t,"-mask"),r)})}):null}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nE,t=function(){eO(r,i.Component);var t=oO(r);function r(){var e;Kx(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Ow(nO(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Ow(nO(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:kw(kw({},e),{},{status:sE})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==sE}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Qx(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,n=this.props,o=n.component,a=n.children,s=n.onVisibleChanged;n.onAllRemoved;var l=jw(n,uE),c=o||i.Fragment,u={};return dE.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,i.createElement(c,l,r.map(function(r,n){var o=r.status,l=jw(r,pE),c=o===oE||o===iE;return i.createElement(e,bw({},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(kw(kw({},e),{},{index:n}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=cE(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=cE(e),a=cE(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 kw(kw({},e),{},{status:oE})})),n=i),r.push(kw(kw({},s),{},{status:iE})),n+=1,t=!0;break}}t||r.push(kw(kw({},e),{},{status:aE}))}),n<o&&(r=r.concat(a.slice(n).map(function(e){return kw(kw({},e),{},{status:oE})})));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!==aE})).forEach(function(t){t.key===e&&(t.status=iE)})}),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!==sE||e.status!==aE})}}}]),r}();Ow(t,"defaultProps",{component:"div"})}(WO);var hE=i.memo(function(e){return e.children},function(e,t){return t.cache});"production"!==process.env.NODE_ENV&&(hE.displayName="PopupContent");var vE=i.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,p=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,b=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,O=e.portal,E=e.zIndex,k=e.onMouseEnter,j=e.onMouseLeave,P=e.onPointerEnter,S=e.onPointerDownCapture,C=e.ready,T=e.offsetX,N=e.offsetY,z=e.offsetR,L=e.offsetB,M=e.onAlign,R=e.onPrepare,D=e.stretch,A=e.targetWidth,I=e.targetHeight,B="function"==typeof r?r():r,_=c||u,W=(null==w?void 0:w.length)>0,F=Cw(i.useState(!w||!W),2),V=F[0],$=F[1];if(nx(function(){!V&&W&&s&&$(!0)},[V,W,s]),!V)return null;var H="auto",U={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!c){var q,Y=v.points,G=v.dynamicInset||(null===(q=v._experimental)||void 0===q?void 0:q.dynamicInset),X=G&&"r"===Y[0][1],K=G&&"b"===Y[0][0];X?(U.right=z,U.left=H):(U.left=T,U.right=H),K?(U.bottom=L,U.top=H):(U.top=N,U.bottom=H)}var Z={};return D&&(D.includes("height")&&I?Z.height=I:D.includes("minHeight")&&I&&(Z.minHeight=I),D.includes("width")&&A?Z.width=A:D.includes("minWidth")&&A&&(Z.minWidth=A)),c||(Z.pointerEvents="none"),i.createElement(O,{open:b||_,getContainer:w&&function(){return w(s)},autoDestroy:x},i.createElement(mE,{prefixCls:o,open:c,zIndex:E,mask:f,motion:g}),i.createElement(cO,{onResize:M,disabled:!c},function(e){return i.createElement(nE,bw({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),function(r,s){var l=r.className,u=r.style,f=By(o,l,n);return i.createElement("div",{ref:Xw(e,t,s),className:f,style:kw(kw(kw(kw({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Z),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:k,onMouseLeave:j,onPointerEnter:P,onClick:d,onPointerDownCapture:S},m&&i.createElement(fE,{prefixCls:o,arrow:m,arrowPos:h,align:v}),i.createElement(hE,{cache:!c&&!p},B))})}))});"production"!==process.env.NODE_ENV&&(vE.displayName="Popup");var yE=i.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Zw(r),a=i.useCallback(function(e){Gw(t,n?n(e):e)},[n]),s=Kw(a,Jw(r));return o?i.cloneElement(r,{ref:s}):r});"production"!==process.env.NODE_ENV&&(yE.displayName="TriggerWrapper");var gE=i.createContext(null);function bE(e){return e?Array.isArray(e)?e:[e]:[]}function wE(){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 xE(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function OE(e){return e.ownerDocument.defaultView}function EE(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=OE(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 kE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function jE(e){return kE(parseFloat(e),0)}function PE(e,t){var r=kw({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=OE(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=jE(i),h=jE(a),v=jE(s),y=jE(l),g=kE(Math.round(c.width/d*1e3)/1e3),b=kE(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=jE(o);P=C*g,S=C*b}var T=c.x+k-P,N=c.y+O-S,z=T+c.width+2*P-k-j-w,L=N+c.height+2*S-O-E-x;r.left=Math.max(r.left,T),r.top=Math.max(r.top,N),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,L)}}),r}function SE(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 CE(e,t){var r=Cw(t||[],2),n=r[0],o=r[1];return[SE(e.width,n),SE(e.height,o)]}function TE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function NE(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 zE(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 LE(e,t,r,n,o,a,s){var l=Cw(i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),2),c=l[0],u=l[1],p=i.useRef(0),d=i.useMemo(function(){return t?EE(t):[]},[t]),f=i.useRef({});e||(f.current={});var m=dO(function(){if(t&&r&&e){var i,l,c,p,m,h=t,v=h.ownerDocument,y=OE(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=kw(kw({},o[n]),a),j=v.createElement("div");if(null===(i=h.parentElement)||void 0===i||i.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(r))m={x:r[0],y:r[1],width:0,height:0};else{var P,S,C=r.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 T=h.getBoundingClientRect(),N=y.getComputedStyle(h),z=N.height,L=N.width;T.x=null!==(l=T.x)&&void 0!==l?l:T.left,T.y=null!==(c=T.y)&&void 0!==c?c:T.top;var M=v.documentElement,R=M.clientWidth,D=M.clientHeight,A=M.scrollWidth,I=M.scrollHeight,B=M.scrollTop,_=M.scrollLeft,W=T.height,F=T.width,V=m.height,$=m.width,H={left:0,top:0,right:R,bottom:D},U={left:-_,top:-B,right:A-_,bottom:I-B},q=k.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==q&&q!==G&&(q=Y);var X=q===G,K=PE(U,d),Z=PE(H,d),Q=q===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=kE(Math.round(F/parseFloat(L)*1e3)/1e3),re=kE(Math.round(W/parseFloat(z)*1e3)/1e3);if(0===te||0===re||Ox(r)&&!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}(r))return;var ne=k.offset,oe=k.targetOffset,ie=Cw(CE(T,ne),2),ae=ie[0],se=ie[1],le=Cw(CE(m,oe),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var pe=Cw(k.points||[],2),de=pe[0],fe=TE(pe[1]),me=TE(de),he=NE(m,fe),ve=NE(T,me),ye=kw({},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=T.x+e,o=T.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=NE(m,["t","l"]),Se=NE(T,["t","l"]),Ce=NE(m,["b","r"]),Te=NE(T,["b","r"]),Ne=k.overflow||{},ze=Ne.adjustX,Le=Ne.adjustY,Me=Ne.shiftX,Re=Ne.shiftY,De=function(e){return"boolean"==typeof e?e:e>=0};function ft(){we=T.y+be,xe=we+W,Oe=T.x+ge,Ee=Oe+F}ft();var Ae=De(Le),Ie=me[0]===fe[0];if(Ae&&"t"===me[0]&&(xe>J.bottom||f.current.bt)){var Be=be;Ie?Be-=W-V:Be=Pe.y-Te.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=[zE(me,0),zE(fe,0)]):f.current.bt=!1}if(Ae&&"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=[zE(me,0),zE(fe,0)]):f.current.tb=!1}var He=De(ze),Ue=me[1]===fe[1];if(He&&"l"===me[1]&&(Ee>J.right||f.current.rl)){var qe=ge;Ue?qe-=F-$:qe=Pe.x-Te.x-ae;var Ye=dt(qe,be),Ge=dt(qe,be,Z);Ye>ke||Ye===ke&&(!X||Ge>=je)?(f.current.rl=!0,ge=qe,ae=-ae,ye.points=[zE(me,1),zE(fe,1)]):f.current.rl=!1}if(He&&"r"===me[1]&&(Oe<J.left||f.current.lr)){var Xe=ge;Ue?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=[zE(me,1),zE(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===Re?0:Re;"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=T.x+ge,tt=et+F,rt=T.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(t,ye);var ut=ee.right-T.x-(ge+T.width),pt=ee.bottom-T.y-(be+T.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 kw(kw({},e),{},{ready:!1})})};return nx(h,[n]),nx(function(){e||h()},[e]),[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 ME=["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 RE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wx,t=i.forwardRef(function(t,r){var n=t.prefixCls,o=void 0===n?"rc-trigger-popup":n,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,p=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,v=t.mouseLeaveDelay,y=void 0===v?.1:v,g=t.focusDelay,b=t.blurDelay,w=t.mask,x=t.maskClosable,O=void 0===x||x,E=t.getPopupContainer,k=t.forceRender,j=t.autoDestroy,P=t.destroyPopupOnHide,S=t.popup,C=t.popupClassName,T=t.popupStyle,N=t.popupPlacement,z=t.builtinPlacements,L=void 0===z?{}:z,M=t.popupAlign,R=t.zIndex,D=t.stretch,A=t.getPopupClassNameFromAlign,I=t.fresh,B=t.alignPoint,_=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,V=t.popupMotion,$=t.maskMotion,H=t.popupTransitionName,U=t.popupAnimation,q=t.maskTransitionName,Y=t.maskAnimation,G=t.className,X=t.getTriggerDOMNode,K=jw(t,ME),Z=j||P||!1,Q=Cw(i.useState(!1),2),J=Q[0],ee=Q[1];nx(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=i.useRef({}),re=i.useContext(gE),ne=i.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==re||re.registerSubPopup(e,t)}}},[re]),oe=hO(),ie=Cw(i.useState(null),2),ae=ie[0],se=ie[1],le=i.useRef(null),ce=dO(function(e){le.current=e,Ox(e)&&ae!==e&&se(e),null==re||re.registerSubPopup(oe,e)}),ue=Cw(i.useState(null),2),pe=ue[0],de=ue[1],fe=i.useRef(null),me=dO(function(e){Ox(e)&&pe!==e&&(de(e),fe.current=e)}),he=i.Children.only(a),ve=(null==he?void 0:he.props)||{},ye={},ge=dO(function(e){var t,r,n=pe;return(null==n?void 0:n.contains(e))||(null===(t=pO(n))||void 0===t?void 0:t.host)===e||e===n||(null==ae?void 0:ae.contains(e))||(null===(r=pO(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=xE(o,V,U,H),we=xE(o,$,Y,q),xe=Cw(i.useState(d||!1),2),Oe=xe[0],Ee=xe[1],ke=null!=p?p:Oe,je=dO(function(e){void 0===p&&Ee(e)});nx(function(){Ee(p||!1)},[p]);var Pe=i.useRef(ke);Pe.current=ke;var Se=i.useRef([]);Se.current=[];var Ce=dO(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))}),Te=i.useRef(),Ne=function(){clearTimeout(Te.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ne(),0===t?Ce(e):Te.current=setTimeout(function(){Ce(e)},1e3*t)};i.useEffect(function(){return Ne},[]);var Le=Cw(i.useState(!1),2),Me=Le[0],Re=Le[1];nx(function(e){e&&!ke||Re(!0)},[ke]);var De=Cw(i.useState(null),2),Ae=De[0],Ie=De[1],Be=Cw(i.useState(null),2),_e=Be[0],We=Be[1],Fe=function(e){We([e.clientX,e.clientY])},Ve=Cw(LE(ke,ae,B&&null!==_e?_e:pe,N,L,M,W),11),$e=Ve[0],He=Ve[1],Ue=Ve[2],qe=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(e,t,r,n){return i.useMemo(function(){var o=bE(null!=r?r:t),i=bE(null!=n?n:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}(J,l,c,u),tt=Cw(et,2),rt=tt[0],nt=tt[1],ot=rt.has("click"),it=nt.has("click")||nt.has("contextMenu"),at=dO(function(){Me||Je()});!function(e,t,r,n,o){nx(function(){if(e&&t&&r){var i=r,a=EE(t),s=EE(i),l=OE(i),c=new Set([l].concat(tx(a),tx(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)}),nx(function(){at()},[_e,N]),nx(function(){!ke||null!=L&&L[N]||at()},[JSON.stringify(M)]);var st=i.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(wE(null===(s=e[l])||void 0===s?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}(L,o,Qe,B);return By(e,null==A?void 0:A(Qe))},[Qe,A,L,o,B]);i.useImperativeHandle(r,function(){return{nativeElement:fe.current,popupElement:le.current,forceAlign:at}});var lt=Cw(i.useState(0),2),ct=lt[0],ut=lt[1],pt=Cw(i.useState(0),2),dt=pt[0],ft=pt[1],mt=function(){if(D&&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))}}nx(function(){Ae&&(Je(),Ae(),Ie(null))},[Ae]),(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(e,t,r,n,o,a,s,l){var c=i.useRef(e);c.current=e;var u=i.useRef(!1);return i.useEffect(function(){if(t&&n&&(!o||a)){var e=function(){u.current=!1},i=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=OE(n);p.addEventListener("pointerdown",e,!0),p.addEventListener("mousedown",i,!0),p.addEventListener("contextmenu",i,!0);var d,f,m=pO(r);return m&&(m.addEventListener("mousedown",i,!0),m.addEventListener("contextmenu",i,!0)),"production"!==process.env.NODE_ENV&&Lw((null==r||null===(d=r.getRootNode)||void 0===d?void 0:d.call(r))===(null===(f=n.getRootNode)||void 0===f?void 0:f.call(n)),"trigger element and popup element should in same shadow root."),function(){p.removeEventListener("pointerdown",e,!0),p.removeEventListener("mousedown",i,!0),p.removeEventListener("contextmenu",i,!0),m&&(m.removeEventListener("mousedown",i,!0),m.removeEventListener("contextmenu",i,!0))}}},[t,r,n,o,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=By(ve.className,G));var xt=i.useRef(!1);xt.current||(xt.current=k||ke||Me);var Ot=kw(kw({},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=i.cloneElement(he,kw(kw({},Ot),Et)),jt={x:Ge,y:Xe},Pt=F?kw({},!0!==F?F:{}):null;return i.createElement(i.Fragment,null,i.createElement(cO,{disabled:!ke,ref:me,onResize:function(){mt(),at()}},i.createElement(yE,{getTriggerDOMNode:X},kt)),xt.current&&i.createElement(gE.Provider,{value:ne},i.createElement(vE,{portal:e,ref:ce,prefixCls:o,popup:S,className:By(C,st),style:T,target:pe,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:R,open:ke,keepDom:Me,fresh:I,onClick:_,onPointerDownCapture:gt,mask:w,motion:be,maskMotion:we,onVisibleChanged:function(e){Re(!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:Ue,offsetR:qe,offsetB:Ye,onAlign:at,stretch:D,targetWidth:ct/Ke,targetHeight:dt/Ze})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(wx),DE={shiftX:64,adjustY:1},AE={adjustX:1,shiftY:!0},IE=[0,0],BE={left:{points:["cr","cl"],overflow:AE,offset:[-4,0],targetOffset:IE},right:{points:["cl","cr"],overflow:AE,offset:[4,0],targetOffset:IE},top:{points:["bc","tc"],overflow:DE,offset:[0,-4],targetOffset:IE},bottom:{points:["tc","bc"],overflow:DE,offset:[0,4],targetOffset:IE},topLeft:{points:["bl","tl"],overflow:DE,offset:[0,-4],targetOffset:IE},leftTop:{points:["tr","tl"],overflow:AE,offset:[-4,0],targetOffset:IE},topRight:{points:["br","tr"],overflow:DE,offset:[0,-4],targetOffset:IE},rightTop:{points:["tl","tr"],overflow:AE,offset:[4,0],targetOffset:IE},bottomRight:{points:["tr","br"],overflow:DE,offset:[0,4],targetOffset:IE},rightBottom:{points:["bl","br"],overflow:AE,offset:[4,0],targetOffset:IE},bottomLeft:{points:["tl","bl"],overflow:DE,offset:[0,4],targetOffset:IE},leftBottom:{points:["br","bl"],overflow:AE,offset:[-4,0],targetOffset:IE}},_E=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],WE=function(t,r){var n=t.overlayClassName,o=t.trigger,a=void 0===o?["hover"]:o,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,p=t.overlayStyle,d=t.prefixCls,f=void 0===d?"rc-tooltip":d,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,b=t.motion,w=t.placement,x=void 0===w?"right":w,O=t.align,E=void 0===O?{}:O,k=t.destroyTooltipOnHide,j=void 0!==k&&k,P=t.defaultVisible,S=t.getTooltipContainer,C=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,N=t.id,z=t.showArrow,L=void 0===z||z,M=t.classNames,R=t.styles,D=jw(t,_E),A=hO(N),I=e.useRef(null);e.useImperativeHandle(r,function(){return I.current});var B=kw({},D);"visible"in t&&(B.popupVisible=t.visible);var _,W;return i.createElement(RE,bw({popupClassName:By(n,null==M?void 0:M.root),prefixCls:f,popup:function(){return i.createElement(gw,{key:"content",prefixCls:f,id:A,bodyClassName:null==M?void 0:M.body,overlayInnerStyle:kw(kw({},C),null==R?void 0:R.body)},T)},action:a,builtinPlacements:BE,popupPlacement:x,ref:I,popupAlign:E,getPopupContainer:S,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:b,defaultPopupVisible:P,autoDestroy:j,mouseLeaveDelay:u,popupStyle:kw(kw({},p),null==R?void 0:R.root),mouseEnterDelay:l,arrow:L},B),(_=i.Children.only(m),W=kw(kw({},(null==_?void 0:_.props)||{}),{},{"aria-describedby":T?A:null}),i.cloneElement(m,W)))},FE=e.forwardRef(WE);const VE=({title:t,description:r,footer:n,dataTestId:o,variant:i="default"})=>{const a=Boolean(r||n);return e.createElement("div",{"data-test-id":o,className:he("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})},e.createElement("div",{className:he("flex items-center",!a&&"justify-center")},e.createElement(Yy,{fontWeight:"bold",variant:a?"regular":"small",className:he({"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},t)),r&&e.createElement("div",{className:"mt-1.5"},e.createElement(Yy,{variant:"small",className:he("opacity-90",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},r)),n&&e.createElement("div",{className:he("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?e.createElement(Yy,{variant:"small",className:he("opacity-75",{"text-foreground":"default"===i,"text-destructive-foreground":"destructive"===i,"text-muted-foreground":"muted"===i})},n):n))},$E=({overlay:t,title:r,description:n,footer:o,children:i,trigger:a="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:l=.1,placement:c="top",variant:u="default",className:p,...d})=>{const f=e.useMemo(()=>"function"==typeof t?t():t?e.createElement(e.Fragment,null,t):e.createElement(VE,{title:r,description:n,footer:o,variant:u,dataTestId:d.dataTestId}),[n,o,t,r,u,d.dataTestId]);return r||n||t?e.createElement(FE,{overlay:f,trigger:a,mouseEnterDelay:s,mouseLeaveDelay:l,placement:c,destroyTooltipOnHide:!0,overlayClassName:he("max-w-xs z-50",p),...d},e.createElement("span",{className:"inline-flex"},i)):i||null};function HE(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 UE=["color"],qE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,UE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),YE=["color"],GE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,YE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),XE=["color"],KE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,XE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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"}))}),ZE=["color"],QE=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=HE(t,ZE);return e.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:r}),e.createElement("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 JE=6048e5,ek=Symbol.for("constructDateFrom");function tk(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ek in e?e[ek](t):e instanceof Date?new e.constructor(t):new Date(t)}function rk(e,t){return tk(t||e,e)}function nk(e,t,r){const n=rk(e,r?.in);return isNaN(t)?tk(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function ok(e,t,r){const n=rk(e,r?.in);if(isNaN(t))return tk(r?.in||e,NaN);if(!t)return n;const o=n.getDate(),i=tk(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 ik={};function ak(){return ik}function sk(e,t){const r=ak(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=rk(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 lk(e,t){return sk(e,{...t,weekStartsOn:1})}function ck(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=tk(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=lk(o),a=tk(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=lk(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function uk(e){const t=rk(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 pk(e,...t){const r=tk.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function dk(e,t){const r=rk(e,t?.in);return r.setHours(0,0,0,0),r}function fk(e,t,r){const[n,o]=pk(r?.in,e,t),i=dk(n),a=dk(o),s=+i-uk(i),l=+a-uk(a);return Math.round((s-l)/864e5)}function mk(e,t,r){return nk(e,7*t,r)}function hk(e,t,r){return ok(e,12*t,r)}function vk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=tk.bind(null,e));const t=rk(e,n);(!r||r<t||isNaN(+t))&&(r=t)}),tk(n,r||NaN)}function yk(e,t){let r,n=t?.in;return e.forEach(e=>{n||"object"!=typeof e||(n=tk.bind(null,e));const t=rk(e,n);(!r||r>t||isNaN(+t))&&(r=t)}),tk(n,r||NaN)}function gk(e,t,r){const[n,o]=pk(r?.in,e,t);return+dk(n)===+dk(o)}function bk(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wk(e,t,r){const[n,o]=pk(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}function xk(e,t){const r=rk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Ok(e,t){const r=rk(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Ek(e,t){const r=rk(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function kk(e,t){const r=ak(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=rk(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 jk(e,t){return kk(e,{...t,weekStartsOn:1})}const Pk={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 Sk(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ck={date:Sk({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sk({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:Sk({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Nk(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 zk={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:Nk({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Nk({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:Nk({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:Nk({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:Nk({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 Lk(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 Mk={ordinalNumber:(Rk={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Rk.matchPattern);if(!r)return null;const n=r[0],o=e.match(Rk.parsePattern);if(!o)return null;let i=Rk.valueCallback?Rk.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:Lk({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:Lk({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:Lk({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:Lk({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:Lk({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 Rk;const Dk={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=Pk[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:Ck,formatRelative:(e,t,r,n)=>Tk[e],localize:zk,match:Mk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ak(e,t){const r=rk(e,t?.in),n=+lk(r)-+function(e,t){const r=ck(e,t),n=tk(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),lk(n)}(r);return Math.round(n/JE)+1}function Ik(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=ak(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=tk(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=sk(a,t),l=tk(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=sk(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function Bk(e,t){const r=rk(e,t?.in),n=+sk(r,t)-+function(e,t){const r=ak(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Ik(e,t),i=tk(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),sk(i,t)}(r,t);return Math.round(n/JE)+1}function _k(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Wk={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return _k("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):_k(r+1,2)},d:(e,t)=>_k(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)=>_k(e.getHours()%12||12,t.length),H:(e,t)=>_k(e.getHours(),t.length),m:(e,t)=>_k(e.getMinutes(),t.length),s:(e,t)=>_k(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return _k(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Fk="midnight",Vk="noon",$k="morning",Hk="afternoon",Uk="evening",qk="night",Yk={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 Wk.y(e,t)},Y:function(e,t,r,n){const o=Ik(e,n),i=o>0?o:1-o;if("YY"===t){return _k(i%100,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):_k(i,t.length)},R:function(e,t){return _k(ck(e),t.length)},u:function(e,t){return _k(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 _k(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 _k(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 Wk.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 _k(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=Bk(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):_k(o,t.length)},I:function(e,t,r){const n=Ak(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):_k(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Wk.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=rk(e,t?.in);return fk(r,Ek(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):_k(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 _k(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 _k(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 _k(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?Vk:0===n?Fk: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?Uk:n>=12?Hk:n>=4?$k:qk,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 Wk.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Wk.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):_k(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):_k(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wk.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Wk.s(e,t)},S:function(e,t){return Wk.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Xk(n);case"XXXX":case"XX":return Kk(n);default:return Kk(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Xk(n);case"xxxx":case"xx":return Kk(n);default:return Kk(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gk(n,":");default:return"GMT"+Kk(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gk(n,":");default:return"GMT"+Kk(n,":")}},t:function(e,t,r){return _k(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return _k(+e,t.length)}};function Gk(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+_k(i,2)}function Xk(e,t){if(e%60==0){return(e>0?"-":"+")+_k(Math.abs(e)/60,2)}return Kk(e,t)}function Kk(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+_k(Math.trunc(n/60),2)+t+_k(n%60,2)}const Zk=(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"})}},Qk=(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"})}},Jk={p:Qk,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Zk(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}}",Zk(n,t)).replace("{{time}}",Qk(o,t))}},ej=/^D+$/,tj=/^Y+$/,rj=["D","DD","YY","YYYY"];const nj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ij=/^'([^]*?)'?$/,aj=/''/g,sj=/[a-zA-Z]/;function lj(e,t,r){const n=ak(),o=r?.locale??n.locale??Dk,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=rk(e,r?.in);if(!function(e){return!(!bk(e)&&"number"!=typeof e||isNaN(+rk(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(oj).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Jk[t])(e,o.formatLong)}return e}).join("").match(nj).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:cj(e)};if(Yk[t])return{isToken:!0,value:e};if(t.match(sj))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 tj.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return ej.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),rj.includes(e))throw new RangeError(n)}(i,t,String(e));return(0,Yk[i[0]])(s,i,o.localize,c)}).join("")}function cj(e){const t=e.match(ij);return t?t[1].replace(aj,"'"):e}function uj(e,t){const r=rk(e,t?.in);return function(e,t,r){const[n,o]=pk(r?.in,e,t),i=sk(n,r),a=sk(o,r),s=+i-uk(i),l=+a-uk(a);return Math.round((s-l)/JE)}(function(e,t){const r=rk(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),rk(r,t?.in)}(r,t),Ok(r,t),t)+1}function pj(e,t){return+rk(e)>+rk(t)}function dj(e,t){return+rk(e)<+rk(t)}function fj(e,t,r){const[n,o]=pk(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function mj(e,t,r){return nk(e,-t,r)}function hj(e,t,r){const n=rk(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=tk(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const r=rk(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=tk(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 vj(e,t,r){const n=rk(e,r?.in);return isNaN(+n)?tk(e,NaN):(n.setFullYear(t),n)}var yj=function(){return yj=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},yj.apply(this,arguments)};function gj(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 bj(e){return"multiple"===e.mode}function wj(e){return"range"===e.mode}function xj(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Oj={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 Ej=Object.freeze({__proto__:null,formatCaption:function(e,t){return lj(e,"LLLL y",t)},formatDay:function(e,t){return lj(e,"d",t)},formatMonthCaption:function(e,t){return lj(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return lj(e,"cccccc",t)},formatYearCaption:function(e,t){return lj(e,"yyyy",t)}}),kj=Object.freeze({__proto__:null,labelDay:function(e,t,r){return lj(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 lj(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var jj=e.createContext(void 0);function Pj(e){var r,n,o=e.initialProps,i=function(){var e=Oj,t=Dk,r=new Date;return{captionLayout:"buttons",classNames:e,formatters:Ej,labels:kj,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:r,mode:"default"}}(),a=function(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,i=e.fromDate,a=e.toDate;return n?i=Ok(n):t&&(i=new Date(t,0,1)),o?a=xk(o):r&&(a=new Date(r,11,31)),{fromDate:i?dk(i):void 0,toDate:a?dk(a):void 0}}(o),s=a.fromDate,l=a.toDate,c=null!==(r=o.captionLayout)&&void 0!==r?r:i.captionLayout;"buttons"===c||s&&l||(c="buttons"),(xj(o)||bj(o)||wj(o))&&(n=o.onSelect);var u=yj(yj(yj({},i),o),{captionLayout:c,classNames:yj(yj({},i.classNames),o.classNames),components:yj({},o.components),formatters:yj(yj({},i.formatters),o.formatters),fromDate:s,labels:yj(yj({},i.labels),o.labels),mode:o.mode||i.mode,modifiers:yj(yj({},i.modifiers),o.modifiers),modifiersClassNames:yj(yj({},i.modifiersClassNames),o.modifiersClassNames),onSelect:n,styles:yj(yj({},i.styles),o.styles),toDate:l});return t.jsx(jj.Provider,{value:u,children:e.children})}function Sj(){var t=e.useContext(jj);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function Cj(e){var r=Sj(),n=r.locale,o=r.classNames,i=r.styles,a=r.formatters.formatCaption;return t.jsx("div",{className:o.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Tj(e){return t.jsx("svg",yj({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:t.jsx("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 Nj(e){var r,n,o=e.onChange,i=e.value,a=e.children,s=e.caption,l=e.className,c=e.style,u=Sj(),p=null!==(n=null===(r=u.components)||void 0===r?void 0:r.IconDropdown)&&void 0!==n?n:Tj;return t.jsxs("div",{className:l,style:c,children:[t.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),t.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:i,onChange:o,children:a}),t.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[s,t.jsx(p,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function zj(e){var r,n=Sj(),o=n.fromDate,i=n.toDate,a=n.styles,s=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,u=n.components,p=n.labels.labelMonthDropdown;if(!o)return t.jsx(t.Fragment,{});if(!i)return t.jsx(t.Fragment,{});var d=[];if(function(e,t,r){const[n,o]=pk(r?.in,e,t);return n.getFullYear()===o.getFullYear()}(o,i))for(var f=Ok(o),m=o.getMonth();m<=i.getMonth();m++)d.push(hj(f,m));else for(f=Ok(new Date),m=0;m<=11;m++)d.push(hj(f,m));var h=null!==(r=null==u?void 0:u.Dropdown)&&void 0!==r?r:Nj;return t.jsx(h,{name:"months","aria-label":p(),className:c.dropdown_month,style:a.dropdown_month,onChange:function(t){var r=Number(t.target.value),n=hj(Ok(e.displayMonth),r);e.onChange(n)},value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s}),children:d.map(function(e){return t.jsx("option",{value:e.getMonth(),children:l(e,{locale:s})},e.getMonth())})})}function Lj(e){var r,n=e.displayMonth,o=Sj(),i=o.fromDate,a=o.toDate,s=o.locale,l=o.styles,c=o.classNames,u=o.components,p=o.formatters.formatYearCaption,d=o.labels.labelYearDropdown,f=[];if(!i)return t.jsx(t.Fragment,{});if(!a)return t.jsx(t.Fragment,{});for(var m=i.getFullYear(),h=a.getFullYear(),v=m;v<=h;v++)f.push(vj(Ek(new Date),v));var y=null!==(r=null==u?void 0:u.Dropdown)&&void 0!==r?r:Nj;return t.jsx(y,{name:"years","aria-label":d(),className:c.dropdown_year,style:l.dropdown_year,onChange:function(t){var r=vj(Ok(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:p(n,{locale:s}),children:f.map(function(e){return t.jsx("option",{value:e.getFullYear(),children:p(e,{locale:s})},e.getFullYear())})})}function Mj(){var t=Sj(),r=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&&wk(i,o)<0&&(o=ok(i,-1*(l-1))),a&&wk(o,a)<0&&(o=a),Ok(o)}(t),n=function(t,r){var n=e.useState(t),o=n[0];return[void 0===r?o:r,n[1]]}(r,t.month),o=n[0],i=n[1];return[o,function(e){var r;if(!t.disableNavigation){var n=Ok(e);i(n),null===(r=t.onMonthChange)||void 0===r||r.call(t,n)}}]}var Rj=e.createContext(void 0);function Dj(e){var r=Sj(),n=Mj(),o=n[0],i=n[1],a=function(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Ok(e),i=wk(Ok(ok(o,n)),o),a=[],s=0;s<i;s++){var l=ok(o,s);a.push(l)}return r&&(a=a.reverse()),a}(o,r),s=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=Ok(e);if(!r)return ok(s,a);if(!(wk(r,e)<i))return ok(s,a)}}(o,r),l=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=Ok(e);if(!r)return ok(a,-i);if(!(wk(a,r)<=0))return ok(a,-i)}}(o,r),c=function(e){return a.some(function(t){return fj(e,t)})},u={currentMonth:o,displayMonths:a,goToMonth:i,goToDate:function(e,t){c(e)||(t&&dj(e,t)?i(ok(e,1+-1*r.numberOfMonths)):i(e))},previousMonth:l,nextMonth:s,isDateDisplayed:c};return t.jsx(Rj.Provider,{value:u,children:e.children})}function Aj(){var t=e.useContext(Rj);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function Ij(e){var r,n=Sj(),o=n.classNames,i=n.styles,a=n.components,s=Aj().goToMonth,l=function(t){s(ok(t,e.displayIndex?-e.displayIndex:0))},c=null!==(r=null==a?void 0:a.CaptionLabel)&&void 0!==r?r:Cj,u=t.jsx(c,{id:e.id,displayMonth:e.displayMonth});return t.jsxs("div",{className:o.caption_dropdowns,style:i.caption_dropdowns,children:[t.jsx("div",{className:o.vhidden,children:u}),t.jsx(zj,{onChange:l,displayMonth:e.displayMonth}),t.jsx(Lj,{onChange:l,displayMonth:e.displayMonth})]})}function Bj(e){return t.jsx("svg",yj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:t.jsx("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 _j(e){return t.jsx("svg",yj({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:t.jsx("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 Wj=e.forwardRef(function(e,r){var n=Sj(),o=n.classNames,i=n.styles,a=[o.button_reset,o.button];e.className&&a.push(e.className);var s=a.join(" "),l=yj(yj({},i.button_reset),i.button);return e.style&&Object.assign(l,e.style),t.jsx("button",yj({},e,{ref:r,type:"button",className:s,style:l}))});function Fj(e){var r,n,o=Sj(),i=o.dir,a=o.locale,s=o.classNames,l=o.styles,c=o.labels,u=c.labelPrevious,p=c.labelNext,d=o.components;if(!e.nextMonth&&!e.previousMonth)return t.jsx(t.Fragment,{});var f=u(e.previousMonth,{locale:a}),m=[s.nav_button,s.nav_button_previous].join(" "),h=p(e.nextMonth,{locale:a}),v=[s.nav_button,s.nav_button_next].join(" "),y=null!==(r=null==d?void 0:d.IconRight)&&void 0!==r?r:_j,g=null!==(n=null==d?void 0:d.IconLeft)&&void 0!==n?n:Bj;return t.jsxs("div",{className:s.nav,style:l.nav,children:[!e.hidePrevious&&t.jsx(Wj,{name:"previous-month","aria-label":f,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===i?t.jsx(y,{className:s.nav_icon,style:l.nav_icon}):t.jsx(g,{className:s.nav_icon,style:l.nav_icon})}),!e.hideNext&&t.jsx(Wj,{name:"next-month","aria-label":h,className:v,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===i?t.jsx(g,{className:s.nav_icon,style:l.nav_icon}):t.jsx(y,{className:s.nav_icon,style:l.nav_icon})})]})}function Vj(e){var r=Sj().numberOfMonths,n=Aj(),o=n.previousMonth,i=n.nextMonth,a=n.goToMonth,s=n.displayMonths,l=s.findIndex(function(t){return fj(e.displayMonth,t)}),c=0===l,u=l===s.length-1,p=r>1&&(c||!u),d=r>1&&(u||!c);return t.jsx(Fj,{displayMonth:e.displayMonth,hideNext:p,hidePrevious:d,nextMonth:i,previousMonth:o,onPreviousClick:function(){o&&a(o)},onNextClick:function(){i&&a(i)}})}function $j(e){var r,n,o=Sj(),i=o.classNames,a=o.disableNavigation,s=o.styles,l=o.captionLayout,c=o.components,u=null!==(r=null==c?void 0:c.CaptionLabel)&&void 0!==r?r:Cj;return n=a?t.jsx(u,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===l?t.jsx(Ij,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===l?t.jsxs(t.Fragment,{children:[t.jsx(Ij,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.jsx(Vj,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):t.jsxs(t.Fragment,{children:[t.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.jsx(Vj,{displayMonth:e.displayMonth,id:e.id})]}),t.jsx("div",{className:i.caption,style:s.caption,children:n})}function Hj(e){var r=Sj(),n=r.footer,o=r.styles,i=r.classNames.tfoot;return n?t.jsx("tfoot",{className:i,style:o.tfoot,children:t.jsx("tr",{children:t.jsx("td",{colSpan:8,children:n})})}):t.jsx(t.Fragment,{})}function Uj(){var e=Sj(),r=e.classNames,n=e.styles,o=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=function(e,t,r){for(var n=r?lk(new Date):sk(new Date,{locale:e,weekStartsOn:t}),o=[],i=0;i<7;i++){var a=nk(n,i);o.push(a)}return o}(i,a,s);return t.jsxs("tr",{style:n.head_row,className:r.head_row,children:[o&&t.jsx("td",{style:n.head_cell,className:r.head_cell}),u.map(function(e,o){return t.jsx("th",{scope:"col",className:r.head_cell,style:n.head_cell,"aria-label":c(e,{locale:i}),children:l(e,{locale:i})},o)})]})}function qj(){var e,r=Sj(),n=r.classNames,o=r.styles,i=r.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:Uj;return t.jsx("thead",{style:o.head,className:n.head,children:t.jsx(a,{})})}function Yj(e){var r=Sj(),n=r.locale,o=r.formatters.formatDay;return t.jsx(t.Fragment,{children:o(e.date,{locale:n})})}var Gj=e.createContext(void 0);function Xj(e){if(!bj(e.initialProps)){var r={selected:void 0,modifiers:{disabled:[]}};return t.jsx(Gj.Provider,{value:r,children:e.children})}return t.jsx(Kj,{initialProps:e.initialProps,children:e.children})}function Kj(e){var r=e.initialProps,n=e.children,o=r.selected,i=r.min,a=r.max,s={disabled:[]};o&&s.disabled.push(function(e){var t=a&&o.length>a-1,r=o.some(function(t){return gk(t,e)});return Boolean(t&&!r)});var l={selected:o,onDayClick:function(e,t,n){var s,l;if((null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,n),!Boolean(t.selected&&i&&(null==o?void 0:o.length)===i))&&!Boolean(!t.selected&&a&&(null==o?void 0:o.length)===a)){var c=o?gj([],o):[];if(t.selected){var u=c.findIndex(function(t){return gk(e,t)});c.splice(u,1)}else c.push(e);null===(l=r.onSelect)||void 0===l||l.call(r,c,e,t,n)}},modifiers:s};return t.jsx(Gj.Provider,{value:l,children:n})}function Zj(){var t=e.useContext(Gj);if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}var Qj,Jj=e.createContext(void 0);function eP(e){if(!wj(e.initialProps)){var r={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return t.jsx(Jj.Provider,{value:r,children:e.children})}return t.jsx(tP,{initialProps:e.initialProps,children:e.children})}function tP(e){var r=e.initialProps,n=e.children,o=r.selected,i=o||{},a=i.from,s=i.to,l=r.min,c=r.max,u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],gk(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),l&&(a&&!s&&u.disabled.push({after:mj(a,l-1),before:nk(a,l-1)}),a&&s&&u.disabled.push({after:a,before:nk(a,l-1)}),!a&&s&&u.disabled.push({after:mj(s,l-1),before:nk(s,l-1)})),c){if(a&&!s&&(u.disabled.push({before:nk(a,1-c)}),u.disabled.push({after:nk(a,c-1)})),a&&s){var p=c-(fk(s,a)+1);u.disabled.push({before:mj(a,p)}),u.disabled.push({after:nk(s,p)})}!a&&s&&(u.disabled.push({before:nk(s,1-c)}),u.disabled.push({after:nk(s,c-1)}))}return t.jsx(Jj.Provider,{value:{selected:o,onDayClick:function(e,t,n){var i,a;null===(i=r.onDayClick)||void 0===i||i.call(r,e,t,n);var s=function(e,t){var r=t||{},n=r.from,o=r.to;if(n&&o){if(gk(o,e)&&gk(n,e))return;if(gk(o,e))return{from:o,to:void 0};if(gk(n,e))return;return pj(n,e)?{from:e,to:o}:{from:n,to:e}}return o?pj(e,o)?{from:o,to:e}:{from:e,to:o}:n?dj(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}(e,o);null===(a=r.onSelect)||void 0===a||a.call(r,s,e,t,n)},modifiers:u},children:n})}function rP(){var t=e.useContext(Jj);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function nP(e){return Array.isArray(e)?gj([],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"}(Qj||(Qj={}));var oP=Qj.Selected,iP=Qj.Disabled,aP=Qj.Hidden,sP=Qj.Today,lP=Qj.RangeEnd,cP=Qj.RangeMiddle,uP=Qj.RangeStart,pP=Qj.Outside;var dP=e.createContext(void 0);function fP(e){var r=Sj(),n=function(e,t,r){var n,o=((n={})[oP]=nP(e.selected),n[iP]=nP(e.disabled),n[aP]=nP(e.hidden),n[sP]=[e.today],n[lP]=[],n[cP]=[],n[uP]=[],n[pP]=[],n);return e.fromDate&&o[iP].push({before:e.fromDate}),e.toDate&&o[iP].push({after:e.toDate}),bj(e)?o[iP]=o[iP].concat(t.modifiers[iP]):wj(e)&&(o[iP]=o[iP].concat(r.modifiers[iP]),o[uP]=r.modifiers[uP],o[cP]=r.modifiers[cP],o[lP]=r.modifiers[lP]),o}(r,Zj(),rP()),o=function(e){var t={};return Object.entries(e).forEach(function(e){var r=e[0],n=e[1];t[r]=nP(n)}),t}(r.modifiers),i=yj(yj({},n),o);return t.jsx(dP.Provider,{value:i,children:e.children})}function mP(){var t=e.useContext(dP);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function hP(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(bk(t))return gk(e,t);if(function(e){return Array.isArray(e)&&e.every(bk)}(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?(fk(o,n)<0&&(n=(r=[o,n])[0],o=r[1]),fk(e,n)>=0&&fk(o,e)>=0):o?gk(o,e):!!n&&gk(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=fk(t.before,e)>0,n=fk(t.after,e)<0;return pj(t.before,t.after)?n&&r:r||n}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?fk(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?fk(t.before,e)>0:"function"==typeof t&&t(e)})}function vP(e,t,r){var n=Object.keys(t).reduce(function(r,n){var o=t[n];return hP(e,o)&&r.push(n),r},[]),o={};return n.forEach(function(e){return o[e]=!0}),r&&!fj(e,r)&&(o.outside=!0),o}function yP(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:nk,week:mk,month:ok,year:hk,startOfWeek:function(e){return o.ISOWeek?lk(e):sk(e,{locale:p,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?jk(e):kk(e,{locale:p,weekStartsOn:l})}}[r](e,"after"===n?1:-1);"before"===n&&c?d=vk([c,d]):"after"===n&&u&&(d=yk([u,d]));var f=!0;if(i){var m=vP(d,i);f=!m.disabled&&!m.hidden}return f?d:s.count>365?s.lastFocused:yP(d,{moveBy:r,direction:n,context:o,modifiers:i,retry:yj(yj({},s),{count:s.count+1})})}var gP=e.createContext(void 0);function bP(r){var n=Aj(),o=mP(),i=e.useState(),a=i[0],s=i[1],l=e.useState(),c=l[0],u=l[1],p=function(e,t){for(var r,n,o=Ok(e[0]),i=xk(e[e.length-1]),a=o;a<=i;){var s=vP(a,t);if(s.disabled||s.hidden)a=nk(a,1);else{if(s.selected)return a;s.today&&!n&&(n=a),r||(r=a),a=nk(a,1)}}return n||r}(n.displayMonths,o),d=(null!=a?a:c&&n.isDateDisplayed(c))?c:p,f=function(e){s(e)},m=Sj(),h=function(e,t){if(a){var r=yP(a,{moveBy:e,direction:t,context:m,modifiers:o});gk(a,r)||(n.goToDate(r,a),f(r))}},v={focusedDay:a,focusTarget:d,blur:function(){u(a),s(void 0)},focus:f,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return t.jsx(gP.Provider,{value:v,children:r.children})}function wP(){var t=e.useContext(gP);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}var xP=e.createContext(void 0);function OP(e){if(!xj(e.initialProps)){var r={selected:void 0};return t.jsx(xP.Provider,{value:r,children:e.children})}return t.jsx(EP,{initialProps:e.initialProps,children:e.children})}function EP(e){var r=e.initialProps,n=e.children,o={selected:r.selected,onDayClick:function(e,t,n){var o,i,a;null===(o=r.onDayClick)||void 0===o||o.call(r,e,t,n),!t.selected||r.required?null===(a=r.onSelect)||void 0===a||a.call(r,e,e,t,n):null===(i=r.onSelect)||void 0===i||i.call(r,void 0,e,t,n)}};return t.jsx(xP.Provider,{value:o,children:n})}function kP(){var t=e.useContext(xP);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function jP(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(Qj).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&r.push(o)}}),r}function PP(r,n,o){var i,a,s,l=Sj(),c=wP(),u=function(e,t){return vP(e,mP(),t)}(r,n),p=function(e,t){var r=Sj(),n=kP(),o=Zj(),i=rP(),a=wP(),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;xj(r)?null===(s=n.onDayClick)||void 0===s||s.call(n,e,t,a):bj(r)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):wj(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}(r,u),d=function(){var e=Sj(),t=kP(),r=Zj(),n=rP();return xj(e)?t.selected:bj(e)?r.selected:wj(e)?n.selected:void 0}(),f=Boolean(l.onDayClick||"default"!==l.mode);e.useEffect(function(){var e;u.outside||c.focusedDay&&f&&gk(c.focusedDay,r)&&(null===(e=o.current)||void 0===e||e.focus())},[c.focusedDay,r,o,f,u.outside]);var m=jP(l,u).join(" "),h=function(e,t){var r=yj({},e.styles.day);return Object.keys(t).forEach(function(t){var n;r=yj(yj({},r),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])}),r}(l,u),v=Boolean(u.outside&&!l.showOutsideDays||u.hidden),y=null!==(s=null===(a=l.components)||void 0===a?void 0:a.DayContent)&&void 0!==s?s:Yj,g={style:h,className:m,children:t.jsx(y,{date:r,displayMonth:n,activeModifiers:u}),role:"gridcell"},b=c.focusTarget&&gk(c.focusTarget,r)&&!u.outside,w=c.focusedDay&&gk(c.focusedDay,r),x=yj(yj(yj({},g),((i={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,i.tabIndex=w||b?0:-1,i)),p);return{isButton:f,isHidden:v,activeModifiers:u,selectedDays:d,buttonProps:x,divProps:g}}function SP(r){var n=e.useRef(null),o=PP(r.date,r.displayMonth,n);return o.isHidden?t.jsx("div",{role:"gridcell"}):o.isButton?t.jsx(Wj,yj({name:"day",ref:n},o.buttonProps)):t.jsx("div",yj({},o.divProps))}function CP(e){var r=e.number,n=e.dates,o=Sj(),i=o.onWeekNumberClick,a=o.styles,s=o.classNames,l=o.locale,c=o.labels.labelWeekNumber,u=(0,o.formatters.formatWeekNumber)(Number(r),{locale:l});if(!i)return t.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var p=c(Number(r),{locale:l});return t.jsx(Wj,{name:"week-number","aria-label":p,className:s.weeknumber,style:a.weeknumber,onClick:function(e){i(r,n,e)},children:u})}function TP(e){var r,n,o,i=Sj(),a=i.styles,s=i.classNames,l=i.showWeekNumber,c=i.components,u=null!==(r=null==c?void 0:c.Day)&&void 0!==r?r:SP,p=null!==(n=null==c?void 0:c.WeekNumber)&&void 0!==n?n:CP;return l&&(o=t.jsx("td",{className:s.cell,style:a.cell,children:t.jsx(p,{number:e.weekNumber,dates:e.dates})})),t.jsxs("tr",{className:s.row,style:a.row,children:[o,e.dates.map(function(r){return t.jsx("td",{className:s.cell,style:a.cell,role:"presentation",children:t.jsx(u,{displayMonth:e.displayMonth,date:r})},function(e){return Math.trunc(+rk(e)/1e3)}(r))})]})}function NP(e,t,r){for(var n=(null==r?void 0:r.ISOWeek)?jk(t):kk(t,r),o=(null==r?void 0:r.ISOWeek)?lk(e):sk(e,r),i=fk(n,o),a=[],s=0;s<=i;s++)a.push(nk(o,s));return a.reduce(function(e,t){var n=(null==r?void 0:r.ISOWeek)?Ak(t):Bk(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 zP(e){var r,n,o,i=Sj(),a=i.locale,s=i.classNames,l=i.styles,c=i.hideHead,u=i.fixedWeeks,p=i.components,d=i.weekStartsOn,f=i.firstWeekContainsDate,m=i.ISOWeek,h=function(e,t){var r=NP(Ok(e),xk(e),t);if(null==t?void 0:t.useFixedWeeks){var n=uj(e,t);if(n<6){var o=r[r.length-1],i=o.dates[o.dates.length-1],a=mk(i,6-n),s=NP(mk(i,1),a,t);r.push.apply(r,s)}}return r}(e.displayMonth,{useFixedWeeks:Boolean(u),ISOWeek:m,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),v=null!==(r=null==p?void 0:p.Head)&&void 0!==r?r:qj,y=null!==(n=null==p?void 0:p.Row)&&void 0!==n?n:TP,g=null!==(o=null==p?void 0:p.Footer)&&void 0!==o?o:Hj;return t.jsxs("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&t.jsx(v,{}),t.jsx("tbody",{className:s.tbody,style:l.tbody,children:h.map(function(r){return t.jsx(y,{displayMonth:e.displayMonth,dates:r.dates,weekNumber:r.weekNumber},r.weekNumber)})}),t.jsx(g,{displayMonth:e.displayMonth})]})}var LP="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,MP=!1,RP=0;function DP(){return"react-day-picker-".concat(++RP)}function AP(r){var n,o,i=Sj(),a=i.dir,s=i.classNames,l=i.styles,c=i.components,u=Aj().displayMonths,p=function(t){var r,n=null!=t?t:MP?DP():null,o=e.useState(n),i=o[0],a=o[1];return LP(function(){null===i&&a(DP())},[]),e.useEffect(function(){!1===MP&&(MP=!0)},[]),null!==(r=null!=t?t:i)&&void 0!==r?r:void 0}(i.id?"".concat(i.id,"-").concat(r.displayIndex):void 0),d=i.id?"".concat(i.id,"-grid-").concat(r.displayIndex):void 0,f=[s.month],m=l.month,h=0===r.displayIndex,v=r.displayIndex===u.length-1,y=!h&&!v;"rtl"===a&&(v=(n=[h,v])[0],h=n[1]),h&&(f.push(s.caption_start),m=yj(yj({},m),l.caption_start)),v&&(f.push(s.caption_end),m=yj(yj({},m),l.caption_end)),y&&(f.push(s.caption_between),m=yj(yj({},m),l.caption_between));var g=null!==(o=null==c?void 0:c.Caption)&&void 0!==o?o:$j;return t.jsxs("div",{className:f.join(" "),style:m,children:[t.jsx(g,{id:p,displayMonth:r.displayMonth,displayIndex:r.displayIndex}),t.jsx(zP,{id:d,"aria-labelledby":p,displayMonth:r.displayMonth})]},r.displayIndex)}function IP(e){var r=Sj(),n=r.classNames,o=r.styles;return t.jsx("div",{className:n.months,style:o.months,children:e.children})}function BP(r){var n,o,i=r.initialProps,a=Sj(),s=wP(),l=Aj(),c=e.useState(!1),u=c[0],p=c[1];e.useEffect(function(){a.initialFocus&&s.focusTarget&&(u||(s.focus(s.focusTarget),p(!0)))},[a.initialFocus,u,s.focus,s.focusTarget,s]);var d=[a.classNames.root,a.className];a.numberOfMonths>1&&d.push(a.classNames.multiple_months),a.showWeekNumber&&d.push(a.classNames.with_weeknumber);var f=yj(yj({},a.styles.root),a.style),m=Object.keys(i).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var r;return yj(yj({},e),((r={})[t]=i[t],r))},{}),h=null!==(o=null===(n=i.components)||void 0===n?void 0:n.Months)&&void 0!==o?o:IP;return t.jsx("div",yj({className:d.join(" "),style:f,dir:a.dir,id:a.id,nonce:i.nonce,title:i.title,lang:i.lang},m,{children:t.jsx(h,{children:l.displayMonths.map(function(e,r){return t.jsx(AP,{displayIndex:r,displayMonth:e},r)})})}))}function _P(e){var r=e.children,n=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 t.jsx(Pj,{initialProps:n,children:t.jsx(Dj,{children:t.jsx(OP,{initialProps:n,children:t.jsx(Xj,{initialProps:n,children:t.jsx(eP,{initialProps:n,children:t.jsx(fP,{children:t.jsx(bP,{children:r})})})})})})})}function WP(e){return t.jsx(_P,yj({},e,{children:t.jsx(BP,{initialProps:e})}))}const FP=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,VP=l,$P=(HP="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",UP={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==UP?void 0:UP.variants))return VP(HP,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:n}=UP,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=FP(o)||FP(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==UP||null===(t=UP.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 VP(HP,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});var HP,UP;const qP=i.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const s=n?ng:"button";return i.createElement(s,{className:he($P({variant:t,size:r,className:e})),ref:a,...o})});qP.displayName="Button";const YP=({className:t,classNames:r,showOutsideDays:n=!0,...o})=>e.createElement(WP,{showOutsideDays:n,className:he("p-3",t),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:he($P({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:he("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:he($P({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:()=>e.createElement(qE,{className:"h-4 w-4"}),IconRight:()=>e.createElement(GE,{className:"h-4 w-4"})},...o});YP.displayName="Calendar";const GP={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"}},XP=i.forwardRef(({variant:e,size:t,className:r,...n},o)=>{const a={slash:i.createElement("span",{className:"mx-2 text-muted-foreground/50 select-none"},"/"),arrow:i.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},i.createElement(Se,{className:he(GP[t].icon,"text-muted-foreground/50")})),icon:i.createElement("span",{className:"mx-2 group-hover:scale-105 transition-transform duration-150"},i.createElement(Se,{className:he(GP[t].icon,"text-muted-foreground/50")}))};return i.createElement("span",{ref:o,className:he("flex items-center",r),...n},a[e])});XP.displayName="BreadCrumbSeparator";const KP=i.forwardRef(({items:t,variant:r="slash",size:n="medium",maxItems:o=4,className:a,...s},l)=>{const[c,u]=e.useState(!1),[p,d]=e.useState(null),f=e.useMemo(()=>{if(c||t.length<=o)return t;return[...t.slice(0,1),{label:"...",href:"#"},...t.slice(-2)]},[t,o,c]);return i.createElement("nav",{ref:l,"aria-label":"BreadCrumb",className:he("w-full p-3 select-none",a),...s},i.createElement("ol",{className:"flex items-center flex-wrap gap-y-2"},"icon"===r&&i.createElement("li",{className:"flex items-center"},i.createElement("a",{href:"/",className:he("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")},i.createElement(Le,{className:GP[n].icon}),i.createElement("span",{className:"sr-only"},"Home"))),f.map((e,t)=>{const o=t===f.length-1,a="..."===e.label,s=p===t;return i.createElement("li",{key:e.href,className:"flex items-center group",onMouseEnter:()=>d(t),onMouseLeave:()=>d(null)},t>0&&i.createElement(XP,{variant:r,size:n}),"icon"===r&&!a&&i.createElement("span",{className:"mr-1"},e.icon||i.createElement(ze,{className:he(GP[n].icon,"text-muted-foreground/80")})),i.createElement("a",{href:a?void 0:e.href,className:he("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",GP[n].text,GP[n].spacing,o?"text-primary cursor-default font-semibold":"text-muted-foreground/80 hover:text-muted-foreground",!o&&["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(),u(!0))},...!o&&{role:"link","aria-current":void 0},...o&&{"aria-current":"page"}},i.createElement("span",{className:"relative"},e.label)))})))});KP.displayName="BreadCrumb";const ZP={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"}},QP={basic:{trigger:"border border-border hover:border-primary/20",content:"border border-border"},"shadow-sm":{trigger:"shadow-lg hover:shadow-xl",content:"shadow-xl"}},JP=({text:t,className:r=""})=>{const{textRef:n,isTruncated:o}=(()=>{const t=e.useRef(null),[r,n]=e.useState(!1),o=e.useCallback(()=>{if(t.current){const e=t.current;n(e.scrollWidth>e.clientWidth)}},[]);return e.useEffect(()=>{o();const e=t.current,r=new ResizeObserver(()=>{o()});return e&&r.observe(e),window.addEventListener("resize",o),()=>{e&&r.unobserve(e),r.disconnect(),window.removeEventListener("resize",o)}},[o]),{textRef:t,isTruncated:r}})();return o?e.createElement($E,{title:t,trigger:"hover"},e.createElement("span",{ref:n,className:he("truncate block w-full max-w-full",r)},t)):e.createElement("span",{ref:n,className:he("truncate block w-full max-w-full",r)},t)},eS=e.forwardRef(({options:t,value:r,onValueChange:n,placeholder:o="",disabled:i=!1,showIcons:a=!0,size:s="medium",variant:l="basic",className:c,classNames:u,searchable:p=!1,onSearch:d},f)=>{const[m,h]=e.useState(!1),[v,y]=e.useState(-1),[g,b]=e.useState(""),[w,x]=e.useState(null),[O,E]=e.useState(""),[k,j]=e.useState(0),[P,S]=e.useState(!1),C=e.useRef(null),T=e.useRef(null),N=e.useRef(null),z=e.useRef([]),L=e.useMemo(()=>t.find(e=>e.id===r),[t,r]),M=e.useMemo(()=>ZP[s],[s]),R=e.useMemo(()=>p&&O?t.filter(e=>e.label.toLowerCase().includes(O.toLowerCase())):t,[t,p,O]);e.useEffect(()=>{if(m&&T.current){const e=T.current.getBoundingClientRect(),t=300,r=window.innerHeight-e.bottom,n=e.top;S(r<t&&n>t)}},[m]),e.useEffect(()=>()=>{w&&clearTimeout(w)},[w]),e.useEffect(()=>{const e=()=>{T.current&&j(T.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e.useEffect(()=>{m?p&&N.current&&N.current.focus():(y(-1),E(""))},[m,p]),e.useEffect(()=>{m&&v>=0&&z.current[v]&&z.current[v]?.scrollIntoView({block:"nearest"})},[m,v]),e.useEffect(()=>{const e=e=>{C.current&&!C.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e.useEffect(()=>{p&&d&&d(O)},[O,d,p]);const D=e.useCallback(e=>{n?.(e),h(!1)},[n]),A=e.useMemo(()=>{if(!l)return{trigger:"",content:""};const e=QP[l]||{trigger:"",content:""};return{trigger:e.trigger||"",content:e.content||""}},[l]),I=e.useCallback(e=>{if(!i)switch(e.key){case"ArrowDown":e.preventDefault(),m?y(e=>Math.min(e+1,R.length-1)):(h(!0),y(0));break;case"ArrowUp":e.preventDefault(),m?y(e=>Math.max(e-1,0)):(h(!0),y(R.length-1));break;case"Home":e.preventDefault(),m&&y(0);break;case"End":e.preventDefault(),m&&y(R.length-1);break;case"Enter":case" ":if(e.preventDefault(),m&&v>=0){const e=R[v];e.disabled||D(e.id)}else h(!m);break;case"Escape":e.preventDefault(),h(!1);break;default:if(!p&&1===e.key.length){const t=e.key.toLowerCase();w&&clearTimeout(w);const r=g+t;b(r);const n=R.findIndex(e=>e.label.toLowerCase().startsWith(r));n>=0&&(y(n),m||h(!0));const o=setTimeout(()=>{b("")},1e3);x(o)}}},[i,m,R,g,w,D,v,p]),B=e.useCallback((e,t,r)=>{r||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),D(t))},[D]),_=e.useCallback(e=>{E(e.target.value),y(0)},[]);return e.createElement("div",{ref:C,className:"relative max-w-full"},e.createElement("button",{type:"button",ref:e=>{"function"==typeof f?f(e):f&&(f.current=e),T.current=e},onClick:()=>!i&&h(!m),onKeyDown:I,className:he("group flex w-full items-center justify-between rounded-xl",L?"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",i&&"cursor-not-allowed opacity-50",m&&"border-primary/30 bg-primary/5 shadow-lg","max-w-full text-ellipsis whitespace-nowrap",M.trigger,A.trigger,c,u?.trigger),disabled:i,"aria-expanded":m,"aria-haspopup":"listbox","aria-controls":"dropdown-options","aria-label":o},e.createElement("div",{className:"flex items-center gap-3 min-w-0 w-full overflow-hidden"},a&&L?.icon&&e.createElement("span",{className:"text-primary/70 transition-colors duration-200 group-hover:text-primary flex-shrink-0"},e.cloneElement(L.icon,{})),e.createElement(JP,{text:L?L.label:o,className:he("font-medium",M.optionText)})),e.createElement(je,{className:he("text-primary/70 transition-all duration-300","group-hover:text-primary",m&&"rotate-180",M.icon,"flex-shrink-0 ml-2")})),e.createElement("div",{id:"dropdown-options",role:"listbox","aria-label":o,className:he("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",m?"visible scale-100 opacity-100":"invisible scale-95 opacity-0","absolute left-0","max-w-full overflow-hidden",P?"bottom-full mb-2":"top-full mt-2",A.content,u?.content),style:{width:k>0?`${k}px`:"auto",maxWidth:"100%"}},p&&e.createElement("div",{className:"sticky top-0 z-10 mb-1.5 bg-background/100 px-2 py-1.5 max-w-full"},e.createElement("div",{className:"relative max-w-full"},e.createElement(De,{className:he("absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",M.icon)}),e.createElement("input",{ref:N,type:"text",value:O,onChange:_,onClick:e=>e.stopPropagation(),placeholder:"Search...",className:he("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",M.optionText)}))),e.createElement("div",{className:"max-h-72 overflow-auto max-w-full"},0===R.length?e.createElement("div",{className:"px-3 py-2 text-sm text-muted-foreground truncate max-w-full"},"No options found"):R.map((t,n)=>e.createElement(e.Fragment,{key:t.id},e.createElement("div",{ref:e=>{z.current[n]=e},role:"option",tabIndex:m&&!t.disabled?0:-1,"aria-selected":r===t.id,onClick:()=>!t.disabled&&D(t.id),onKeyDown:e=>B(e,t.id,!!t.disabled),className:he("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",t.disabled&&"pointer-events-none opacity-50",(r===t.id||n===v)&&"bg-primary/5 border border-primary/20","max-w-full",M.option,u?.item)},a&&t.icon&&e.createElement("span",{className:he("text-primary/70 transition-colors duration-200","group-hover:text-primary","flex-shrink-0",u?.itemIcon)},e.cloneElement(t.icon)),e.createElement("div",{className:"flex flex-col gap-0.5 min-w-0 flex-grow overflow-hidden max-w-full"},e.createElement(JP,{text:t.label,className:he("font-medium leading-none","transition-colors duration-200","group-hover:text-primary",M.optionText,u?.itemText)}),t.description&&e.createElement(JP,{text:t.description,className:he("text-muted-foreground","transition-colors duration-200","group-hover:text-primary/70",M.description,u?.description)})),r===t.id&&e.createElement(ke,{className:he("ml-auto text-primary flex-shrink-0",M.icon)})),n<R.length-1&&e.createElement("div",{className:he("my-1.5 h-px bg-border/50",u?.separator)}))))))});eS.displayName="Dropdown";const tS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("rounded-xl border bg-card text-card-foreground shadow-sm",e),...t}));tS.displayName="Card";const rS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex flex-col space-y-1.5 p-6",e),...t}));rS.displayName="CardHeader";i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("font-semibold leading-none tracking-tight",e),...t})).displayName="CardTitle";i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("text-sm text-muted-foreground",e),...t})).displayName="CardDescription";const nS=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("p-6 pt-0",e),...t}));nS.displayName="CardContent";function oS({className:t,...r}){return e.createElement("div",{className:he("animate-pulse rounded-md bg-primary/10",t),...r})}i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter";const iS=({headerRows:t=2,contentRows:r=3,headerRowHeight:n="h-6",contentRowHeight:o="h-5",gridCols:i=2,gridHeight:a="h-64",className:s})=>e.createElement(tS,{className:he("overflow-hidden",s)},e.createElement(rS,{className:"border-b"},e.createElement("div",{className:"space-y-8"},Array.from({length:t}).map((t,r)=>e.createElement(oS,{key:r,className:he(n,0===r?"w-1/3":"w-2/3")})),i>0&&e.createElement("div",{className:he("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((t,r)=>e.createElement(oS,{key:r,className:a}))))),e.createElement(nS,{className:"mt-6 space-y-6"},Array.from({length:r}).map((t,r)=>e.createElement("div",{key:r,className:"flex gap-4"},e.createElement(oS,{className:he("w-5",o)}),e.createElement("div",{className:"space-y-2 flex-1"},e.createElement(oS,{className:he("w-3/4",o)}),e.createElement(oS,{className:he("w-1/2",o)})))))),aS=({rows:t=5,className:r})=>e.createElement(tS,{className:he("shadow-lg border-border",r)},e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-48"})),e.createElement(nS,null,e.createElement("div",{className:"space-y-4"},Array.from({length:t}).map((t,r)=>e.createElement(oS,{key:r,className:"h-16 w-full"}))))),sS=({className:t,rows:r=3,rowHeight:n="h-4",mainHeight:o="h-24",firstRowWidth:i="w-3/5",secondRowWidth:a="w-4/5"})=>e.createElement(tS,{className:t},e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-48"})),e.createElement(nS,{className:"space-y-4"},e.createElement(oS,{className:o}),Array.from({length:r}).map((t,r)=>e.createElement(oS,{key:r,className:he(n,0===r?i:a)})))),lS=()=>e.createElement("div",{className:"space-y-6"},e.createElement("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4"},Array.from({length:4}).map((t,r)=>e.createElement(tS,{key:r},e.createElement(rS,{className:"flex flex-row items-center justify-between pb-2"},e.createElement(oS,{className:"h-5 w-1/2"}),e.createElement(oS,{className:"h-4 w-4"})),e.createElement(nS,null,e.createElement(oS,{className:"h-8 w-full"}),e.createElement(oS,{className:"mt-4 h-4 w-3/4"}))))),e.createElement("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2"},e.createElement(tS,null,e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-40"})),e.createElement(nS,null,e.createElement(oS,{className:"h-[200px]"}))),e.createElement(tS,null,e.createElement(rS,null,e.createElement(oS,{className:"h-8 w-40"})),e.createElement(nS,null,e.createElement("div",{className:"space-y-2"},Array.from({length:5}).map((t,r)=>e.createElement("div",{key:r,className:"flex justify-between"},e.createElement(oS,{className:"h-4 w-[100px]"}),e.createElement(oS,{className:"h-4 w-[60px]"})))))))),cS=e.forwardRef(({variant:t="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:e.createElement(iS,{headerRows:l,contentRows:c,headerRowHeight:u,contentRowHeight:p,gridCols:d,gridHeight:f,className:n}),table:e.createElement(aS,{rows:r,className:n}),simple:e.createElement(sS,{className:n,rows:r,rowHeight:o,mainHeight:i,firstRowWidth:a,secondRowWidth:s}),dashboard:e.createElement(lS,null)};return e.createElement("div",{ref:h,...m},v[t])});cS.displayName="CustomSkeleton";const uS={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"}},pS={none:"",sm:"space-y-2",md:"space-y-3",lg:"space-y-4"},dS={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"},mS={none:"rounded-none",sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-3xl"},hS={"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"},vS={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"]}},yS=({title:t,description:r,children:n,variant:o="gradiant",size:i="medium",shadow:a="none",hoverEffect:s="none",borderRadius:l="lg",image:c,imagePosition:u="top",imageHeight:p,badge:d,badgePosition:f="top-right",footer:m,header:h,padding:v,spacing:y="md",width:g,height:b,maxWidth:w,className:x,contentClassName:O,titleClassName:E,descriptionClassName:k,imageClassName:j,onClick:P,href:S,interactive:C=!1,disabled:T=!1})=>{const[N,z]=e.useState(!c),L=e.useCallback(()=>{z(!0)},[]),M=vS[o],R=uS[i],D=dS[a],A=fS[s],I=mS[l],B="none"===y?"":pS[y]||R.spacing,_=hS[f],W=v||R.padding,F=p||R.imageHeight,V=C?"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":"",$=T?"opacity-60 pointer-events-none":"",H=e.useCallback(e=>{!T&&P&&P()},[T,P]),U=e.createElement(e.Fragment,null,h&&e.createElement("div",{"data-testid":"header",className:"mb-4"},h),d&&e.createElement("div",{"data-testid":"badge-wrapper",className:_},"string"==typeof d?e.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"},d):d),e.createElement("div",{className:he(B,M.content&&"default"!==o&&"p-6",O)},c&&"top"===u&&e.createElement("div",{"data-testid":"image-wrapper",className:he("relative w-full overflow-hidden",I,F,"mb-6",j)},e.createElement("div",{"data-testid":"image-container",className:he(N?"opacity-100":"opacity-0","transition-opacity duration-300")},e.createElement("img",{src:c,alt:t||"Card image",className:"h-full w-full object-cover",onLoad:L}))),t&&e.createElement("h3",{"data-testid":"title",className:he("font-semibold tracking-tight text-foreground dark:text-foreground-dark",R.titleSize,E)},t),r&&e.createElement("p",{"data-testid":"description",className:he("text-muted-foreground dark:text-muted-foreground-dark leading-relaxed",R.descSize,k)},r),n&&e.createElement("div",{className:he("mt-4")},n),m&&e.createElement("div",{"data-testid":"footer",className:"mt-6 pt-4 border-t border-border dark:border-border-dark"},m))),q=M.content?e.createElement("div",{className:M.content},U):U,Y={width:g||"auto",height:b||"auto",maxWidth:w||"none",...c&&"background"===u?{backgroundImage:`url(${c})`,backgroundSize:"cover",backgroundPosition:"center"}:{}},G=S?"a":"div",X=S?{href:S,...C?{tabIndex:0}:{}}:{},K=P?{onClick:H,role:"button",tabIndex:C&&!T?0:void 0}:{};return e.createElement(G,{...X,...K,className:he(M.wrapper,I,D,A,V,$,x),style:Y},e.createElement("div",{"data-testid":"gradient-wrapper"},M.gradients&&M.gradients.map((t,r)=>e.createElement("div",{key:r,className:t}))),M.inner?e.createElement("div",{className:he(M.inner,W)},e.createElement("div",{className:"relative"},q)):e.createElement("div",{className:he("relative",W)},q))};yS.displayName="Card";const gS={small:"h-10 w-10",medium:"h-14 w-14 md:h-20 md:w-20",large:"h-28 w-28"},bS=({variant:t="spinner",size:r="medium",className:n,ariaLabel:o="Loading",colorScheme:i})=>{const a=gS[r];return e.createElement("div",{role:"status","aria-label":o,className:he("flex items-center justify-center",n)},(()=>{switch(t){case"dots":return e.createElement("div",{className:"flex space-x-2"},[0,1,2].map(t=>e.createElement("div",{key:t,className:he("w-3 h-3 rounded-full","harford"!==i&&"bg-primary",0===t&&"animate-bounce",1===t&&"animate-bounce-delay-1",2===t&&"animate-bounce-delay-2"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"bars":return e.createElement("div",{className:"flex space-x-1 h-10 items-center"},[0,1,2,3].map(t=>e.createElement("div",{key:t,className:he("w-2 h-full rounded-full","harford"!==i&&"bg-primary",0===t&&"animate-bar-scale",1===t&&"animate-bar-scale-delay-1",2===t&&"animate-bar-scale-delay-2",3===t&&"animate-bar-scale-delay-3"),style:"harford"===i?{backgroundColor:"#043d5a"}:{}})));case"orbit":return e.createElement("div",{className:he("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)},e.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:3rem]"},e.createElement("div",{className:he("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)"}:{}},e.createElement("div",{className:he("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),e.createElement("div",{className:he("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)"}:{}})),e.createElement("div",{className:"absolute inset-0 flex items-center justify-center [--orbit-radius:4rem]"},e.createElement("div",{className:he("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)"}:{}},e.createElement("div",{className:he("absolute inset-0 rounded-full blur-xs","harford"!==i&&"bg-primary/30"),style:"harford"===i?{backgroundColor:"rgba(4, 61, 90, 0.3)"}:{}})),e.createElement("div",{className:he("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 e.createElement("div",{className:"relative"},e.createElement("div",{className:he("relative",a)},e.createElement("div",{className:he("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)"}:{}}),e.createElement("div",{className:he("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"}:{}}),e.createElement("div",{className:he("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)"}:{}}),e.createElement("div",{className:he("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)"}:{}})))}})(),e.createElement("span",{className:"sr-only"},o))};bS.displayName="Loader";var wS,xS="dismissableLayer.update",OS="dismissableLayer.pointerDownOutside",ES="dismissableLayer.focusOutside",kS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jS=i.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,p=i.useContext(kS),[d,f]=i.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=i.useState({}),v=Jy(r,e=>f(e)),y=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),w=d?y.indexOf(d):-1,x=p.layersWithOutsidePointerEventsDisabled.size>0,O=w>=b,E=function(e,t=globalThis?.document){const r=dg(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){SS(OS,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...p.branches].some(e=>e.contains(t));O&&!r&&(a?.(e),l?.(e),e.defaultPrevented||c?.())},m),k=function(e,t=globalThis?.document){const r=dg(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){SS(ES,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},m);return function(e,t=globalThis?.document){const r=dg(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===p.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),i.useEffect(()=>{if(d)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(wS=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),PS(),()=>{n&&1===p.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=wS)}},[d,m,n,p]),i.useEffect(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),PS())},[d,p]),i.useEffect(()=>{const e=()=>h({});return document.addEventListener(xS,e),()=>document.removeEventListener(xS,e)},[]),t.jsx(sg.div,{...u,ref:v,style:{pointerEvents:x?O?"auto":"none":void 0,...e.style},onFocusCapture:Ky(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ky(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ky(e.onPointerDownCapture,E.onPointerDownCapture)})});jS.displayName="DismissableLayer";function PS(){const e=new CustomEvent(xS);document.dispatchEvent(e)}function SS(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&&a.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}i.forwardRef((e,r)=>{const n=i.useContext(kS),o=i.useRef(null),a=Jy(r,o);return i.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),t.jsx(sg.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var CS="focusScope.autoFocusOnMount",TS="focusScope.autoFocusOnUnmount",NS={bubbles:!1,cancelable:!0},zS=i.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,u]=i.useState(null),p=dg(a),d=dg(s),f=i.useRef(null),m=Jy(r,e=>u(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:DS(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||DS(f.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&DS(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,c,h.paused]),i.useEffect(()=>{if(c){AS.add(h);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(CS,NS);c.addEventListener(CS,p),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(DS(n,{select:t}),document.activeElement!==r)return}((e=LS(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&DS(c))}return()=>{c.removeEventListener(CS,p),setTimeout(()=>{const e=new CustomEvent(TS,NS);c.addEventListener(TS,d),c.dispatchEvent(e),e.defaultPrevented||DS(t??document.body,{select:!0}),c.removeEventListener(TS,d),AS.remove(h)},0)}}var e},[c,p,d,h]);const v=i.useCallback(e=>{if(!n&&!o)return;if(h.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=LS(e),r=MS(t,e),n=MS(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&DS(i,{select:!0})):(e.preventDefault(),n&&DS(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return t.jsx(sg.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function LS(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 MS(e,t){for(const r of e)if(!RS(r,{upTo:t}))return r}function RS(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 DS(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()}}zS.displayName="FocusScope";var AS=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=IS(e,t),e.unshift(t)},remove(t){e=IS(e,t),e[0]?.resume()}}}();function IS(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var BS=i.forwardRef((e,n)=>{const{container:o,...a}=e,[s,l]=i.useState(!1);lg(()=>l(!0),[]);const c=o||s&&globalThis?.document?.body;return c?r.createPortal(t.jsx(sg.div,{...a,ref:n}),c):null});BS.displayName="Portal";var _S=0;function WS(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FS()),document.body.insertAdjacentElement("beforeend",e[1]??FS()),_S++,()=>{1===_S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),_S--}},[])}function FS(){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 VS=function(){return VS=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},VS.apply(this,arguments)};function $S(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 HS(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 US="right-scroll-bar-position",qS="width-before-scroll-bar";function YS(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var GS="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,XS=new WeakMap;function KS(t,r){var n,o,i,a=(n=null,o=function(e){return t.forEach(function(t){return YS(t,e)})},(i=e.useState(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return GS(function(){var e=XS.get(a);if(e){var r=new Set(e),n=new Set(t),o=a.current;r.forEach(function(e){n.has(e)||YS(e,null)}),n.forEach(function(e){r.has(e)||YS(e,o)})}XS.set(a,t)},[t]),a}function ZS(e){return e}var QS=function(e){var t=e.sideCar,r=$S(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,VS({},r))};QS.isSideCarExport=!0;var JS=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ZS);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=VS({async:!0,ssr:!1},e),t}(),eC=function(){},tC=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:eC,onWheelCapture:eC,onTouchMoveCapture:eC}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,w=e.gapMode,x=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=f,E=KS([r,t]),k=VS(VS({},x),o);return i.createElement(i.Fragment,null,p&&i.createElement(O,{sideCar:JS,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:w}),s?i.cloneElement(i.Children.only(l),VS(VS({},k),{ref:E})):i.createElement(b,VS({},k,{className:c,ref:E}),l))});tC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tC.classNames={fullWidth:qS,zeroRight:US};function rC(){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 nC=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=rC())&&(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)}}},oC=function(){var e,t=(e=nC(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},iC={left:0,top:0,right:0,gap:0},aC=function(e){return parseInt(e||"",10)||0},sC=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return iC;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[aC(r),aC(n),aC(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])}},lC=oC(),cC="data-scroll-locked",uC=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(cC,"] {\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(US," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(qS," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(US," .").concat(US," {\n right: 0 ").concat(n,";\n }\n \n .").concat(qS," .").concat(qS," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(cC,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},pC=function(){var e=parseInt(document.body.getAttribute(cC)||"0",10);return isFinite(e)?e:0},dC=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(cC,(pC()+1).toString()),function(){var e=pC()-1;e<=0?document.body.removeAttribute(cC):document.body.setAttribute(cC,e.toString())}},[]);var a=i.useMemo(function(){return sC(o)},[o]);return i.createElement(lC,{styles:uC(a,!t,o,r?"":"!important")})},fC=!1;if("undefined"!=typeof window)try{var mC=Object.defineProperty({},"passive",{get:function(){return fC=!0,!0}});window.addEventListener("test",mC,mC),window.removeEventListener("test",mC,mC)}catch(e){fC=!1}var hC=!!fC&&{passive:!1},vC=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])},yC=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),gC(e,n)){var o=bC(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},gC=function(e,t){return"v"===e?function(e){return vC(e,"overflowY")}(t):function(e){return vC(e,"overflowX")}(t)},bC=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},wC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xC=function(e){return[e.deltaX,e.deltaY]},OC=function(e){return e&&"current"in e?e.current:e},EC=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},kC=0,jC=[];function PC(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var SC,CC=(SC=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(kC++)[0],a=i.useState(oC)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=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))}([e.lockRef.current],(e.shards||[]).map(OC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=wC(e),a=r.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=yC(p,u);if(!d)return!0;if(d?o=p:(o="v"===p?"h":"v",d=yC(p,u)),!d)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var f=n.current||o;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=bC(e,a),f=d[0],m=d[1]-d[2]-o*f;(f||m)&&gC(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=i.useCallback(function(e){var r=e;if(jC.length&&jC[jC.length-1]===a){var n="deltaY"in r?xC(r):wC(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(OC).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?l(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:PC(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),p=i.useCallback(function(e){r.current=wC(e),n.current=void 0},[]),d=i.useCallback(function(t){u(t.type,xC(t),t.target,l(t,e.lockRef.current))},[]),f=i.useCallback(function(t){u(t.type,wC(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return jC.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,hC),document.addEventListener("touchmove",c,hC),document.addEventListener("touchstart",p,hC),function(){jC=jC.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,hC),document.removeEventListener("touchmove",c,hC),document.removeEventListener("touchstart",p,hC)}},[]);var m=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(a,{styles:EC(o)}):null,m?i.createElement(dC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},JS.useMedium(SC),QS),TC=i.forwardRef(function(e,t){return i.createElement(tC,VS({},e,{ref:t,sideCar:CC}))});TC.classNames=tC.classNames;var NC=new WeakMap,zC=new WeakMap,LC={},MC=0,RC=function(e){return e&&(e.host||RC(e.parentNode))},DC=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=RC(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]);LC[r]||(LC[r]=new WeakMap);var i=LC[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=(NC.get(e)||0)+1,c=(i.get(e)||0)+1;NC.set(e,l),i.set(e,c),a.push(e),1===l&&o&&zC.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(),MC++,function(){a.forEach(function(e){var t=NC.get(e)-1,o=i.get(e)-1;NC.set(e,t),i.set(e,o),t||(zC.has(e)||e.removeAttribute(n),zC.delete(e)),o||e.removeAttribute(r)}),--MC||(NC=new WeakMap,NC=new WeakMap,zC=new WeakMap,LC={})}},AC=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"))),DC(n,o,r,"aria-hidden")):function(){return null}},IC="Dialog",[BC,_C]=eg(IC),[WC,FC]=BC(IC),VC=e=>{const{__scopeDialog:r,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[p,d]=mg({prop:o,defaultProp:a??!1,onChange:s,caller:IC});return t.jsx(WC,{scope:r,triggerRef:c,contentRef:u,contentId:pg(),titleId:pg(),descriptionId:pg(),open:p,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:l,children:n})};VC.displayName=IC;var $C="DialogTrigger",HC=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC($C,n),a=Jy(r,i.triggerRef);return t.jsx(sg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":uT(i.open),...o,ref:a,onClick:Ky(e.onClick,i.onOpenToggle)})});HC.displayName=$C;var UC="DialogPortal",[qC,YC]=BC(UC,{forceMount:void 0}),GC=e=>{const{__scopeDialog:r,forceMount:n,children:o,container:a}=e,s=FC(UC,r);return t.jsx(qC,{scope:r,forceMount:n,children:i.Children.map(o,e=>t.jsx(Ig,{present:n||s.open,children:t.jsx(BS,{asChild:!0,container:a,children:e})}))})};GC.displayName=UC;var XC="DialogOverlay",KC=i.forwardRef((e,r)=>{const n=YC(XC,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=FC(XC,e.__scopeDialog);return a.modal?t.jsx(Ig,{present:o||a.open,children:t.jsx(QC,{...i,ref:r})}):null});KC.displayName=XC;var ZC=rg("DialogOverlay.RemoveScroll"),QC=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(XC,n);return t.jsx(TC,{as:ZC,allowPinchZoom:!0,shards:[i.contentRef],children:t.jsx(sg.div,{"data-state":uT(i.open),...o,ref:r,style:{pointerEvents:"auto",...o.style}})})}),JC="DialogContent",eT=i.forwardRef((e,r)=>{const n=YC(JC,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,a=FC(JC,e.__scopeDialog);return t.jsx(Ig,{present:o||a.open,children:a.modal?t.jsx(tT,{...i,ref:r}):t.jsx(rT,{...i,ref:r})})});eT.displayName=JC;var tT=i.forwardRef((e,r)=>{const n=FC(JC,e.__scopeDialog),o=i.useRef(null),a=Jy(r,n.contentRef,o);return i.useEffect(()=>{const e=o.current;if(e)return AC(e)},[]),t.jsx(nT,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ky(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ky(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:Ky(e.onFocusOutside,e=>e.preventDefault())})}),rT=i.forwardRef((e,r)=>{const n=FC(JC,e.__scopeDialog),o=i.useRef(!1),a=i.useRef(!1);return t.jsx(nT,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),nT=i.forwardRef((e,r)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,c=FC(JC,n),u=i.useRef(null),p=Jy(r,u);return WS(),t.jsxs(t.Fragment,{children:[t.jsx(zS,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:t.jsx(jS,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":uT(c.open),...l,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(mT,{titleId:c.titleId}),t.jsx(hT,{contentRef:u,descriptionId:c.descriptionId})]})]})}),oT="DialogTitle",iT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(oT,n);return t.jsx(sg.h2,{id:i.titleId,...o,ref:r})});iT.displayName=oT;var aT="DialogDescription",sT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(aT,n);return t.jsx(sg.p,{id:i.descriptionId,...o,ref:r})});sT.displayName=aT;var lT="DialogClose",cT=i.forwardRef((e,r)=>{const{__scopeDialog:n,...o}=e,i=FC(lT,n);return t.jsx(sg.button,{type:"button",...o,ref:r,onClick:Ky(e.onClick,()=>i.onOpenChange(!1))})});function uT(e){return e?"open":"closed"}cT.displayName=lT;var pT="DialogTitleWarning",[dT,fT]=function(e,r){const n=i.createContext(r),o=e=>{const{children:r,...o}=e,a=i.useMemo(()=>o,Object.values(o));return t.jsx(n.Provider,{value:a,children:r})};return o.displayName=e+"Provider",[o,function(t){const o=i.useContext(n);if(o)return o;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(pT,{contentName:JC,titleName:oT,docsSlug:"dialog"}),mT=({titleId:e})=>{const t=fT(pT),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{if(e){document.getElementById(e)||console.error(r)}},[r,e]),null},hT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fT("DialogDescriptionWarning").contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}},[r,e,t]),null},vT=VC,yT=HC,gT=GC,bT=KC,wT=eT,xT=iT,OT=sT,ET=cT;const kT=gT,jT=i.forwardRef(({className:e,...t},r)=>i.createElement(bT,{ref:r,className:he("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",e),...t}));jT.displayName=bT.displayName;i.forwardRef(({className:e,children:t,...r},n)=>i.createElement(kT,null,i.createElement(jT,null),i.createElement(wT,{ref:n,className:he("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",e),...r},t,i.createElement(ET,{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"},i.createElement(KE,{className:"h-4 w-4"}),i.createElement("span",{className:"sr-only"},"Close"))))).displayName=wT.displayName;i.forwardRef(({className:e,...t},r)=>i.createElement(xT,{ref:r,className:he("text-lg font-semibold leading-none tracking-tight",e),...t})).displayName=xT.displayName;i.forwardRef(({className:e,...t},r)=>i.createElement(OT,{ref:r,className:he("text-sm text-muted-foreground",e),...t})).displayName=OT.displayName;const PT=["top","right","bottom","left"],ST=Math.min,CT=Math.max,TT=Math.round,NT=Math.floor,zT=e=>({x:e,y:e}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},MT={start:"end",end:"start"};function RT(e,t,r){return CT(e,ST(t,r))}function DT(e,t){return"function"==typeof e?e(t):e}function AT(e){return e.split("-")[0]}function IT(e){return e.split("-")[1]}function BT(e){return"x"===e?"y":"x"}function _T(e){return"y"===e?"height":"width"}const WT=new Set(["top","bottom"]);function FT(e){return WT.has(AT(e))?"y":"x"}function VT(e){return BT(FT(e))}function $T(e){return e.replace(/start|end/g,e=>MT[e])}const HT=["left","right"],UT=["right","left"],qT=["top","bottom"],YT=["bottom","top"];function GT(e,t,r,n){const o=IT(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?UT:HT:t?HT:UT;case"left":case"right":return t?qT:YT;default:return[]}}(AT(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map($T)))),i}function XT(e){return e.replace(/left|right|bottom|top/g,e=>LT[e])}function KT(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 ZT(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 QT(e,t,r){let{reference:n,floating:o}=e;const i=FT(t),a=VT(t),s=_T(a),l=AT(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(IT(t)){case"start":f[a]-=d*(r&&c?-1:1);break;case"end":f[a]+=d*(r&&c?-1:1)}return f}async function JT(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=KT(f),h=s[d?"floating"===p?"reference":"floating":p],v=ZT(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=ZT(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 eN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tN(e){return PT.some(t=>e[t]>=0)}const rN=new Set(["left","top"]);function nN(){return"undefined"!=typeof window}function oN(e){return sN(e)?(e.nodeName||"").toLowerCase():"#document"}function iN(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function aN(e){var t;return null==(t=(sN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function sN(e){return!!nN()&&(e instanceof Node||e instanceof iN(e).Node)}function lN(e){return!!nN()&&(e instanceof Element||e instanceof iN(e).Element)}function cN(e){return!!nN()&&(e instanceof HTMLElement||e instanceof iN(e).HTMLElement)}function uN(e){return!(!nN()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof iN(e).ShadowRoot)}const pN=new Set(["inline","contents"]);function dN(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=kN(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!pN.has(o)}const fN=new Set(["table","td","th"]);function mN(e){return fN.has(oN(e))}const hN=[":popover-open",":modal"];function vN(e){return hN.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const yN=["transform","translate","scale","rotate","perspective"],gN=["transform","translate","scale","rotate","perspective","filter"],bN=["paint","layout","strict","content"];function wN(e){const t=xN(),r=lN(e)?kN(e):e;return yN.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||gN.some(e=>(r.willChange||"").includes(e))||bN.some(e=>(r.contain||"").includes(e))}function xN(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ON=new Set(["html","body","#document"]);function EN(e){return ON.has(oN(e))}function kN(e){return iN(e).getComputedStyle(e)}function jN(e){return lN(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function PN(e){if("html"===oN(e))return e;const t=e.assignedSlot||e.parentNode||uN(e)&&e.host||aN(e);return uN(t)?t.host:t}function SN(e){const t=PN(e);return EN(t)?e.ownerDocument?e.ownerDocument.body:e.body:cN(t)&&dN(t)?t:SN(t)}function CN(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=SN(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=iN(o);if(i){const e=TN(a);return t.concat(a,a.visualViewport||[],dN(o)?o:[],e&&r?CN(e):[])}return t.concat(o,CN(o,[],r))}function TN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NN(e){const t=kN(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=cN(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=TT(r)!==i||TT(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function zN(e){return lN(e)?e:e.contextElement}function LN(e){const t=zN(e);if(!cN(t))return zT(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=NN(t);let a=(i?TT(r.width):r.width)/n,s=(i?TT(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const MN=zT(0);function RN(e){const t=iN(e);return xN()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:MN}function DN(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=zN(e);let a=zT(1);t&&(n?lN(n)&&(a=LN(n)):a=LN(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==iN(e))&&t}(i,r,n)?RN(i):zT(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=iN(i),t=n&&lN(n)?iN(n):n;let r=e,o=TN(r);for(;o&&n&&t!==r;){const e=LN(o),t=o.getBoundingClientRect(),n=kN(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=iN(o),o=TN(r)}}return ZT({width:u,height:p,x:l,y:c})}function AN(e,t){const r=jN(e).scrollLeft;return t?t.left+r:DN(aN(e)).left+r}function IN(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:AN(e,n)),y:n.top+t.scrollTop}}const BN=new Set(["absolute","fixed"]);function _N(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=iN(e),n=aN(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=xN();(!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=aN(e),r=jN(e),n=e.ownerDocument.body,o=CT(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=CT(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+AN(e);const s=-r.scrollTop;return"rtl"===kN(n).direction&&(a+=CT(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(aN(e));else if(lN(t))n=function(e,t){const r=DN(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=cN(e)?LN(e):zT(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=RN(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ZT(n)}function WN(e,t){const r=PN(e);return!(r===t||!lN(r)||EN(r))&&("fixed"===kN(r).position||WN(r,t))}function FN(e,t,r){const n=cN(t),o=aN(t),i="fixed"===r,a=DN(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=zT(0);function c(){l.x=AN(o)}if(n||!n&&!i)if(("body"!==oN(t)||dN(o))&&(s=jN(t)),n){const e=DN(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?zT(0):IN(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 VN(e){return"static"===kN(e).position}function $N(e,t){if(!cN(e)||"fixed"===kN(e).position)return null;if(t)return t(e);let r=e.offsetParent;return aN(e)===r&&(r=r.ownerDocument.body),r}function HN(e,t){const r=iN(e);if(vN(e))return r;if(!cN(e)){let t=PN(e);for(;t&&!EN(t);){if(lN(t)&&!VN(t))return t;t=PN(t)}return r}let n=$N(e,t);for(;n&&mN(n)&&VN(n);)n=$N(n,t);return n&&EN(n)&&VN(n)&&!wN(n)?r:n||function(e){let t=PN(e);for(;cN(t)&&!EN(t);){if(wN(t))return t;if(vN(t))return null;t=PN(t)}return null}(e)||r}const UN={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=aN(n),s=!!t&&vN(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=zT(1);const u=zT(0),p=cN(n);if((p||!p&&!i)&&(("body"!==oN(n)||dN(a))&&(l=jN(n)),cN(n))){const e=DN(n);c=LN(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||p||i?zT(0):IN(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:aN,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?vN(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=CN(e,[],!1).filter(e=>lN(e)&&"body"!==oN(e)),o=null;const i="fixed"===kN(e).position;let a=i?PN(e):e;for(;lN(a)&&!EN(a);){const t=kN(a),r=wN(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&BN.has(o.position)||dN(a)&&!r&&WN(e,a))?n=n.filter(e=>e!==a):o=t,a=PN(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=_N(t,r,o);return e.top=CT(n.top,e.top),e.right=ST(n.right,e.right),e.bottom=ST(n.bottom,e.bottom),e.left=CT(n.left,e.left),e},_N(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:HN,getElementRects:async function(e){const t=this.getOffsetParent||HN,r=this.getDimensions,n=await r(e.floating);return{reference:FN(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}=NN(e);return{width:t,height:r}},getScale:LN,isElement:lN,isRTL:function(e){return"rtl"===kN(e).direction}};function qN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YN(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=zN(e),u=o||i?[...c?CN(c):[],...CN(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=aN(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:-NT(p)+"px "+-NT(o.clientWidth-(u+d))+"px "+-NT(o.clientHeight-(p+f))+"px "+-NT(u)+"px",threshold:CT(0,ST(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||qN(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?DN(e):null;return l&&function t(){const n=DN(e);h&&!qN(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 GN=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=AT(r),s=IT(r),l="y"===FT(r),c=rN.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}}}}},XN=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 JT(t,l),p=FT(AT(o)),d=BT(p);let f=c[d],m=c[p];if(i){const e="y"===d?"bottom":"right";f=RT(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===p?"bottom":"right";m=RT(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}}}}}},KN=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=AT(o),g=FT(s),b=AT(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(b||!h?[XT(s)]:function(e){const t=XT(e);return[$T(e),t,$T(t)]}(s)),O="none"!==m;!d&&O&&x.push(...GT(s,h,m,w));const E=[s,...x],k=await JT(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=IT(e),o=VT(e),i=_T(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=XT(a)),[a,XT(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!==FT(t))||P.every(e=>FT(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 T;const e=null==(T=P.filter(e=>{if(O){const t=FT(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:T[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},ZN=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 JT(t,c),p=AT(o),d=IT(o),f="y"===FT(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=ST(h-u[v],g),x=ST(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=CT(u.left,0),t=CT(u.right,0),r=CT(u.top,0),n=CT(u.bottom,0);f?k=m-2*(0!==e||0!==t?e+t:CT(u.left,u.right)):E=h-2*(0!==r||0!==n?r+n:CT(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}}:{}}}},QN=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=eN(await JT(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:tN(e)}}}case"escaped":{const e=eN(await JT(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:tN(e)}}}default:return{}}}}},JN=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=KT(u),d={x:r,y:n},f=VT(o),m=_T(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=ST(p[y],j),S=ST(p[g],j),C=P,T=E-h[m]-S,N=E/2-h[m]/2+k,z=RT(C,N,T),L=!l.arrow&&null!=IT(o)&&N!==z&&i.reference[m]/2-(N<C?P:S)-h[m]/2<0,M=L?N<C?N-C:N-T:0;return{[f]:d[f]+M,data:{[f]:z,centerOffset:N-z-M,...L&&{alignmentOffset:M}},reset:L}}}),ez=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=FT(o),d=BT(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=rN.has(AT(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}}}},tz=(e,t,r)=>{const n=new Map,o={platform:UN,...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}=QT(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}=QT(c,d,l))),r=-1)}return{x:u,y:p,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var rz="undefined"!=typeof document?e.useLayoutEffect:function(){};function nz(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(!nz(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)&&!nz(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function oz(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iz(e,t){const r=oz(e);return Math.round(t*r)/r}function az(e){const t=i.useRef(e);return rz(()=>{t.current=e}),t}const sz=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?JN({element:r.current,padding:n}).fn(t):{}:r?JN({element:r,padding:n}).fn(t):{};var o}}),lz=(e,t)=>({...GN(e),options:[e,t]}),cz=(e,t)=>({...XN(e),options:[e,t]}),uz=(e,t)=>({...ez(e),options:[e,t]}),pz=(e,t)=>({...KN(e),options:[e,t]}),dz=(e,t)=>({...ZN(e),options:[e,t]}),fz=(e,t)=>({...QN(e),options:[e,t]}),mz=(e,t)=>({...sz(e),options:[e,t]});var hz=i.forwardRef((e,r)=>{const{children:n,width:o=10,height:i=5,...a}=e;return t.jsx(sg.svg,{...a,ref:r,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});hz.displayName="Arrow";var vz=hz,yz="Popper",[gz,bz]=eg(yz),[wz,xz]=gz(yz),Oz=e=>{const{__scopePopper:r,children:n}=e,[o,a]=i.useState(null);return t.jsx(wz,{scope:r,anchor:o,onAnchorChange:a,children:n})};Oz.displayName=yz;var Ez="PopperAnchor",kz=i.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,s=xz(Ez,n),l=i.useRef(null),c=Jy(r,l);return i.useEffect(()=>{s.onAnchorChange(o?.current||l.current)}),o?null:t.jsx(sg.div,{...a,ref:c})});kz.displayName=Ez;var jz="PopperContent",[Pz,Sz]=gz(jz),Cz=i.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:s=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=xz(jz,n),[w,x]=i.useState(null),O=Jy(r,e=>x(e)),[E,k]=i.useState(null),j=Dg(E),P=j?.width??0,S=j?.height??0,C=o+("center"!==l?"-"+l:""),T="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],z=N.length>0,L={padding:T,boundary:N.filter(Lz),altBoundary:z},{refs:M,floatingStyles:R,placement:D,isPositioned:A,middlewareData:I}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:p}=e,[d,f]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=i.useState(n);nz(m,n)||h(n);const[v,y]=i.useState(null),[g,b]=i.useState(null),w=i.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),x=i.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),O=s||v,E=l||g,k=i.useRef(null),j=i.useRef(null),P=i.useRef(d),S=null!=u,C=az(u),T=az(o),N=az(p),z=i.useCallback(()=>{if(!k.current||!j.current)return;const e={placement:t,strategy:r,middleware:m};T.current&&(e.platform=T.current),tz(k.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};L.current&&!nz(P.current,t)&&(P.current=t,a.flushSync(()=>{f(t)}))})},[m,t,r,T,N]);rz(()=>{!1===p&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[p]);const L=i.useRef(!1);rz(()=>(L.current=!0,()=>{L.current=!1}),[]),rz(()=>{if(O&&(k.current=O),E&&(j.current=E),O&&E){if(C.current)return C.current(O,E,z);z()}},[O,E,z,C,S]);const M=i.useMemo(()=>({reference:k,floating:j,setReference:w,setFloating:x}),[w,x]),R=i.useMemo(()=>({reference:O,floating:E}),[O,E]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=iz(R.floating,d.x),n=iz(R.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...oz(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,R.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:z,refs:M,elements:R,floatingStyles:D}),[d,z,M,R,D])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>YN(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[lz({mainAxis:s+S,alignmentAxis:c}),p&&cz({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?uz():void 0,...L}),p&&pz({...L}),dz({...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`)}}),E&&mz({element:E,padding:u}),Mz({arrowWidth:P,arrowHeight:S}),h&&fz({strategy:"referenceHidden",...L})]}),[B,_]=Rz(D),W=dg(y);lg(()=>{A&&W?.()},[A,W]);const F=I.arrow?.x,V=I.arrow?.y,$=0!==I.arrow?.centerOffset,[H,U]=i.useState();return lg(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),t.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:A?R.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:e.dir,children:t.jsx(Pz,{scope:n,placedSide:B,onArrowChange:k,arrowX:F,arrowY:V,shouldHideArrow:$,children:t.jsx(sg.div,{"data-side":B,"data-align":_,...g,ref:O,style:{...g.style,animation:A?void 0:"none"}})})})});Cz.displayName=jz;var Tz="PopperArrow",Nz={top:"bottom",right:"left",bottom:"top",left:"right"},zz=i.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,i=Sz(Tz,n),a=Nz[i.placedSide];return t.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:t.jsx(vz,{...o,ref:r,style:{...o.style,display:"block"}})})});function Lz(e){return null!==e}zz.displayName=Tz;var Mz=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]=Rz(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 Rz(e){const[t,r="center"]=e.split("-");return[t,r]}var Dz=Oz,Az=kz,Iz=Cz,Bz=zz,_z="Popover",[Wz,Fz]=eg(_z,[bz]),Vz=bz(),[$z,Hz]=Wz(_z),Uz=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Vz(r),u=i.useRef(null),[p,d]=i.useState(!1),[f,m]=mg({prop:o,defaultProp:a??!1,onChange:s,caller:_z});return t.jsx(Dz,{...c,children:t.jsx($z,{scope:r,contentId:pg(),triggerRef:u,open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:l,children:n})})};Uz.displayName=_z;var qz="PopoverAnchor";i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=Hz(qz,n),s=Vz(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return i.useEffect(()=>(l(),()=>c()),[l,c]),t.jsx(Az,{...s,...o,ref:r})}).displayName=qz;var Yz="PopoverTrigger",Gz=i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Hz(Yz,n),a=Vz(n),s=Jy(r,i.triggerRef),l=t.jsx(sg.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":aL(i.open),...o,ref:s,onClick:Ky(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:t.jsx(Az,{asChild:!0,...a,children:l})});Gz.displayName=Yz;var Xz="PopoverPortal",[Kz,Zz]=Wz(Xz,{forceMount:void 0}),Qz=e=>{const{__scopePopover:r,forceMount:n,children:o,container:i}=e,a=Hz(Xz,r);return t.jsx(Kz,{scope:r,forceMount:n,children:t.jsx(Ig,{present:n||a.open,children:t.jsx(BS,{asChild:!0,container:i,children:o})})})};Qz.displayName=Xz;var Jz="PopoverContent",eL=i.forwardRef((e,r)=>{const n=Zz(Jz,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,a=Hz(Jz,e.__scopePopover);return t.jsx(Ig,{present:o||a.open,children:a.modal?t.jsx(rL,{...i,ref:r}):t.jsx(nL,{...i,ref:r})})});eL.displayName=Jz;var tL=rg("PopoverContent.RemoveScroll"),rL=i.forwardRef((e,r)=>{const n=Hz(Jz,e.__scopePopover),o=i.useRef(null),a=Jy(r,o),s=i.useRef(!1);return i.useEffect(()=>{const e=o.current;if(e)return AC(e)},[]),t.jsx(TC,{as:tL,allowPinchZoom:!0,children:t.jsx(oL,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ky(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ky(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:Ky(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nL=i.forwardRef((e,r)=>{const n=Hz(Jz,e.__scopePopover),o=i.useRef(!1),a=i.useRef(!1);return t.jsx(oL,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),oL=i.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...d}=e,f=Hz(Jz,n),m=Vz(n);return WS(),t.jsx(zS,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:t.jsx(jS,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:t.jsx(Iz,{"data-state":aL(f.open),role:"dialog",id:f.contentId,...m,...d,ref:r,style:{...d.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)"}})})})}),iL="PopoverClose";i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Hz(iL,n);return t.jsx(sg.button,{type:"button",...o,ref:r,onClick:Ky(e.onClick,()=>i.onOpenChange(!1))})}).displayName=iL;function aL(e){return e?"open":"closed"}i.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,i=Vz(n);return t.jsx(Bz,{...i,...o,ref:r})}).displayName="PopoverArrow";var sL=Uz,lL=Gz,cL=Qz,uL=eL;const pL=e.forwardRef(({type:t="single",value:r,onChange:n,placeholder:o="Select date",disabled:i=!1,minDate:a,maxDate:s,className:l,label:c,error:u,required:p=!1,clearable:d=!0,format:f="PPP",variant:m="tertiary",dataTestId:h},v)=>{const[y,g]=e.useState(!1),[b,w]=e.useState("range"!==t||!r||r instanceof Date?void 0:r);e.useEffect(()=>{"range"!==t||!r||r instanceof Date||w(r)},[r,t]);const x=e.useCallback(e=>{if(e.preventDefault(),e.stopPropagation(),"single"===t)n?.(void 0);else{const e={from:void 0,to:void 0};n?.(e),w(e)}g(!1)},[n,t]),O=e.useCallback(()=>{if(!r)return"";if("single"===t&&r instanceof Date)return lj(r,f);if("range"===t&&!(r instanceof Date)){const e=r;if(e.from){if(e.to){const t=lj(e.from,"MMM d"),r=lj(e.to,"MMM d"),n=lj(e.from,"yyyy"),o=lj(e.to,"yyyy");return n===o?`${t} - ${r}, ${n}`:`${t}, ${n} - ${r}, ${o}`}return lj(e.from,f)}}return""},[r,t,f]),E=e.useCallback(e=>{if(!e)return w(void 0),void n?.(void 0);if(e instanceof Date)return n?.(e),void g(!1);const t={from:e.from,to:e.to};!e.from||e.from&&e.to?(w(t),n?.(t),e.from&&e.to&&g(!1)):w(t)},[n]),k=e.useCallback(()=>{const o={initialFocus:!0,disabled:e=>!!i||(!!(a&&e<a)||!!(s&&e>s)),classNames:{months:he("flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0","sm:divide-x sm:divide-border"),month:he("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:he("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:he("text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]","flex items-center justify-center"),row:"flex w-full mt-2",cell:he("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:he("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:he("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"}},l=t=>e.createElement("div",{className:"relative"},t,d&&r&&e.createElement("button",{type:"button",onClick:x,className:he("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"},e.createElement(Ae,{className:"h-4 w-4"})));return l("single"===t?e.createElement(YP,{mode:"single",selected:r instanceof Date?r:void 0,onSelect:e=>{n?.(e),e&&g(!1)},...o}):e.createElement(YP,{mode:"range",selected:b,onSelect:E,numberOfMonths:2,...o}))},[t,r,n,b,E,i,a,s,d,x]);return e.createElement("div",{ref:v,className:"relative w-full","data-testid":h},c&&e.createElement("div",{className:he("mb-2 text-sm font-medium",u&&"text-destructive")},c,p&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(sL,{open:y,onOpenChange:g},e.createElement("div",{className:"relative"},e.createElement(lL,{asChild:!0},e.createElement(Be,{variant:m,className:he("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",u&&"border-destructive focus:ring-destructive","transition-all duration-200","sm:text-sm md:text-base",l),disabled:i},e.createElement("div",{className:"inline-flex items-center gap-2 w-full pr-8"},e.createElement(Ee,{className:"h-4 w-4 shrink-0"}),e.createElement("span",{className:"truncate flex-1 text-left","data-testid":"date-display"},O()||o)))),d&&r&&!y&&e.createElement("button",{type:"button",onClick:x,className:he("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"},e.createElement(Ae,{className:"h-4 w-4 hover:text-destructive transition-colors"}))),e.createElement(cL,null,e.createElement(uL,{className:he("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"===t?"sm:min-w-[600px]":"sm:min-w-[320px]","max-w-[95vw]"),align:"start",sideOffset:4},e.createElement("div",{className:"w-full overflow-hidden"},e.createElement("div",{className:he("w-full","range"===t&&"overflow-x-auto")},k()))))),u&&e.createElement("p",{className:"mt-2 text-sm text-destructive"},u))});pL.displayName="DatePicker";const dL=e.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}),fL=()=>{const t=e.useContext(dL);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};function mL(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function hL(){return yL(/^iPad/)||yL(/^Mac/)&&navigator.maxTouchPoints>1}function vL(){return yL(/^iPhone/)||hL()}function yL(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 gL="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function bL(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}const wL="undefined"!=typeof document&&window.visualViewport;function xL(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function OL(e){for(xL(e)&&(e=e.parentElement);e&&!xL(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const EL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let kL,jL=0;function PL(e={}){let{isDisabled:t}=e;gL(()=>{if(!t)return jL++,1===jL&&vL()&&(kL=function(){let e,t=0,r=r=>{e=OL(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;TL(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},i=e=>{let t=e.target;TL(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",wL&&(wL.height<window.innerHeight?requestAnimationFrame(()=>{CL(t)}):wL.addEventListener("resize",()=>CL(t),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=bL(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=bL(SL(document,"touchstart",r,{passive:!1,capture:!0}),SL(document,"touchmove",n,{passive:!1,capture:!0}),SL(document,"touchend",o,{passive:!1,capture:!0}),SL(document,"focus",i,!0),SL(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}()),()=>{jL--,0===jL&&(null==kL||kL())}},[t])}function SL(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function CL(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=OL(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 TL(e){return e instanceof HTMLInputElement&&!EL.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function NL(...e){return i.useCallback(function(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}(...e),e)}const zL=new WeakMap;function LL(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||zL.set(e,n)}const ML=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function RL(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(", ")[ML(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ML(t)?5:4]):null)}function DL(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}const AL={DURATION:.5,EASE:[.32,.72,0,1]},IL=16,BL="vaul-dragging";function _L(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>null==r.current?void 0:r.current.call(r,...e),[])}function WL({prop:t,defaultProp:r,onChange:n=()=>{}}){const[o,i]=function({defaultProp:t,onChange:r}){const n=e.useState(t),[o]=n,i=e.useRef(o),a=_L(r);return e.useEffect(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:r,onChange:n}),a=void 0!==t,s=a?t:o,l=_L(n),c=e.useCallback(e=>{if(a){const r="function"==typeof e?e(t):e;r!==t&&l(r)}else i(e)},[a,t,i,l]);return[s,c]}let FL=null;const VL=e.forwardRef(function({...t},r){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:a,isOpen:s,modal:l,shouldAnimate:c}=fL(),u=NL(r,n),p=o&&o.length>0;if(!l)return null;const d=e.useCallback(e=>i(e),[i]);return e.createElement(bT,{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",...t})});VL.displayName="Drawer.Overlay";const $L=e.forwardRef(function({onPointerDownOutside:t,style:r,onOpenAutoFocus:n,...o},i){const{drawerRef:a,onPress:s,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:p,activeSnapPointIndex:d,modal:f,isOpen:m,direction:h,snapPoints:v,container:y,handleOnly:g,shouldAnimate:b,autoFocus:w}=fL(),[x,O]=e.useState(!1),E=NL(i,a),k=e.useRef(null),j=e.useRef(null),P=e.useRef(!1),S=v&&v.length>0;!function(){const{direction:t,isOpen:r,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=fL(),a=e.useRef(null),s=e.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-26)/window.innerWidth}e.useEffect(()=>{if(r&&n){a.current&&clearTimeout(a.current);const e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;o&&!i&&DL(document.body,{background:"black"}),DL(e,{transformOrigin:ML(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${AL.DURATION}s`,transitionTimingFunction:`cubic-bezier(${AL.EASE.join(",")})`});const r=DL(e,{borderRadius:"8px",overflow:"hidden",...ML(t)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{r(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},1e3*AL.DURATION)}}},[r,n,s])}();function C(e){k.current=null,P.current=!1,l(e)}return e.useEffect(()=>{S&&window.requestAnimationFrame(()=>{O(!0)})},[]),e.createElement(wT,{"data-vaul-drawer-direction":h,"data-vaul-drawer":"","data-vaul-delayed-snap-points":x?"true":"false","data-vaul-snap-points":m&&S?"true":"false","data-vaul-custom-container":y?"true":"false","data-vaul-animate":(null==b?void 0:b.current)?"true":"false",...o,ref:E,style:p&&p.length>0?{"--snap-point-height":`${p[null!=d?d:0]}px`,...r}:r,onPointerDown:e=>{g||(null==o.onPointerDown||o.onPointerDown.call(o,e),k.current={x:e.pageX,y:e.pageY},s(e))},onOpenAutoFocus:e=>{null==n||n(e),w||e.preventDefault()},onPointerDownOutside:e=>{null==t||t(e),f&&!e.defaultPrevented?u.current&&(u.current=!1):e.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(j.current=e,g)return;if(null==o.onPointerMove||o.onPointerMove.call(o,e),!k.current)return;const t=e.pageY-k.current.y,r=e.pageX-k.current.x,n="touch"===e.pointerType?10:2,i=((e,t,r=0)=>{if(P.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 P.current=!0,!0})({x:r,y:t},h,n);i?c(e):(Math.abs(r)>n||Math.abs(t)>n)&&(k.current=null)},onPointerUp:e=>{null==o.onPointerUp||o.onPointerUp.call(o,e),k.current=null,P.current=!1,l(e)},onPointerOut:e=>{null==o.onPointerOut||o.onPointerOut.call(o,e),C(j.current)},onContextMenu:e=>{null==o.onContextMenu||o.onContextMenu.call(o,e),j.current&&C(j.current)}})});$L.displayName="Drawer.Content";const HL=e.forwardRef(function({preventCycle:t=!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}=fL(),h=e.useRef(null),v=e.useRef(!1);function y(){h.current&&window.clearTimeout(h.current),v.current=!1}return e.createElement("div",{onClick:function(){v.current?y():window.setTimeout(()=>{!function(){if(a||t||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 e=s.findIndex(e=>e===l);if(-1===e)return;const r=s[e+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},e.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});HL.displayName="Drawer.Handle";const UL={Root:function({open:t,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:T=!1}){var N,z;const[L=!1,M]=WL({defaultProp:O,prop:t,onChange:e=>{null==r||r(e),e||b||ue(),setTimeout(()=>{null==S||S(e)},1e3*AL.DURATION),e&&!y&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[R,D]=e.useState(!1),[A,I]=e.useState(!1),[B,_]=e.useState(!1),W=e.useRef(null),F=e.useRef(null),V=e.useRef(null),$=e.useRef(null),H=e.useRef(null),U=e.useRef(!1),q=e.useRef(null),Y=e.useRef(0),G=e.useRef(!1),X=e.useRef(!O),K=e.useRef(0),Z=e.useRef(null),Q=e.useRef((null==(N=Z.current)?void 0:N.getBoundingClientRect().height)||0),J=e.useRef((null==(z=Z.current)?void 0:z.getBoundingClientRect().width)||0),ee=e.useRef(0),te=e.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:t,setActiveSnapPointProp:r,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[p,d]=WL({prop:t,defaultProp:null==n?void 0:n[0],onChange:r}),[f,m]=e.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);e.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const h=e.useMemo(()=>p===(null==n?void 0:n[n.length-1])||null,[n,p]),v=e.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=e.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)),ML(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=e.useMemo(()=>null!==v?null==g?void 0:g[v]:null,[g,v]),w=e.useCallback(e=>{var t;const r=null!=(t=null==g?void 0:g.findIndex(t=>t===e))?t:null;s(r),LL(o.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&r!==g.length-1&&void 0!==a&&r!==a&&r<a?LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"0"}):LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(r,0)])},[o.current,n,g,a,i,d]);return e.useEffect(()=>{if(p||t){var e;const r=null!=(e=null==n?void 0:n.findIndex(e=>e===t||e===p))?e:-1;g&&-1!==r&&"number"==typeof g[r]&&w(g[r])}},[p,t,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&&LL(i.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.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=ML(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]||LL(o.current,{transform:ML(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});PL({isDisabled:!L||A||!y||B||!R||!P||!E});const{restorePositionSetting:ue}=function({isOpen:t,modal:r,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:a}){const[s,l]=e.useState(()=>"undefined"!=typeof window?window.location.href:""),c=e.useRef(0),u=e.useCallback(()=>{if(mL()&&null===FL&&t&&!a){FL={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)}},[t]),p=e.useCallback(()=>{if(mL()&&null!==FL&&!a){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,FL),window.requestAnimationFrame(()=>{i&&s!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),FL=null}},[s]);return e.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),e.useEffect(()=>{if(r)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||p())}},[r,p]),e.useEffect(()=>{!n&&o&&(t?(!window.matchMedia("(display-mode: standalone)").matches&&u(),r||window.setTimeout(()=>{p()},500)):p())},[t,o,s,r,n,u,p]),{restorePositionSetting:p}}({isOpen:L,modal:y,nested:null!=b&&b,hasBeenOpened:R,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?RL(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(!A||!Z.current)return;Z.current.classList.remove(BL),U.current=!1,I(!1),$.current=new Date}(),null==g||g(),e||M(!1),setTimeout(()=>{a&&oe(a[0])},1e3*AL.DURATION)}function me(){if(!Z.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=RL(Z.current,x);LL(Z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`}),LL(W.current,{transition:`opacity ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,opacity:"1"}),s&&t&&t>0&&L&&LL(e,{borderRadius:"8px",overflow:"hidden",...ML(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:`${AL.DURATION}s`,transitionTimingFunction:`cubic-bezier(${AL.EASE.join(",")})`},!0)}return e.useEffect(()=>{window.requestAnimationFrame(()=>{X.current=!0})},[]),e.useEffect(()=>{var e;function t(){if(!Z.current||!P)return;if(TL(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]),e.useEffect(()=>(L&&(LL(document.documentElement,{scrollBehavior:"auto"}),F.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let r=zL.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[L]),e.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]),e.createElement(vT,{defaultOpen:O,onOpenChange:e=>{(p||e)&&(e?D(!0):fe(!0),M(e))},open:L},e.createElement(dL.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,vL()&&window.addEventListener("touchend",()=>U.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),Y.current=ML(x)?e.pageY:e.pageX))},onRelease:function(e){if(!A||!Z.current)return;Z.current.classList.remove(BL),U.current=!1,I(!1),$.current=new Date;const t=RL(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-(ML(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&&A){const r="bottom"===x||"right"===x?1:-1,n=(Y.current-(ML(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(!U.current&&!de(e.target,i))return;if(Z.current.classList.add(BL),U.current=!0,LL(Z.current,{transition:"none"}),LL(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 LL(Z.current,{transform:ML(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),LL(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);LL(u,{borderRadius:`${t}px`,transform:ML(x)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!a){const e=c*r;LL(Z.current,{transform:ML(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:p,shouldAnimate:X,handleOnly:d,isOpen:L,isDragging:A,shouldFade:le,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const r=(window.innerWidth-IL)/window.innerWidth,n=r+t*(1-r),o=t*IL-16;LL(Z.current,{transform:ML(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-IL)/window.innerWidth:1,r=e?-16:0;q.current&&window.clearTimeout(q.current),LL(Z.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(x)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&Z.current&&(q.current=setTimeout(()=>{const e=RL(Z.current,x);LL(Z.current,{transition:"none",transform:ML(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){const r=ML(x)?window.innerHeight:window.innerWidth,n=t?(r-IL)/r:1,o=t?-16:0;t&&LL(Z.current,{transition:`transform ${AL.DURATION}s cubic-bezier(${AL.EASE.join(",")})`,transform:ML(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:T}},n))},Content:$L,Overlay:VL,Portal:function(t){const r=fL(),{container:n=r.container,...o}=t;return e.createElement(gT,{container:n,...o})},Title:xT,Description:OT},qL=({shouldScaleBackground:e=!0,...t})=>i.createElement(UL.Root,{shouldScaleBackground:e,...t});qL.displayName="Drawer";const YL=UL.Portal,GL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Overlay,{ref:r,className:he("fixed inset-0 z-50 bg-black/80",e),...t}));GL.displayName=UL.Overlay.displayName;const XL=i.forwardRef(({className:e,children:t,...r},n)=>i.createElement(YL,null,i.createElement(GL,null),i.createElement(UL.Content,{ref:n,className:he("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r},i.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t)));XL.displayName="DrawerContent";const KL=({className:e,...t})=>i.createElement("div",{className:he("grid gap-1.5 p-4 text-center sm:text-left",e),...t});KL.displayName="DrawerHeader";const ZL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Title,{ref:r,className:he("text-lg font-semibold leading-none tracking-tight",e),...t}));ZL.displayName=UL.Title.displayName;const QL=i.forwardRef(({className:e,...t},r)=>i.createElement(UL.Description,{ref:r,className:he("text-sm text-muted-foreground",e),...t}));QL.displayName=UL.Description.displayName;const JL={small:"h-64",medium:"h-80",large:"h-96",extraLarge:"h-[448px]",full:"h-screen"},eM=e.createContext({});const tM="undefined"!=typeof window,rM=tM?e.useLayoutEffect:e.useEffect,nM=e.createContext(null);function oM(e,t){-1===e.indexOf(t)&&e.push(t)}function iM(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const aM=(e,t,r)=>r>t?t:r<e?e:r;function sM(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let lM=()=>{},cM=()=>{};"production"!==process.env.NODE_ENV&&(lM=(e,t,r)=>{e||"undefined"==typeof console||console.warn(sM(t,r))},cM=(e,t,r)=>{if(!e)throw new Error(sM(t,r))});const uM={},pM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dM(e){return"object"==typeof e&&null!==e}const fM=e=>/^0[^.\s]+$/u.test(e);function mM(e){let t;return()=>(void 0===t&&(t=e()),t)}const hM=e=>e,vM=(e,t)=>r=>t(e(r)),yM=(...e)=>e.reduce(vM),gM=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n};class bM{constructor(){this.subscriptions=[]}add(e){return oM(this.subscriptions,e),()=>iM(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 wM=e=>1e3*e,xM=e=>e/1e3;function OM(e,t){return t?e*(1e3/t):0}const EM=new Set;function kM(e,t,r){e||EM.has(t)||(console.warn(sM(t,r)),EM.add(t))}const jM=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function PM(e,t,r,n){if(e===t&&r===n)return hM;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=jM(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:jM(o(e),t,n)}const SM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CM=e=>t=>1-e(1-t),TM=PM(.33,1.53,.69,.99),NM=CM(TM),zM=SM(NM),LM=e=>(e*=2)<1?.5*NM(e):.5*(2-Math.pow(2,-10*(e-1))),MM=e=>1-Math.sin(Math.acos(e)),RM=CM(MM),DM=SM(MM),AM=PM(.42,0,1,1),IM=PM(0,0,.58,1),BM=PM(.42,0,.58,1),_M=e=>Array.isArray(e)&&"number"==typeof e[0],WM={linear:hM,easeIn:AM,easeInOut:BM,easeOut:IM,circIn:MM,circInOut:DM,circOut:RM,backIn:NM,backInOut:zM,backOut:TM,anticipate:LM},FM=e=>{if(_M(e)){cM(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return PM(t,r,n,o)}return"string"==typeof e?(cM(void 0!==WM[e],`Invalid easing type '${e}'`,"invalid-easing-type"),WM[e]):e},VM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $M(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=VM.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=uM.useManualTiming?o.timestamp:performance.now();r=!1,uM.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:VM.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<VM.length;t++)a[VM[t]].cancel(e)},state:o,steps:a}}const{schedule:HM,cancel:UM,state:qM,steps:YM}=$M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:hM,!0);let GM;function XM(){GM=void 0}const KM={now:()=>(void 0===GM&&KM.set(qM.isProcessing||uM.useManualTiming?qM.timestamp:performance.now()),GM),set:e=>{GM=e,queueMicrotask(XM)}},ZM=e=>t=>"string"==typeof t&&t.startsWith(e),QM=ZM("--"),JM=ZM("var(--"),eR=e=>!!JM(e)&&tR.test(e.split("/*")[0].trim()),tR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rR={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nR={...rR,transform:e=>aM(0,1,e)},oR={...rR,default:1},iR=e=>Math.round(1e5*e)/1e5,aR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const sR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lR=(e,t)=>r=>Boolean("string"==typeof r&&sR.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),cR=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(aR);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},uR={...rR,transform:e=>Math.round((e=>aM(0,255,e))(e))},pR={test:lR("rgb","red"),parse:cR("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+uR.transform(e)+", "+uR.transform(t)+", "+uR.transform(r)+", "+iR(nR.transform(n))+")"};const dR={test:lR("#"),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:pR.transform},fR=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),mR=fR("deg"),hR=fR("%"),vR=fR("px"),yR=fR("vh"),gR=fR("vw"),bR=(()=>({...hR,parse:e=>hR.parse(e)/100,transform:e=>hR.transform(100*e)}))(),wR={test:lR("hsl","hue"),parse:cR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+hR.transform(iR(t))+", "+hR.transform(iR(r))+", "+iR(nR.transform(n))+")"},xR={test:e=>pR.test(e)||dR.test(e)||wR.test(e),parse:e=>pR.test(e)?pR.parse(e):wR.test(e)?wR.parse(e):dR.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?pR.transform(e):wR.transform(e),getAnimatableNone:e=>{const t=xR.parse(e);return t.alpha=0,xR.transform(t)}},OR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const ER="number",kR="color",jR=/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 PR(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(jR,e=>(xR.test(e)?(n.color.push(i),o.push(kR),r.push(xR.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(ER),r.push(parseFloat(e))),++i,"${}")).split("${}");return{values:r,split:a,indexes:n,types:o}}function SR(e){return PR(e).values}function CR(e){const{split:t,types:r}=PR(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===ER?iR(e[i]):t===kR?xR.transform(e[i]):e[i]}return o}}const TR=e=>"number"==typeof e?0:xR.test(e)?xR.getAnimatableNone(e):e;const NR={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(aR)?.length||0)+(e.match(OR)?.length||0)>0},parse:SR,createTransformer:CR,getAnimatableNone:function(e){const t=SR(e);return CR(e)(t.map(TR))}};function zR(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 LR(e,t){return r=>r>0?t:e}const MR=(e,t,r)=>e+(t-e)*r,RR=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},DR=[dR,pR,wR];function AR(e){const t=(r=e,DR.find(e=>e.test(r)));var r;if(lM(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===wR&&(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=zR(s,n,e+1/3),i=zR(s,n,e),a=zR(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 IR=(e,t)=>{const r=AR(e),n=AR(t);if(!r||!n)return LR(e,t);const o={...r};return e=>(o.red=RR(r.red,n.red,e),o.green=RR(r.green,n.green,e),o.blue=RR(r.blue,n.blue,e),o.alpha=MR(r.alpha,n.alpha,e),pR.transform(o))},BR=new Set(["none","hidden"]);function _R(e,t){return r=>MR(e,t,r)}function WR(e){return"number"==typeof e?_R:"string"==typeof e?eR(e)?LR:xR.test(e)?IR:$R:Array.isArray(e)?FR:"object"==typeof e?xR.test(e)?IR:VR:LR}function FR(e,t){const r=[...e],n=r.length,o=e.map((e,r)=>WR(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function VR(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=WR(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const $R=(e,t)=>{const r=NR.createTransformer(t),n=PR(e),o=PR(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?BR.has(e)&&!o.values.length||BR.has(t)&&!n.values.length?function(e,t){return BR.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):yM(FR(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):(lM(!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"),LR(e,t))};function HR(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return MR(e,t,r);return WR(e)(e,t)}const UR=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>HM.update(t,e),stop:()=>UM(t),now:()=>qM.isProcessing?qM.timestamp:KM.now()}},qR=(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)})`},YR=2e4;function GR(e){let t=0;let r=e.next(t);for(;!r.done&&t<YR;)t+=50,r=e.next(t);return t>=YR?1/0:t}function XR(e,t,r){const n=Math.max(t-5,0);return OM(r-e(n),t-n)}const KR=100,ZR=10,QR=1,JR=0,eD=800,tD=.3,rD=.3,nD={granular:.01,default:2},oD={granular:.005,default:.5},iD=.01,aD=10,sD=.05,lD=1,cD=.001;function uD({duration:e=eD,bounce:t=tD,velocity:r=JR,mass:n=QR}){let o,i;lM(e<=wM(aD),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=aM(sD,lD,a),e=aM(iD,aD,xM(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=dD(t,a),l=Math.exp(-o);return cD-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=dD(Math.pow(t,2),a);return(-o(t)+cD>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<pD;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=wM(e),isNaN(s))return{stiffness:KR,damping:ZR,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const pD=12;function dD(e,t){return e*Math.sqrt(1-t*t)}const fD=["duration","bounce"],mD=["stiffness","damping","mass"];function hD(e,t){return t.some(t=>void 0!==e[t])}function vD(e=rD,t=tD){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:JR,stiffness:KR,damping:ZR,mass:QR,isResolvedFromDuration:!1,...e};if(!hD(e,mD)&&hD(e,fD))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*aM(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:QR,stiffness:o,damping:i}}else{const r=uD(e);t={...t,...r,mass:QR},t.isResolvedFromDuration=!0}return t}({...r,velocity:-xM(r.velocity||0)}),m=d||0,h=c/(2*Math.sqrt(l*u)),v=a-i,y=xM(Math.sqrt(l/u)),g=Math.abs(v)<5;let b;if(n||(n=g?nD.granular:nD.default),o||(o=g?oD.granular:oD.default),h<1){const e=dD(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?wM(m):XR(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(GR(w),YR),t=qR(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function yD({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=vD({keyframes:[d.value,f(d.value)],velocity:XR(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 gD(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(cM(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||uM.mix||HR,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]||hM:t;i=yM(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=gM(e[n],e[n+1],r);return s[n](o)};return r?t=>c(aM(e[0],e[i-1],t)):c}function bD(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=gM(0,t,n);e.push(MR(r,1,o))}}(t,e.length-1),t}function wD({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(FM):FM(n),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:bD(t),e),s=gD(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||BM).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}vD.applyToOptions=e=>{const t=function(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(GR(n),YR);return{type:"keyframes",ease:e=>n.next(o*e).value/t,duration:xM(o)}}(e,100,vD);return e.ease=t.ease,e.duration=wM(t.duration),e.type="keyframes",e};const xD=e=>null!==e;function OD(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(xD),a=o<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return a&&void 0!==n?n:i[a]}const ED={decay:yD,inertia:yD,tween:wD,keyframes:wD,spring:vD};function kD(e){"string"==typeof e.type&&(e.type=ED[e.type])}class jD{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 PD=e=>e/100;class SD extends jD{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!==KM.now()&&this.tick(KM.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;kD(e);const{type:t=wD,repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||wD;"production"!==process.env.NODE_ENV&&s!==wD&&cM(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),s!==wD&&"number"!=typeof a[0]&&(this.mixKeyframes=yM(PD,HR(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=GR(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=aM(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!==yD&&(w.value=OD(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 xM(this.calculatedDuration)}get time(){return xM(this.currentTime)}set time(e){e=wM(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(KM.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=xM(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=UR,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(KM.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 CD=e=>180*e/Math.PI,TD=e=>{const t=CD(Math.atan2(e[1],e[0]));return zD(t)},ND={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:TD,rotateZ:TD,skewX:e=>CD(Math.atan(e[1])),skewY:e=>CD(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zD=e=>((e%=360)<0&&(e+=360),e),LD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),MD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),RD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:LD,scaleY:MD,scale:e=>(LD(e)+MD(e))/2,rotateX:e=>zD(CD(Math.atan2(e[6],e[5]))),rotateY:e=>zD(CD(Math.atan2(-e[2],e[0]))),rotateZ:TD,rotate:TD,skewX:e=>CD(Math.atan(e[4])),skewY:e=>CD(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function DD(e){return e.includes("scale")?1:0}function AD(e,t){if(!e||"none"===e)return DD(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=RD,o=r;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ND,o=t}if(!o)return DD(t);const i=n[t],a=o[1].split(",").map(ID);return"function"==typeof i?i(a):a[i]}function ID(e){return parseFloat(e.trim())}const BD=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_D=(()=>new Set(BD))(),WD=e=>e===rR||e===vR,FD=new Set(["x","y","z"]),VD=BD.filter(e=>!FD.has(e));const $D={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})=>AD(t,"x"),y:(e,{transform:t})=>AD(t,"y")};$D.translateX=$D.x,$D.translateY=$D.y;const HD=new Set;let UD=!1,qD=!1,YD=!1;function GD(){if(qD){const e=Array.from(HD).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 VD.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)})}qD=!1,UD=!1,HD.forEach(e=>e.complete(YD)),HD.clear()}function XD(){HD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qD=!0)})}class KD{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?(HD.add(this),UD||(UD=!0,HM.read(XD),HM.resolveKeyframes(GD))):(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),HD.delete(this)}cancel(){"scheduled"===this.state&&(HD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const ZD=mM(()=>void 0!==window.ScrollTimeline),QD={};function JD(e,t){const r=mM(e);return()=>QD[t]??r()}const eA=JD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tA=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tA([0,.65,.55,1]),circOut:tA([.55,0,1,.45]),backIn:tA([.31,.01,.66,-.59]),backOut:tA([.33,1.53,.69,.99])};function nA(e,t){return e?"function"==typeof e?eA()?qR(e,t):"ease-out":_M(e)?tA(e):Array.isArray(e)?e.map(e=>nA(e,t)||rA.easeOut):rA[e]:void 0}function oA(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=nA(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 iA(e){return"function"==typeof e&&"applyToOptions"in e}class aA extends jD{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,cM("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return iA(e)&&eA()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=oA(t,r,n,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=OD(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 xM(Number(e))}get time(){return xM(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=wM(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&&ZD()?(this.animation.timeline=e,hM):t(this)}}const sA={anticipate:LM,backInOut:zM,circInOut:DM};function lA(e){"string"==typeof e.ease&&e.ease in sA&&(e.ease=sA[e.ease])}class cA extends aA{constructor(e){lA(e),kD(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 SD({...i,autoplay:!1}),s=wM(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}const uA=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!NR.test(e)&&"0"!==e||e.startsWith("url(")));function pA(e){e.duration=0,e.type}const dA=new Set(["opacity","clipPath","filter","transform"]),fA=mM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class mA extends jD{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=KM.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||KD;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=KM.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=uA(o,t),s=uA(i,t);return lM(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||iA(r))&&n)}(e,o,i,a)||(!uM.instantAnimations&&s||c?.(OD(e,r,t)),e[0]=e[e.length-1],pA(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 fA()&&r&&dA.has(r)&&("transform"!==r||!c)&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}(u)?new cA({...u,element:u.motionValue.owner.current}):new SD(u);p.finished.then(()=>this.notifyFinished()).catch(hM),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(),YD=!0,XD(),GD(),YD=!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 hA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vA(e,t,r=1){cM(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=hA.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 pM(e)?parseFloat(e):e}return eR(o)?vA(o,t,r+1):o}function yA(e,t){return e?.[t]??e?.default??e}const gA=new Set(["width","height","top","left","right","bottom",...BD]),bA=e=>t=>t.test(e),wA=[rR,vR,hR,mR,gR,yR,{test:e=>"auto"===e,parse:e=>e}],xA=e=>wA.find(bA(e));function OA(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||fM(e))}const EA=new Set(["brightness","contrast","saturate","opacity"]);function kA(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(aR)||[];if(!n)return e;const o=r.replace(n,"");let i=EA.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const jA=/\b([a-z-]*)\(.*?\)/gu,PA={...NR,getAnimatableNone:e=>{const t=e.match(jA);return t?t.map(kA).join(" "):e}},SA={...rR,transform:Math.round},CA={borderWidth:vR,borderTopWidth:vR,borderRightWidth:vR,borderBottomWidth:vR,borderLeftWidth:vR,borderRadius:vR,radius:vR,borderTopLeftRadius:vR,borderTopRightRadius:vR,borderBottomRightRadius:vR,borderBottomLeftRadius:vR,width:vR,maxWidth:vR,height:vR,maxHeight:vR,top:vR,right:vR,bottom:vR,left:vR,padding:vR,paddingTop:vR,paddingRight:vR,paddingBottom:vR,paddingLeft:vR,margin:vR,marginTop:vR,marginRight:vR,marginBottom:vR,marginLeft:vR,backgroundPositionX:vR,backgroundPositionY:vR,...{rotate:mR,rotateX:mR,rotateY:mR,rotateZ:mR,scale:oR,scaleX:oR,scaleY:oR,scaleZ:oR,skew:mR,skewX:mR,skewY:mR,distance:vR,translateX:vR,translateY:vR,translateZ:vR,x:vR,y:vR,z:vR,perspective:vR,transformPerspective:vR,opacity:nR,originX:bR,originY:bR,originZ:vR},zIndex:SA,fillOpacity:nR,strokeOpacity:nR,numOctaves:SA},TA={...CA,color:xR,backgroundColor:xR,outlineColor:xR,fill:xR,stroke:xR,borderColor:xR,borderTopColor:xR,borderRightColor:xR,borderBottomColor:xR,borderLeftColor:xR,filter:PA,WebkitFilter:PA},NA=e=>TA[e];function zA(e,t){let r=NA(e);return r!==PA&&(r=NR),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const LA=new Set(["auto","none","0"]);class MA extends KD{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(),eR(n))){const o=vA(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!gA.has(r)||2!==e.length)return;const[n,o]=e,i=xA(n),a=xA(o);if(i!==a)if(WD(i)&&WD(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else $D[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||OA(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&&!LA.has(t)&&PR(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=zA(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=$D[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]=$D[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 RA=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class DA{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=KM.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=KM.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&&kM(!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 bM);const r=this.events[e].add(t);return"change"===e?()=>{r(),HM.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=KM.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return OM(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 AA(e,t){return new DA(e,t)}const{schedule:IA}=$M(queueMicrotask,!1),BA={x:!1,y:!1};function _A(){return BA.x||BA.y}function WA(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 FA(e){return!("touch"===e.pointerType||_A())}const VA=(e,t)=>!!t&&(e===t||VA(e,t.parentElement)),$A=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,HA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const UA=new WeakSet;function qA(e){return t=>{"Enter"===t.key&&e(t)}}function YA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function GA(e){return $A(e)&&!_A()}function XA(e,t,r={}){const[n,o,i]=WA(e,r),a=e=>{const n=e.currentTarget;if(!GA(e))return;UA.add(n);const i=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),UA.has(n)&&UA.delete(n),GA(e)&&"function"==typeof i&&i(e,{success:t})},s=e=>{a(e,n===window||n===document||r.useGlobalTarget||VA(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),dM(t=e)&&"offsetHeight"in t&&(e.addEventListener("focus",e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=qA(()=>{if(UA.has(r))return;YA(r,"down");const e=qA(()=>{YA(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>YA(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,o)),function(e){return HA.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function KA(e){return dM(e)&&"ownerSVGElement"in e}const ZA=e=>Boolean(e&&e.getVelocity),QA=[...wA,xR,NR],JA=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});const eI=e.createContext({strict:!1}),tI={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"]},rI={};for(const e in tI)rI[e]={isEnabled:t=>tI[e].some(e=>!!t[e])};const nI=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 oI(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nI.has(e)}let iI=e=>!oI(e);try{"function"==typeof(aI=require("@emotion/is-prop-valid").default)&&(iI=e=>e.startsWith("on")?!oI(e):aI(e))}catch{}var aI;const sI=e.createContext({});function lI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cI(e){return"string"==typeof e||Array.isArray(e)}const uI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pI=["initial",...uI];function dI(e){return lI(e.animate)||pI.some(t=>cI(e[t]))}function fI(e){return Boolean(dI(e)||e.variants)}function mI(t){const{initial:r,animate:n}=function(e,t){if(dI(e)){const{initial:t,animate:r}=e;return{initial:!1===t||cI(t)?t:void 0,animate:cI(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(sI));return e.useMemo(()=>({initial:r,animate:n}),[hI(r),hI(n)])}function hI(e){return Array.isArray(e)?e.join(" "):e}const vI={};function yI(e,{layout:t,layoutId:r}){return _D.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!vI[e]||"opacity"===e)}const gI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bI=BD.length;function wI(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(_D.has(e))a=!0;else if(QM(e))o[e]=r;else{const t=RA(r,CA[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<bI;i++){const a=BD[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=RA(s,CA[a]);l||(o=!1,n+=`${gI[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 xI=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function OI(e,t,r){for(const n in t)ZA(t[n])||yI(n,r)||(e[n]=t[n])}function EI(t,r){const n={};return OI(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},r){return e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return wI(e,r,t),Object.assign({},e.vars,e.style)},[r])}(t,r)),n}function kI(e,t){const r={},n=EI(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 jI={offset:"stroke-dashoffset",array:"stroke-dasharray"},PI={offset:"strokeDashoffset",array:"strokeDasharray"};function SI(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(wI(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?jI:PI;e[i.offset]=vR.transform(-n);const a=vR.transform(t),s=vR.transform(r);e[i.array]=`${a} ${s}`}(p,o,i,a,!1)}const CI=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),TI=e=>"string"==typeof e&&"svg"===e.toLowerCase();function NI(t,r,n,o){const i=e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return SI(e,r,TI(o),t.transformTemplate,t.style),{...e.attrs,style:{...e.style}}},[r]);if(t.style){const e={};OI(e,t.style,t),i.style={...e,...i.style}}return i}const zI=["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 LI(e){return"string"==typeof e&&!e.includes("-")&&!!(zI.indexOf(e)>-1||/[A-Z]/u.test(e))}function MI(t,r,n,{latestValues:o},i,a=!1){const s=(LI(t)?NI:kI)(r,o,i,t),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(iI(o)||!0===r&&oI(o)||!t&&!oI(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,a),c=t!==e.Fragment?{...l,...s,ref:n}:{},{children:u}=r,p=e.useMemo(()=>ZA(u)?u.get():u,[u]);return e.createElement(t,{...c,children:p})}function RI(e){const t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function DI(e,t,r,n){if("function"==typeof t){const[o,i]=RI(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]=RI(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function AI(e){return ZA(e)?e.get():e}function II(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=AI(i[e]);let{initial:a,animate:s}=e;const l=dI(e),c=fI(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&&!lI(p)){const t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){const n=DI(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 BI=t=>(r,n)=>{const o=e.useContext(sI),i=e.useContext(nM),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:II(r,n,o,e),renderState:t()}}(t,r,o,i);return n?a():function(t){const r=e.useRef(null);return null===r.current&&(r.current=t()),r.current}(a)};function _I(e,t,r){const{style:n}=e,o={};for(const i in n)(ZA(n[i])||t.style&&ZA(t.style[i])||yI(i,e)||void 0!==r?.getValue(i)?.liveStyle)&&(o[i]=n[i]);return o}const WI=BI({scrapeMotionValuesFromProps:_I,createRenderState:xI});function FI(e,t,r){const n=_I(e,t,r);for(const r in e)if(ZA(e[r])||ZA(t[r])){n[-1!==BD.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}const VI=BI({scrapeMotionValuesFromProps:FI,createRenderState:CI}),$I=Symbol.for("motionComponentSymbol");function HI(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function UI(t,r,n){return e.useCallback(e=>{e&&t.onMount&&t.onMount(e),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):HI(n)&&(n.current=e))},[r])}const qI=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),YI="data-"+qI("framerAppearId"),GI=e.createContext({});function XI(t,r,n,o,i){const{visualElement:a}=e.useContext(sI),s=e.useContext(eI),l=e.useContext(nM),c=e.useContext(JA).reducedMotion,u=e.useRef(null);o=o||s.renderer,!u.current&&o&&(u.current=o(t,{visualState:r,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const p=u.current,d=e.useContext(GI);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.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:KI(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&HI(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,i,d);const f=e.useRef(!1);e.useInsertionEffect(()=>{p&&f.current&&p.update(n,l)});const m=n[YI],h=e.useRef(Boolean(m)&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return rM(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),e.useEffect(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),h.current=!1),p.enteringChildren=void 0)}),p}function KI(e){if(e)return!1!==e.options.allowProjection?e.projection:KI(e.parent)}function ZI(r,{forwardMotionProps:n=!1}={},o,i){o&&function(e){for(const t in e)rI[t]={...rI[t],...e[t]}}(o);const a=LI(r)?VI:WI;function s(s,l){let c;const u={...e.useContext(JA),...s,layoutId:QI(s)},{isStatic:p}=u,d=mI(s),f=a(s,p);if(!p&&tM){!function(t,r){const n=e.useContext(eI).strict;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?lM(!1,e,"lazy-strict-mode"):cM(!1,e,"lazy-strict-mode")}}(u,o);const t=function(e){const{drag:t,layout:r}=rI;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);c=t.MeasureLayout,d.visualElement=XI(r,f,u,i,t.ProjectionNode)}return t.jsxs(sI.Provider,{value:d,children:[c&&d.visualElement?t.jsx(c,{visualElement:d.visualElement,...u}):null,MI(r,s,UI(f,d.visualElement,l),f,p,n)]})}s.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;const l=e.forwardRef(s);return l[$I]=r,l}function QI({layoutId:t}){const r=e.useContext(eM).id;return r&&void 0!==t?r+"-"+t:t}function JI(e,t){if("undefined"==typeof Proxy)return ZI;const r=new Map,n=(r,n)=>ZI(r,n,e,t);return new Proxy((e,t)=>("production"!==process.env.NODE_ENV&&kM(!1,"motion() is deprecated. Use motion.create() instead."),n(e,t)),{get:(o,i)=>"create"===i?n:(r.has(i)||r.set(i,ZI(i,void 0,e,t)),r.get(i))})}function eB({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function tB(e){return void 0===e||1===e}function rB({scale:e,scaleX:t,scaleY:r}){return!tB(e)||!tB(t)||!tB(r)}function nB(e){return rB(e)||oB(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oB(e){return iB(e.x)||iB(e.y)}function iB(e){return e&&"0%"!==e}function aB(e,t,r){return r+t*(e-r)}function sB(e,t,r,n,o){return void 0!==o&&(e=aB(e,o,n)),aB(e,r,n)+t}function lB(e,t=0,r=1,n,o){e.min=sB(e.min,t,r,n,o),e.max=sB(e.max,t,r,n,o)}function cB(e,{x:t,y:r}){lB(e.x,t.translate,t.scale,t.originPoint),lB(e.y,r.translate,r.scale,r.originPoint)}const uB=.999999999999,pB=1.0000000000001;function dB(e,t){e.min=e.min+t,e.max=e.max+t}function fB(e,t,r,n,o=.5){lB(e,t,r,MR(e.min,e.max,o),n)}function mB(e,t){fB(e.x,t.x,t.scaleX,t.scale,t.originX),fB(e.y,t.y,t.scaleY,t.scale,t.originY)}function hB(e,t){return eB(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 vB=()=>({x:{min:0,max:0},y:{min:0,max:0}}),yB={current:null},gB={current:!1};const bB=new WeakMap;const wB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xB{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=KD,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=KM.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,HM.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=dI(t),this.isVariantNode=fI(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]&&ZA(t)&&t.set(s[e])}}mount(e){this.current=e,bB.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)),gB.current||function(){if(gB.current=!0,tM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yB.current=e.matches;e.addEventListener("change",t),t()}else yB.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||yB.current),"production"!==process.env.NODE_ENV&&kM(!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(),UM(this.notifyUpdate),UM(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=_D.has(e);r&&this.onBindTransform&&this.onBindTransform();const n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&HM.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 rI){const t=rI[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<wB.length;t++){const r=wB[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(ZA(o))e.addValue(n,o);else if(ZA(i))e.addValue(n,AA(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,AA(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=AA(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&&(pM(r)||fM(r))?r=parseFloat(r):(n=r,!QA.find(bA(n))&&NR.test(t)&&(r=zA(e,t))),this.setBaseTarget(e,ZA(r)?r.get():r)),ZA(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=DI(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||ZA(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 bM),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){IA.render(this.render)}}class OB extends xB{constructor(){super(...arguments),this.KeyframeResolver=MA}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;ZA(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function EB(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 kB extends OB{constructor(){super(...arguments),this.type="html",this.renderInstance=EB}readValueFromInstance(e,t){if(_D.has(t))return this.projection?.isProjecting?DD(t):((e,t)=>{const{transform:r="none"}=getComputedStyle(e);return AD(r,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),o=(QM(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return hB(e,t)}build(e,t,r){wI(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return _I(e,t,r)}}const jB=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 PB extends OB{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vB}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(_D.has(t)){const e=NA(t);return e&&e.default||0}return t=jB.has(t)?t:qI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return FI(e,t,r)}build(e,t,r){SI(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){!function(e,t,r,n){EB(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(jB.has(r)?r:qI(r),t.attrs[r])}(e,t,0,n)}mount(e){this.isSVGTag=TI(e.tagName),super.mount(e)}}const SB=(t,r)=>LI(t)?new PB(r):new kB(r,{allowProjection:t!==e.Fragment});function CB(e,t,r){const n=e.getProps();return DI(n,t,void 0!==r?r:n.custom,e)}const TB=e=>Array.isArray(e);function NB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,AA(r))}function zB(e){return TB(e)?e[e.length-1]||0:e}function LB(e,t){const r=e.getValue("willChange");if(n=r,Boolean(ZA(n)&&n.add))return r.add(t);if(!r&&uM.WillChange){const r=new uM.WillChange("auto");e.addValue("willChange",r),r.add(t)}var n}function MB(e){return e.props[YI]}const RB=e=>null!==e;const DB={type:"spring",stiffness:500,damping:25,restSpeed:10},AB={type:"keyframes",duration:.8},IB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BB=(e,{keyframes:t})=>t.length>2?AB:_D.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:DB:IB;const _B=(e,t,r,n={},o,i)=>a=>{const s=yA(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c-=wM(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,BB(e,u)),u.duration&&(u.duration=wM(u.duration)),u.repeatDelay&&(u.repeatDelay=wM(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(pA(u),0===u.delay&&(p=!0)),(uM.instantAnimations||uM.skipAnimations)&&(p=!0,pA(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(RB);return n[t&&"loop"!==r&&t%2==1?0:n.length-1]}(u.keyframes,s);if(void 0!==e)return void HM.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new SD(u):new mA(u)};function WB({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function FB(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&&WB(c,t))continue;const a={delay:r,...yA(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=MB(e);if(r){const e=window.MotionHandoffAnimation(r,t,HM);null!==e&&(a.startTime=e,p=!0)}}LB(e,t),n.start(_B(t,n,o,e.shouldReduceMotion&&gA.has(t)?{type:!1}:a,e,p));const d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{HM.update(()=>{a&&function(e,t){const r=CB(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)NB(e,t,zB(i[t]))}(e,a)})}),l}function VB(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 $B(e,t,r={}){const n=CB(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(FB(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($B(l,t,{...a,delay:r+("function"==typeof n?0:n)+VB(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 HB(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 UB=pI.length;function qB(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qB(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;r<UB;r++){const n=pI[r],o=e.props[n];(cI(o)||!1===o)&&(t[n]=o)}return t}const YB=[...uI].reverse(),GB=uI.length;function XB(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=>$B(e,t,r));n=Promise.all(o)}else if("string"==typeof t)n=$B(e,t,r);else{const o="function"==typeof t?CB(e,t,r.custom):t;n=Promise.all(FB(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,t,r)))}function KB(e){let t=XB(e),r=JB(),n=!0;const o=t=>(r,n)=>{const o=CB(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=qB(e.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let t=0;t<GB;t++){const d=YB[t],f=r[d],m=void 0!==a[d]?a[d]:s[d],h=cI(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||lI(m)||"boolean"==typeof m)continue;const g=ZB(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=TB(t)&&TB(r)?!HB(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=CB(n,t);if(n.enteringChildren&&o){const{delayChildren:t}=o.transition||{};r.delay=VB(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){const t={};if("boolean"!=typeof a.initial){const r=CB(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=JB(),n=!0}}}function ZB(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!HB(t,e)}function QB(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JB(){return{animate:QB(!0),whileInView:QB(),whileHover:QB(),whileTap:QB(),whileDrag:QB(),whileFocus:QB(),exit:QB()}}class e_{constructor(e){this.isMounted=!1,this.node=e}update(){}}let t_=0;const r_={animation:{Feature:class extends e_{constructor(e){super(e),e.animationState||(e.animationState=KB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();lI(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 e_{constructor(){super(...arguments),this.id=t_++}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 n_(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function o_(e){return{point:{x:e.pageX,y:e.pageY}}}function i_(e,t,r,n){return n_(e,t,(e=>t=>$A(t)&&e(t,o_(t)))(r),n)}function a_(e){return e.max-e.min}function s_(e,t,r,n=.5){e.origin=n,e.originPoint=MR(t.min,t.max,e.origin),e.scale=a_(r)/a_(t),e.translate=MR(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 l_(e,t,r,n){s_(e.x,t.x,r.x,n?n.originX:void 0),s_(e.y,t.y,r.y,n?n.originY:void 0)}function c_(e,t,r){e.min=r.min+t.min,e.max=e.min+a_(t)}function u_(e,t,r){e.min=t.min-r.min,e.max=e.min+a_(t)}function p_(e,t,r){u_(e.x,t.x,r.x),u_(e.y,t.y,r.y)}function d_(e){return[e("x"),e("y")]}const f_=({current:e})=>e?e.ownerDocument.defaultView:null,m_=(e,t)=>Math.abs(e-t);class h_{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=g_(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=m_(e.x,t.x),n=m_(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}=qM;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=v_(t,this.transformPagePoint),HM.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=g_("pointercancel"===e.type?this.lastMoveEventInfo:v_(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!$A(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;const a=v_(o_(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=qM;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,g_(a,this.history)),this.removeListeners=yM(i_(this.contextWindow,"pointermove",this.handlePointerMove),i_(this.contextWindow,"pointerup",this.handlePointerUp),i_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),UM(this.updatePoint)}}function v_(e,t){return t?{point:t(e.point)}:e}function y_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function g_({point:e},t){return{point:e,delta:y_(e,w_(t)),offset:y_(e,b_(t)),velocity:x_(t,.1)}}function b_(e){return e[0]}function w_(e){return e[e.length-1]}function x_(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=w_(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>wM(t)));)r--;if(!n)return{x:0,y:0};const i=xM(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 O_(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 E_(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 k_=.35;function j_(e,t,r){return{min:P_(e,t),max:P_(e,r)}}function P_(e,t){return"number"==typeof e?e:e[t]||0}const S_=new WeakMap;class C_{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 h_(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(o_(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?BA[i]?null:(BA[i]=!0,()=>{BA[i]=!1}):BA.x||BA.y?null:(BA.x=BA.y=!0,()=>{BA.x=BA.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),d_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(hR.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=a_(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&HM.postRender(()=>o(e,t)),LB(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:()=>d_(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:r,contextWindow:f_(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&&HM.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||!T_(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?MR(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?MR(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&&HI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:O_(e.x,r,o),y:O_(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=k_){return!1===e?e=0:!0===e&&(e=k_),{x:j_(e,"left","right"),y:j_(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&d_(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||!HI(e))return!1;const r=e.current;cM(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=hB(e,r),{scroll:o}=t;return o&&(dB(n.x,o.offset.x),dB(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:E_(e.x,t.x),y:E_(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=eB(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=d_(a=>{if(!T_(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 LB(this.visualElement,e),r.start(_B(e,r,0,t,this.visualElement,!1))}stopAnimation(){d_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){d_(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){d_(t=>{const{drag:r}=this.getProps();if(!T_(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]-MR(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!HI(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};d_(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=a_(e),o=a_(t);return o>n?r=gM(t.min,t.max-n,e.min):n>o&&(r=gM(e.min,e.max-o,t.min)),aM(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(),d_(t=>{if(!T_(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(MR(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;S_.set(this.visualElement,this);const e=i_(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();HI(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()),HM.read(t);const o=n_(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(d_(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=k_,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function T_(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const N_=e=>(t,r)=>{e&&HM.postRender(()=>e(t,r))};const z_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function L_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const M_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!vR.test(e))return e;e=parseFloat(e)}return`${L_(e,t.target.x)}% ${L_(e,t.target.y)}%`}},R_={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=NR.parse(e);if(o.length>5)return n;const i=NR.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=MR(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 D_=!1;class A_ extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;!function(e){for(const t in e)vI[t]=e[t],QM(t)&&(vI[t].isCSSVariable=!0)}(B_),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),D_&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),z_.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,{projection:i}=r;return i?(i.isPresent=o,D_=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||HM.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),IA.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;D_=!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 I_(r){const[n,o]=function(t=!0){const r=e.useContext(nM);if(null===r)return[!0,null];const{isPresent:n,onExitComplete:o,register:i}=r,a=e.useId();e.useEffect(()=>{if(t)return i(a)},[t]);const s=e.useCallback(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,s]:[!0]}(),i=e.useContext(eM);return t.jsx(A_,{...r,layoutGroup:i,switchLayoutGroup:e.useContext(GI),isPresent:n,safeToRemove:o})}const B_={borderRadius:{...M_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M_,borderTopRightRadius:M_,borderBottomLeftRadius:M_,borderBottomRightRadius:M_,boxShadow:R_};const __=(e,t)=>e.depth-t.depth;class W_{constructor(){this.children=[],this.isDirty=!1}add(e){oM(this.children,e),this.isDirty=!0}remove(e){iM(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(__),this.isDirty=!1,this.children.forEach(e)}}const F_=["TopLeft","TopRight","BottomLeft","BottomRight"],V_=F_.length,$_=e=>"string"==typeof e?parseFloat(e):e,H_=e=>"number"==typeof e||vR.test(e);function U_(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const q_=G_(0,.5,RM),Y_=G_(.5,.95,hM);function G_(e,t,r){return n=>n<e?0:n>t?1:r(gM(e,t,n))}function X_(e,t){e.min=t.min,e.max=t.max}function K_(e,t){X_(e.x,t.x),X_(e.y,t.y)}function Z_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Q_(e,t,r,n,o){return e=aB(e-=t,1/r,n),void 0!==o&&(e=aB(e,1/o,n)),e}function J_(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){hR.test(t)&&(t=parseFloat(t),t=MR(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=MR(i.min,i.max,n);e===i&&(s-=t),e.min=Q_(e.min,t,r,s,o),e.max=Q_(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const eW=["x","scaleX","originX"],tW=["y","scaleY","originY"];function rW(e,t,r,n){J_(e.x,t,eW,r?r.x:void 0,n?n.x:void 0),J_(e.y,t,tW,r?r.y:void 0,n?n.y:void 0)}function nW(e){return 0===e.translate&&1===e.scale}function oW(e){return nW(e.x)&&nW(e.y)}function iW(e,t){return e.min===t.min&&e.max===t.max}function aW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sW(e,t){return aW(e.x,t.x)&&aW(e.y,t.y)}function lW(e){return a_(e.x)/a_(e.y)}function cW(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uW{constructor(){this.members=[]}add(e){oM(this.members,e),e.scheduleRender()}remove(e){if(iM(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 pW=["","X","Y","Z"];let dW=0;function fW(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function mW(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=MB(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",HM,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&mW(n)}function hW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=t?.()){this.id=dW++,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(gW),this.nodes.forEach(jW),this.nodes.forEach(PW),this.nodes.forEach(bW)},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 W_)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bM),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=KA(t)&&!(KA(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;HM.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=KM.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(UM(n),e(i-t))};return HM.setup(n,!0),()=>UM(n)}(o,250),z_.hasAnimatedSinceResize&&(z_.hasAnimatedSinceResize=!1,this.nodes.forEach(kW)))})}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()||LW,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!sW(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={...yA(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||kW(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(),UM(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(SW),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&&mW(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(xW);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(OW);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(EW),this.nodes.forEach(vW),this.nodes.forEach(yW)):this.nodes.forEach(OW),this.clearAllSnapshots();const e=KM.now();qM.delta=aM(0,1e3/60,e-qM.timestamp),qM.timestamp=e,qM.isProcessing=!0,YM.update.process(qM),YM.preRender.process(qM),YM.render.process(qM),qM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,IA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wW),this.sharedNodes.forEach(CW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,HM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){HM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||a_(this.snapshot.measuredBox.x)||a_(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&&!oW(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||nB(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)),DW((n=r).x),DW(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(IW))){const{scroll:e}=this.root;e&&(dB(t.x,e.offset.x),dB(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(K_(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&&K_(t,e),dB(t.x,o.offset.x),dB(t.y,o.offset.y))}return t}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};K_(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&&mB(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nB(n.latestValues)&&mB(r,n.latestValues)}return nB(this.latestValues)&&mB(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};K_(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!nB(r.latestValues))continue;rB(r.latestValues)&&r.updateSnapshot();const n=vB();K_(n,r.measurePageBox()),rW(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nB(this.latestValues)&&rW(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!==qM.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=qM.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}},p_(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),K_(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,c_(i.x,a.x,s.x),c_(i.y,a.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):K_(this.target,this.layout.layoutBox),cB(this.target,this.targetDelta)):K_(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}},p_(this.relativeTargetOrigin,this.target,e.target),K_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!rB(this.parent.latestValues)&&!oB(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===qM.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;K_(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&&mB(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,cB(e,a)),n&&nB(i.latestValues)&&mB(e,i.latestValues))}t.x<pB&&t.x>uB&&(t.x=1),t.y<pB&&t.y>uB&&(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?(Z_(this.prevProjectionDelta.x,this.projectionDelta.x),Z_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),l_(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&cW(this.projectionDelta.x,this.prevProjectionDelta.x)&&cW(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(zW));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,d,f,m,h,v;TW(i.x,e.x,r),TW(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(p_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,v=r,NW(f.x,m.x,h.x,v),NW(f.y,m.y,h.y,v),p&&(l=this.relativeTarget,d=p,iW(l.x,d.x)&&iW(l.y,d.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),K_(p,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=MR(0,r.opacity??1,q_(n)),e.opacityExit=MR(t.opacity??1,0,Y_(n))):i&&(e.opacity=MR(t.opacity??1,r.opacity??1,n));for(let o=0;o<V_;o++){const i=`border${F_[o]}Radius`;let a=U_(t,i),s=U_(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||H_(a)===H_(s)?(e[i]=Math.max(MR($_(a),$_(s),n),0),(hR.test(s)||hR.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=MR(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&&(UM(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=HM.update(()=>{z_.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=AA(0)),this.currentAnimation=function(e,t,r){const n=ZA(e)?e:AA(e);return n.start(_B("",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&&AW(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=a_(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=a_(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}K_(t,r),mB(t,o),l_(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new uW);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&&fW("z",e,n,this.animationValues);for(let t=0;t<pW.length;t++)fW(`rotate${pW[t]}`,e,n,this.animationValues),fW(`skew${pW[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=AI(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=AI(t?.pointerEvents)||""),void(this.hasProjected&&!nB(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 vI){if(void 0===o[t])continue;const{correct:r,applyTo:a,isCSSVariable:s}=vI[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?AI(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(xW),this.root.sharedNodes.clear()}}}function vW(e){e.updateLayout()}function yW(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?d_(e=>{const n=i?t.measuredBox[e]:t.layoutBox[e],o=a_(n);n.min=r[e].min,n.max=n.min+o}):AW(o,t.layoutBox,r)&&d_(n=>{const o=i?t.measuredBox[n]:t.layoutBox[n],a=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}};l_(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?l_(s,e.applyTransform(n,!0),t.measuredBox):l_(s,r,t.layoutBox);const l=!oW(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}};p_(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};p_(s,r,i.layoutBox),sW(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 gW(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 bW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wW(e){e.clearSnapshot()}function xW(e){e.clearMeasurements()}function OW(e){e.isLayoutDirty=!1}function EW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kW(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jW(e){e.resolveTargetDelta()}function PW(e){e.calcProjection()}function SW(e){e.resetSkewAndRotation()}function CW(e){e.removeLeadSnapshot()}function TW(e,t,r){e.translate=MR(t.translate,0,r),e.scale=MR(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function NW(e,t,r,n){e.min=MR(t.min,r.min,n),e.max=MR(t.max,r.max,n)}function zW(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const LW={duration:.45,ease:[.4,0,.1,1]},MW=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),RW=MW("applewebkit/")&&!MW("chrome/")?Math.round:hM;function DW(e){e.min=RW(e.min),e.max=RW(e.max)}function AW(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=lW(t),o=lW(r),i=.2,!(Math.abs(n-o)<=i));var n,o,i}function IW(e){return e!==e.root&&e.scroll?.wasRoot}const BW=hW({attachResizeListener:(e,t)=>n_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_W={current:void 0},WW=hW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_W.current){const e=new BW({});e.mount(window),e.setOptions({layoutScroll:!0}),_W.current=e}return _W.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),FW={pan:{Feature:class extends e_{constructor(){super(...arguments),this.removePointerDownListener=hM}onPointerDown(e){this.session=new h_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:f_(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:N_(e),onStart:N_(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&HM.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=i_(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 e_{constructor(e){super(e),this.removeGroupControls=hM,this.removeListeners=hM,this.controls=new C_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hM}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:WW,MeasureLayout:I_}};function VW(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&HM.postRender(()=>o(t,o_(t)))}function $W(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&&HM.postRender(()=>o(t,o_(t)))}const HW=new WeakMap,UW=new WeakMap,qW=e=>{const t=HW.get(e.target);t&&t(e)},YW=e=>{e.forEach(qW)};function GW(e,t,r){const n=function({root:e,...t}){const r=e||document;UW.has(r)||UW.set(r,{});const n=UW.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(YW,{root:e,...t})),n[o]}(t);return HW.set(e,r),n.observe(e),()=>{HW.delete(e),n.unobserve(e)}}const XW={some:0,all:1};const KW={inView:{Feature:class extends e_{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:XW[n]};return GW(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 e_{mount(){const{current:e}=this.node;e&&(this.unmount=XA(e,(e,t)=>($W(this.node,t,"Start"),(e,{success:t})=>$W(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends e_{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=yM(n_(this.node.current,"focus",()=>this.onFocus()),n_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends e_{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=WA(e,r),a=e=>{if(!FA(e))return;const{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;const i=e=>{FA(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)=>(VW(this.node,t,"Start"),e=>VW(this.node,e,"End"))))}unmount(){}}}},ZW=JI({...r_,...KW,...FW,...{layout:{ProjectionNode:WW,MeasureLayout:I_}}},SB),QW="right",JW={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"}},eF=({children:t,side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u,...p})=>{const d=e.useRef({side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u});return e.useEffect(()=>{d.current={side:r,overlay:n,showFooter:o,title:i,description:a,buttonText:s,className:l,fullWidth:c,fullHeight:u}},[r,n,o,i,a,s,l,c,u]),e.createElement(vT,{...p},t)};eF.displayName="Sheet";const tF=e.forwardRef(({children:t,...r},n)=>e.createElement(yT,{...r,ref:n},t));tF.displayName="SheetTrigger";const rF=ET;rF.displayName="SheetClose";const nF=gT;nF.displayName="SheetPortal";const oF=e.forwardRef(({className:t,...r},n)=>e.createElement(bT,{asChild:!0,...r,ref:n},e.createElement(ZW.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:he("fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",t)})));oF.displayName=bT.displayName;const iF=e.forwardRef(({side:t=QW,className:r,children:n,overlay:o=!0,fullWidth:i=!1,fullHeight:a=!0,...s},l)=>{const c=JW[t]?t:QW;return e.createElement(nF,null,o&&e.createElement(oF,null),e.createElement(wT,{ref:l,className:he("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]:${JW[c].out}`,`data-[state=open]:${JW[c].in}`,r),...s},n,e.createElement(ET,{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"},e.createElement(Ae,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))))});iF.displayName=wT.displayName;const aF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,className:he("flex flex-col space-y-2 text-center sm:text-left",t),...n},r));aF.displayName="SheetHeader";const sF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n},r));sF.displayName="SheetFooter";const lF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(xT,{ref:o,className:he("text-lg font-semibold text-foreground",t),...n},r));lF.displayName=xT.displayName;const cF=e.forwardRef(({className:t,children:r,...n},o)=>e.createElement(OT,{ref:o,className:he("text-sm text-muted-foreground",t),...n},r));cF.displayName=OT.displayName;e.forwardRef(({side:t=QW,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=JW[t]?t:QW;return e.createElement(eF,{...d},e.createElement(iF,{side:m,overlay:r,className:l,fullWidth:u,fullHeight:p,...c},e.createElement("div",{ref:f},(o||i)&&e.createElement(aF,null,o&&e.createElement(lF,null,o),i&&e.createElement(cF,null,i)),e.createElement("div",{className:"py-4"},s),n&&e.createElement(sF,null,e.createElement(rF,{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors duration-200"},a)))))}).displayName="SheetDrawer";const uF=sL,pF=lL,dF=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,side:n="bottom",...o},a)=>i.createElement(cL,null,i.createElement(uL,{ref:a,align:t,sideOffset:r,side:n,className:he("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",e),...o})));dF.displayName=uL.displayName;function fF(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function mF(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}`:fF(n)&&fF(o)?mF(n,o):n===o})}function hF(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function vF(e){return"number"==typeof e}function yF(e){return"string"==typeof e}function gF(e){return"boolean"==typeof e}function bF(e){return"[object Object]"===Object.prototype.toString.call(e)}function wF(e){return Math.abs(e)}function xF(e){return Math.sign(e)}function OF(e,t){return wF(e-t)}function EF(e){return CF(e).map(Number)}function kF(e){return e[jF(e)]}function jF(e){return Math.max(0,e.length-1)}function PF(e,t){return t===jF(e)}function SF(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function CF(e){return Object.keys(e)}function TF(e,t){return[e,t].reduce((e,t)=>(CF(t).forEach(r=>{const n=e[r],o=t[r],i=bF(n)&&bF(o);e[r]=i?TF(n,o):o}),e),{})}function NF(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function zF(){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 LF(e,t,r,n){const o=zF(),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 MF(e=0,t=0){const r=wF(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 RF(e,t,r){const{constrain:n}=MF(0,e),o=e+1;let i=a(t);function a(e){return r?wF((o+e)%o):n(e)}function s(){return i}function l(){return RF(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 DF(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=zF(),k=zF(),j=MF(50,225).constrain(f.measure(20)),P={mouse:300,touch:400},S={mouse:500,touch:600},C=m?43:25;let T=!1,N=0,z=0,L=!1,M=!1,R=!1,D=!1;function A(e){if(!NF(e,n)&&e.touches.length>=2)return I(e);const t=i.readPoint(e),r=i.readPoint(e,b),a=OF(t,N),l=OF(r,z);if(!M&&!D){if(!e.cancelable)return I(e);if(M=a>l,!M)return I(e)}const u=i.pointerMove(e);a>h&&(R=!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)[D?"mouse":"touch"],n=function(e,t){const r=p.add(-1*xF(e)),n=u.byDistance(e,!m).distance;return m||wF(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(wF(e)<=wF(t))return 0;const r=OF(wF(e),wF(t));return wF(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),D=!1,d.emit("pointerUp")}function B(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){if(!g)return;function s(s){(gF(g)||g(e,s))&&function(e){const s=NF(e,n);if(D=s,R=m&&s&&!e.buttons&&T,T=OF(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=D?r:t;k.add(e,"touchmove",A,O).add(e,"touchend",I).add(e,"mousemove",A,O).add(e,"mouseup",I)}(),N=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 AF(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(NF(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&&wF(l)>.1?l:0},readPoint:i}}function IF(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=>{(gF(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(wF(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 BF(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),s=MF(.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=wF(e[l]-t.get()),p=r.get()-t.get(),d=s.constrain(u/a);r.subtract(p*d),!o&&wF(p)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function _F(e,t,r,n){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:s}=MF(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 WF(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>wF(e)-wF(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=>xF(e)===n);return i.length?l(i):kF(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)=>wF(e.diff)-wF(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 FF(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=>{(gF(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));vF(i)&&(o.useDuration(0),n.index(i,0),a.emit("slideFocus"))}(u)},l)}))}};return p}function VF(e){let t=e;function r(e){return vF(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 $F(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 HF(e,t,r,n,o,i,a,s,l){const c=EF(o),u=EF(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:VF(-1),translate:$F(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 UF(e,t,r){let n,o=!1;return{init:function(i){r&&(n=new MutationObserver(e=>{o||(gF(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 qF(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 CF(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 YF(e,t,r,n,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:p}=e,d=vF(r);const f={groupSlides:function(e){return d?function(e,t){return EF(e).filter(e=>e%t===0).map(r=>e.slice(r,r+t))}(e,r):function(e){return e.length?EF(e).reduce((r,d,f)=>{const m=kF(r)||0,h=0===m,v=d===jF(e),y=o[c]-i[m][c],g=o[c]-i[d][u],b=!n&&h?p(a):0,w=wF(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 GF(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),T=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 yF(e)?r[e](n):e(t,n,o)}};return o}(s,S),N=!p&&!!g,z=p||!!g,{slideSizes:L,slideSizesWithGaps:M,startGap:R,endGap:D}=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 wF(t[s]-e[s])}(),p=function(){if(!c)return 0;const e=i.getComputedStyle(kF(n));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),d=r.map(a),f=r.map((e,t,r)=>{const n=!t,o=PF(r,t);return n?d[t]+u:o?d[t]+p:r[t+1][s]-e[s]}).map(wF);return{slideSizes:d,slideSizesWithGaps:f,startGap:u,endGap:p}}(P,k,j,r,z,o),A=YF(P,S,v,p,k,j,R,D,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=>kF(e)[a]-e[0][i]).map(wF).map(t.measure),c=n.map(e=>r[i]-e[i]).map(e=>-wF(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(P,T,k,j,A),_=-kF(I)+kF(M),{snapsContained:W,scrollContainLimit:F}=function(e,t,r,n,o){const i=MF(-t+e,0),a=r.map((e,t)=>{const{min:n,max:o}=i,a=i.constrain(e),s=!t,l=PF(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=kF(a);return MF(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 OF(e,t)<=1}return{snapsContained:l,scrollContainLimit:s}}(S,_,B,g,2),V=N?W:B,{limit:$}=function(e,t,r){const n=t[0];return{limit:MF(r?n-e:kF(t),n)}}(_,V,p),H=RF(jF(V),u,p),U=H.clone(),q=EF(r),Y=LF(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=VF(G),K=VF(G),Z=VF(G),Q=VF(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=xF(o),p=u,m},settled:function(){return wF(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=WF(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,U,J,ee,Q,a),re=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}($),ne=zF(),oe=qF(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=PF(r,t);return n?SF(kF(r[0])+1):o?SF(jF(i)-kF(r)[0]+1,kF(r)[0]):e})}();return{slideRegistry:c}}(N,g,V,F,A,q),ae=FF(e,r,ie,te,J,ne,a,O),se={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:k,slideRects:j,animation:Y,axis:P,dragHandler:DF(P,e,n,o,Q,AF(P,o),X,Y,te,J,ee,H,a,C,f,m,y,.68,x),eventStore:ne,percentOfView:C,index:H,indexPrevious:U,limit:$,location:X,offsetLocation:Z,previousLocation:K,options:i,resizeHandler:IF(t,a,o,r,P,b,E),scrollBody:J,scrollBounds:BF($,Z,Q,J,C),scrollLooper:_F(_,$,Z,[X,Z,K,Q]),scrollProgress:re,scrollSnapList:V.map(re.get),scrollSnaps:V,scrollTarget:ee,scrollTo:te,slideLooper:HF(P,S,_,L,M,I,V,Z,r),slideFocus:ae,slidesHandler:UF(t,a,w),slidesInView:oe,slideIndexes:q,slideRegistry:ie,slidesToScroll:A,target:Q,translate:$F(P,t)};return se}const XF={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 KF(e){function t(e,t){return TF(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},o=CF(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=>CF(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return r}function ZF(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=KF(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=zF(),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(XF,ZF.globalOptions),O=c(x),E=[];function k(t){const r=GF(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=yF(t)?e.querySelector(t):t;g=n||e.children[0];const o=yF(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(N),v.eventHandler.init(N),v.resizeHandler.init(N),v.slidesHandler.init(N),v.options.loop&&v.slideLooper.loop(),g.offsetParent&&b.length&&v.dragHandler.init(N),y=a.init(N,E)))}function P(e,t){const r=T();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 T(){return v.index.get()}const N={canScrollNext:function(){return v.index.add(1).get()!==T()},canScrollPrev:function(){return v.index.add(-1).get()!==T()},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:T,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),N}function QF(t={},r=[]){const n=e.useRef(t),o=e.useRef(r),[i,a]=e.useState(),[s,l]=e.useState(),c=e.useCallback(()=>{i&&i.reInit(n.current,o.current)},[i]);return e.useEffect(()=>{mF(n.current,t)||(n.current=t,c())},[t,c]),e.useEffect(()=>{(function(e,t){if(e.length!==t.length)return!1;const r=hF(e),n=hF(t);return r.every((e,t)=>mF(e,n[t]))})(o.current,r)||(o.current=r,c())},[r,c]),e.useEffect(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&s){ZF.globalOptions=QF.globalOptions;const e=ZF(s,n.current,o.current);return a(e),()=>e.destroy()}a(void 0)},[s,a]),[l,i]}ZF.globalOptions=void 0,QF.globalOptions=void 0;const JF=5e3,eV=e.createContext(null),tV=e.forwardRef(({children:t,orientation:r="x",showArrows:n=!0,showDots:o=!0,autoPlay:i=!1,interval:a=JF,disabled:s=!1,onSlideChange:l,className:c,...u},p)=>{const d="y"===r,[f,m]=QF({loop:!0,align:"start",axis:d?"y":"x",dragFree:!1,slidesToScroll:1,containScroll:"keepSnaps"}),[h,v]=e.useState(!0),[y,g]=e.useState(!0),[b,w]=e.useState(0),x=e.Children.count(t),O=e.useMemo(()=>({selectedIndex:b,scrollNext:()=>m?.scrollNext(),scrollPrev:()=>m?.scrollPrev(),canScrollNext:!y,canScrollPrev:!h,setSelectedIndex:e=>{m?.scrollTo(e)}}),[m,y,h,b]),E=e.useCallback(e=>{w(e.selectedScrollSnap()),v(!e.canScrollPrev()),g(!e.canScrollNext()),l?.(e.selectedScrollSnap())},[l]);return e.useEffect(()=>{m&&(E(m),m.on("select",()=>E(m)),m.on("reInit",()=>E(m)))},[m,E]),e.useEffect(()=>{if(!m||!i)return;const e=setInterval(()=>{y?m.scrollTo(0):m.scrollNext()},a);return()=>clearInterval(e)},[m,i,a,y]),e.createElement(eV.Provider,{value:O},e.createElement("div",{ref:p,className:he("relative group",d?"h-96":"w-full",c),role:"region","aria-roledescription":"carousel",style:{perspective:"1000px",perspectiveOrigin:"center center",overflow:"hidden"},...u},e.createElement("div",{ref:f,className:he("overflow-hidden h-full","rounded-2xl"),style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",willChange:"transform",transformStyle:"preserve-3d"}},e.createElement("div",{className:he("flex will-change-transform h-full",d?"flex-col":"flex-row")},e.Children.map(t,(t,r)=>e.createElement("div",{className:he("transform transition-all duration-700 ease-out",d?"min-h-0 h-full w-full flex-[0_0_100%]":"min-w-0 w-full flex-[0_0_100%]",r===b?"scale-100 rotate-0 translate-z-0 opacity-100":"scale-95 opacity-0 -translate-z-8"),key:r},t)))),e.createElement("div",{className:he("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",d?"top-4 right-1/2 translate-x-1/2":"bottom-6 right-6")},e.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"}),e.createElement("span",{className:"text-primary font-bold"},b+1),e.createElement("span",{className:"mx-1 opacity-50"},"/"),e.createElement("span",null,x)),n&&e.createElement(e.Fragment,null,e.createElement("div",{className:he("absolute z-10 transition-opacity duration-300",d?"right-4 top-4":"top-1/2 -translate-y-1/2 left-4 opacity-0 group-hover:opacity-100")},e.createElement(Be,{variant:"secondary",size:"small",className:he("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:s||h,onClick:()=>O.scrollPrev()},e.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),d?e.createElement(Ce,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):e.createElement(Pe,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),e.createElement("span",{className:"sr-only"},"Previous slide"))),e.createElement("div",{className:he("absolute z-10 transition-opacity duration-300",d?"right-4 bottom-4":"top-1/2 -translate-y-1/2 right-4 opacity-0 group-hover:opacity-100")},e.createElement(Be,{variant:"secondary",size:"small",className:he("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:s||y,onClick:()=>O.scrollNext()},e.createElement("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover/btn:opacity-100 rounded-full transition-opacity duration-500"}),d?e.createElement(je,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}):e.createElement(Se,{className:"h-5 w-5 text-foreground relative z-10 group-hover/btn:text-primary transition-colors duration-300"}),e.createElement("span",{className:"sr-only"},"Next slide")))),o&&e.createElement("div",{className:he("absolute z-10",d?"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")},e.Children.map(t,(t,r)=>e.createElement("button",{key:r,type:"button",className:he("h-8 w-8 flex items-center justify-center transition-all duration-500 ease-out hover:scale-125",r===b?"scale-110":"opacity-60 hover:opacity-90"),disabled:s,onClick:()=>O.setSelectedIndex(r)},r===b?e.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"}):e.createElement("div",{className:"w-2 h-2 rounded-full bg-muted transition-all duration-500 hover:bg-primary/50"}),e.createElement("span",{className:"sr-only"},"Jump to slide ",r+1))))))});tV.displayName="Carousel";e.forwardRef(({className:t,children:r,...n},o)=>e.createElement("div",{ref:o,role:"group","aria-roledescription":"slide",className:he("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",t),...n},e.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"}),e.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"}),e.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"}),e.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 rV=Object.defineProperty,nV=Object.defineProperties,oV=Object.getOwnPropertyDescriptors,iV=Object.getOwnPropertySymbols,aV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,lV=(e,t,r)=>t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var cV=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var uV=i.createContext({}),pV=i.forwardRef((e,t)=>{var r,n,o,a,s,l=e,{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=fV,render:x,children:O}=l,E=((e,t)=>{var r={};for(var n in e)aV.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&iV)for(var n of iV(e))t.indexOf(n)<0&&sV.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]=i.useState("string"==typeof E.defaultValue?E.defaultValue:""),P=null!=c?c:k,S=function(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}(P),C=i.useCallback(e=>{null==u||u(e),j(e)},[u]),T=i.useMemo(()=>f?"string"==typeof f?new RegExp(f):f:null,[f]),N=i.useRef(null),z=i.useRef(null),L=i.useRef({value:P,onChange:C,isIOS:"undefined"!=typeof window&&(null==(n=null==(r=null==window?void 0:window.CSS)?void 0:r.supports)?void 0:n.call(r,"-webkit-touch-callout","none"))}),M=i.useRef({prev:[null==(o=N.current)?void 0:o.selectionStart,null==(a=N.current)?void 0:a.selectionEnd,null==(s=N.current)?void 0:s.selectionDirection]});i.useImperativeHandle(t,()=>N.current,[]),i.useEffect(()=>{let e=N.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&&N.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;";dV(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),dV(e.sheet,`[data-input-otp]:autofill { ${t} }`),dV(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),dV(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; } }"),dV(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[R,D]=i.useState(!1),[A,I]=i.useState(!1),[B,_]=i.useState(null),[W,F]=i.useState(null);i.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,r,n;null==(e=N.current)||e.dispatchEvent(new Event("input"));let o=null==(t=N.current)?void 0:t.selectionStart,i=null==(r=N.current)?void 0:r.selectionEnd,a=null==(n=N.current)?void 0:n.selectionDirection;null!==o&&null!==i&&(_(o),F(i),M.current.prev=[o,i,a])})},[P,A]),i.useEffect(()=>{void 0!==S&&P!==S&&S.length<p&&P.length===p&&(null==v||v(P))},[p,v,S,P]);let V=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[o,a]=i.useState(!1),[s,l]=i.useState(!1),[c,u]=i.useState(!1),p=i.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&o&&s,[o,s,r]),d=i.useCallback(()=>{let n=e.current,o=t.current;if(!n||!o||c||"none"===r)return;let i=n,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(cV).length&&document.elementFromPoint(s,l)===n||(a(!0),u(!0))},[e,t,c,r]);return i.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function n(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}n();let o=setInterval(n,1e3);return()=>{clearInterval(o)}},[e,r]),i.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===r||!e)return;let o=setTimeout(d,0),i=setTimeout(d,2e3),a=setTimeout(d,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(o),clearTimeout(i),clearTimeout(a),clearTimeout(s)}},[t,n,r,d]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:N,pushPasswordManagerStrategy:y,isFocused:A}),$=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,p);t.length>0&&T&&!T.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),C(t))},[p,C,S,T]),H=i.useCallback(()=>{var e;if(N.current){let t=Math.min(N.current.value.length,p-1),r=N.current.value.length;null==(e=N.current)||e.setSelectionRange(t,r),_(t),F(r)}I(!0)},[p]),U=i.useCallback(e=>{var t,r;let n=N.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=N.current)?void 0:t.selectionStart,s=null==(r=N.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&&T&&!T.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,T,P]),q=i.useMemo(()=>({position:"relative",cursor:E.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[E.disabled]),Y=i.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=i.useMemo(()=>i.createElement("input",((e,t)=>nV(e,oV(t)))(((e,t)=>{for(var r in t||(t={}))aV.call(t,r)&&lV(e,r,t[r]);if(iV)for(var r of iV(t))sV.call(t,r)&&lV(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==T?void 0:T.source,"aria-placeholder":m,style:Y,maxLength:p,value:P,ref:N,onPaste:e=>{var t;U(e),null==(t=E.onPaste)||t.call(E,e)},onChange:$,onMouseOver:e=>{var t;D(!0),null==(t=E.onMouseOver)||t.call(E,e)},onMouseLeave:e=>{var t;D(!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,U,h,Y,p,W,B,E,null==T?void 0:T.source,P]),X=i.useMemo(()=>({slots:Array.from({length:p}).map((e,t)=>{var r;let n=A&&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:A,isHovering:!E.disabled&&R}),[A,R,p,W,B,E.disabled,P]),K=i.useMemo(()=>x?x(X):i.createElement(uV.Provider,{value:X},O),[O,X,x]);return i.createElement(i.Fragment,null,null!==w&&i.createElement("noscript",null,i.createElement("style",null,w)),i.createElement("div",{ref:z,"data-input-otp-container":!0,style:q,className:b},K,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});function dV(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}pV.displayName="Input";var fV="\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 mV=i.forwardRef(({className:e,containerClassName:t,...r},n)=>i.createElement(pV,{ref:n,containerClassName:he("flex items-center gap-2 has-disabled:opacity-50",t),className:he("disabled:cursor-not-allowed",e),...r}));mV.displayName="InputOTP";const hV=i.forwardRef(({className:e,...t},r)=>i.createElement("div",{ref:r,className:he("flex items-center",e),...t}));hV.displayName="InputOTPGroup";const vV=i.forwardRef(({index:e,className:t,...r},n)=>{const o=i.useContext(uV),{char:a,hasFakeCaret:s,isActive:l}=o.slots[e];return i.createElement("div",{ref:n,className:he("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",t),...r},a,s&&i.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center"},i.createElement("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})))});vV.displayName="InputOTPSlot";i.forwardRef(({...e},t)=>i.createElement("div",{ref:t,role:"separator",...e},i.createElement(QE,null))).displayName="InputOTPSeparator";const yV=({value:t,maxLength:r=6,onChange:n,disabled:o=!1,isError:i=!1,placeholder:a="○",className:s})=>e.createElement(mV,{value:t,maxLength:r,onChange:n,disabled:o,className:s},e.createElement("div",{"aria-disabled":o},e.createElement(hV,{role:"group",className:he("gap-2",i&&"input-error")},Array.from({length:r}).map((r,n)=>e.createElement("div",{key:n,role:"textbox","data-value":t?.[n]||""},e.createElement(vV,{index:n,className:he("rounded-md border",i&&"border-destructive focus:ring-destructive")},t?.[n]||a))))));yV.displayName="OTPInput";var gV="AlertDialog",[bV,wV]=eg(gV,[_C]),xV=_C(),OV=e=>{const{__scopeAlertDialog:r,...n}=e,o=xV(r);return t.jsx(vT,{...o,...n,modal:!0})};OV.displayName=gV;var EV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(yT,{...i,...o,ref:r})});EV.displayName="AlertDialogTrigger";var kV=e=>{const{__scopeAlertDialog:r,...n}=e,o=xV(r);return t.jsx(gT,{...o,...n})};kV.displayName="AlertDialogPortal";var jV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(bT,{...i,...o,ref:r})});jV.displayName="AlertDialogOverlay";var PV="AlertDialogContent",[SV,CV]=bV(PV),TV=function(e){const r=({children:e})=>t.jsx(t.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=ig,r}("AlertDialogContent"),NV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,children:o,...a}=e,s=xV(n),l=i.useRef(null),c=Jy(r,l),u=i.useRef(null);return t.jsx(dT,{contentName:PV,titleName:zV,docsSlug:"alert-dialog",children:t.jsx(SV,{scope:n,cancelRef:u,children:t.jsxs(wT,{role:"alertdialog",...s,...a,ref:c,onOpenAutoFocus:Ky(a.onOpenAutoFocus,e=>{e.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[t.jsx(TV,{children:o}),t.jsx(BV,{contentRef:l})]})})})});NV.displayName=PV;var zV="AlertDialogTitle",LV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(xT,{...i,...o,ref:r})});LV.displayName=zV;var MV="AlertDialogDescription",RV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(OT,{...i,...o,ref:r})});RV.displayName=MV;var DV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,i=xV(n);return t.jsx(ET,{...i,...o,ref:r})});DV.displayName="AlertDialogAction";var AV="AlertDialogCancel",IV=i.forwardRef((e,r)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:i}=CV(AV,n),a=xV(n),s=Jy(r,i);return t.jsx(ET,{...a,...o,ref:s})});IV.displayName=AV;var BV=({contentRef:e})=>{const t=`\`${PV}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${PV}\` by passing a \`${MV}\` 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 \`${PV}\`. 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 i.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_V=jV,WV=NV,FV=DV,VV=IV,$V=LV,HV=RV;const UV=OV,qV=EV,YV=kV,GV=i.forwardRef(({className:e,...t},r)=>i.createElement(_V,{className:he("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",e),...t,ref:r}));GV.displayName=_V.displayName;const XV=i.forwardRef(({className:e,...t},r)=>i.createElement(YV,null,i.createElement(GV,null),i.createElement(WV,{ref:r,className:he("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",e),...t})));XV.displayName=WV.displayName;const KV=({className:e,...t})=>i.createElement("div",{className:he("flex flex-col space-y-2 text-center sm:text-left",e),...t});KV.displayName="AlertDialogHeader";const ZV=({className:e,...t})=>i.createElement("div",{className:he("space-x-3 text-right",e),...t});ZV.displayName="AlertDialogFooter";const QV=i.forwardRef(({className:e,...t},r)=>i.createElement($V,{ref:r,className:he("text-lg font-semibold",e),...t}));QV.displayName=$V.displayName;const JV=i.forwardRef(({className:e,...t},r)=>i.createElement(HV,{ref:r,className:he("text-sm text-muted-foreground",e),...t}));JV.displayName=HV.displayName;const e$=i.forwardRef(({className:e,...t},r)=>i.createElement(FV,{ref:r,className:he($P(),e),...t}));e$.displayName=FV.displayName;const t$=i.forwardRef(({className:e,...t},r)=>i.createElement(VV,{ref:r,className:he($P({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));t$.displayName=VV.displayName;const r$={CANCEL_TEXT:"Cancel",VARIANT:"default",DISABLED:!1},n$=!1,o$="chevron",i$="right",a$="",s$="",l$="",c$=300,u$=({title:t,children:r,defaultOpen:n=n$,icon:o=o$,iconPosition:i=i$,className:a=a$,headerClassName:s=s$,contentClassName:l=l$,animationDuration:c=c$,onToggle:u})=>{const[p,d]=e.useState(n),f=e.useCallback(()=>{const e=!p;d(e),u&&u(e)},[p,u]),m=e.useCallback(()=>"chevron"===o?p?e.createElement(Ce,{size:20}):e.createElement(je,{size:20}):null,[o,p]);return e.createElement("div",{className:`collapsible-container border rounded-md overflow-hidden ${a}`,"data-state":p?"open":"closed"},e.createElement("button",{type:"button",onClick:f,className:`flex items-center justify-between w-full p-4 text-left font-medium transition-all hover:bg-muted/50 ${s}`,"aria-expanded":p},"left"===i&&m(),e.createElement("span",null,t),"right"===i&&m()),e.createElement("div",{className:`overflow-hidden transition-all ${l}`,style:{maxHeight:p?"1000px":"0px",opacity:p?1:0,transitionDuration:`${c}ms`}},e.createElement("div",{className:"p-4 border-t bg-background"},r)))},p$={simple:{title:"Click to expand",content:e.createElement(()=>e.createElement("div",null,"This is a simple collapsible content area."),null)},complex:{title:"Product Information",content:e.createElement(()=>e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-2"},"Product Features"),e.createElement("ul",{className:"list-disc pl-5 mb-4"},e.createElement("li",null,"Feature one with detailed description"),e.createElement("li",null,"Feature two with even more details about functionality"),e.createElement("li",null,"Feature three with technical specifications")),e.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:e.createElement(()=>e.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:e.createElement(()=>e.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:e.createElement(()=>e.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)}]},d$="xsmall",f$="small",m$="medium",h$="large",v$={xsmall:"max-w-xs",small:"max-w-sm",medium:"max-w-2xl",large:"max-w-4xl"},y$={[d$]:{containerPadding:"p-1.5",avatarSize:"w-8 h-8",nameTextSize:"text-sm",metaTextSize:"text-xs",chevronSize:"w-3 h-3"},[f$]:{containerPadding:"p-2",avatarSize:"w-10 h-10",nameTextSize:"text-base",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[m$]:{containerPadding:"p-3",avatarSize:"w-12 h-12",nameTextSize:"text-lg",metaTextSize:"text-sm",chevronSize:"w-4 h-4"},[h$]:{containerPadding:"p-4",avatarSize:"w-14 h-14",nameTextSize:"text-xl",metaTextSize:"text-sm",chevronSize:"w-4 h-4"}},g$="horizontal",b$="tab1",w$=!1,x$="100%";var O$;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(O$||(O$={}));const E$={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)]"}}},k$=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 j$(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=k$.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&&P$(n,"path",i),P$(n,"relativePath",i),n}function P$(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}const S$=[".DS_Store","Thumbs.db"];function C$(e){return"object"==typeof e&&null!==e}function T$(e){return e.filter(e=>-1===S$.indexOf(e.name))}function N$(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 z$(e){if("function"!=typeof e.webkitGetAsEntry)return M$(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?D$(t):M$(e,t)}function L$(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?L$(t):[t]],[])}function M$(e,t){return HS(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,j$(e)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return j$(n,null!==(r=null==t?void 0:t.fullPath)&&void 0!==r?r:void 0)})}function R$(e){return HS(this,void 0,void 0,function*(){return e.isDirectory?D$(e):function(e){return HS(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{const n=j$(r,e.fullPath);t(n)},e=>{r(e)})})})}(e)})}function D$(e){const t=e.createReader();return new Promise((e,r)=>{const n=[];!function o(){t.readEntries(t=>HS(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(R$));n.push(e),o()}else try{const t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}()})}var A$,I$={};var B$=_e((A$||(A$=1,I$.__esModule=!0,I$.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}),I$));function _$(e){return function(e){if(Array.isArray(e))return U$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H$(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 W$(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 F$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W$(Object(r),!0).forEach(function(t){V$(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V$(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $$(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)||H$(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 H$(e,t){if(e){if("string"==typeof e)return U$(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)?U$(e,t):void 0}}function U$(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 q$="function"==typeof B$?B$:B$.default,Y$=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)}},G$=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},X$=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},K$={code:"too-many-files",message:"Too many files"};function Z$(e,t){var r="application/x-moz-file"===e.type||q$(e,t);return[r,r?null:Y$(t)]}function Q$(e,t,r){if(J$(e.size))if(J$(t)&&J$(r)){if(e.size>r)return[!1,G$(r)];if(e.size<t)return[!1,X$(t)]}else{if(J$(t)&&e.size<t)return[!1,X$(t)];if(J$(r)&&e.size>r)return[!1,G$(r)]}return[!0,null]}function J$(e){return null!=e}function eH(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function tH(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 rH(e){e.preventDefault()}function nH(){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!eH(e)&&t&&t.apply(void 0,[e].concat(n)),eH(e)})}}function oH(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function iH(e){return/^.*\.[\w]+$/.test(e)}var aH=["children"],sH=["open"],lH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],cH=["refKey","onChange","onClick"];function uH(e){return function(e){if(Array.isArray(e))return fH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dH(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 pH(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)||dH(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 dH(e,t){if(e){if("string"==typeof e)return fH(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)?fH(e,t):void 0}}function fH(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 mH(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 hH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mH(Object(r),!0).forEach(function(t){vH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mH(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(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 gH=e.forwardRef(function(t,r){var n=t.children,o=xH(yH(t,aH)),i=o.open,a=yH(o,sH);return e.useImperativeHandle(r,function(){return{open:i}},[i]),e.createElement(e.Fragment,null,n(hH(hH({},a),{},{open:i})))});gH.displayName="Dropzone";var bH={disabled:!1,getFilesFromEvent:function(e){return HS(this,void 0,void 0,function*(){return C$(e)&&C$(e.dataTransfer)?function(e,t){return HS(this,void 0,void 0,function*(){if(e.items){const r=N$(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return r;return T$(L$(yield Promise.all(r.map(z$))))}return T$(N$(e.files).map(e=>j$(e)))})}(e.dataTransfer,e.type):function(e){return C$(e)&&C$(e.target)}(e)?function(e){return N$(e.target.files).map(e=>j$(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return HS(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>j$(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};gH.defaultProps=bH,gH.propTypes={children:mt.func,accept:mt.objectOf(mt.arrayOf(mt.string)),multiple:mt.bool,preventDropOnDocument:mt.bool,noClick:mt.bool,noKeyboard:mt.bool,noDrag:mt.bool,noDragEventsBubbling:mt.bool,minSize:mt.number,maxSize:mt.number,maxFiles:mt.number,disabled:mt.bool,getFilesFromEvent:mt.func,onFileDialogCancel:mt.func,onFileDialogOpen:mt.func,useFsAccessApi:mt.bool,autoFocus:mt.bool,onDragEnter:mt.func,onDragLeave:mt.func,onDragOver:mt.func,onDrop:mt.func,onDropAccepted:mt.func,onDropRejected:mt.func,onError:mt.func,validator:mt.func};var wH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xH(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=hH(hH({},bH),t),n=r.accept,o=r.disabled,i=r.getFilesFromEvent,a=r.maxSize,s=r.minSize,l=r.multiple,c=r.maxFiles,u=r.onDragEnter,p=r.onDragLeave,d=r.onDragOver,f=r.onDrop,m=r.onDropAccepted,h=r.onDropRejected,v=r.onFileDialogCancel,y=r.onFileDialogOpen,g=r.useFsAccessApi,b=r.autoFocus,w=r.preventDropOnDocument,x=r.noClick,O=r.noKeyboard,E=r.noDrag,k=r.noDragEventsBubbling,j=r.onError,P=r.validator,S=e.useMemo(function(){return function(e){if(J$(e))return Object.entries(e).reduce(function(e,t){var r=$$(t,2),n=r[0],o=r[1];return[].concat(_$(e),[n],_$(o))},[]).filter(function(e){return oH(e)||iH(e)}).join(",")}(n)},[n]),C=e.useMemo(function(){return function(e){return J$(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=$$(e,2),r=t[0],n=t[1],o=!0;return oH(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(iH)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var r=$$(t,2),n=r[0],o=r[1];return F$(F$({},e),{},V$({},n,o))},{})}]:e}(n)},[n]),T=e.useMemo(function(){return"function"==typeof y?y:EH},[y]),N=e.useMemo(function(){return"function"==typeof v?v:EH},[v]),z=e.useRef(null),L=e.useRef(null),M=pH(e.useReducer(OH,wH),2),R=M[0],D=M[1],A=R.isFocused,I=R.isFileDialogActive,B=e.useRef("undefined"!=typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),_=function(){!B.current&&I&&setTimeout(function(){L.current&&(L.current.files.length||(D({type:"closeDialog"}),N()))},300)};e.useEffect(function(){return window.addEventListener("focus",_,!1),function(){window.removeEventListener("focus",_,!1)}},[L,I,N,B]);var W=e.useRef([]),F=function(e){z.current&&z.current.contains(e.target)||(e.preventDefault(),W.current=[])};e.useEffect(function(){return w&&(document.addEventListener("dragover",rH,!1),document.addEventListener("drop",F,!1)),function(){w&&(document.removeEventListener("dragover",rH),document.removeEventListener("drop",F))}},[z,w]),e.useEffect(function(){return!o&&b&&z.current&&z.current.focus(),function(){}},[z,b,o]);var V=e.useCallback(function(e){j?j(e):console.error(e)},[j]),$=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e),W.current=[].concat(uH(W.current),[e.target]),tH(e)&&Promise.resolve(i(e)).then(function(t){if(!eH(e)||k){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=$$(Z$(e,r),1)[0],i=$$(Q$(e,n,o),1)[0],a=s?s(e):null;return t&&i&&!a})}({files:t,accept:S,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:P});D({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return V(e)})},[i,u,V,k,S,s,a,l,c,P]),H=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e);var t=tH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,k]),U=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e);var t=W.current.filter(function(e){return z.current&&z.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),W.current=t,t.length>0||(D({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),tH(e)&&p&&p(e))},[z,p,k]),q=e.useCallback(function(e,t){var r=[],n=[];e.forEach(function(e){var t=pH(Z$(e,S),2),o=t[0],i=t[1],l=pH(Q$(e,s,a),2),c=l[0],u=l[1],p=P?P(e):null;if(o&&c&&!p)r.push(e);else{var d=[i,u];p&&(d=d.concat(p)),n.push({file:e,errors:d.filter(function(e){return e})})}}),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach(function(e){n.push({file:e,errors:[K$]})}),r.splice(0)),D({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),f&&f(r,n,t),n.length>0&&h&&h(n,t),r.length>0&&m&&m(r,t)},[D,l,S,s,a,c,f,m,h,P]),Y=e.useCallback(function(e){e.preventDefault(),e.persist(),re(e),W.current=[],tH(e)&&Promise.resolve(i(e)).then(function(t){eH(e)&&!k||q(t,e)}).catch(function(e){return V(e)}),D({type:"reset"})},[i,q,V,k]),G=e.useCallback(function(){if(B.current){D({type:"openDialog"}),T();var e={multiple:l,types:C};window.showOpenFilePicker(e).then(function(e){return i(e)}).then(function(e){q(e,null),D({type:"closeDialog"})}).catch(function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(N(e),D({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?V(e):(B.current=!1,L.current?(L.current.value=null,L.current.click()):V(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 L.current&&(D({type:"openDialog"}),T(),L.current.value=null,L.current.click())},[D,T,N,g,q,V,C,l]),X=e.useCallback(function(e){z.current&&z.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))},[z,G]),K=e.useCallback(function(){D({type:"focus"})},[]),Z=e.useCallback(function(){D({type:"blur"})},[]),Q=e.useCallback(function(){x||(!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)}()?G():setTimeout(G,0))},[x,G]),J=function(e){return o?null:e},ee=function(e){return O?null:J(e)},te=function(e){return E?null:J(e)},re=function(e){k&&e.stopPropagation()},ne=e.useMemo(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.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=yH(e,lH);return hH(hH(vH({onKeyDown:ee(nH(i,X)),onFocus:ee(nH(a,K)),onBlur:ee(nH(s,Z)),onClick:J(nH(l,Q)),onDragEnter:te(nH(c,$)),onDragOver:te(nH(u,H)),onDragLeave:te(nH(p,U)),onDrop:te(nH(d,Y)),role:"string"==typeof n&&""!==n?n:"presentation"},r,z),o||O?{}:{tabIndex:0}),f)}},[z,X,K,Z,Q,$,H,U,Y,O,E,o]),oe=e.useCallback(function(e){e.stopPropagation()},[]),ie=e.useMemo(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=yH(e,cH);return hH(hH({},vH({accept:S,multiple:l,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:J(nH(n,Y)),onClick:J(nH(o,oe)),tabIndex:-1},r,L)),i)}},[L,n,l,Y,o]);return hH(hH({},R),{},{isFocused:A&&!o,getRootProps:ne,getInputProps:ie,rootRef:z,inputRef:L,open:J(G)})}function OH(e,t){switch(t.type){case"focus":return hH(hH({},e),{},{isFocused:!0});case"blur":return hH(hH({},e),{},{isFocused:!1});case"openDialog":return hH(hH({},wH),{},{isFileDialogActive:!0});case"closeDialog":return hH(hH({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return hH(hH({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return hH(hH({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return hH({},wH);default:return e}}function EH(){}const kH=10485760,jH=1/0,PH={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"},SH=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]},CH=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};function TH(e,t){return Array(t+1).join(e)}var NH=["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 zH(e){return DH(e,NH)}var LH=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function MH(e){return DH(e,LH)}var RH=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function DH(e,t){return t.indexOf(e.nodeName)>=0}function AH(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var IH={};function BH(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function _H(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 WH(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(FH(o,t,r))return o}}function FH(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 VH(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function $H(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}IH.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},IH.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},IH.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"+TH(1===n?"=":"-",e.length)+"\n\n":"\n\n"+TH("#",n)+" "+e+"\n\n"}},IH.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},IH.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"}},IH.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":"")}},IH.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"}},IH.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=TH(a,s);return"\n\n"+c+o+"\n"+i.replace(/\n$/,"")+"\n"+c+"\n\n"}},IH.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},IH.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=BH(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},IH.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=BH(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}},IH.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},IH.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},IH.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}},IH.image={filter:"img",replacement:function(e,t){var r=BH(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=BH(t.getAttribute("title"));return n?"+")":""}},_H.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=WH(this.array,e,this.options))||(t=WH(this._keep,e,this.options))||(t=WH(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 HH="undefined"!=typeof window?window:{};var UH,qH,YH,GH=function(){var e=HH.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?HH.DOMParser:(UH=function(){},qH=require("@mixmark-io/domino"),UH.prototype.parseFromString=function(e){return qH.createDocument(e)},UH);function XH(e,t){var r;"string"==typeof e?r=(YH=YH||new GH).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=$H(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=VH(l);continue}l.data=c,i=l}else{if(1!==l.nodeType){l=VH(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=$H(s,l,o);s=l,l=u}i&&(i.data=i.data.replace(/ $/,""),i.data||VH(i))}}({element:r,isBlock:zH,isVoid:MH,isPre:t.preformattedCode?KH:null}),r}function KH(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function ZH(e,t){return e.isBlock=zH(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!MH(e)&&!function(e){return DH(e,RH)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return AH(e,LH)}(e)&&!function(e){return AH(e,RH)}(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&&QH("left",e,t)&&(r.leading=r.leadingNonAscii);r.trailingAscii&&QH("right",e,t)&&(r.trailing=r.trailingNonAscii);return{leading:r.leading,trailing:r.trailing}}(e,t),e}function QH(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||zH(n)||(i=o.test(n.textContent))),i}var JH=Array.prototype.reduce,eU=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function tU(e){if(!(this instanceof tU))return new tU(e);var t={rules:IH,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 _H(this.options)}function rU(e){var t=this;return JH.call(e.childNodes,function(e,r){var n="";return 3===(r=new ZH(r,t.options)).nodeType?n=r.isCode?r.nodeValue:t.escape(r.nodeValue):1===r.nodeType&&(n=oU.call(t,r)),iU(e,n)},"")}function nU(e){var t=this;return this.rules.forEach(function(r){"function"==typeof r.append&&(e=iU(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function oU(e){var t=this.rules.forNode(e),r=rU.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 iU(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}tU.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=rU.call(this,new XH(e,this.options));return nU.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 eU.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};exports.ACCEPTED_FILE_TYPES={IMAGE:"image/*",PDF:"application/pdf",DOCUMENT:".doc,.docx,.pdf,.txt",ALL:"*"},exports.ALERT_DIALOG_DEFAULTS=r$,exports.ANIMATION_DURATION=150,exports.AlertDialogComponent=({title:t,description:r,trigger:n,action:o,cancel:i=r$.CANCEL_TEXT,onAction:a,onCancel:s,variant:l=r$.VARIANT,disabled:c=r$.DISABLED,open:u,onOpenChange:p})=>e.createElement(UV,{open:u,onOpenChange:p},!u&&e.createElement(qV,{asChild:!0},"string"==typeof n?e.createElement(Be,{variant:"secondary",disabled:c},n):n),e.createElement(XV,null,e.createElement(KV,null,e.createElement(QV,null,t),e.createElement(JV,null,r)),e.createElement(ZV,null,e.createElement(t$,{onClick:s,className:he("destructive"===l&&"border-destructive/50")},i),e.createElement(e$,{onClick:a,className:he("destructive"===l&&"bg-destructive hover:bg-destructive/90")},o)))),exports.BADGE_POSITIONS=hS,exports.BreadCrumb=KP,exports.Button=Be,exports.CARD_BORDER_RADIUS=mS,exports.CARD_HOVER_EFFECTS=fS,exports.CARD_SHADOWS=dS,exports.CARD_SIZES=uS,exports.CARD_SPACING=pS,exports.CARD_VARIANTS=vS,exports.Calendar=YP,exports.Card=yS,exports.Carousel=tV,exports.Checkbox=My,exports.Collapse=u$,exports.CollapseData=p$,exports.CustomSkeleton=cS,exports.DEFAULT_ALIGN="center",exports.DEFAULT_DATE_FORMAT="PPP",exports.DEFAULT_MAX_FILES=5,exports.DEFAULT_MAX_SIZE=kH,exports.DEFAULT_SIDE="bottom",exports.DEFAULT_SIDE_OFFSET=4,exports.DIALOG_DEFAULTS={CANCEL_TEXT:"Cancel",CONFIRM_TEXT:"Confirm",VARIANT:"default",SIZE:"medium",POSITION:"center",CLOSE_ON_OUTSIDE_CLICK:!0,SHOW_CLOSE_BUTTON:!1},exports.DatePicker=pL,exports.Disable=vy,exports.Drawer=({children:t,isOpen:r,onClose:n,size:o="medium",title:i,description:a,showCloseButton:s=!0})=>{const l=JL[o];return e.createElement(qL,{open:r,onOpenChange:n},e.createElement(XL,{className:`fixed inset-x-0 bottom-0 ${l} bg-background`},e.createElement(KL,{className:"relative"},i?e.createElement(ZL,null,i):e.createElement(ZL,{className:"sr-only"},"Drawer Content"),a?e.createElement(QL,null,a):e.createElement(QL,{className:"sr-only"},i||"Drawer Content"," panel"),s&&e.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"},e.createElement(Ae,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))),e.createElement("div",{className:"mt-6 px-4"},t)))},exports.Dropdown=eS,exports.EditFilled=Oy,exports.Editor=({value:t="",onChange:r,placeholder:n="Start writing...",className:o,disabled:i=!1,showToolbar:a=!0,minHeight:s=200})=>{const[l,c]=e.useState(t),[u,p]=e.useState(!1),[d,f]=e.useState(""),[m,h]=e.useState(new Set),[v,y]=e.useState("left"),[g,b]=e.useState("p"),[w,x]=e.useState({ul:!1,ol:!1}),O=e.useRef(null),E=e.useRef(null),k=e.useRef(new tU({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"*",emDelimiter:"*",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full"}));e.useEffect(()=>{const e=k.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 j=[{id:"p",label:"Paragraph",icon:e.createElement(Ty,{name:"Type",size:16})},{id:"h1",label:"Heading 1",icon:e.createElement(Ty,{name:"Type",size:20})},{id:"h2",label:"Heading 2",icon:e.createElement(Ty,{name:"Type",size:16})},{id:"h3",label:"Heading 3",icon:e.createElement(Ty,{name:"Type",size:12})}],P=[{id:"left",label:"Left",icon:e.createElement(Ty,{name:"AlignLeft",size:16})},{id:"center",label:"Center",icon:e.createElement(Ty,{name:"AlignCenter",size:16})},{id:"right",label:"Right",icon:e.createElement(Ty,{name:"AlignRight",size:16})}],S=e.useCallback(()=>{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},[]),C=e.useCallback(()=>{const e=S();if(!e)return{ul:!1,ol:!1};return{ul:!!e.closest("ul"),ol:!!e.closest("ol")}},[S]),T=e.useCallback(()=>{if(!O.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")?y("left"):document.queryCommandState("justifyCenter")?y("center"):document.queryCommandState("justifyRight")?y("right"):y("left");const r=document.queryCommandValue("formatBlock").toLowerCase();r.includes("h1")?b("h1"):r.includes("h2")?b("h2"):r.includes("h3")?b("h3"):r.includes("pre")?(t.add("code"),b("p")):r.includes("blockquote")?(t.add("quote"),b("p")):b("p");const n=C();x(n),h(t)},[C]),N=e.useCallback(()=>{if(O.current){const e=O.current.innerHTML;let t="";try{t=k.current.turndown(e),t=t.replace(/\n{3,}/g,"\n\n").replace(/^\n+/,"").replace(/\n+$/,"").trim()}catch{t=e}c(t),r?.(t),setTimeout(T,10)}},[r,T]),z=e.useCallback(()=>{const e=window.getSelection();e&&O.current&&O.current.contains(e.anchorNode)&&setTimeout(T,10)},[T]),L=e.useCallback((e,t)=>{i||(document.execCommand(e,!1,t),N(),O.current?.focus())},[i,N]),M=e.useCallback(e=>{if(i)return;const t={bold:"bold",italic:"italic",underline:"underline",code:"formatBlock"};"code"===e?m.has("code")?L("formatBlock","<div>"):L("formatBlock","<pre>"):L(t[e])},[L,m,i]),R=e.useCallback(e=>{if(i)return;const t=e?"insertOrderedList":"insertUnorderedList",r=C();e&&r.ol?L("insertOrderedList"):!e&&r.ul?L("insertUnorderedList"):L(t)},[L,C,i]),D=e.useCallback(()=>{i||(m.has("quote")?L("formatBlock","<div>"):L("formatBlock","<blockquote>"))},[L,m,i]),A=e.useCallback(e=>{if(i)return;L("formatBlock",{p:"<div>",h1:"<h1>",h2:"<h2>",h3:"<h3>"}[e])},[L,i]),I=e.useCallback(e=>{i||L("justify"+e.charAt(0).toUpperCase()+e.slice(1))},[L,i]),B=e.useCallback(()=>{d.trim()&&(L("createLink",d),f(""),p(!1))},[L,d]),_=e.useCallback(e=>{if("Enter"===e.key&&u&&(e.preventDefault(),B()),"Escape"===e.key&&u&&(p(!1),f("")),e.ctrlKey||e.metaKey)switch(e.key){case"b":e.preventDefault(),M("bold");break;case"i":e.preventDefault(),M("italic");break;case"u":e.preventDefault(),M("underline")}},[u,B,M]),W=e.useCallback(e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},[]),F=e.useCallback(()=>{setTimeout(T,10)},[T]),V=e.useCallback(()=>{p(!1),f("")},[]),$=e.useCallback(()=>{p(!0)},[]),H=e.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),t()},[]);return e.useEffect(()=>{t!==l&&(c(t),O.current&&t!==O.current.innerHTML&&(O.current.innerHTML=t))},[t,l]),e.useEffect(()=>{u&&E.current&&E.current.focus()},[u]),e.useEffect(()=>(document.addEventListener("selectionchange",z),()=>{document.removeEventListener("selectionchange",z)}),[z]),e.createElement("div",{className:he("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",i&&"opacity-50 cursor-not-allowed",o)},a&&e.createElement("div",{className:"flex items-center gap-1 p-2 border-b border-border bg-muted/30 flex-wrap"},e.createElement(eS,{options:j,value:g,onValueChange:A,placeholder:"Format",size:"small",className:"min-w-[120px]"}),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>M("bold")),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("bold")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Bold",size:16})),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>M("italic")),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("italic")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Italic",size:16})),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>M("underline")),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("underline")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Underline",size:16})),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>R(!1)),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",w.ul&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"List",size:16})),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>R(!0)),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",w.ol&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Hash",size:16})),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,D),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("quote")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"MessageSquare",size:16})),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,()=>M("code")),disabled:i,className:he("h-8 w-8 p-0 transition-all duration-150 ease-in-out","hover:bg-primary/10 hover:scale-105",m.has("code")&&"bg-primary/15 text-primary border-primary/30 shadow-sm scale-105")},e.createElement(Ty,{name:"Code",size:16})),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),e.createElement(eS,{options:P,value:v,onValueChange:I,placeholder:"Align",size:"small",className:"min-w-[100px]"}),e.createElement("div",{className:"h-6 w-px bg-border mx-1"}),u?e.createElement("div",{className:"flex items-center gap-2"},e.createElement("input",{ref:E,type:"text",value:d,onChange:e=>f(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"}),e.createElement(Be,{type:"button",variant:"primary",size:"small",onClick:e=>H(e,B),className:"h-8 transition-all duration-150"},"Add"),e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,V),className:"h-8 transition-all duration-150"},"Cancel")):e.createElement(Be,{type:"button",variant:"tertiary",size:"small",onClick:e=>H(e,$),disabled:i,className:"h-8 w-8 p-0 transition-all duration-150 ease-in-out hover:bg-primary/10 hover:scale-105"},e.createElement(Ty,{name:"Link2",size:16}))),e.createElement("div",{ref:O,contentEditable:!i,role:"textbox",onInput:N,onKeyDown:_,onPaste:W,onFocus:F,suppressContentEditableWarning:!0,className:he("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:s},"data-placeholder":n}))},exports.Error=wy,exports.ExcelFile=ky,exports.FAQCollapseGroup=t=>e.createElement("div",{className:"w-full max-w-3xl mx-auto p-6 rounded-lg border bg-card text-card-foreground shadow-sm"},e.createElement("h2",{className:"text-xl font-bold mb-4"},"Frequently Asked Questions"),p$.faq.map((r,n)=>e.createElement("div",{key:n,className:n>0?"mt-2":""},e.createElement(u$,{...t,title:r.title},r.content)))),exports.FBLike=Py,exports.FBLove=Sy,exports.FILE_UPLOAD_ERRORS=PH,exports.FileUpload=Ey,exports.FileUploader=({onFilesChange:t,accept:r="*",multiple:n=!1,maxSize:o=10485760,maxFiles:i=(n?jH:1),disabled:a=!1,className:s="",width:l="w-full",children:c,fileActions:u=[],showRemoveButton:p=!0})=>{const[d,f]=e.useState([]),[m,h]=e.useState([]),v=e.useCallback(()=>{h([])},[]),y=e.useCallback(e=>{const r=d.filter(t=>(t.id===e&&t.preview&&URL.revokeObjectURL(t.preview),t.id!==e));f(r),t(r.map(e=>e.file))},[d,t]),g=e.useCallback(e=>()=>{y(e)},[y]),b=e.useCallback((e,t)=>()=>{e.onClick(t)},[]),w=e.useCallback(e=>d.some(t=>t.name===e.name&&t.size===e.size&&t.type===e.type),[d]),x=e.useCallback((e,r)=>{h([]);const n=[];r.length>0&&r.forEach(e=>{e.errors&&e.errors.forEach(e=>{"file-too-large"===e.code?n.push(PH.FILE_TOO_LARGE):"file-invalid-type"===e.code&&n.push(PH.INVALID_FILE_TYPE)})});const o=[],a=e.filter(e=>{const t=w(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(i!==1/0&&d.length+a.length>i&&n.push(PH.TOO_MANY_FILES),a.length>0&&(i===1/0||d.length+a.length<=i)){const e=a.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=[...d,...e];f(r),t(r.map(e=>e.file))}n.length>0&&h(n)},[d,i,t,w]),{getRootProps:O,getInputProps:E,isDragActive:k}=xH({onDrop:x,accept:CH(r),multiple:n,maxSize:o,disabled:a});return e.createElement("div",{className:`file-uploader ${l} ${s}`},e.createElement("div",{...O(),className:`\n border-2 border-dashed rounded-lg p-6 center cursor-pointer transition-colors\n ${k?"border-primary bg-primary/5":"border-border hover:border-primary/50"}\n ${a?"opacity-50 cursor-not-allowed":""}\n `},e.createElement("input",{...E()}),c?e.createElement("div",{className:"flex flex-col items-center justify-center"},c):e.createElement("div",{className:"flex flex-col items-center justify-center"},e.createElement("div",{className:"mb-2"},k?e.createElement(Yy,{variant:"body",color:"quinary",textAlign:"center"},"Drop the files here..."):e.createElement(Yy,{variant:"body",color:"quinary",textAlign:"center"},"Drag & drop files here, or click to select files")),e.createElement("div",{className:"flex flex-col items-center"},n&&i!==1/0&&e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum ",i," files"),n&&i===1/0&&e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"No file limit"),e.createElement(Yy,{variant:"caption",color:"quinary",textAlign:"center"},"Maximum file size: ",SH(o))))),m.length>0&&e.createElement("div",{className:"mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-md"},e.createElement("div",{className:"flex items-start justify-between"},e.createElement("div",{className:"flex-1"},m.map((t,r)=>e.createElement(Yy,{key:r,variant:"caption",color:"tertiary",className:"whitespace-pre-line"},t))),e.createElement(Be,{onClick:v,type:"button",variant:"link",size:"small",className:"ml-2 text-destructive hover:text-destructive/80 p-1 min-w-0"},"✕"))),d.length>0&&e.createElement("div",{className:"mt-4 flex flex-col items-center"},e.createElement(Gy,{variant:"h6",color:"quinary",fontWeight:"semibold",marginBottom:"small",textAlign:"center"},"Uploaded Files"),e.createElement("div",{className:"space-y-2 w-full"},d.map(t=>e.createElement("div",{key:t.id,className:"flex items-center justify-between p-3 bg-muted rounded-md"},e.createElement("div",{className:"flex items-center space-x-3"},t.preview&&e.createElement("img",{src:t.preview,alt:t.name,className:"w-10 h-10 object-cover rounded"}),e.createElement("div",{className:"flex flex-col items-start"},e.createElement(Yy,{variant:"caption",color:"quinary",fontWeight:"semibold"},t.name),e.createElement(Yy,{variant:"captionSm",color:"quinary"},SH(t.size)))),e.createElement("div",{className:"flex items-center space-x-2"},u.map((r,n)=>e.createElement(Be,{key:n,onClick:b(r,t),type:"button",variant:r.variant||"secondary",size:"small"},r.icon&&e.createElement("span",{className:r.label?"mr-1":""},r.icon),r.label)),p&&e.createElement(Be,{onClick:g(t.id),type:"button",variant:"danger",size:"small"},"Remove")))))))},exports.Heading=Gy,exports.Hide=yy,exports.Icon=Ty,exports.Info=gy,exports.Input=Xy,exports.LoaderComponent=bS,exports.MessageComponent=Lb,exports.OTPInput=yV,exports.POPOVER_ALIGN_OPTIONS=["start","center","end"],exports.POPOVER_SIDES=["top","right","bottom","left"],exports.POPOVER_VARIANTS={DEFAULT:"default",FORM:"form"},exports.PaginationComponent=$b,exports.Popover=uF,exports.PopoverContent=dF,exports.PopoverTrigger=pF,exports.ProfileCard=({avatarUrl:t,name:r,email:n,position:o,dropdownItems:i=[],size:a=m$,className:s,isDropdownOpen:l=!1,onToggleDropdown:c})=>{const u=e.useRef(null),p=i.length,d=y$[a],{containerPadding:f,avatarSize:m,nameTextSize:h,metaTextSize:v,chevronSize:y}=d,g=e.useCallback(e=>{"Enter"!==e.key&&" "!==e.key||!c||(e.preventDefault(),c())},[c]),b=e.useCallback((e,t)=>{e.stopPropagation(),t.isDisabled?e.preventDefault():t.onClick&&(e.preventDefault(),t.onClick(),c&&c())},[c]);return e.useEffect(()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&l&&c&&c()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l,c]),e.createElement("div",{ref:u,role:p>0?"button":void 0,tabIndex:p>0?0:void 0,onClick:p>0&&c?c:void 0,onKeyDown:p>0?g:void 0,"aria-expanded":p>0?l:void 0,"aria-haspopup":p>0?"menu":void 0,className:he("inline-block bg-card/95 text-card-foreground rounded-xl overflow-visible backdrop-blur-xs transition-all duration-300",p>0&&c&&"cursor-pointer",v$[a],s)},e.createElement("div",{className:he("flex items-center gap-3",f)},e.createElement("img",{src:t,alt:`${r} profile`,className:he("rounded-full border-2 border-background transition-transform duration-300","ring-1 ring-primary/10",m)}),e.createElement("div",null,e.createElement("h2",{className:he("font-semibold text-foreground",h)},r),o&&e.createElement("p",{className:he("text-muted-foreground",v)},o),n&&e.createElement("p",{className:he("text-muted-foreground mt-0.5",v)},n)),p>0&&c&&e.createElement("div",{className:"ml-auto"},e.createElement("div",{className:"p-1"},l?e.createElement(Ce,{className:he("text-muted-foreground",y)}):e.createElement(je,{className:he("text-muted-foreground",y)})))),l&&p>0&&e.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((t,r)=>e.createElement("a",{key:r,href:t.link,className:he("block",{"pointer-events-none":t.isDisabled}),onClick:e=>b(e,t)},e.createElement("div",{role:"menuitem",className:he("flex items-center px-4 py-2 text-sm",{"opacity-50":t.isDisabled,"cursor-pointer hover:bg-accent/50":!t.isDisabled})},t.icon&&e.createElement("span",{className:"mr-2"},t.icon),t.name)))))},exports.RadioGroup=ub,exports.STEPPER_SIZE_STYLES=E$,exports.Sheet=eF,exports.SheetClose=rF,exports.SheetContent=iF,exports.SheetDescription=cF,exports.SheetFooter=sF,exports.SheetHeader=aF,exports.SheetTitle=lF,exports.SheetTrigger=tF,exports.Stepper=({steps:t,activeStep:r=0,orientation:n="horizontal",size:o="medium",className:i,onStepClick:a})=>{const s="horizontal"===n,l=E$[o];return e.createElement("div",{className:he("max-w-full mx-auto mb-4 px-8",i)},e.createElement("div",{className:he("flex relative p-0",s?"flex-row justify-between":"flex-col")},t.map((n,o)=>{const i=o===r,c=o<r,u=a?e.createElement("button",{type:"button",className:he("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},e.createElement("div",{className:he("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")},e.createElement("div",{className:he("rounded-full transition-all duration-300 ease-in-out",i?he(l.innerDot.active,"bg-primary"):c?he(l.innerDot.completed,"bg-primary-foreground"):he(l.innerDot.default,"bg-muted-foreground/50"))})),o<t.length-1&&e.createElement("div",{className:he("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")}),e.createElement("div",{className:he(s?"text-center px-4":"flex-1 ml-10")},e.createElement("h3",{className:he("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&&e.createElement("p",{className:he("text-muted-foreground mt-1",l.description)},n.description))):e.createElement("div",{className:he("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},e.createElement("div",{className:he("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")},e.createElement("div",{className:he("rounded-full transition-all duration-300 ease-in-out",i?he(l.innerDot.active,"bg-primary"):c?he(l.innerDot.completed,"bg-primary-foreground"):he(l.innerDot.default,"bg-muted-foreground/50"))})),o<t.length-1&&e.createElement("div",{className:he("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")}),e.createElement("div",{className:he(s?"text-center px-4":"flex-1 ml-10")},e.createElement("h3",{className:he("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&&e.createElement("p",{className:he("text-muted-foreground mt-1",l.description)},n.description)));return e.createElement(e.Fragment,{key:n.id},u)})))},exports.Success=jy,exports.Switch=Cb,exports.Table=({columns:t,data:r,sortable:n=!1,pagination:o=!1,searchable:i=!1,currentPage:a=1,pageSize:s=5,onSort:l,onPageChange:c,actions:u,showCustomCells:p=!0,useBuiltInStatus:d=!0,swapPaginationLayout:f=!1,selectable:m=!1,onSelectionChange:h})=>{const[v,y]=e.useState(null),[g,b]=e.useState(a),[w,x]=e.useState(s),[O,E]=e.useState(""),[k,j]=e.useState({}),[P,S]=e.useState(!1),{effectivePaginationPosition:C,effectiveEntriesPosition:T}=Qb(f);e.useEffect(()=>{b(a)},[a]),e.useEffect(()=>{m&&(j({}),S(!1))},[r,m]);const N=e.useCallback(e=>{n&&e.sortable&&(v?.key===e.key?"asc"===v.direction?(y({key:e.key,direction:"desc"}),l&&l(e.key,"desc")):(y(null),l&&l("__clear_sort__","asc")):(y({key:e.key,direction:"asc"}),l&&l(e.key,"asc")))},[v,n,l]),z=e.useCallback(e=>{n&&e.sortable&&N(e)},[n,N]),L=e.useMemo(()=>v&&n?[...r].sort((e,t)=>{const r=e[v.key],n=t[v.key];return r<n?"asc"===v.direction?-1:1:r>n?"asc"===v.direction?1:-1:0}):r,[r,v,n]),M=e.useCallback(e=>{E(e.target.value),b(1)},[]),R=e.useMemo(()=>i&&O.trim()?L.filter(e=>t.some(t=>{const r=e[t.key];return null!=r&&String(r).toLowerCase().includes(O.toLowerCase())})):L,[L,t,O,i]),D=e.useMemo(()=>Math.max(1,Math.ceil(R.length/w)),[R.length,w]),A=e.useMemo(()=>{if(o){const e=(g-1)*w;return R.slice(e,e+w)}return R},[R,g,w,o]),I=e.useCallback(e=>{e<1||e>D||(b(e),c&&c(e))},[D,c]),B=e.useCallback(e=>{x(e),b(1)},[]),_=e.useCallback((e,t)=>e.id||`row-${t}`,[]),W=e.useCallback((e,t)=>{const r=_(e,t),n={...k,[r]:!k[r]};j(n);const o=A.every((e,t)=>!0===n[_(e,t)]);if(S(o),h){const e=A.filter((e,t)=>n[_(e,t)]);h(e)}},[k,A,h,_]),F=e.useCallback(()=>{const e=!P;S(e);const t={...k};if(A.forEach((r,n)=>{const o=_(r,n);t[o]=e}),j(t),h){const t=e?[...A]:[];h(t)}},[P,A,k,h,_]),V=e.useMemo(()=>(e,t)=>uw(e,t,p,d),[p,d]);return e.createElement("div",{className:"w-full"},e.createElement("div",{className:"flex flex-wrap items-center justify-between mb-6 gap-6"},i&&e.createElement("div",{className:"w-80"},e.createElement(Xy,{id:"table-search",value:O,onChange:M,label:"Search",type:"search"})),o&&e.createElement("div",{className:"flex items-center space-x-3 ml-auto"},e.createElement("label",{htmlFor:"page-size-select",className:"text-sm font-medium text-muted-foreground"},"Rows per page"),e.createElement("select",{id:"page-size-select",value:w,onChange:e=>B(parseInt(e.target.value)),className:"h-9 rounded-md border border-input bg-background px-3 py-1 text-sm ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-colors"},[5,10,20,50].map(t=>e.createElement("option",{key:t,value:t},t))))),e.createElement("div",{className:"relative w-full overflow-auto rounded-lg border shadow-xs"},e.createElement("table",{className:"w-full caption-bottom text-sm"},e.createElement("thead",{className:"bg-muted/40"},e.createElement("tr",{className:"border-b border-border"},m&&e.createElement("th",{className:"h-11 px-3 font-medium text-muted-foreground w-10"},e.createElement(My,{checked:P,onChange:F,dataTestId:"select-all-checkbox"})),t.map(r=>e.createElement("th",{key:r.key,className:"h-11 px-6 font-medium text-muted-foreground",style:{width:r.width||"auto"}},e.createElement("div",{className:"h-full flex items-center",onClick:()=>z(r)},fw(r,e=>Xb(e,t,l,A,v,y),N,n,v)))),u&&e.createElement("th",{className:"h-11 px-6 text-right font-medium text-muted-foreground"},e.createElement("div",{className:"flex items-center h-9 justify-end"},e.createElement("span",{className:"truncate font-medium text-muted-foreground"},"Actions"))))),e.createElement("tbody",{className:"[&_tr:last-child]:border-0"},A.length>0?A.map((r,n)=>e.createElement("tr",{key:_(r,n),className:"border-b border-border transition-colors hover:bg-muted/30 "+(k[_(r,n)]?"bg-muted/50":"")},m&&e.createElement("td",{className:"p-4 px-5 w-10"},e.createElement(My,{checked:!!k[_(r,n)],onChange:()=>W(r,n),dataTestId:`select-row-${n}`})),t.map(t=>e.createElement("td",{key:t.key,className:"p-4 px-6",style:{width:t.width||"auto"}},V(t,r))),u&&e.createElement("td",{className:"p-4 px-6 text-right"},u(r)))):e.createElement("tr",null,e.createElement("td",{colSpan:t.length+(u?1:0)+(m?1:0),className:"py-10 px-6 text-center text-muted-foreground"},"No data available"))))),o&&D>0&&e.createElement("div",{className:"flex items-center justify-between px-3 mt-6 w-full"},e.createElement("div",{className:`text-sm font-medium text-muted-foreground whitespace-nowrap ${Kb(T)}`},"Showing"," ",e.createElement("span",{className:"text-foreground"},Math.min((g-1)*w+1,R.length))," ","to"," ",e.createElement("span",{className:"text-foreground"},Math.min(g*w,R.length))," ","of ",e.createElement("span",{className:"text-foreground"},R.length)," ","entries"),e.createElement("div",{className:Zb(C)},e.createElement($b,{currentPage:g,totalPages:D,onPageChange:I,disabled:!1,isLoading:!1}))))},exports.TableCell=uw,exports.TableHeader=mw,exports.Tabs=({items:t,defaultValue:r=b$,orientation:n=g$,disabled:o=w$,onValueChange:i,className:a,width:s=x$})=>{const[l,c]=e.useState(r);e.useEffect(()=>{if("undefined"!=typeof window){const e=new URLSearchParams(window.location.search).get("tab");e&&t.some(t=>t.value===e)&&(c(e),i?.(e))}},[t,i]);const u=e.useCallback((e,t)=>{if("undefined"==typeof window)return"";const r=new URLSearchParams(window.location.search);return r.set(e,t),r.toString()},[]),p=e.useCallback(e=>{if(c(e),"undefined"!=typeof window){const t=u("tab",e),r=`${window.location.pathname}?${t}`;window.history&&window.history.pushState&&window.history.pushState({path:r},"",r)}i&&i(e)},[i,u]),d="vertical"===n,f=e=>he("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all duration-200",d?"px-4 py-3 w-full justify-start text-left rounded-l-md":"px-5 py-2.5 relative",l===e.value?d?"bg-background/80 text-primary font-semibold shadow-xs backdrop-blur-xs":"text-primary font-semibold":d?"text-muted-foreground hover:text-foreground hover:bg-muted/30":"text-muted-foreground hover:text-foreground",(o||e.disabled)&&"opacity-40 pointer-events-none"),m=e.useCallback(e=>{o||e.disabled||p(e.value)},[o,p]);return e.createElement("div",{className:he(d?"flex space-x-6":"space-y-4 flex flex-col items-center",a),style:{width:s}},e.createElement("div",{role:"tablist","aria-orientation":n,className:he("flex relative",d?"flex-col h-full space-y-1 min-w-[200px] border-r border-border/40 pr-2":"w-full justify-center pb-px")},e.createElement("div",{className:he("flex relative",d?"flex-col w-full":"border-b border-border/30")},t.map(t=>e.createElement("div",{key:t.value,className:he("relative",d?"":"border-b-2 border-transparent",l===t.value&&!d&&"border-b-2 border-primary z-10")},e.createElement("button",{role:"tab",type:"button","aria-selected":l===t.value,"aria-controls":`tabpanel-${t.value}`,tabIndex:l===t.value?0:-1,className:f(t),onClick:()=>m(t),disabled:o||t.disabled},t.label,l===t.value&&!d&&e.createElement("div",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-primary rounded-full"})),l===t.value&&d&&e.createElement("div",{className:"absolute top-0 left-0 h-full w-0.5 bg-primary rounded-full"}))))),t.map(t=>e.createElement("div",{key:t.value,role:"tabpanel",id:`tabpanel-${t.value}`,"aria-labelledby":`tab-${t.value}`,hidden:l!==t.value,className:he("focus-visible:outline-hidden rounded-md",d?"flex-1":"w-full",l===t.value?"animate-in fade-in-0 duration-300":"hidden"),style:d?void 0:{width:s}},t.content)))},exports.Text=Yy,exports.TextArea=Tb,exports.Tooltip=$E,exports.UNLIMITED_FILES=jH,exports.UPLOAD_STATUS={UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},exports.Upload=xy,exports.VARIANT_STYLES={default:{button:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"}},exports.Warning=by,exports.breadCrumbVariants={arrow:"arrow",slash:"slash",icon:"icon"},exports.colorVariants=Pb,exports.columnInfo=Gb,exports.createDateColumn=vw,exports.createPersonDataColumns=(t,r)=>{const{enableTruncation:n=!1,maxWords:o=5}=r||{},i=hw("description","Description",{sortable:!0,...n&&{maxWords:2*o}});return[hw(iw,"Name",{width:aw,sortable:!0,...n&&{maxWords:o},customCell:t?t=>e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"h-8 w-8 rounded-full bg-gray-200 mr-3 flex items-center justify-center"},e.createElement(Yy,{variant:"small",color:"secondary"},t.charAt(0))),e.createElement(Yy,{variant:"small",color:"secondary",fontWeight:"semibold"},t)):void 0}),hw(sw,"Email",{...n&&{maxWords:o},customCell:t?t=>e.createElement("a",{href:`mailto:${t}`,className:"hover:underline"},e.createElement(Yy,{variant:"small",color:"secondary"},t)):void 0}),i,vw(lw,"Join Date",{sortable:!0,inputFormat:"YYYY-MM-DD",outputFormat:"MMM DD, YYYY"}),t?hw(cw,"Status",{align:exports.TableColumnAlign.Center,customCell:t=>{const r=t;return e.createElement("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full"},e.createElement(Yy,{variant:"small",color:"secondary",fontWeight:"semibold"},r))}}):yw(cw,"Status",{align:exports.TableColumnAlign.Center})]},exports.createStatusColumn=yw,exports.createTextColumn=hw,exports.getColumnInfo=Xb,exports.getEffectivePositions=Qb,exports.getFlexAlignment=Yb,exports.getPaginationContainerClass=Zb,exports.getShowingEntriesPositionClass=Kb,exports.getSizeClass=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]"}},exports.message=Mb,exports.renderHeader=dw,exports.renderSortIcon=pw,exports.renderTableHeader=fw,exports.sizeVariants=jb,exports.sizes=["small","medium","large"],exports.truncateText=Jb,exports.variants=["primary","success","danger","warning"];
|
|
54
54
|
//# sourceMappingURL=index.js.map
|