@saas-ui/forms 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,97 +1,87 @@
1
- import{ajvResolver as e}from"@hookform/resolvers/ajv";import{isFunction as t,isBrowser as n,runIfFn as r,getOwnerWindow as o,callAllHandlers as a,focus as i,getOwnerDocument as s,getActiveElement as l,contains as u,isTabbable as c,__DEV__ as d,isObject as f,objectKeys as p,mergeWith as m,isString as v,isNumber as h,isCssVar as y,memoizedGet as g,isArray as b,toMediaQueryString as x,omit as E,filterUndefined as w,objectFilter as k,cx as S,warn as C,dataAttr as O,ariaAttr as _,callAll as N,clampValue as R,toPrecision as A,countDecimalPlaces as I,minSafeInteger as P,maxSafeInteger as T,mapResponsive as L,isNull as M,isRightClick as j,normalizeEventKey as D,determineLazyBehavior as V,removeItem as B,addItem as F,isHTMLElement as z,getNextItemFromSearch as W,isActiveElement as U,split as $,isInputEvent as H,get as q}from"@chakra-ui/utils";import{useFormContext as Y,get as Z,useFieldArray as G,useForm as X,FormProvider as K,Controller as J}from"react-hook-form";function Q(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function ee(e){var t={exports:{}};return e(t,t.exports),t.exports}var te=Symbol.for("react.element"),ne=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),se=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.iterator,pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,ve={};function he(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}function ye(){}function ge(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}he.prototype.isReactComponent={},he.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},he.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ye.prototype=he.prototype;var be=ge.prototype=new ye;be.constructor=ge,me(be,he.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,Ee=Object.prototype.hasOwnProperty,we={current:null},ke={key:!0,ref:!0,__self:!0,__source:!0};function Se(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)Ee.call(t,r)&&!ke.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:te,type:e,key:a,ref:i,props:o,_owner:we.current}}function Ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===te}var Oe=/\/+/g;function _e(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function Ne(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case te:case ne:i=!0}}if(i)return o=o(i=e),e=""===r?"."+_e(i,0):r,xe(o)?(n="",null!=e&&(n=e.replace(Oe,"$&/")+"/"),Ne(o,t,n,"",function(e){return e})):null!=o&&(Ce(o)&&(o=function(e,t){return{$$typeof:te,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Oe,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",xe(e))for(var s=0;s<e.length;s++){var l=r+_e(a=e[s],s);i+=Ne(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Ne(a=a.value,t,n,l=r+_e(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Re(e,t,n){if(null==e)return e;var r=[],o=0;return Ne(e,r,"","",function(e){return t.call(n,e,o++)}),r}function Ae(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Ie={current:null},Pe={transition:null},Te={map:Re,forEach:function(e,t,n){Re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Re(e,function(){t++}),t},toArray:function(e){return Re(e,function(e){return e})||[]},only:function(e){if(!Ce(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Le={Children:Te,Component:he,Fragment:re,Profiler:ae,PureComponent:ge,StrictMode:oe,Suspense:ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:Pe,ReactCurrentOwner:we},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=me({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=we.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ee.call(t,l)&&!ke.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:te,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:se,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:ie,_context:e},e.Consumer=e},createElement:Se,createFactory:function(e){var t=Se.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:le,render:e}},isValidElement:Ce,lazy:function(e){return{$$typeof:de,_payload:{_status:-1,_result:e},_init:Ae}},memo:function(e,t){return{$$typeof:ce,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=Pe.transition;Pe.transition={};try{e()}finally{Pe.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return Ie.current.useCallback(e,t)},useContext:function(e){return Ie.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return Ie.current.useDeferredValue(e)},useEffect:function(e,t){return Ie.current.useEffect(e,t)},useId:function(){return Ie.current.useId()},useImperativeHandle:function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return Ie.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return Ie.current.useLayoutEffect(e,t)},useMemo:function(e,t){return Ie.current.useMemo(e,t)},useReducer:function(e,t,n){return Ie.current.useReducer(e,t,n)},useRef:function(e){return Ie.current.useRef(e)},useState:function(e){return Ie.current.useState(e)},useSyncExternalStore:function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)},useTransition:function(){return Ie.current.useTransition()},version:"18.2.0"},Me=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},E={},w=null;function k(e){w=e}E.setExtraStackFrame=function(e){w=e},E.getCurrentStack=null,E.getStackAddendum=function(){var e="";w&&(e+=w);var t=E.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:x};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("warn",e,n)}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=E,S.ReactCurrentActQueue=b;var N={};function R(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(O("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),N[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){R(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){R(e,"replaceState")},enqueueSetState:function(e,t,n,r){R(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in L)L.hasOwnProperty(j)&&M(j,L[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}D.prototype=T.prototype;var B=V.prototype=new D;B.constructor=V,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function U(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function $(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return $(e)+".Consumer";case s:return $(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return H(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=H(x.current.type);Z[t]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,o,a,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===o[r]&&(o[r]=f[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,p),i&&ee(o,p)}return ne(e,a,i,s,l,x.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=I({},e.props),i=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,c=x.current),J(t)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];a.children=f}return ne(e.type,i,s,l,u,c,a)}function ae(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ue(e){return e.replace(le,"$&/")}function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(U(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),m=""===a?"."+ce(f,0):a;if(z(p)){var v="";null!=m&&(v=ue(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(ae(p)&&(!p.key||f&&f.key===p.key||U(p.key),l=p,u=o+(!p.key||f&&f.key===p.key?"":ue(""+p.key)+"/")+m,p=ne(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===a?".":a+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(c=e[b],t,o,g+ce(c,b),i);else{var x=h(e);if("function"==typeof x){var E=e;x===E.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=x.call(E),S=0;!(w=k.next()).done;)y+=de(c=w.value,t,o,g+ce(c,S++),i)}else if("object"===s){var O=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===c||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&O("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,xe,Ee,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,Oe=S.ReactCurrentDispatcher;function _e(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Re=!1,Ae="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Re)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Re=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Oe.current,Oe.current=null,function(){if(0===ke){he=console.log,ye=console.info,ge=console.warn,be=console.error,xe=console.group,Ee=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Re=!1,Oe.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:xe}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:we})})}ke<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?_e(f):"";return"function"==typeof e&&Ne.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return _e(e);switch(e){case c:return _e("Suspense");case d:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,o=e._init;try{return Pe(o(r),t,n)}catch(e){}}return""}Ne=new Ae;var Te,Le={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Pe(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(x.current){var e=H(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==x.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),De(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&ze(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function Ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(je(o),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),je(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,je(o),O("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $e(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,O("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var u=re.apply(this,arguments);if(null==u)return u;if(a)for(var c=2;c<arguments.length;c++)We(arguments[c],e);return e===o?$e(u):Ue(u),u}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&O("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var o=b.current;if(null!==o)try{et(o),function(a){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&O("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===o.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=He,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)We(arguments[o],r.type);return Ue(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,O("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,O("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?O("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?O("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&O("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||O("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ae,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){O("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){O("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||O("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,O("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var u=b.current;return null!==u&&(et(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?O("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&O("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),je=ee(function(e){e.exports="production"===process.env.NODE_ENV?Le:Me}),De=/*#__PURE__*/Q({__proto__:null,default:je},[je]),Ve=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Be="-ms-",Fe="-webkit-",ze=Math.abs,We=String.fromCharCode,Ue=Object.assign;function $e(e){return e.trim()}function He(e,t,n){return e.replace(t,n)}function qe(e,t){return e.indexOf(t)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,n){return e.slice(t,n)}function Ge(e){return e.length}function Xe(e){return e.length}function Ke(e,t){return t.push(e),e}var Je=1,Qe=1,et=0,tt=0,nt=0,rt="";function ot(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Je,column:Qe,length:i,return:""}}function at(e,t){return Ue(ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function it(){return nt=tt>0?Ye(rt,--tt):0,Qe--,10===nt&&(Qe=1,Je--),nt}function st(){return nt=tt<et?Ye(rt,tt++):0,Qe++,10===nt&&(Qe=1,Je++),nt}function lt(){return Ye(rt,tt)}function ut(){return tt}function ct(e,t){return Ze(rt,e,t)}function dt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ft(e){return Je=Qe=1,et=Ge(rt=e),tt=0,[]}function pt(e){return rt="",e}function mt(e){return $e(ct(tt-1,yt(91===e?e+2:40===e?e+1:e)))}function vt(e){for(;(nt=lt())&&nt<33;)st();return dt(e)>2||dt(nt)>3?"":" "}function ht(e,t){for(;--t&&st()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return ct(e,ut()+(t<6&&32==lt()&&32==st()))}function yt(e){for(;st();)switch(nt){case e:return tt;case 34:case 39:34!==e&&39!==e&&yt(nt);break;case 40:41===e&&yt(e);break;case 92:st()}return tt}function gt(e,t){for(;st()&&e+nt!==57&&(e+nt!==84||47!==lt()););return"/*"+ct(t,tt-1)+"*"+We(47===e?e:st())}function bt(e){for(;!dt(lt());)st();return ct(e,tt)}function xt(e){return pt(Et("",null,null,null,[""],e=ft(e),0,[0],e))}function Et(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",x=o,E=a,w=r,k=b;h;)switch(m=g,g=st()){case 40:if(108!=m&&58==k.charCodeAt(d-1)){-1!=qe(k+=He(mt(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=mt(g);break;case 9:case 10:case 13:case 32:k+=vt(m);break;case 92:k+=ht(ut()-1,7);continue;case 47:switch(lt()){case 42:case 47:Ke(kt(gt(st(),ut()),t,n),l);break;default:k+="/"}break;case 123*v:s[u++]=Ge(k)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+c:p>0&&Ge(k)-d&&Ke(p>32?St(k+";",r,n,d-1):St(He(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ke(w=wt(k,t,n,u,c,o,s,b,x=[],E=[],d),a),123===g)if(0===c)Et(k,t,w,w,x,a,d,s,E);else switch(f){case 100:case 109:case 115:Et(e,w,w,r&&Ke(wt(e,w,w,0,0,o,s,b,o,x=[],d),E),o,E,d,s,r?x:E);break;default:Et(k,w,w,w,[""],E,0,s,E)}}u=c=p=0,v=y=1,b=k="",d=i;break;case 58:d=1+Ge(k),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==it())continue;switch(k+=We(g),g*v){case 38:y=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ge(k)-1)*y,y=1;break;case 64:45===lt()&&(k+=mt(st())),f=lt(),c=d=Ge(b=k+=bt(ut())),g++;break;case 45:45===m&&2==Ge(k)&&(v=0)}}return a}function wt(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=Xe(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=Ze(e,d+1,d=ze(v=i[m])),b=e;y<p;++y)(b=$e(v>0?f[y]+" "+g:He(g,/&\f/g,f[y])))&&(l[h++]=b);return ot(e,t,n,0===o?"rule":s,l,u,c)}function kt(e,t,n){return ot(e,t,n,"comm",We(nt),Ze(e,2,-2),0)}function St(e,t,n,r){return ot(e,t,n,"decl",Ze(e,0,r),Ze(e,r+1,-1),r)}function Ct(e,t){switch(function(e,t){return(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3)}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+"-moz-"+e+Be+e+e;case 6828:case 4268:return Fe+e+Be+e+e;case 6165:return Fe+e+Be+"flex-"+e+e;case 5187:return Fe+e+He(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Fe+e+Be+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Fe+e+Be+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+Be+He(e,"shrink","negative")+e;case 5292:return Fe+e+Be+He(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+He(e,"-grow","")+Fe+e+Be+He(e,"grow","positive")+e;case 4554:return Fe+He(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ge(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qe(e,"stretch")?Ct(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Ge(e)-3-(~qe(e,"!important")&&10))){case 107:return He(e,":",":"+Fe)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+Be+e+e}return e}function Ot(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _t(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Ot(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Ge(n=Ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Rt=function(e,t,n){for(var r=0,o=0;r=o,o=lt(),38===r&&12===o&&(t[n]=1),!dt(o);)st();return ct(e,tt)},At=/* #__PURE__ */new WeakMap,It=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||At.get(n))&&!r){At.set(e,!0);for(var o=[],a=function(e,t){return pt(function(e,t){var n=-1,r=44;do{switch(dt(r)){case 0:38===r&&12===lt()&&(t[n]=1),e[n]+=Rt(tt-1,t,n);break;case 2:e[n]+=mt(r);break;case 4:if(44===r){e[++n]=58===lt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=We(r)}}while(r=st());return e}(ft(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Pt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Tt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Lt=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mt=function(e,t,n){Tt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Lt(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Tt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Lt(e)))},jt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ct(e.value,e.length);break;case"@keyframes":return Ot([at(e,{value:He(e.value,"@","@"+Fe)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ot([at(e,{props:[He(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ot([at(e,{props:[He(t,/:(plac\w+)/,":-webkit-input-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,":-moz-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,Be+"input-$1")]})],r)}return""})}}],Dt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||jt;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[It,Pt];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var o,a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((o=i.children).length?o[o.length-1]:null))return;a.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Mt);var u,c,d=[_t,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=Xe(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),Ot(xt(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ve({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return p.sheet.hydrate(s),p};function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}var Bt="function"==typeof Symbol&&Symbol.for,Ft=Bt?Symbol.for("react.element"):60103,zt=Bt?Symbol.for("react.portal"):60106,Wt=Bt?Symbol.for("react.fragment"):60107,Ut=Bt?Symbol.for("react.strict_mode"):60108,$t=Bt?Symbol.for("react.profiler"):60114,Ht=Bt?Symbol.for("react.provider"):60109,qt=Bt?Symbol.for("react.context"):60110,Yt=Bt?Symbol.for("react.async_mode"):60111,Zt=Bt?Symbol.for("react.concurrent_mode"):60111,Gt=Bt?Symbol.for("react.forward_ref"):60112,Xt=Bt?Symbol.for("react.suspense"):60113,Kt=Bt?Symbol.for("react.suspense_list"):60120,Jt=Bt?Symbol.for("react.memo"):60115,Qt=Bt?Symbol.for("react.lazy"):60116,en=Bt?Symbol.for("react.block"):60121,tn=Bt?Symbol.for("react.fundamental"):60117,nn=Bt?Symbol.for("react.responder"):60118,rn=Bt?Symbol.for("react.scope"):60119;function on(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ft:switch(e=e.type){case Yt:case Zt:case Wt:case $t:case Ut:case Xt:return e;default:switch(e=e&&e.$$typeof){case qt:case Gt:case Qt:case Jt:case Ht:return e;default:return t}}case zt:return t}}}function an(e){return on(e)===Zt}var sn={AsyncMode:Yt,ConcurrentMode:Zt,ContextConsumer:qt,ContextProvider:Ht,Element:Ft,ForwardRef:Gt,Fragment:Wt,Lazy:Qt,Memo:Jt,Portal:zt,Profiler:$t,StrictMode:Ut,Suspense:Xt,isAsyncMode:function(e){return an(e)||on(e)===Yt},isConcurrentMode:an,isContextConsumer:function(e){return on(e)===qt},isContextProvider:function(e){return on(e)===Ht},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft},isForwardRef:function(e){return on(e)===Gt},isFragment:function(e){return on(e)===Wt},isLazy:function(e){return on(e)===Qt},isMemo:function(e){return on(e)===Jt},isPortal:function(e){return on(e)===zt},isProfiler:function(e){return on(e)===$t},isStrictMode:function(e){return on(e)===Ut},isSuspense:function(e){return on(e)===Xt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Wt||e===Zt||e===$t||e===Ut||e===Xt||e===Kt||"object"==typeof e&&null!==e&&(e.$$typeof===Qt||e.$$typeof===Jt||e.$$typeof===Ht||e.$$typeof===qt||e.$$typeof===Gt||e.$$typeof===tn||e.$$typeof===nn||e.$$typeof===rn||e.$$typeof===en)},typeOf:on},ln=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case o:case i:case a:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var E=c,w=l,k=s,S=n,C=d,O=o,_=v,N=m,R=r,A=i,I=a,P=f,T=!1;function L(e){return x(e)===c}t.AsyncMode=u,t.ConcurrentMode=E,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=O,t.Lazy=_,t.Memo=N,t.Portal=R,t.Profiler=A,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===u},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=x}()});function un(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}ee(function(e){e.exports="production"===process.env.NODE_ENV?sn:ln});var cn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dn=function(e,t,n){cn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},fn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",mn=/[A-Z]|^ms/g,vn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(e){return 45===e.charCodeAt(1)},yn=function(e){return null!=e&&"boolean"!=typeof e},gn=/* #__PURE__ */Nt(function(e){return hn(e)?e:e.replace(mn,"-$&").toLowerCase()}),bn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vn,function(e,t,n){return Rn={name:t,styles:n,next:Rn},t})}return 1===fn[e]||hn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var xn=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,En=["normal","none","initial","inherit","unset"],wn=bn,kn=/^-ms-/,Sn=/-(.)/g,Cn={};bn=function(e,t){if("content"===e&&("string"!=typeof t||-1===En.indexOf(t)&&!xn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=wn(e,t);return""===n||hn(e)||-1===e.indexOf("-")||void 0!==Cn[e]||(Cn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(kn,"ms-").replace(Sn,function(e,t){return t.toUpperCase()})+"?")),n}}var On="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _n(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(On);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_n(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":yn(i)&&(r+=gn(a)+":"+bn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(On);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=_n(e,t,i);switch(a){case"animation":case"animationName":r+=gn(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)yn(i[l])&&(r+=gn(a)+":"+bn(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Rn,i=n(e);return Rn=a,_n(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(vn,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var Nn,Rn,An=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Nn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var In=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Rn=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=_n(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pn),o+=i[0]);for(var s=1;s<e.length;s++)o+=_n(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(pn),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Nn,function(e){return a=e,""})),An.lastIndex=0;for(var l,u="";null!==(l=An.exec(o));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:o,map:a,next:Rn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:o,next:Rn}},Pn={}.hasOwnProperty,Tn=/* #__PURE__ */je.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Dt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Tn.displayName="EmotionCacheContext");var Ln=function(e){/*#__PURE__*/
2
- return je.forwardRef(function(t,n){var r=je.useContext(Tn);return e(t,r,n)})},Mn=/* #__PURE__ */je.createContext({});"production"!==process.env.NODE_ENV&&(Mn.displayName="EmotionThemeContext");var jn=De.useInsertionEffect?De.useInsertionEffect:function(e){e()};function Dn(e){jn(e)}var Vn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cn(t,n,r),Dn(function(){return dn(t,n,r)}),null},Bn=/* #__PURE__ */Ln(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=un(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=In(a,void 0,je.useContext(Mn));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=In([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var u={};for(var c in e)!Pn.call(e,c)||"css"===c||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===c||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===c||(u[c]=e[c]);return u.ref=n,u.className=i,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(Vn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/je.createElement(o,u))});"production"!==process.env.NODE_ENV&&(Bn.displayName="EmotionCssPropInternal");var Fn=De.useInsertionEffect?De.useInsertionEffect:je.useLayoutEffect,zn=!1,Wn=/* #__PURE__ */Ln(function(e,t){"production"===process.env.NODE_ENV||zn||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),zn=!0);var n=In([e.styles],void 0,je.useContext(Mn)),r=je.useRef();return Fn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Fn(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&dn(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return In(t)}"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionGlobal");var $n=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Hn(e,t,n){var r=[],o=un(e,r,n);return r.length<2?n:o+t(r)}var qn=function(e){var t=e.cache,n=e.serializedArr;return Dn(function(){for(var e=0;e<n.length;e++)dn(t,n[e],!1)}),null},Yn=/* #__PURE__ */Ln(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=In(o,t.registered);return r.push(i),cn(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return Hn(t.registered,o,$n(r))},theme:je.useContext(Mn)},i=e.children(a);return n=!0,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(qn,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Yn.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Zn="undefined"!=typeof globalThis?globalThis:window,Gn="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Zn[Gn]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Zn[Gn]=!0}function Xn(e,n){if(null!=e)if(t(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){return Xn(t,e)})}}function Jn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,o=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,a=e.name,i=/*#__PURE__*/je.createContext(void 0);return i.displayName=a,[i.Provider,function e(){var t=je.useContext(i);if(!t&&n){var r=new Error(o);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function Qn(e){return je.Children.toArray(e).filter(function(e){/*#__PURE__*/
3
- return je.isValidElement(e)})}var er=n?je.useLayoutEffect:je.useEffect;function tr(e,t){void 0===t&&(t=[]);var n=je.useRef(e);return er(function(){n.current=e}),je.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function nr(e,t,n,o){var a=tr(t);return je.useEffect(function(){var i,s=null!=(i=r(n))?i:document;if(t)return s.addEventListener(e,a,o),function(){s.removeEventListener(e,a,o)}},[e,n,o,a,t]),function(){var t;(null!=(t=r(n))?t:document).removeEventListener(e,a,o)}}function rr(e){void 0===e&&(e=!1);var t=je.useState(e),n=t[0],r=t[1],o=je.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,o]}function or(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function ar(e){var t=e.value,n=e.defaultValue,o=e.shouldUpdate,a=void 0===o?function(e,t){return e!==t}:o,i=tr(e.onChange),s=tr(a),l=je.useState(n),u=l[1],c=void 0!==t,d=c?t:l[0],f=je.useCallback(function(e){var t=r(e,d);s(d,t)&&(c||u(t),i(t))},[c,i,d,s]);return[d,f]}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function sr(e,t){var n=je.useId();return je.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var lr=function(e,t){var n=je.useRef(!1),r=je.useRef(!1);je.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),je.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function ur(e,t){return void 0===t&&(t=[]),je.useEffect(function(){return function(){return e()}},t)}function cr(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return je.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&cr(t,e)})}},t)}function fr(e,t){var n,r=e.target;return!(e.button>0||r&&!s(r).contains(r)||null!=(n=t.current)&&n.contains(r))}var pr=/*#__PURE__*/je.createContext({});function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}d&&(pr.displayName="ColorModeContext");var vr,hr,yr=function(e){return v(e)?e.replace(/!(important)?$/,"").trim():e},gr=function(e,t){return function(n){var r=String(t),o=function(e){return/!(important)?$/.test(e)}(r),a=yr(r),i=e?e+"."+a:a,s=f(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=yr(s),o?s+" !important":s}};function br(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,o){var a,i=gr(t,e)(o),s=null!=(a=null==n?void 0:n(i,o))?a:i;return r&&(s=r(s,o)),s}}function xr(e,t){return function(n){var r={property:n,scale:e};return r.transform=br({scale:e,transform:t}),r}}var Er=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],wr={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},kr={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Sr={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Cr=((vr={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},vr),Or=((hr={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},hr);function _r(e,t){return _r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_r(e,t)}function Nr(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&&_r(e,t)}function Rr(){Rr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),_r(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Nr(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Rr.apply(this,arguments)}var Ar={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Ir=new Set(Object.values(Ar)),Pr=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Tr=function(e){return e.trim()},Lr=function(e){return v(e)&&e.includes("(")&&e.includes(")")},Mr=function(e){return function(t){return e+"("+t+")"}},jr={filter:function(e){return"auto"!==e?e:wr},backdropFilter:function(e){return"auto"!==e?e:kr},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(jr.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Er).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Er).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||h(e)?e+"px":e},fraction:function(e){return!h(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(y(e)||null==e)return e;var t=v(e)&&!e.endsWith("deg");return h(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Pr.has(e))return e;var o=null!=(n=null==(r=/*#__PURE__*/Rr(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},a=o.type,i=o.values;if(!a||!i)return e;var s=a.includes("-gradient")?a:a+"-gradient",l=i.split(",").map(Tr).filter(Boolean),u=l[0],c=l.slice(1);if(0===(null==c?void 0:c.length))return e;c.unshift(u in Ar?Ar[u]:u);var d=c.map(function(e){if(Ir.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=r[0],a=r[1],i=Lr(a)?a:a&&a.split(" "),s="colors."+o,l=s in t.__cssMap?t.__cssMap[s].varRef:o;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Mr("blur"),opacity:Mr("opacity"),brightness:Mr("brightness"),contrast:Mr("contrast"),dropShadow:Mr("drop-shadow"),grayscale:Mr("grayscale"),hueRotate:Mr("hue-rotate"),invert:Mr("invert"),saturate:Mr("saturate"),sepia:Mr("sepia"),bgImage:function(e){return null==e||Lr(e)||Pr.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=Sr[e])?t:{},r=n.space,o=n.divide,a={flexDirection:e};return r&&(a[r]=1),o&&(a[o]=1),a}},Dr={borderWidths:xr("borderWidths"),borderStyles:xr("borderStyles"),colors:xr("colors"),borders:xr("borders"),radii:xr("radii",jr.px),space:xr("space",jr.px),spaceT:xr("space",jr.px),degreeT:function(e){return{property:e,transform:jr.degree}},prop:function(e,t,n){return mr({property:e,scale:t},t&&{transform:br({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:xr("sizes",jr.px),sizesT:xr("sizes",jr.fraction),shadows:xr("shadows"),logical:function(e){var t,n,r,o=e.scale,a=e.transform;return{scale:o,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:o?br({scale:o,compose:a}):a}},blur:xr("blur",jr.blur)},Vr={background:Dr.colors("background"),backgroundColor:Dr.colors("backgroundColor"),backgroundImage:Dr.propT("backgroundImage",jr.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:jr.bgClip},bgSize:Dr.prop("backgroundSize"),bgPosition:Dr.prop("backgroundPosition"),bg:Dr.colors("background"),bgColor:Dr.colors("backgroundColor"),bgPos:Dr.prop("backgroundPosition"),bgRepeat:Dr.prop("backgroundRepeat"),bgAttachment:Dr.prop("backgroundAttachment"),bgGradient:Dr.propT("backgroundImage",jr.gradient),bgClip:{transform:jr.bgClip}};Object.assign(Vr,{bgImage:Vr.backgroundImage,bgImg:Vr.backgroundImage});var Br={border:Dr.borders("border"),borderWidth:Dr.borderWidths("borderWidth"),borderStyle:Dr.borderStyles("borderStyle"),borderColor:Dr.colors("borderColor"),borderRadius:Dr.radii("borderRadius"),borderTop:Dr.borders("borderTop"),borderBlockStart:Dr.borders("borderBlockStart"),borderTopLeftRadius:Dr.radii("borderTopLeftRadius"),borderStartStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Dr.radii("borderTopRightRadius"),borderStartEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Dr.borders("borderRight"),borderInlineEnd:Dr.borders("borderInlineEnd"),borderBottom:Dr.borders("borderBottom"),borderBlockEnd:Dr.borders("borderBlockEnd"),borderBottomLeftRadius:Dr.radii("borderBottomLeftRadius"),borderBottomRightRadius:Dr.radii("borderBottomRightRadius"),borderLeft:Dr.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Dr.borders(["borderLeft","borderRight"]),borderInline:Dr.borders("borderInline"),borderY:Dr.borders(["borderTop","borderBottom"]),borderBlock:Dr.borders("borderBlock"),borderTopWidth:Dr.borderWidths("borderTopWidth"),borderBlockStartWidth:Dr.borderWidths("borderBlockStartWidth"),borderTopColor:Dr.colors("borderTopColor"),borderBlockStartColor:Dr.colors("borderBlockStartColor"),borderTopStyle:Dr.borderStyles("borderTopStyle"),borderBlockStartStyle:Dr.borderStyles("borderBlockStartStyle"),borderBottomWidth:Dr.borderWidths("borderBottomWidth"),borderBlockEndWidth:Dr.borderWidths("borderBlockEndWidth"),borderBottomColor:Dr.colors("borderBottomColor"),borderBlockEndColor:Dr.colors("borderBlockEndColor"),borderBottomStyle:Dr.borderStyles("borderBottomStyle"),borderBlockEndStyle:Dr.borderStyles("borderBlockEndStyle"),borderLeftWidth:Dr.borderWidths("borderLeftWidth"),borderInlineStartWidth:Dr.borderWidths("borderInlineStartWidth"),borderLeftColor:Dr.colors("borderLeftColor"),borderInlineStartColor:Dr.colors("borderInlineStartColor"),borderLeftStyle:Dr.borderStyles("borderLeftStyle"),borderInlineStartStyle:Dr.borderStyles("borderInlineStartStyle"),borderRightWidth:Dr.borderWidths("borderRightWidth"),borderInlineEndWidth:Dr.borderWidths("borderInlineEndWidth"),borderRightColor:Dr.colors("borderRightColor"),borderInlineEndColor:Dr.colors("borderInlineEndColor"),borderRightStyle:Dr.borderStyles("borderRightStyle"),borderInlineEndStyle:Dr.borderStyles("borderInlineEndStyle"),borderTopRadius:Dr.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Dr.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Dr.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Dr.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Br,{rounded:Br.borderRadius,roundedTop:Br.borderTopRadius,roundedTopLeft:Br.borderTopLeftRadius,roundedTopRight:Br.borderTopRightRadius,roundedTopStart:Br.borderStartStartRadius,roundedTopEnd:Br.borderStartEndRadius,roundedBottom:Br.borderBottomRadius,roundedBottomLeft:Br.borderBottomLeftRadius,roundedBottomRight:Br.borderBottomRightRadius,roundedBottomStart:Br.borderEndStartRadius,roundedBottomEnd:Br.borderEndEndRadius,roundedLeft:Br.borderLeftRadius,roundedRight:Br.borderRightRadius,roundedStart:Br.borderInlineStartRadius,roundedEnd:Br.borderInlineEndRadius,borderStart:Br.borderInlineStart,borderEnd:Br.borderInlineEnd,borderTopStartRadius:Br.borderStartStartRadius,borderTopEndRadius:Br.borderStartEndRadius,borderBottomStartRadius:Br.borderEndStartRadius,borderBottomEndRadius:Br.borderEndEndRadius,borderStartRadius:Br.borderInlineStartRadius,borderEndRadius:Br.borderInlineEndRadius,borderStartWidth:Br.borderInlineStartWidth,borderEndWidth:Br.borderInlineEndWidth,borderStartColor:Br.borderInlineStartColor,borderEndColor:Br.borderInlineEndColor,borderStartStyle:Br.borderInlineStartStyle,borderEndStyle:Br.borderInlineEndStyle});var Fr={color:Dr.colors("color"),textColor:Dr.colors("color"),fill:Dr.colors("fill"),stroke:Dr.colors("stroke")},zr={boxShadow:Dr.shadows("boxShadow"),mixBlendMode:!0,blendMode:Dr.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Dr.prop("backgroundBlendMode"),opacity:!0};Object.assign(zr,{shadow:zr.boxShadow});var Wr={filter:{transform:jr.filter},blur:Dr.blur("--chakra-blur"),brightness:Dr.propT("--chakra-brightness",jr.brightness),contrast:Dr.propT("--chakra-contrast",jr.contrast),hueRotate:Dr.degreeT("--chakra-hue-rotate"),invert:Dr.propT("--chakra-invert",jr.invert),saturate:Dr.propT("--chakra-saturate",jr.saturate),dropShadow:Dr.propT("--chakra-drop-shadow",jr.dropShadow),backdropFilter:{transform:jr.backdropFilter},backdropBlur:Dr.blur("--chakra-backdrop-blur"),backdropBrightness:Dr.propT("--chakra-backdrop-brightness",jr.brightness),backdropContrast:Dr.propT("--chakra-backdrop-contrast",jr.contrast),backdropHueRotate:Dr.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Dr.propT("--chakra-backdrop-invert",jr.invert),backdropSaturate:Dr.propT("--chakra-backdrop-saturate",jr.saturate)},Ur={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:jr.flexDirection},experimental_spaceX:{static:Cr,transform:br({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Or,transform:br({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Dr.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Dr.space("gap"),rowGap:Dr.space("rowGap"),columnGap:Dr.space("columnGap")};Object.assign(Ur,{flexDir:Ur.flexDirection});var $r={gridGap:Dr.space("gridGap"),gridColumnGap:Dr.space("gridColumnGap"),gridRowGap:Dr.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Hr={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:jr.outline},outlineOffset:!0,outlineColor:Dr.colors("outlineColor")},qr={width:Dr.sizesT("width"),inlineSize:Dr.sizesT("inlineSize"),height:Dr.sizes("height"),blockSize:Dr.sizes("blockSize"),boxSize:Dr.sizes(["width","height"]),minWidth:Dr.sizes("minWidth"),minInlineSize:Dr.sizes("minInlineSize"),minHeight:Dr.sizes("minHeight"),minBlockSize:Dr.sizes("minBlockSize"),maxWidth:Dr.sizes("maxWidth"),maxInlineSize:Dr.sizes("maxInlineSize"),maxHeight:Dr.sizes("maxHeight"),maxBlockSize:Dr.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Dr.propT("float",jr.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var Yr={listStyleType:!0,listStylePosition:!0,listStylePos:Dr.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Dr.prop("listStyleImage")},Zr={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Gr={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Xr=function(e,t,n){var r={},o=g(e,t,{});for(var a in o)a in n&&null!=n[a]||(r[a]=o[a]);return r},Kr={srOnly:{transform:function(e){return!0===e?Zr:"focusable"===e?Gr:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return Xr(t,e,n)}}},Jr={position:!0,pos:Dr.prop("position"),zIndex:Dr.prop("zIndex","zIndices"),inset:Dr.spaceT("inset"),insetX:Dr.spaceT(["left","right"]),insetInline:Dr.spaceT("insetInline"),insetY:Dr.spaceT(["top","bottom"]),insetBlock:Dr.spaceT("insetBlock"),top:Dr.spaceT("top"),insetBlockStart:Dr.spaceT("insetBlockStart"),bottom:Dr.spaceT("bottom"),insetBlockEnd:Dr.spaceT("insetBlockEnd"),left:Dr.spaceT("left"),insetInlineStart:Dr.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Dr.spaceT("right"),insetInlineEnd:Dr.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jr,{insetStart:Jr.insetInlineStart,insetEnd:Jr.insetInlineEnd});var Qr={ring:{transform:jr.ring},ringColor:Dr.colors("--chakra-ring-color"),ringOffset:Dr.prop("--chakra-ring-offset-width"),ringOffsetColor:Dr.colors("--chakra-ring-offset-color"),ringInset:Dr.prop("--chakra-ring-inset")},eo={margin:Dr.spaceT("margin"),marginTop:Dr.spaceT("marginTop"),marginBlockStart:Dr.spaceT("marginBlockStart"),marginRight:Dr.spaceT("marginRight"),marginInlineEnd:Dr.spaceT("marginInlineEnd"),marginBottom:Dr.spaceT("marginBottom"),marginBlockEnd:Dr.spaceT("marginBlockEnd"),marginLeft:Dr.spaceT("marginLeft"),marginInlineStart:Dr.spaceT("marginInlineStart"),marginX:Dr.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Dr.spaceT("marginInline"),marginY:Dr.spaceT(["marginTop","marginBottom"]),marginBlock:Dr.spaceT("marginBlock"),padding:Dr.space("padding"),paddingTop:Dr.space("paddingTop"),paddingBlockStart:Dr.space("paddingBlockStart"),paddingRight:Dr.space("paddingRight"),paddingBottom:Dr.space("paddingBottom"),paddingBlockEnd:Dr.space("paddingBlockEnd"),paddingLeft:Dr.space("paddingLeft"),paddingInlineStart:Dr.space("paddingInlineStart"),paddingInlineEnd:Dr.space("paddingInlineEnd"),paddingX:Dr.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Dr.space("paddingInline"),paddingY:Dr.space(["paddingTop","paddingBottom"]),paddingBlock:Dr.space("paddingBlock")};Object.assign(eo,{m:eo.margin,mt:eo.marginTop,mr:eo.marginRight,me:eo.marginInlineEnd,marginEnd:eo.marginInlineEnd,mb:eo.marginBottom,ml:eo.marginLeft,ms:eo.marginInlineStart,marginStart:eo.marginInlineStart,mx:eo.marginX,my:eo.marginY,p:eo.padding,pt:eo.paddingTop,py:eo.paddingY,px:eo.paddingX,pb:eo.paddingBottom,pl:eo.paddingLeft,ps:eo.paddingInlineStart,paddingStart:eo.paddingInlineStart,pr:eo.paddingRight,pe:eo.paddingInlineEnd,paddingEnd:eo.paddingInlineEnd});var to={textDecorationColor:Dr.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Dr.shadows("textShadow")},no={clipPath:!0,transform:Dr.propT("transform",jr.transform),transformOrigin:!0,translateX:Dr.spaceT("--chakra-translate-x"),translateY:Dr.spaceT("--chakra-translate-y"),skewX:Dr.degreeT("--chakra-skew-x"),skewY:Dr.degreeT("--chakra-skew-y"),scaleX:Dr.prop("--chakra-scale-x"),scaleY:Dr.prop("--chakra-scale-y"),scale:Dr.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Dr.degreeT("--chakra-rotate")},ro={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Dr.prop("transitionDuration","transition.duration"),transitionProperty:Dr.prop("transitionProperty","transition.property"),transitionTimingFunction:Dr.prop("transitionTimingFunction","transition.easing")},oo={fontFamily:Dr.prop("fontFamily","fonts"),fontSize:Dr.prop("fontSize","fontSizes",jr.px),fontWeight:Dr.prop("fontWeight","fontWeights"),lineHeight:Dr.prop("lineHeight","lineHeights"),letterSpacing:Dr.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ao={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Dr.spaceT("scrollMargin"),scrollMarginTop:Dr.spaceT("scrollMarginTop"),scrollMarginBottom:Dr.spaceT("scrollMarginBottom"),scrollMarginLeft:Dr.spaceT("scrollMarginLeft"),scrollMarginRight:Dr.spaceT("scrollMarginRight"),scrollMarginX:Dr.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Dr.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Dr.spaceT("scrollPadding"),scrollPaddingTop:Dr.spaceT("scrollPaddingTop"),scrollPaddingBottom:Dr.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Dr.spaceT("scrollPaddingLeft"),scrollPaddingRight:Dr.spaceT("scrollPaddingRight"),scrollPaddingX:Dr.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Dr.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function io(e){return f(e)&&e.reference?e.reference:String(e)}var so=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(io).join(" "+e+" ").replace(/calc/g,"")},lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["+"].concat(t))+")"},uo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["-"].concat(t))+")"},co=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["*"].concat(t))+")"},fo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["/"].concat(t))+")"},po=function(e){var t=io(e);return null==t||Number.isNaN(parseFloat(t))?co(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},mo=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(lo.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(uo.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(co.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(fo.apply(void 0,[e].concat(n)))},negate:function(){return mo(po(e))},toString:function(){return e.toString()}}},{add:lo,subtract:uo,multiply:co,divide:fo,negate:po}),vo=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},ho=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},yo=function(e,t){return e+":focus-visible "+t},go=function(e,t){return e+":focus-within "+t},bo=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},xo=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Eo=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},wo=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},ko=function(e){return Co(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},So=function(e){return Co(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Co=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Oo={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ko(vo),_peerHover:So(vo),_groupFocus:ko(ho),_peerFocus:So(ho),_groupFocusVisible:ko(yo),_peerFocusVisible:So(yo),_groupActive:ko(bo),_peerActive:So(bo),_groupDisabled:ko(xo),_peerDisabled:So(xo),_groupInvalid:ko(Eo),_peerInvalid:So(Eo),_groupChecked:ko(wo),_peerChecked:So(wo),_groupFocusWithin:ko(go),_peerFocusWithin:So(go),_peerPlaceholderShown:So(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},_o=p(Oo);function No(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ro(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?No(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ao=m({},Vr,Br,Fr,Ur,qr,Wr,Qr,Hr,$r,Kr,Jr,zr,eo,ao,oo,to,no,Yr,ro),Io=p(Object.assign({},eo,qr,Ur,$r,Jr)),Po=[].concat(p(Ao),_o),To=mr({},Ao,Oo),Lo=function(e){return e in To},Mo=function(e,t){return e.startsWith("--")&&v(t)&&!y(t)},jo=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},a=function(e){var t;return null!=(t=o(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=o(i[0]))?r:a(s))?n:a(t)},Do=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vo=/* #__PURE__ */Nt(function(e){return Do.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Bo=function(e){return"theme"!==e},Fo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Vo:Bo},zo=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wo=De.useInsertionEffect?De.useInsertionEffect:function(e){e()},Uo="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cn(t,n,r),Wo(function(){return dn(t,n,r)}),null},Ho=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=zo(t,n,a),l=s||Fo(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{"production"!==process.env.NODE_ENV&&void 0===c[0][0]&&console.error(Uo),d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===c[0][p]&&console.error(Uo),d.push(c[p],c[0][p])}var m=Ln(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=je.useContext(Mn)}"string"==typeof e.className?a=un(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var m=In(d.concat(c),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var v=u&&void 0===s?Fo(r):l,h={};for(var y in e)u&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=a,h.ref=n,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement($o,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/je.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Vt({},n,r,{shouldForwardProp:zo(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ho[e]=Ho(e)});var qo="undefined"!=typeof Element,Yo="function"==typeof Map,Zo="function"==typeof Set,Go="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Xo(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Xo(e[r],t[r]))return!1;return!0}if(Yo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Zo&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Go&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(qo&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Xo(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Ko=function(e,t){try{return Xo(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function Qo(){var e=je.useContext(Mn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Jn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ea=function(e){return Jn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function ta(e){return E(e,["styleConfig","size","variant","colorScheme"])}function na(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var ra=new Set([].concat(Po,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),oa=new Set(["htmlWidth","htmlHeight","htmlSize"]),aa=function(e){return oa.has(e)||!ra.has(e)},ia=["theme","css","__css","sx"],sa=["baseStyle"];function la(e,t){var n=null!=t?t:{},o=n.baseStyle,a=na(n,sa);a.shouldForwardProp||(a.shouldForwardProp=aa);var i=function(e){var t=e.baseStyle;return function(e){var n,o=e.css,a=e.__css,i=e.sx,s=na(e,ia),l=k(s,function(e,t){return Lo(t)}),u=r(t,e),c=Object.assign({},a,u,w(l),i),d=(n=c,function(e){return function(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,a=void 0===o?{}:o,i=e.theme;return function e(t,o){void 0===o&&(o=!1);var s=r(t,i),l=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,a=n.toArrayValue,i=n.media,s={};for(var l in e){var u=r(e[l],t);if(null!=u)if(u=f(u)&&o(u)?a(u):u,Array.isArray(u))for(var c=u.slice(0,i.length).length,d=0;d<c;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=u[d]&&(s[p][l]=u[d])):s[l]=u[d]}else s[l]=u}return s}}(s)(i),u={};for(var c in l){var d,p,v,h,y,g=r(l[c],i);c in a&&(c=a[c]),Mo(c,g)&&(g=jo(i,g));var b=n[c];if(!0===b&&(b={property:c}),f(g)){var x;u[c]=null!=(x=u[c])?x:{},u[c]=m({},u[c],e(g,!0))}else{var E=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(g,i,s))?d:g;E=null!=(v=b)&&v.processResult?e(E,!0):E;var w=r(null==(h=b)?void 0:h.property,i);if(!o&&null!=(y=b)&&y.static){var k=r(b.static,i);u=m({},u,k)}if(w&&Array.isArray(w))for(var S,C=Ro(w);!(S=C()).done;)u[S.value]=E;else w?"&"===w&&f(E)?u=m({},u,E):u[w]=E:f(E)?u=m({},u,E):u[c]=E}}return u}}({theme:e,pseudos:Oo,configs:Ao})(n)})(e.theme);return o?[d,o]:d}}({baseStyle:o});return Ho(e,a)(i)}function ua(e){/*#__PURE__*/
4
- return je.forwardRef(e)}var ca=["styleConfig"];function da(e,t){var n;void 0===t&&(t={});var o,a=t.styleConfig,i=na(t,ca),s=Jo({},function(){var e=je.useContext(pr);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:Qo()}),l=s.theme,u=s.colorMode,c=g(l,"components."+e),d=a||c,p=m({theme:l,colorMode:u},null!=(n=null==d?void 0:d.defaultProps)?n:{},w(E(i,["children"]))),v=je.useRef({});if(d){var h=(o=d,function(e){var t,n=e.variant,a=e.size,i=function(e){var t=e.__breakpoints;return function(e,n,o,a){if(t){var i={},s=function(e,t){return b(e)?e:f(e)?t(e):null!=e?[e]:void 0}(o,t.toArrayValue);if(!s)return i;for(var l=s.length,u=1===l,c=!!e.parts,d=function(o){var l,d,f=t.details[o],p=t.details[function(e,t){for(var n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}(s,o)],v=x(f.minW,null==p?void 0:p._minW),h=r(null==(l=e[n])?void 0:l[s[o]],a);return h?c?(null==(d=e.parts)||d.forEach(function(e){var t,n;m(i,((n={})[e]=u?h[e]:((t={})[v]=h[e],t),n))}),"continue"):c?void(i[v]=h):(u?m(i,h):i[v]=h,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return m({},r(null!=(t=o.baseStyle)?t:{},e),i(o,"sizes",a,e),i(o,"variants",n,e))}),y=h(p);Ko(v.current,y)||(v.current=y)}return v.current}function fa(e,t){return void 0===t&&(t={}),da(e,t)}function pa(e,t){return void 0===t&&(t={}),da(e,t)}var ma,va=(ma=new Map,new Proxy(la,{apply:function(e,t,n){return la.apply(void 0,n)},get:function(e,t){return ma.has(t)||ma.set(t,la(t)),ma.get(t)}})),ha={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ya=va("span",{baseStyle:ha});d&&(ya.displayName="VisuallyHidden");var ga=va("input",{baseStyle:ha});function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(this,arguments)}d&&(ga.displayName="VisuallyHiddenInput");var xa=["label","thickness","speed","emptyColor","className"],Ea=function(){var e=Un.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wa=/*#__PURE__*/ua(function(e,t){var n=fa("Spinner",e),r=ta(e),o=r.label,a=void 0===o?"Loading...":o,i=r.thickness,s=void 0===i?"2px":i,l=r.speed,u=void 0===l?"0.45s":l,c=r.emptyColor,d=void 0===c?"transparent":c,f=r.className,p=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,xa),m=S("chakra-spinner",f),v=ba({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:d,borderLeftColor:d,animation:Ea+" "+u+" linear infinite"},n);/*#__PURE__*/
5
- return je.createElement(va.div,ba({ref:t,__css:v,className:m},p),a&&/*#__PURE__*/je.createElement(ya,null,a))});function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka.apply(this,arguments)}d&&(wa.displayName="Spinner");var Sa=["as","viewBox","color","focusable","children","className","__css"],Ca={path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Oa=/*#__PURE__*/ua(function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,u=e.className,c=e.__css,d=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Sa),f={ref:t,focusable:s,className:S("chakra-icon",u),__css:ka({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},c)},p=null!=r?r:Ca.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
6
- return je.createElement(va.svg,ka({as:n},f,d));var m=null!=l?l:Ca.path;/*#__PURE__*/
7
- return je.createElement(va.svg,ka({verticalAlign:"middle",viewBox:p},f,d),m)});d&&(Oa.displayName="Icon");var _a=Oa,Na=function(e,t){return Na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Na(e,t)};function Ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Aa=function(){return Aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Aa.apply(this,arguments)};function Ia(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ta(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var La="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Ma=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},ja={measureLayout:Ma(["layout","layoutId","drag"]),animation:Ma(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ma(["exit"]),drag:Ma(["drag","dragControls"]),focus:Ma(["whileFocus"]),hover:Ma(["whileHover","onHoverStart","onHoverEnd"]),tap:Ma(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ma(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ma(["whileInView","onViewportEnter","onViewportLeave"])},Da=function(){},Va=function(){};"production"!==process.env.NODE_ENV&&(Da=function(e,t){e||"undefined"==typeof console||console.warn(t)},Va=function(e,t){if(!e)throw new Error(t)});var Ba=je.createContext({strict:!1}),Fa=Object.keys(ja),za=Fa.length,Wa=je.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ua=je.createContext({}),$a=je.createContext(null),Ha="undefined"!=typeof document,qa=Ha?je.useLayoutEffect:je.useEffect,Ya={current:null},Za=!1;function Ga(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xa(e){return Array.isArray(e)}function Ka(e){return"string"==typeof e||Xa(e)}function Ja(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Qa(e,t,n){var r=e.getProps();return Ja(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ei(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ka(e.initial)||Ka(e.animate)||Ka(e.whileHover)||Ka(e.whileDrag)||Ka(e.whileTap)||Ka(e.whileFocus)||Ka(e.exit)}function ti(e){return Boolean(ei(e)||e.variants)}function ni(e){return Array.isArray(e)?e.join(" "):e}function ri(e){var t=je.useRef(null);return null===t.current&&(t.current=e()),t.current}const oi="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ai="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(oi()),16.666666666666668);let ii=!0,si=!1,li=!1;const ui={delta:0,timestamp:0},ci=["read","update","preRender","render","postRender"],di=ci.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),si=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),fi=ci.reduce((e,t)=>{const n=di[t];return e[t]=(e,t=!1,r=!1)=>(si||yi(),n.schedule(e,t,r)),e},{}),pi=ci.reduce((e,t)=>(e[t]=di[t].cancel,e),{}),mi=ci.reduce((e,t)=>(e[t]=()=>di[t].process(ui),e),{}),vi=e=>di[e].process(ui),hi=e=>{si=!1,ui.delta=ii?16.666666666666668:Math.max(Math.min(e-ui.timestamp,40),1),ui.timestamp=e,li=!0,ci.forEach(vi),li=!1,si&&(ii=!1,ai(hi))},yi=()=>{si=!0,ii=!0,li||ai(hi)},gi=()=>ui,bi=(e,t,n)=>Math.min(Math.max(n,e),t);function xi(e,t){return e*Math.sqrt(1-t*t)}const Ei=["duration","bounce"],wi=["stiffness","damping","mass"];function ki(e,t){return t.some(t=>void 0!==e[t])}function Si(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Ia(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ki(e,wi)&&ki(e,Ei)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Da(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=bi(.05,1,i),e=bi(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/xi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=xi(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=Ci,m=Ci;function v(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=xi(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}Si.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ci=e=>0,Oi=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},_i=(e,t,n)=>-n*e+n*t+e,Ni=(e,t)=>n=>Math.max(Math.min(n,t),e),Ri=e=>e%1?Number(e.toFixed(5)):e,Ai=/(-)?([\d]*\.?[\d])+/g,Ii=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Pi=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ti(e){return"string"==typeof e}const Li={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Mi=Object.assign(Object.assign({},Li),{transform:Ni(0,1)}),ji=Object.assign(Object.assign({},Li),{default:1}),Di=e=>({test:t=>Ti(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Vi=Di("deg"),Bi=Di("%"),Fi=Di("px"),zi=Di("vh"),Wi=Di("vw"),Ui=Object.assign(Object.assign({},Bi),{parse:e=>Bi.parse(e)/100,transform:e=>Bi.transform(100*e)}),$i=(e,t)=>n=>Boolean(Ti(n)&&Pi.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hi=(e,t,n)=>r=>{if(!Ti(r))return r;const[o,a,i,s]=r.match(Ai);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},qi={test:$i("hsl","hue"),parse:Hi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bi.transform(Ri(t))+", "+Bi.transform(Ri(n))+", "+Ri(Mi.transform(r))+")"},Yi=Ni(0,255),Zi=Object.assign(Object.assign({},Li),{transform:e=>Math.round(Yi(e))}),Gi={test:$i("rgb","red"),parse:Hi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zi.transform(e)+", "+Zi.transform(t)+", "+Zi.transform(n)+", "+Ri(Mi.transform(r))+")"},Xi={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Gi.transform},Ki={test:e=>Gi.test(e)||Xi.test(e)||qi.test(e),parse:e=>Gi.test(e)?Gi.parse(e):qi.test(e)?qi.parse(e):Xi.parse(e),transform:e=>Ti(e)?e:e.hasOwnProperty("red")?Gi.transform(e):qi.transform(e)};function Ji(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ii);r&&(n=r.length,e=e.replace(Ii,"${c}"),t.push(...r.map(Ki.parse)));const o=e.match(Ai);return o&&(e=e.replace(Ai,"${n}"),t.push(...o.map(Li.parse))),{values:t,numColors:n,tokenised:e}}function Qi(e){return Ji(e).values}function es(e){const{values:t,numColors:n,tokenised:r}=Ji(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ki.transform(e[r]):Ri(e[r]));return t}}const ts=e=>"number"==typeof e?0:e,ns={test:function(e){var t,n,r,o;return isNaN(e)&&Ti(e)&&(null!==(n=null===(t=e.match(Ai))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ii))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qi,createTransformer:es,getAnimatableNone:function(e){const t=Qi(e);return es(e)(t.map(ts))}},rs=new Set(["brightness","contrast","saturate","opacity"]);function os(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ai)||[];if(!r)return e;const o=n.replace(r,"");let a=rs.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const as=/([a-z-]*)\(.*?\)/g,is=Object.assign(Object.assign({},ns),{getAnimatableNone:e=>{const t=e.match(as);return t?t.map(os).join(" "):e}});function ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ls({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ss(s,r,e+1/3),a=ss(s,r,e),i=ss(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const us=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},cs=[Xi,Gi,qi],ds=e=>cs.find(t=>t.test(e)),fs=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ps=(e,t)=>{let n=ds(e),r=ds(t);Va(!!n,fs(e)),Va(!!r,fs(t));let o=n.parse(e),a=r.parse(t);n===qi&&(o=ls(o),n=Gi),r===qi&&(a=ls(a),r=Gi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=us(o[t],a[t],e));return i.alpha=_i(o.alpha,a.alpha,e),n.transform(i)}},ms=e=>"number"==typeof e,vs=(e,t)=>n=>t(e(n)),hs=(...e)=>e.reduce(vs);function ys(e,t){return ms(e)?n=>_i(e,t,n):Ki.test(e)?ps(e,t):Es(e,t)}const gs=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>ys(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},bs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ys(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function xs(e){const t=ns.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Es=(e,t)=>{const n=ns.createTransformer(t),r=xs(e),o=xs(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?hs(gs(r.parsed,o.parsed),n):(Da(!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.`),n=>`${n>0?t:e}`)},ws=(e,t)=>n=>_i(e,t,n);function ks(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Va(a===t.length,"Both input and output ranges must be the same length"),Va(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ws:"string"==typeof e?Ki.test(e)?ps:Es:Array.isArray(e)?gs:"object"==typeof e?bs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=hs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Oi(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Oi(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(bi(e[0],e[a-1],t)):s}const Ss=e=>t=>1-e(1-t),Cs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Os=e=>t=>t*t*((e+1)*t-e),_s=e=>e,Ns=e=>Math.pow(e,2),Rs=Ss(Ns),As=Cs(Ns),Is=e=>1-Math.sin(Math.acos(e)),Ps=Ss(Is),Ts=Cs(Ps),Ls=Os(1.525),Ms=Ss(Ls),js=Cs(Ls),Ds=(e=>{const t=Os(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Vs=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Bs=Ss(Vs);function Fs(e,t){return e.map(()=>t||As).splice(0,e.length-1)}function zs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return ks(s,i,{ease:Array.isArray(n)?n:Fs(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Ws={keyframes:zs,spring:Si,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}},Us="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),$s="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Us()),16.666666666666668);let Hs=!0,qs=!1,Ys=!1;const Zs={delta:0,timestamp:0},Gs=["read","update","preRender","render","postRender"],Xs=Gs.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>qs=!0),e),{}),Ks=Gs.reduce((e,t)=>{const n=Xs[t];return e[t]=(e,t=!1,r=!1)=>(qs||tl(),n.schedule(e,t,r)),e},{}),Js=Gs.reduce((e,t)=>(e[t]=Xs[t].cancel,e),{});Gs.reduce((e,t)=>(e[t]=()=>Xs[t].process(Zs),e),{});const Qs=e=>Xs[e].process(Zs),el=e=>{qs=!1,Zs.delta=Hs?16.666666666666668:Math.max(Math.min(e-Zs.timestamp,40),1),Zs.timestamp=e,Ys=!0,Gs.forEach(Qs),Ys=!1,qs&&(Hs=!1,$s(el))},tl=()=>{qs=!0,Hs=!0,Ys||$s(el)};function nl(e,t,n=0){return e-t-n}const rl=e=>{const t=({delta:t})=>e(t);return{start:()=>Ks.update(t,!0),stop:()=>Js.update(t)}};function ol(e){var t,n,{from:r,autoplay:o=!0,driver:a=rl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=Ia(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,x=0,E=v.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return zs;if(Ws[e.type])return Ws[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Si:zs}(v);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=ks([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},v),{from:r,to:b}));return o&&(null==c||c(),h=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===x&&(null!=E||(E=i)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,E,u,k)&&(x++,"reverse"===l?(k=x%2==0,i=function(e,t,n=0,r=!0){return r?nl(t+-e,t,n):t-(e-t)+n}(i,E,u,k)):(i=nl(i,E,u),"mirror"===l&&C.flipTarget()),w=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function al(e,t){return t?e*(1e3/t):0}const il=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),sl=e=>il(e)&&e.hasOwnProperty("z"),ll=(e,t)=>Math.abs(e-t);function ul(e,t){if(ms(e)&&ms(t))return ll(e,t);if(il(e)&&il(t)){const n=ll(e.x,t.x),r=ll(e.y,t.y),o=sl(e)&&sl(t)?ll(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const cl=(e,t)=>1-3*t+3*e,dl=(e,t)=>3*t-6*e,fl=e=>3*e,pl=(e,t,n)=>((cl(t,n)*e+dl(t,n))*e+fl(t))*e,ml=(e,t,n)=>3*cl(t,n)*e*e+2*dl(t,n)*e+fl(t);function vl(e,t){-1===e.indexOf(t)&&e.push(t)}function hl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yl=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return vl(this.subscriptions,e),function(){return hl(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),gl=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new yl,this.velocityUpdateSubscribers=new yl,this.renderSubscribers=new yl,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=gi(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,fi.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return fi.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?al(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function bl(e){return new gl(e)}var xl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},El=function(e){return 1e3*e},wl={linear:_s,easeIn:Ns,easeInOut:As,easeOut:Rs,circIn:Is,circInOut:Ts,circOut:Ps,backIn:Ls,backInOut:js,backOut:Ms,anticipate:Ds,bounceIn:Bs,bounceInOut:e=>e<.5?.5*(1-Vs(1-2*e)):.5*Vs(2*e-1)+.5,bounceOut:Vs},kl=function(e){if(Array.isArray(e)){Va(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Pa(e,4);return function(e,t,n,r){if(e===t&&n===r)return _s;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=pl(.1*t,e,n);return a=>0===a||1===a?a:pl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=ml(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=ml(t,n,r);if(0===o)return t;t-=(pl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=pl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Va(void 0!==wl[e],"Invalid easing type '".concat(e,"'")),wl[e]):e},Sl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ns.test(t)||t.startsWith("url(")))},Cl=function(e){return Array.isArray(e)},Ol=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},_l=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Nl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Rl=function(e){return{type:"keyframes",duration:.8,values:e}},Al={x:Ol,y:Ol,z:Ol,rotate:Ol,rotateX:Ol,rotateY:Ol,rotateZ:Ol,scaleX:_l,scaleY:_l,scale:_l,opacity:Nl,backgroundColor:Nl,color:Nl,default:_l},Il=Aa(Aa({},Li),{transform:Math.round}),Pl={borderWidth:Fi,borderTopWidth:Fi,borderRightWidth:Fi,borderBottomWidth:Fi,borderLeftWidth:Fi,borderRadius:Fi,radius:Fi,borderTopLeftRadius:Fi,borderTopRightRadius:Fi,borderBottomRightRadius:Fi,borderBottomLeftRadius:Fi,width:Fi,maxWidth:Fi,height:Fi,maxHeight:Fi,size:Fi,top:Fi,right:Fi,bottom:Fi,left:Fi,padding:Fi,paddingTop:Fi,paddingRight:Fi,paddingBottom:Fi,paddingLeft:Fi,margin:Fi,marginTop:Fi,marginRight:Fi,marginBottom:Fi,marginLeft:Fi,rotate:Vi,rotateX:Vi,rotateY:Vi,rotateZ:Vi,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:Vi,skewX:Vi,skewY:Vi,distance:Fi,translateX:Fi,translateY:Fi,translateZ:Fi,x:Fi,y:Fi,z:Fi,perspective:Fi,transformPerspective:Fi,opacity:Mi,originX:Ui,originY:Ui,originZ:Fi,zIndex:Il,fillOpacity:Mi,strokeOpacity:Mi,numOctaves:Il},Tl=Aa(Aa({},Pl),{color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:is,WebkitFilter:is}),Ll=function(e){return Tl[e]};function Ml(e,t){var n,r=Ll(e);return r!==is&&(r=ns),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var jl=function(e){return Cl(e)?e[e.length-1]||0:e},Dl=!1;function Vl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Bl(e){return"number"==typeof e?0:Ml("",e)}function Fl(e,t){return e[t]||e.default||e}function zl(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=Fl(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Sl(e,n);"none"===s&&l&&"string"==typeof n?s=Ml(e,n):Vl(s)&&"string"==typeof n?s=Bl(n):!Array.isArray(n)&&Vl(n)&&"string"==typeof s&&(n=Bl(s));var u=Sl(e,s);return Da(u===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=ol(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const i=h(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=al(e-c,Zs.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Aa(Aa({},r),i)):ol(Aa(Aa({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ta([],Pa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Ia(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Aa(Aa({},e),(o=n,i=Cl(a=t.to)?Rl:Al[o]||Al.default,Aa({to:a},i(a))))),Aa(Aa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Ia(e,["ease","times","yoyo","flip","loop"]),s=Aa({},i);return n&&(s.offset=n),i.duration&&(s.duration=El(i.duration)),i.repeatDelay&&(s.repeatDelay=El(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kl):kl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Da(!Dl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Dl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=jl(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Fl(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=window.setTimeout(u,El(l)):u(),function(){clearTimeout(a),null==i||i.stop()}})}var Wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ul=Wl.length,$l=function(e){return"string"==typeof e?parseFloat(e):e},Hl=function(e){return"number"==typeof e||Fi.test(e)};function ql(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Yl=Gl(0,.5,Ps),Zl=Gl(.5,.95,_s);function Gl(e,t,n){return function(r){return r<e?0:r>t?1:n(Oi(e,t,r))}}function Xl(e,t){e.min=t.min,e.max=t.max}function Kl(e,t){Xl(e.x,t.x),Xl(e.y,t.y)}function Jl(e){return void 0===e||1===e}function Ql(e){var t=e.scaleX,n=e.scaleY;return!Jl(e.scale)||!Jl(t)||!Jl(n)}function eu(e){return Ql(e)||tu(e.x)||tu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function tu(e){return e&&"0%"!==e}function nu(e,t,n){return n+t*(e-n)}function ru(e,t,n,r,o){return void 0!==o&&(e=nu(e,o,r)),nu(e,n,r)+t}function ou(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ru(e.min,t,n,r,o),e.max=ru(e.max,t,n,r,o)}function au(e,t){var n=t.x,r=t.y;ou(e.x,n.translate,n.scale,n.originPoint),ou(e.y,r.translate,r.scale,r.originPoint)}function iu(e,t){e.min=e.min+t,e.max=e.max+t}function su(e,t,n){var r=Pa(n,3),o=r[0],a=r[1],i=r[2],s=_i(e.min,e.max,void 0!==t[i]?t[i]:.5);ou(e,t[o],t[a],s,t.scale)}var lu=["x","scaleX","originX"],uu=["y","scaleY","originY"];function cu(e,t){su(e.x,t,lu),su(e.y,t,uu)}function du(e){return e.max-e.min}function fu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ul(e,t)<n}function pu(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=_i(t.min,t.max,e.origin),e.scale=du(n)/du(t),(fu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_i(n.min,n.max,e.origin)-e.originPoint,(fu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mu(e,t,n,r){pu(e.x,t.x,n.x,null==r?void 0:r.originX),pu(e.y,t.y,n.y,null==r?void 0:r.originY)}function vu(e,t,n){e.min=n.min+t.min,e.max=e.min+du(t)}function hu(e,t,n){e.min=t.min-n.min,e.max=e.min+du(t)}function yu(e,t,n){hu(e.x,t.x,n.x),hu(e.y,t.y,n.y)}function gu(e,t,n,r,o){return e=nu(e-=t,1/n,r),void 0!==o&&(e=nu(e,1/o,r)),e}function bu(e,t,n,r,o){var a=Pa(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Bi.test(t)&&(t=parseFloat(t),t=_i(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=_i(a.min,a.max,r);e===a&&(s-=t),e.min=gu(e.min,t,n,s,o),e.max=gu(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var xu=["x","scaleX","originX"],Eu=["y","scaleY","originY"];function wu(e,t,n,r){bu(e.x,t,xu,null==n?void 0:n.x,null==r?void 0:r.x),bu(e.y,t,Eu,null==n?void 0:n.y,null==r?void 0:r.y)}function ku(e){return 0===e.translate&&1===e.scale}function Su(e){return ku(e.x)&&ku(e.y)}function Cu(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Ou=function(){function e(){this.members=[]}return e.prototype.add=function(e){vl(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(hl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;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.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),_u={};function Nu(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}function Ru(e){return[e("x"),e("y")]}var Au=["","X","Y","Z"],Iu=["transformPerspective","x","y","z"];function Pu(e,t){return Iu.indexOf(e)-Iu.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Au.forEach(function(t){return Iu.push(e+t)})});var Tu=new Set(Iu);function Lu(e){return Tu.has(e)}var Mu=new Set(["originX","originY","originZ"]);function ju(e){return Mu.has(e)}var Du=function(e,t){return e.depth-t.depth},Vu=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){vl(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){hl(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Du),this.isDirty=!1,this.children.forEach(e)},e}();function Bu(e){var t=xl(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Fu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zu(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Zu),o.nodes.forEach(Gu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ta(Ta([],Pa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vu)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yl),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ta([],Pa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Fu.hasAnimatedSinceResize&&(Fu.hasAnimatedSinceResize=!1,o.nodes.forEach(Yu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:tc,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!o.targetLayout||!Cu(o.targetLayout,d)||c,y=!u&&c;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(h||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Aa(Aa({},Fl(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else u||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,pi.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xu))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hu);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nc),this.potentialNodes.clear()),this.nodes.forEach(qu),this.nodes.forEach(Wu),this.nodes.forEach(Uu),this.clearAllSnapshots(),mi.update(),mi.preRender(),mi.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach($u),this.sharedNodes.forEach(Ku)},e.prototype.scheduleUpdateProjection=function(){fi.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;fi.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));oc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();oc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Su(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||eu(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(iu(t.x,n.x),iu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Kl(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){Kl(t,e);var a=this.root.scroll;a&&(iu(t.x,-a.x),iu(t.y,-a.y))}iu(t.x,o.x),iu(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&cu(n,{x:-o.scroll.x,y:-o.scroll.y}),eu(o.latestValues)&&cu(n,o.latestValues)}return eu(this.latestValues)&&cu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&eu(o.latestValues)){Ql(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Kl(a,o.measure()),wu(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return eu(this.latestValues)&&wu(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Aa(Aa(Aa({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Kl(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(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&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(vu((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),vu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Kl(this.target,this.layout.actual),au(this.target,this.targetDelta)):Kl(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Kl(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!eu(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Kl(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&cu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,au(e,l)),r&&eu(s.latestValues)&&cu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(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}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;mu(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Nu(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Aa({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(ec));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Ju(s.x,e.x,o),Ju(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(yu(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Qu(e.x,t.x,n.x,r),Qu(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),u&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,u;o?(e.opacity=_i(0,null!==(i=n.opacity)&&void 0!==i?i:1,Yl(r)),e.opacityExit=_i(null!==(s=t.opacity)&&void 0!==s?s:1,0,Zl(r))):a&&(e.opacity=_i(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ul;c++){var d="border".concat(Wl[c],"Radius"),f=ql(t,d),p=ql(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Hl(f)===Hl(p)?(e[d]=Math.max(_i($l(f),$l(p),r),0),(Bi.test(p)||Bi.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=_i(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(pi.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fi.update(function(){Fu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=xl(0)?0:bl(0);return zl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Aa(Aa({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(Kl(t,n),cu(t,r),mu(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ou),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Au.length;r++)e.getStaticValue(o="rotate"+Au[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Bu(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Bu(e.pointerEvents)||""),this.hasProjected&&!eu(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Nu(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=u.animationValues?u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,_u)if(void 0!==d[v]){var h=_u[v],y=h.applyTo,g=(0,h.correct)(d[v],u);if(y)for(var b=y.length,x=0;x<b;x++)s[y[x]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=u===this?Bu(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Hu),this.root.sharedNodes.clear()},e}()}function Wu(e){e.updateLayout()}function Uu(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Ru(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=du(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Ru(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=du(s[e]);t.max=t.min+n});var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};mu(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?mu(c,e.applyTransform(l,!0),a.measured):mu(c,s,a.layout);var d=!Su(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};yu(h,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};yu(y,s,v.actual),Cu(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function $u(e){e.clearSnapshot()}function Hu(e){e.clearMeasurements()}function qu(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Yu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zu(e){e.resolveTargetDelta()}function Gu(e){e.calcProjection()}function Xu(e){e.resetRotation()}function Ku(e){e.removeLeadSnapshot()}function Ju(e,t,n){e.translate=_i(t.translate,0,n),e.scale=_i(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qu(e,t,n,r){e.min=_i(t.min,n.min,r),e.max=_i(t.max,n.max,r)}function ec(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var tc={duration:.45,ease:[.4,0,.1,1]};function nc(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function rc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function oc(e){rc(e.x),rc(e.y)}var ac=1,ic=je.createContext({}),sc=je.createContext({}),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(je.Component);function uc(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?ja.projectionNodeConstructor=e[t]:ja[t].Component=e[t])}(t),je.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=je.useContext(ic))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Aa(Aa({},e),{layoutId:l});var u=je.useContext(Wa),c=null,d=function(e){var t=function(e,t){if(ei(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Ka(n)?n:void 0,animate:Ka(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,je.useContext(Ua)),n=t.initial,r=t.animate;return je.useMemo(function(){return{initial:n,animate:r}},[ni(n),ni(r)])}(e),f=u.isStatic?void 0:ri(function(){if(Fu.hasEverUpdated)return ac++}),p=a(e,u.isStatic);return!u.isStatic&&Ha&&(d.visualElement=function(e,t,n,r){var o,a,i=je.useContext(Ba),s=je.useContext(Ua).visualElement,l=je.useContext($a),u=(!Za&&function(){if(Za=!0,Ha)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ya.current=e.matches};e.addListener(t),t()}else Ya.current=!1}(),o=Pa(je.useState(Ya.current),1)[0],"never"!==(a=je.useContext(Wa).reducedMotion)&&("always"===a||o)),c=je.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:u}));var d=c.current;return qa(function(){null==d||d.syncRender()}),je.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),qa(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,Aa(Aa({},u),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=je.useContext(sc);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Ga(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:c,layoutScroll:u}))}(f,e,d.visualElement,r||ja.projectionNodeConstructor),c=function(e,t,n){var r=[],o=je.useContext(Ba);if(!t)return null;"production"!==La&&n&&o.strict&&Va(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<za;a++){var i=Fa[a],s=ja[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(je.createElement(l,Aa({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),je.createElement(lc,{visualElement:d.visualElement,props:Aa(Aa({},u),e)},c,je.createElement(Ua.Provider,{value:d},o(i,e,f,function(e,t,n){return je.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ga(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,u.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var cc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function dc(e){return"string"==typeof e&&!e.includes("-")&&!!(cc.indexOf(e)>-1||/[A-Z]/.test(e))}function fc(e,t){var n=t.layout,r=t.layoutId;return Lu(e)||ju(e)||(n||void 0!==r)&&(!!_u[e]||"opacity"===e)}var pc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function mc(e){return e.startsWith("--")}var vc=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function hc(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(mc(p))i[p]=m;else{var v=Pl[p],h=vc(m,v);if(Lu(p)){if(c=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(o=v.default)&&void 0!==o?o:0)&&(f=!1)}else ju(p)?(u[p]=h,d=!0):a[p]=h}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(Pu);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];c+="".concat(pc[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(u))}function yc(e,t,n){for(var r in t)xl(t[r])||fc(r,n)||(e[r]=t[r])}function gc(e,t,n){var r={},o=function(e,t,n){var r={};return yc(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return je.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};hc(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Aa(Aa({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var bc=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function xc(e){return bc.has(e)}var Ec,wc=function(e){return!xc(e)};try{(Ec=require("@emotion/is-prop-valid").default)&&(wc=function(e){return e.startsWith("on")?!xc(e):Ec(e)})}catch(e){}function kc(e,t,n){return"string"==typeof e?e:Fi.transform(t+n*e)}var Sc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cc={offset:"strokeDashoffset",array:"strokeDasharray"};function Oc(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;hc(e,Ia(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=kc(t,e.x,e.width),o=kc(n,e.y,e.height);return"".concat(r," ").concat(o)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Sc:Cc;e[a.offset]=Fi.transform(-r);var i=Fi.transform(t),s=Fi.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var _c=function(){return Aa(Aa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Nc(e,t){var n=je.useMemo(function(){var n=_c();return Oc(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Aa(Aa({},n.attrs),{style:Aa({},n.style)})},[t]);if(e.style){var r={};yc(r,e.style,e),n.style=Aa(Aa({},r),n.style)}return n}function Rc(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(dc(t)?Nc:gc)(n,s,i),u=function(e,t,n){var r={};for(var o in e)(wc(o)||!0===n&&xc(o)||!t&&!xc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=Aa(Aa(Aa({},u),l),{ref:o});return r&&(c["data-projection-id"]=r),je.createElement(t,c)}}var Ac=/([a-z])([A-Z])/g,Ic=function(e){return e.replace(Ac,"$1-$2").toLowerCase()};function Pc(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Tc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Lc(e,t,n,r){for(var o in Pc(e,t,void 0,r),t.attrs)e.setAttribute(Tc.has(o)?o:Ic(o),t.attrs[o])}function Mc(e){var t=e.style,n={};for(var r in t)(xl(t[r])||fc(r,e))&&(n[r]=t[r]);return n}function jc(e){var t=Mc(e);for(var n in e)xl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Dc(e){return"object"==typeof e&&"function"==typeof e.start}function Vc(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Fc(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var Bc=function(e){return function(t,n){var r=je.useContext(Ua),o=je.useContext($a);return n?Vc(e,t,r,o):ri(function(){return Vc(e,t,r,o)})}};function Fc(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bu(i[s]);var l=e.initial,u=e.animate,c=ei(e),d=ti(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Dc(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=Ja(e,t);if(n){var r=n.transitionEnd,a=Ia(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var zc,Wc={useVisualState:Bc({scrapeMotionValuesFromProps:jc,createRenderState:_c,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Oc(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Lc(t,r)}})},Uc={useVisualState:Bc({scrapeMotionValuesFromProps:Mc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function $c(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Hc(e,t,n,r){je.useEffect(function(){var o=e.current;if(n&&o)return $c(o,t,n,r)},[e,t,n,r])}function qc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Yc(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(zc||(zc={}));var Zc={pageX:0,pageY:0};function Gc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Zc;return{x:n[t+"X"],y:n[t+"Y"]}}function Xc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Kc(e,t){return void 0===t&&(t="page"),{point:Yc(e)?Gc(e,t):Xc(e,t)}}var Jc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Kc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Qc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ed={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function td(e){return Ha&&null===window.onpointerdown?e:Ha&&null===window.ontouchstart?ed[e]:Ha&&null===window.onmousedown?Qc[e]:e}function nd(e,t,n,r){return $c(e,td(t),Jc(n,"pointerdown"===t),r)}function rd(e,t,n,r){return Hc(e,td(t),n&&Jc(n,"pointerdown"===t),r)}function od(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ad=od("dragHorizontal"),id=od("dragVertical");function sd(e){var t=!1;if("y"===e)t=id();else if("x"===e)t=ad();else{var n=ad(),r=id();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function ld(){var e=sd(!0);return!e||(e(),!1)}function ud(e,t,n){return function(r,o){var a;qc(r)&&!ld()&&(null===(a=e.animationState)||void 0===a||a.setActive(zc.Hover,t),null==n||n(r,o))}}var cd=function(e,t){return!!t&&(e===t||cd(e,t.parentElement))};function dd(e){return je.useEffect(function(){return function(){return e()}},[])}var fd=new Set;function pd(e,t,n){e||fd.has(t)||(console.warn(t),n&&console.warn(n),fd.add(t))}var md=new WeakMap,vd=new WeakMap,hd=function(e){var t;null===(t=md.get(e.target))||void 0===t||t(e)},yd=function(e){e.forEach(hd)},gd={some:0,all:1};function bd(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;je.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:gd[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Ia(e,["root"]),r=t||document;vd.has(r)||vd.set(r,{});var o=vd.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(yd,Aa({root:t},n))),o[a]}(r);return md.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(zc.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){md.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function xd(e,t,n,r){var o=r.fallback,a=void 0===o||o;je.useEffect(function(){e&&a&&("production"!==La&&pd(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(zc.InView,!0)}))},[e])}var Ed=function(e){return function(t){return e(t),null}},wd={inView:Ed(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=je.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?xd:bd)(l,s.current,t,i)}),tap:Ed(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=je.useRef(!1),s=je.useRef(null),l={passive:!(n||t||r||p)};function u(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function c(){var e;return u(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(zc.Tap,!1),!ld()}function d(e,n){c()&&(cd(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){c()&&(null==r||r(e,t))}function p(e,t){var r;u(),i.current||(i.current=!0,s.current=hs(nd(window,"pointerup",d,l),nd(window,"pointercancel",f,l)),null===(r=o.animationState)||void 0===r||r.setActive(zc.Tap,!0),null==n||n(e,t))}rd(o,"pointerdown",a?p:void 0,l),dd(u)}),focus:Ed(function(e){var t=e.whileFocus,n=e.visualElement;Hc(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zc.Focus,!0)}:void 0),Hc(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zc.Focus,!1)}:void 0)}),hover:Ed(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;rd(o,"pointerenter",t||r?ud(o,!0,t):void 0,{passive:!t}),rd(o,"pointerleave",n||r?ud(o,!1,n):void 0,{passive:!n})})},kd=0,Sd=function(){return kd++},Cd=function(){return ri(Sd)};function Od(){var e=je.useContext($a);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Cd();return je.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function _d(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Nd=function(e){return/^\-?\d*\.?\d+$/.test(e)},Rd=function(e){return/^0[^.\s]+$/.test(e)},Ad=function(e){return function(t){return t.test(e)}},Id=[Li,Fi,Bi,Vi,Wi,zi,{test:function(e){return"auto"===e},parse:function(e){return e}}],Pd=function(e){return Id.find(Ad(e))},Td=Ta(Ta([],Pa(Id),!1),[Ki,ns],!1),Ld=function(e){return Td.find(Ad(e))};function Md(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bl(n))}function jd(e,t){if(t)return(t[e]||t.default||t).from}function Dd(e,t,n){var r;void 0===n&&(n={});var o=Qa(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Vd(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Bd).forEach(function(e,r){i.push(Dd(e,t,Aa(Aa({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Pa("beforeChildren"===u?[s,l]:[l,s],2),d=c[1];return(0,c[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Vd(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Ia(u,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Fd(v,h))){var b=Aa({delay:i},d);e.shouldReduceMotion&&Lu(h)&&(b=Aa(Aa({},b),{type:!1,delay:0}));var x=zl(h,y,g,b);m.push(x)}}return Promise.all(m).then(function(){f&&function(e,t){var n=Qa(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Ia(r,["transitionEnd","transition"]);for(var s in i=Aa(Aa({},i),a))Md(e,s,jl(i[s]))}(e,f)})}function Bd(e,t){return e.sortNodePosition(t)}function Fd(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var zd=[zc.Animate,zc.InView,zc.Focus,zc.Hover,zc.Tap,zc.Drag,zc.Exit],Wd=Ta([],Pa(zd),!1).reverse(),Ud=zd.length;function $d(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Hd={animation:Ed(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return Dd(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Dd(e,t,n);else{var a="function"==typeof t?Qa(e,t,n.custom):t;r=Vd(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[zc.Animate]=$d(!0),t[zc.InView]=$d(),t[zc.Hover]=$d(),t[zc.Tap]=$d(),t[zc.Drag]=$d(),t[zc.Focus]=$d(),t[zc.Exit]=$d(),t),o={},a=!0,i=function(t,n){var r=Qa(e,n);if(r){var o=r.transitionEnd,a=Ia(r,["transition","transitionEnd"]);t=Aa(Aa(Aa({},t),a),o)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var o=Wd[n],v=r[o],h=null!==(l=u[o])&&void 0!==l?l:c[o],y=Ka(h),g=o===s?v.isActive:null;!1===g&&(m=n);var b=h===c[o]&&h!==u[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=Aa({},p),!v.isActive&&null===g||!h&&!v.prevProp||Dc(h)||"boolean"==typeof h)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Xa(t)&&!_d(t,e)}(v.prevProp,h),E=x||o===s&&v.isActive&&!b&&y||n>m&&y,w=Array.isArray(h)?h:[h],k=w.reduce(i,{});!1===g&&(k={});var S=v.prevResolvedValues,C=void 0===S?{}:S,O=Aa(Aa({},C),k),_=function(e){E=!0,f.delete(e),v.needsAnimating[e]=!0};for(var N in O){var R=k[N],A=C[N];p.hasOwnProperty(N)||(R!==A?Cl(R)&&Cl(A)?!_d(R,A)||x?_(N):v.protectedKeys[N]=!0:void 0!==R?_(N):f.add(N):void 0!==R&&f.has(N)?_(N):v.protectedKeys[N]=!0)}v.prevProp=h,v.prevResolvedValues=k,v.isActive&&(p=Aa(Aa({},p),k)),a&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Ta([],Pa(w.map(function(e){return{animation:e,options:Aa({type:o},t)}})),!1))},h=0;h<Ud;h++)v(h);if(o=Aa({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Dc(n)&&je.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ed(function(e){var t=e.custom,n=e.visualElement,r=Pa(Od(),2),o=r[0],a=r[1],i=je.useContext($a);je.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(zc.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},qd=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Gd(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ul(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=gi().timestamp;r.history.push(Aa(Aa({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Yd(t,r.transformPagePoint),qc(e)&&0===e.buttons?r.handlePointerUp(e,t):fi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Gd(Yd(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Yc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Yd(Kc(e),this.transformPagePoint),i=a.point,s=gi().timestamp;this.history=[Aa(Aa({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Gd(a,this.history)),this.removeListeners=hs(nd(window,"pointermove",this.handlePointerMove),nd(window,"pointerup",this.handlePointerUp),nd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),pi.update(this.updatePoint)},e}();function Yd(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gd(e,t){var n=e.point;return{point:n,delta:Zd(n,Kd(t)),offset:Zd(n,Xd(t)),velocity:Jd(t,.1)}}function Xd(e){return e[0]}function Kd(e){return e[e.length-1]}function Jd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Kd(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>El(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Qd(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ef(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Pa([o,r],2))[0],o=n[1]),{min:r,max:o}}function tf(e,t,n){return{min:nf(e,t),max:nf(e,n)}}function nf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function rf(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function of(e,t){return rf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var af=new WeakMap,sf=function(){function e(e){this.openGlobalLock=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.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new qd(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Kc(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=sd(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ru(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Bi.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=du(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(zc.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(zc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&lf(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?_i(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?_i(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ga(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:Qd(e.x,t.left,t.right),y:Qd(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:tf(e,"left","right"),y:tf(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ru(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ga(t))return!1;var r=t.current;Va(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=of(e,n),o=t.scroll;return o&&(iu(r.x,o.x),iu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=rf(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ru(function(n){var l;if(lf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=Aa(Aa({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,d)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return zl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ru(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ru(function(n){if(lf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-_i(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Ga(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Ru(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(r=t.constraints[e],o=.5,i=du(n={min:u,max:u}),(s=du(r))>i?o=Oi(r.min,r.max-i,n.min):i>s&&(o=Oi(n.min,n.max-s,r.min)),bi(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ru(function(e){if(lf(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(_i(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;af.set(this.visualElement,this);var n=nd(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Ga(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=$c(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Ru(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?.35:u,d=e.dragMomentum,f=void 0===d||d;return Aa(Aa({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function lf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var uf={pan:Ed(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=je.useRef(null),l=je.useContext(Wa).transformPagePoint,u={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};je.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),rd(a,"pointerdown",i&&function(e){s.current=new qd(e,u,{transformPagePoint:l})}),dd(function(){return s.current&&s.current.end()})}),drag:Ed(function(e){var t=e.dragControls,n=e.visualElement,r=ri(function(){return new sf(n)});je.useEffect(function(){return t&&t.subscribe(r)},[r,t]),je.useEffect(function(){return r.addListeners()},[r])})},cf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],df=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,x=!1,E=h.latestValues,w=h.renderState,k=function(){var e=cf.map(function(){return new yl}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){cf.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+cf[t]]=function(t){return e.add(t)},n["notify"+cf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ta([],Pa(t),!1))}}),n}(),S=new Map,C=new Map,O={},_=Aa({},E);function N(){g&&x&&(R(),s(g,w,p.style,D.projection))}function R(){r(D,w,E,t,p)}function A(){k.notifyUpdate(E)}function I(e,t){var n=t.onChange(function(t){E[e]=t,p.onUpdate&&fi.update(A,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==E[T]&&xl(L)&&L.set(E[T],!1)}var M=ei(p),j=ti(p),D=Aa(Aa({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){x=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&f&&!M&&(b=null==f?void 0:f.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),pi.update(A),pi.render(N),C.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(D),k.clearAllListeners(),g=void 0,x=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),E[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete E[e],u(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=bl(t),D.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!xl(t))return t}return _[e]}},k),{build:function(){return R(),w},scheduleRender:function(){fi.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,k.updatePropListeners(e),O=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(xl(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&pd("6.3.16"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.3.16 may not work as expected."));else if(xl(i))e.addValue(o,bl(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,bl(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!M){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<pf;r++){var o=ff[r],a=p[o];(Ka(a)||!1===a)&&(n[o]=a)}return n}});return D}},ff=Ta(["initial"],Pa(zd),!1),pf=ff.length;function mf(e){return"string"==typeof e&&e.startsWith("var(--")}var vf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hf(e,t,n){void 0===n&&(n=1),Va(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Pa(function(e){var t=vf.exec(e);if(!t)return[,];var n=Pa(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():mf(a)?hf(a,t,n+1):a}}var yf,gf=new Set(["width","height","top","left","right","bottom","x","y"]),bf=function(e){return gf.has(e)},xf=function(e,t){e.set(t,!1),e.set(t)},Ef=function(e){return e===Li||e===Fi};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(yf||(yf={}));var wf=function(e,t){return parseFloat(e.split(", ")[t])},kf=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return wf(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?wf(i[1],e):0}},Sf=new Set(["x","y","z"]),Cf=Iu.filter(function(e){return!Sf.has(e)}),Of={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:kf(4,13),y:kf(5,14)},_f={treeType:"dom",readValueFromInstance:function(e,t){if(Lu(t)){var n=Ll(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(mc(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return of(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Ia(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=jd(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(Nd(f)||Rd(f))?f=parseFloat(f):!Ld(f)&&ns.test(d)&&(f=Ml(c,d)),e.addValue(c,bl(f)),null!==(a=(i=n)[c])&&void 0!==a||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=Ia(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Aa({},n)),e.forEachValue(function(e){var t=e.get();if(mf(t)){var n=hf(t,a);n&&e.set(n)}}),o){var s=o[i];if(mf(s)){var l=hf(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(bf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Aa({},t),r=Aa({},r);var o=Object.keys(t).filter(bf),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=Pd(c),f=t[o];if(Cl(f)){var p=f.length,m=null===f[0]?1:0;d=Pd(c=f[m]);for(var v=m;v<p;v++)u?Va(Pd(f[v])===u,"All keyframes must be of the same type"):(u=Pd(f[v]),Va(u===d||Ef(d)&&Ef(u),"Keyframes must be of the same dimension as the current value"))}else u=Pd(f);if(d!==u)if(Ef(d)&&Ef(u)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===Fi&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(i||(a=function(e){var t=[];return Cf.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],xf(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Of[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);xf(r,i[n]),e[n]=Of[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=Pa(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return Aa({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Mc,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),hc(t,n,r,o.transformTemplate)},render:Pc},Nf=df(_f),Rf=df(Aa(Aa({},_f),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Lu(t)?(null===(n=Ll(t))||void 0===n?void 0:n.default)||0:(t=Tc.has(t)?t:Ic(t),e.getAttribute(t))},scrapeMotionValuesFromProps:jc,build:function(e,t,n,r,o){Oc(t,n,r,o.transformTemplate)},render:Lc})),Af=function(e,t){return dc(e)?Rf(t,{enableHardwareAcceleration:!1}):Nf(t,{enableHardwareAcceleration:!0})};function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Pf={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Fi.test(e))return e;e=parseFloat(e)}var n=If(e,t.target.x),r=If(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Tf={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(vf,function(e){return i.push(e),"_$css"}));var s=ns.parse(e);if(s.length>5)return o;var l=ns.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=_i(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},Lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(_u,Mf),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Aa(Aa({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),Fu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||fi.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(je.Component),Mf={borderRadius:Aa(Aa({},Pf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pf,borderTopRightRadius:Pf,borderBottomLeftRadius:Pf,borderBottomRightRadius:Pf,boxShadow:Tf},jf={measureLayout:function(e){var t=Pa(Od(),2),n=t[0],r=t[1],o=je.useContext(ic);return je.createElement(Lf,Aa({},e,{layoutGroup:o,switchLayoutGroup:je.useContext(sc),isPresent:n,safeToRemove:r}))}},Df=zu({attachResizeListener:function(e,t){return $c(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Vf={current:void 0},Bf=zu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Vf.current){var e=new Df(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Vf.current=e}return Vf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ff=Aa(Aa(Aa(Aa({},Hd),wd),uf),jf),zf=/*@__PURE__*/uc(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=dc(e)?Wc:Uc;return Aa(Aa({},s),{preloadedFeatures:n,useRender:Rc(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Ff,Af,Bf)});function Wf(){var e=je.useRef(!1);return qa(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Uf=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=ri($f),l=Cd(),u=je.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return je.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),je.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),je.createElement($a.Provider,{value:u},t)};function $f(){return new Map}var Hf=function(e){return e.key||""},qf=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,u=Pa(function(){var e=Wf(),t=Pa(je.useState(0),2),n=t[0],r=t[1],o=je.useCallback(function(){e.current&&r(n+1)},[n]);return[je.useCallback(function(){return fi.postRender(o)},[o]),n]}(),1),c=u[0],d=je.useContext(ic).forceRender;d&&(c=d);var f=Wf(),p=function(e){var t=[];return je.Children.forEach(e,function(e){je.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=je.useRef(m),y=je.useRef(new Map).current,g=je.useRef(!0);if(qa(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Hf(e);t.set(n,e)})}(p,y),h.current=m}),dd(function(){g.current=!0,y.clear(),v.clear()}),g.current)return je.createElement(je.Fragment,null,m.map(function(e){return je.createElement(Uf,{key:Hf(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=Ta([],Pa(m),!1);for(var b=h.current.map(Hf),x=p.map(Hf),E=b.length,w=0;w<E;w++){var k=b[w];-1===x.indexOf(k)&&v.add(k)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,je.createElement(Uf,{key:Hf(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;c(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:je.createElement(Uf,{key:Hf(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==La&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),je.createElement(je.Fragment,null,v.size?m:m.map(function(e){return je.cloneElement(e)}))};function Yf(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}var Gf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Xf={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Kf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Jf={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Qf={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function ep(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Kf;case"left":return Xf;case"bottom":return Qf;case"top":return Jf}}var tp={enter:{duration:.2,ease:Gf.easeOut},exit:{duration:.1,ease:Gf.easeIn}},np=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.enter})},rp=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.exit})},op=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],ap={exit:{height:{duration:.2,ease:Gf.ease},opacity:{duration:.3,ease:Gf.ease}},enter:{height:{duration:.3,ease:Gf.ease},opacity:{duration:.4,ease:Gf.ease}}},ip={exit:function(e){var t,n,r=e.startingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return Zf({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:rp(ap.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return Zf({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:np(ap.enter,e.delay)})}},sp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.in,r=e.unmountOnExit,o=e.animateOpacity,a=void 0===o||o,i=e.startingHeight,s=void 0===i?0:i,l=e.endingHeight,u=void 0===l?"auto":l,c=e.style,d=e.className,f=e.transition,p=e.transitionEnd,v=Yf(e,op),h=je.useState(!1),y=h[0],g=h[1];je.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),C({condition:Boolean(s>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(s.toString())>0,x={startingHeight:s,endingHeight:u,animateOpacity:a,transition:y?f:{enter:{duration:0}},transitionEnd:m(p,{exit:r?void 0:{display:b?"block":"none"}})},E=n||r?"enter":"exit";/*#__PURE__*/
8
- return je.createElement(qf,{initial:!1,custom:x},(!r||n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t},v,{className:S("chakra-collapse",d),style:Zf({overflow:"hidden",display:"block"},c),custom:x,variants:ip,initial:!!r&&"exit",animate:E,exit:"exit"})))});d&&(sp.displayName="Collapse");var lp=["unmountOnExit","in","className","transition","transitionEnd","delay"],up={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:np(tp.enter,n.delay),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:rp(tp.exit,n.delay),transitionEnd:null==o?void 0:o.exit}}},cp={initial:"exit",animate:"enter",exit:"exit",variants:up},dp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.className,a=e.transition,i=e.transitionEnd,s=e.delay,l=Yf(e,lp),u=r||n?"enter":"exit",c={transition:a,transitionEnd:i,delay:s};/*#__PURE__*/
9
- return je.createElement(qf,{custom:c},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-fade",o),custom:c},cp,{animate:u},l)))});d&&(dp.displayName="Fade");var fp=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],pp={exit:function(e){var t,n=e.initialScale,r=e.transition,o=e.transitionEnd,a=e.delay;return Zf({opacity:0},e.reverse?{scale:n,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:Zf({scale:n},null==o?void 0:o.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:rp(tp.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:np(tp.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},mp={initial:"exit",animate:"enter",exit:"exit",variants:pp},vp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.initialScale,s=void 0===i?.95:i,l=e.className,u=e.transition,c=e.transitionEnd,d=e.delay,f=Yf(e,fp),p=r||n?"enter":"exit",m={initialScale:s,reverse:a,transition:u,transitionEnd:c,delay:d};/*#__PURE__*/
10
- return je.createElement(qf,{custom:m},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",l)},mp,{animate:p,custom:m},f)))});d&&(vp.displayName="ScaleFade");var hp=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],yp={exit:{duration:.15,ease:Gf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},gp={exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return Zf({},ep({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:rp(yp.exit,o),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return Zf({},ep({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:np(yp.enter,o),transitionEnd:null==n?void 0:n.enter})}},bp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.direction,r=void 0===n?"right":n,o=e.style,a=e.unmountOnExit,i=e.in,s=e.className,l=e.transition,u=e.transitionEnd,c=e.delay,d=Yf(e,hp),f=ep({direction:r}),p=Object.assign({position:"fixed"},f.position,o),m=i||a?"enter":"exit",v={transitionEnd:u,transition:l,direction:r,delay:c};/*#__PURE__*/
11
- return je.createElement(qf,{custom:v},(!a||i&&a)&&/*#__PURE__*/je.createElement(zf.div,Zf({},d,{ref:t,initial:"exit",className:S("chakra-slide",s),animate:m,exit:"exit",custom:v,variants:gp,style:p})))});d&&(bp.displayName="Slide");var xp=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Ep={initial:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay),transitionEnd:null==r?void 0:r.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:np(tp.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.reverse,a={x:e.offsetX,y:e.offsetY};return Zf({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay)},o?Zf({},a,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:Zf({},a,null==r?void 0:r.exit)})}},wp={initial:"initial",animate:"enter",exit:"exit",variants:Ep},kp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,u=e.offsetY,c=void 0===u?8:u,d=e.transition,f=e.transitionEnd,p=e.delay,m=Yf(e,xp),v=r||n?"enter":"exit",h={offsetX:l,offsetY:c,reverse:a,transition:d,transitionEnd:f,delay:p};/*#__PURE__*/
12
- return je.createElement(qf,{custom:h},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",i),custom:h},wp,{animate:v},m)))});function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function Cp(e){return e.sort(function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Op(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function _p(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}d&&(kp.displayName="SlideFade");var Np="undefined"!=typeof window?je.useLayoutEffect:je.useEffect,Rp=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=Cp(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,n){void 0===n&&(n=!0);var r=Op(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=Op(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=_p(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=_p(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=Cp(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var o=Sp({node:t,index:-1},n);e.descendants.set(t,o),e.assignIndex(r)}}},Ap=Jn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Ip=Ap[0],Pp=Ap[1];function Tp(){return[Ip,function(){return Pp()},function(){return e=je.useRef(new Rp),Np(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=Pp(),n=je.useState(-1),r=n[0],o=n[1],a=je.useRef(null);Np(function(){return function(){a.current&&t.unregister(a.current)}},[]),Np(function(){if(a.current){var e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(a.current),register:Kn(i,a)}}(e)}]}function Lp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}var jp=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Dp=Jn({strict:!1,name:"ButtonGroupContext"}),Vp=Dp[0],Bp=Dp[1];d&&(/*#__PURE__*/ua(function(e,t){var n=e.size,r=e.colorScheme,o=e.variant,a=e.className,i=e.spacing,s=void 0===i?"0.5rem":i,l=e.isAttached,u=e.isDisabled,c=Lp(e,jp),d=S("chakra-button__group",a),f=je.useMemo(function(){return{size:n,colorScheme:r,variant:o,isDisabled:u}},[n,r,o,u]),p={display:"inline-flex"};return p=Mp({},p,l?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:s}}),/*#__PURE__*/je.createElement(Vp,{value:f},/*#__PURE__*/je.createElement(va.div,Mp({ref:t,role:"group",__css:p,className:d,"data-attached":l?"":void 0},c)))}).displayName="ButtonGroup");var Fp=["label","placement","spacing","children","className","__css"],zp=function(e){var t=e.label,n=e.placement,r=e.spacing,o=void 0===r?"0.5rem":r,a=e.children,i=void 0===a?/*#__PURE__*/je.createElement(wa,{color:"currentColor",width:"1em",height:"1em"}):a,s=e.className,l=e.__css,u=Lp(e,Fp),c=S("chakra-button__spinner",s),d="start"===n?"marginEnd":"marginStart",f=je.useMemo(function(){var e;return Mp(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[d]=t?o:0,e.fontSize="1em",e.lineHeight="normal",e),l)},[l,t,d,o]);/*#__PURE__*/
13
- return je.createElement(va.div,Mp({className:c},u,{__css:f}),i)};d&&(zp.displayName="ButtonSpinner");var Wp=["children","className"],Up=function(e){var t=e.children,n=e.className,r=Lp(e,Wp),o=/*#__PURE__*/je.isValidElement(t)?/*#__PURE__*/je.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=S("chakra-button__icon",n);/*#__PURE__*/
14
- return je.createElement(va.span,Mp({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:a}),o)};d&&(Up.displayName="ButtonIcon");var $p=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Hp=/*#__PURE__*/ua(function(e,t){var n,r,o,a,i=Bp(),s=fa("Button",Mp({},i,e)),l=ta(e),u=l.isDisabled,c=void 0===u?null==i?void 0:i.isDisabled:u,d=l.isLoading,f=l.isActive,p=l.children,v=l.leftIcon,h=l.rightIcon,y=l.loadingText,g=l.iconSpacing,b=void 0===g?"0.5rem":g,x=l.type,E=l.spinner,w=l.spinnerPlacement,k=void 0===w?"start":w,C=l.className,_=l.as,N=Lp(l,$p),R=je.useMemo(function(){var e,t=m({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return Mp({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},s,!!i&&{_focus:t})},[s,i]),A=(r=(n=je.useState(!_))[0],o=n[1],a=je.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:a,type:r?"button":void 0}),I=A.type,P={rightIcon:h,leftIcon:v,iconSpacing:b,children:p};/*#__PURE__*/
15
- return je.createElement(va.button,Mp({disabled:c||d,ref:dr(t,A.ref),as:_,type:null!=x?x:I,"data-active":O(f),"data-loading":O(d),__css:R,className:S("chakra-button",C)},N),d&&"start"===k&&/*#__PURE__*/je.createElement(zp,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},E),d?y||/*#__PURE__*/je.createElement(va.span,{opacity:0},/*#__PURE__*/je.createElement(qp,P)):/*#__PURE__*/je.createElement(qp,P),d&&"end"===k&&/*#__PURE__*/je.createElement(zp,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},E))});function qp(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,o=e.iconSpacing;/*#__PURE__*/
16
- return je.createElement(je.Fragment,null,t&&/*#__PURE__*/je.createElement(Up,{marginEnd:o},t),r,n&&/*#__PURE__*/je.createElement(Up,{marginStart:o},n))}d&&(Hp.displayName="Button");var Yp=["icon","children","isRound","aria-label"],Zp=/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.children,o=e.isRound,a=e["aria-label"],i=Lp(e,Yp),s=n||r,l=/*#__PURE__*/je.isValidElement(s)?/*#__PURE__*/je.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
17
- return je.createElement(Hp,Mp({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)});function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gp.apply(this,arguments)}function Xp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Zp.displayName="IconButton");var Kp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Jp=["getRootProps","htmlProps"],Qp=ea("FormControl"),em=Qp[0],tm=Qp[1],nm=tm,rm=Jn({strict:!1,name:"FormControlContext"}),om=rm[0],am=rm[1],im=/*#__PURE__*/ua(function(e,t){var n=pa("Form",e),r=function(e){var t=e.id,n=e.isRequired,r=e.isInvalid,o=e.isDisabled,a=e.isReadOnly,i=Xp(e,Kp),s=sr(),l=t||"field-"+s,u=l+"-label",c=l+"-feedback",d=l+"-helptext",f=je.useState(!1),p=f[0],m=f[1],v=je.useState(!1),h=v[0],y=v[1],g=rr(),b=g[0],x=g[1],E=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({id:d},e,{ref:Kn(t,function(e){e&&y(!0)})})},[d]),w=je.useCallback(function(e,t){var n,i;return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,{ref:t,"data-focus":O(b),"data-disabled":O(o),"data-invalid":O(r),"data-readonly":O(a),id:null!=(n=e.id)?n:u,htmlFor:null!=(i=e.htmlFor)?i:l})},[l,o,b,r,a,u]),k=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({id:c},e,{ref:Kn(t,function(e){e&&m(!0)}),"aria-live":"polite"})},[c]),S=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,i,{ref:t,role:"group"})},[i]),C=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:x.on,onBlur:x.off,hasFeedbackText:p,setHasFeedbackText:m,hasHelpText:h,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:i,getHelpTextProps:E,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(ta(e)),o=r.getRootProps,a=Xp(r,Jp),i=S("chakra-form-control",e.className);/*#__PURE__*/
18
- return je.createElement(om,{value:a},/*#__PURE__*/je.createElement(em,{value:n},/*#__PURE__*/je.createElement(va.div,Gp({},o({},t),{className:i,__css:n.container}))))});d&&(im.displayName="FormControl");var sm=/*#__PURE__*/ua(function(e,t){var n=am(),r=tm(),o=S("chakra-form__helper-text",e.className);/*#__PURE__*/
19
- return je.createElement(va.div,Gp({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:o}))});d&&(sm.displayName="FormHelperText");var lm=["isDisabled","isInvalid","isReadOnly","isRequired"],um=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function cm(e){var t=dm(e),n=t.isDisabled,r=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return Gp({},Xp(t,lm),{disabled:n,readOnly:o,required:a,"aria-invalid":_(r),"aria-required":_(a),"aria-readonly":_(o)})}function dm(e){var t,n,r,o=am(),i=e.id,s=e.disabled,l=e.readOnly,u=e.required,c=e.isRequired,d=e.isInvalid,f=e.isReadOnly,p=e.isDisabled,m=e.onFocus,v=e.onBlur,h=Xp(e,um),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&y.push(o.feedbackId),null!=o&&o.hasHelpText&&y.push(o.helpTextId),Gp({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:p)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:f)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=u?u:c)?r:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:a(null==o?void 0:o.onFocus,m),onBlur:a(null==o?void 0:o.onBlur,v)})}var fm=ea("FormError"),pm=fm[0],mm=fm[1],vm=/*#__PURE__*/ua(function(e,t){var n=pa("FormError",e),r=ta(e),o=am();return null!=o&&o.isInvalid?/*#__PURE__*/je.createElement(pm,{value:n},/*#__PURE__*/je.createElement(va.div,Gp({},null==o?void 0:o.getErrorMessageProps(r,t),{className:S("chakra-form__error-message",e.className),__css:Gp({display:"flex",alignItems:"center"},n.text)}))):null});d&&(vm.displayName="FormErrorMessage"),d&&(/*#__PURE__*/ua(function(e,t){var n=mm(),r=am();if(null==r||!r.isInvalid)return null;var o=S("chakra-form__error-icon",e.className);/*#__PURE__*/
20
- return je.createElement(_a,Gp({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:o}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}).displayName="FormErrorIcon");var hm=["className","children","requiredIndicator","optionalIndicator"],ym=/*#__PURE__*/ua(function(e,t){var n,r=fa("FormLabel",e),o=ta(e),a=o.children,i=o.requiredIndicator,s=void 0===i?/*#__PURE__*/je.createElement(gm,null):i,l=o.optionalIndicator,u=void 0===l?null:l,c=Xp(o,hm),d=am(),f=null!=(n=null==d?void 0:d.getLabelProps(c,t))?n:Gp({ref:t},c);/*#__PURE__*/
21
- return je.createElement(va.label,Gp({},f,{className:S("chakra-form__label",o.className),__css:Gp({display:"block",textAlign:"start"},r)}),a,null!=d&&d.isRequired?s:u)});d&&(ym.displayName="FormLabel");var gm=/*#__PURE__*/ua(function(e,t){var n=am(),r=nm();if(null==n||!n.isRequired)return null;var o=S("chakra-form__required-indicator",e.className);/*#__PURE__*/
22
- return je.createElement(va.span,Gp({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:o}))});d&&(gm.displayName="RequiredIndicator");var bm=!1,xm=null,Em=!1,wm=/* @__PURE__ */new Set,km="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Sm(e,t){wm.forEach(n=>n(e,t))}function Cm(e){Em=!0,function(e){return!(e.metaKey||!km&&e.altKey||e.ctrlKey)}(e)&&(xm="keyboard",Sm("keyboard",e))}function Om(e){xm="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Em=!0,Sm("pointer",e))}function _m(e){e.target!==window&&e.target!==document&&(Em||(xm="keyboard",Sm("keyboard",e)),Em=!1)}function Nm(){Em=!1}function Rm(){return"pointer"!==xm}function Am(e){!function(){if("undefined"==typeof window||bm)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Em=!0,e.apply(this,t)},document.addEventListener("keydown",Cm,!0),document.addEventListener("keyup",Cm,!0),window.addEventListener("focus",_m,!0),window.addEventListener("blur",Nm,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Om,!0),document.addEventListener("pointermove",Om,!0),document.addEventListener("pointerup",Om,!0)):(document.addEventListener("mousedown",Om,!0),document.addEventListener("mousemove",Om,!0),document.addEventListener("mouseup",Om,!0)),bm=!0}(),e(Rm());const t=()=>e(Rm());return wm.add(t),()=>{wm.delete(t)}}function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(this,arguments)}var Pm=Jn({name:"CheckboxGroupContext",strict:!1})[1];function Tm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var Lm=["isIndeterminate","isChecked"],Mm=function(e){var t=zf;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(va.svg),jm=function(e){/*#__PURE__*/
23
- return je.createElement(Mm,Im({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),/*#__PURE__*/je.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Dm=function(e){/*#__PURE__*/
24
- return je.createElement(Mm,Im({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),/*#__PURE__*/je.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Vm=function(e){/*#__PURE__*/
25
- return je.createElement(qf,{initial:!1},e.open&&/*#__PURE__*/je.createElement(zf.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},e.children))},Bm=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Tm(e,Lm);/*#__PURE__*/
26
- return je.createElement(Vm,{open:n||t},/*#__PURE__*/je.createElement(t?Dm:jm,r))},Fm=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function zm(e){void 0===e&&(e={});var t=dm(e),n=t.isDisabled,r=t.isReadOnly,o=t.isRequired,s=t.isInvalid,l=t.id,u=t.onBlur,c=t.onFocus,d=t["aria-describedby"],f=e.defaultChecked,p=e.isChecked,m=e.isFocusable,v=e.onChange,h=e.isIndeterminate,y=e.name,g=e.value,b=e.tabIndex,x=void 0===b?void 0:b,w=e["aria-label"],k=e["aria-labelledby"],S=e["aria-invalid"],C=Tm(e,Fm),_=E(C,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=tr(v),R=tr(u),A=tr(c),I=je.useState(!1),P=I[0],T=I[1],L=rr(),M=L[0],j=L[1],D=rr(),V=D[0],B=D[1],F=rr(),z=F[0],W=F[1];je.useEffect(function(){return Am(T)},[]);var U=je.useRef(null),$=je.useState(!0),H=$[0],q=$[1],Y=je.useState(!!f),Z=Y[1],G=or(p,Y[0]),X=G[0],K=G[1],J=je.useCallback(function(e){r||n?e.preventDefault():(X||Z(K?e.target.checked:!!h||e.target.checked),null==N||N(e))},[r,n,K,X,h,N]);er(function(){U.current&&(U.current.indeterminate=Boolean(h))},[h]),lr(function(){n&&j.off()},[n,j]),er(function(){var e=U.current;null!=e&&e.form&&(e.form.onreset=function(){Z(!!f)})},[]);var Q=n&&!m,ee=je.useCallback(function(e){" "===e.key&&W.on()},[W]),te=je.useCallback(function(e){" "===e.key&&W.off()},[W]);er(function(){U.current&&U.current.checked!==K&&Z(U.current.checked)},[U.current]);var ne=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:t,"data-active":O(z),"data-hover":O(V),"data-checked":O(K),"data-focus":O(M),"data-focus-visible":O(M&&P),"data-indeterminate":O(h),"data-disabled":O(n),"data-invalid":O(s),"data-readonly":O(r),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,function(e){M&&e.preventDefault(),W.on()}),onMouseUp:a(e.onMouseUp,W.off),onMouseEnter:a(e.onMouseEnter,B.on),onMouseLeave:a(e.onMouseLeave,B.off)})},[z,K,n,M,P,V,h,s,r,W,B.off,B.on]),re=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},_,e,{ref:Kn(t,function(e){e&&q("LABEL"===e.tagName)}),onClick:a(e.onClick,function(){var e;H||(null==(e=U.current)||e.click(),i(U.current,{nextTick:!0}))}),"data-disabled":O(n),"data-checked":O(K),"data-invalid":O(s)})},[_,n,K,s,H]),oe=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:Kn(U,t),type:"checkbox",name:y,value:g,id:l,tabIndex:x,onChange:a(e.onChange,J),onBlur:a(e.onBlur,R,j.off),onFocus:a(e.onFocus,A,j.on),onKeyDown:a(e.onKeyDown,ee),onKeyUp:a(e.onKeyUp,te),required:o,checked:K,disabled:Q,readOnly:r,"aria-label":w,"aria-labelledby":k,"aria-invalid":S?Boolean(S):s,"aria-describedby":d,"aria-disabled":n,style:ha})},[y,g,l,J,j.off,j.on,R,A,ee,te,o,K,Q,r,w,k,S,s,d,n,x]),ae=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:t,onMouseDown:a(e.onMouseDown,Wm),onTouchStart:a(e.onTouchStart,Wm),"data-disabled":O(n),"data-checked":O(K),"data-invalid":O(s)})},[K,n,s]);return{state:{isInvalid:s,isFocused:M,isChecked:K,isActive:z,isHovered:V,isIndeterminate:h,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:re,getCheckboxProps:ne,getInputProps:oe,getLabelProps:ae,htmlProps:_}}function Wm(e){e.preventDefault(),e.stopPropagation()}var Um=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],$m=va("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Hm=va("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),qm=/*#__PURE__*/ua(function(e,t){var n=Pm(),r=pa("Checkbox",Im({},n,e)),o=ta(e),a=o.spacing,i=void 0===a?"0.5rem":a,s=o.className,l=o.children,u=o.iconColor,c=o.iconSize,d=o.icon,f=void 0===d?/*#__PURE__*/je.createElement(Bm,null):d,p=o.isChecked,m=o.isDisabled,v=void 0===m?null==n?void 0:n.isDisabled:m,h=o.onChange,y=o.inputProps,g=Tm(o,Um),b=p;null!=n&&n.value&&o.value&&(b=n.value.includes(o.value));var x=h;null!=n&&n.onChange&&o.value&&(x=N(n.onChange,h));var E=zm(Im({},g,{isDisabled:v,isChecked:b,onChange:x})),w=E.state,k=E.getInputProps,C=E.getCheckboxProps,O=E.getLabelProps,_=E.getRootProps,R=je.useMemo(function(){return Im({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:c,color:u},r.icon)},[u,c,w.isChecked,w.isIndeterminate,r.icon]),A=/*#__PURE__*/je.cloneElement(f,{__css:R,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
27
- return je.createElement(Hm,Im({__css:r.container,className:S("chakra-checkbox",s)},_()),/*#__PURE__*/je.createElement("input",Im({className:"chakra-checkbox__input"},k(y,t))),/*#__PURE__*/je.createElement($m,Im({__css:r.control,className:"chakra-checkbox__control"},C()),A),l&&/*#__PURE__*/je.createElement(va.span,Im({className:"chakra-checkbox__label"},O(),{__css:Im({marginStart:i},r.label)}),l))});function Ym(e){void 0===e&&(e={});var t=e.precision,n=e.defaultValue,r=e.value,o=e.step,a=void 0===o?1:o,i=e.min,s=void 0===i?P:i,l=e.max,u=void 0===l?T:l,c=e.keepWithinRange,d=void 0===c||c,f=tr(e.onChange),p=je.useState(function(){var e;return null==n?"":null!=(e=Xm(n,a,t))?e:""}),m=p[1],v=or(r,p[0]),h=v[0],y=v[1],g=Gm(Zm(y),a),b=null!=t?t:g,x=je.useCallback(function(e){e!==y&&(h||m(e.toString()),null==f||f(e.toString(),Zm(e)))},[f,h,y]),E=je.useCallback(function(e){var t=e;return d&&(t=R(t,s,u)),A(t,b)},[b,d,u,s]),w=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===y?Zm(e):Zm(y)+e,t=E(t),x(t)},[E,a,x,y]),k=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===y?Zm(-e):Zm(y)-e,t=E(t),x(t)},[E,a,x,y]),S=je.useCallback(function(){var e,r;e=null==n?"":null!=(r=Xm(n,a,t))?r:s,x(e)},[n,t,a,x,s]),C=je.useCallback(function(e){var t,n=null!=(t=Xm(e,a,b))?t:s;x(n)},[b,a,x,s]),O=Zm(y);return{isOutOfRange:O>u||O<s,isAtMax:O===u,isAtMin:O===s,precision:b,value:y,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:E,cast:C,setValue:m}}function Zm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Gm(e,t){return Math.max(I(t),I(e))}function Xm(e,t,n){var r=Zm(e);if(!Number.isNaN(r)){var o=Gm(r,t);return A(r,null!=n?n:o)}}function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}function Jm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(qm.displayName="Checkbox");var Qm=["htmlSize"],ev=/*#__PURE__*/ua(function(e,t){var n=e.htmlSize,r=Jm(e,Qm),o=pa("Input",r),a=cm(ta(r)),i=S("chakra-input",e.className);/*#__PURE__*/
28
- return je.createElement(va.input,Km({size:n},a,{__css:o.field,ref:t,className:i}))});d&&(ev.displayName="Input"),ev.id="Input";var tv=["children","className"],nv=ea("InputGroup"),rv=nv[0],ov=nv[1],av=/*#__PURE__*/ua(function(e,t){var n=pa("Input",e),r=ta(e),o=r.children,a=r.className,i=Jm(r,tv),s=S("chakra-input__group",a),l={},u=Qn(o),c=n.field;u.forEach(function(e){var t,r;n&&(c&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(r=c.height)?r:c.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))});var d=u.map(function(t){var n,r,o=w({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});/*#__PURE__*/
29
- return je.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,l,t.props))});/*#__PURE__*/
30
- return je.createElement(va.div,Km({className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},i),/*#__PURE__*/je.createElement(rv,{value:n},d))});d&&(av.displayName="InputGroup");var iv=["placement"],sv={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},lv=va("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),uv=/*#__PURE__*/ua(function(e,t){var n,r=e.placement,o=void 0===r?"left":r,a=Jm(e,iv),i=null!=(n=sv[o])?n:{},s=ov();/*#__PURE__*/
31
- return je.createElement(lv,Km({ref:t},a,{__css:Km({},s.addon,i)}))});d&&(uv.displayName="InputAddon");var cv=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
32
- return je.createElement(uv,Km({ref:t,placement:"left"},e,{className:S("chakra-input__left-addon",e.className)}))});d&&(cv.displayName="InputLeftAddon"),cv.id="InputLeftAddon";var dv=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
33
- return je.createElement(uv,Km({ref:t,placement:"right"},e,{className:S("chakra-input__right-addon",e.className)}))});d&&(dv.displayName="InputRightAddon"),dv.id="InputRightAddon";var fv=["placement"],pv=["className"],mv=["className"],vv=va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),hv=/*#__PURE__*/ua(function(e,t){var n,r,o,a=e.placement,i=void 0===a?"left":a,s=Jm(e,fv),l=ov(),u=l.field,c=Km(((o={})["left"===i?"insetStart":"insetEnd"]="0",o.width=null!=(n=null==u?void 0:u.height)?n:null==u?void 0:u.h,o.height=null!=(r=null==u?void 0:u.height)?r:null==u?void 0:u.h,o.fontSize=null==u?void 0:u.fontSize,o),l.element);/*#__PURE__*/
34
- return je.createElement(vv,Km({ref:t,__css:c},s))});hv.id="InputElement",d&&(hv.displayName="InputElement");var yv=/*#__PURE__*/ua(function(e,t){var n=e.className,r=Jm(e,pv),o=S("chakra-input__left-element",n);/*#__PURE__*/
35
- return je.createElement(hv,Km({ref:t,placement:"left",className:o},r))});yv.id="InputLeftElement",d&&(yv.displayName="InputLeftElement");var gv=/*#__PURE__*/ua(function(e,t){var n=e.className,r=Jm(e,mv),o=S("chakra-input__right-element",n);/*#__PURE__*/
36
- return je.createElement(hv,Km({ref:t,placement:"right",className:o},r))});function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}function xv(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}gv.id="InputRightElement",d&&(gv.displayName="InputRightElement");var Ev=["ratio","children","className"],wv=/*#__PURE__*/ua(function(e,t){var n=e.ratio,r=void 0===n?4/3:n,o=e.children,a=e.className,i=xv(e,Ev),s=je.Children.only(o),l=S("chakra-aspect-ratio",a);/*#__PURE__*/
37
- return je.createElement(va.div,bv({ref:t,position:"relative",className:l,_before:{height:0,content:'""',display:"block",paddingBottom:L(r,function(e){return 1/e*100+"%"})},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},i),s)});d&&(wv.displayName="AspectRatio");var kv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Badge",e),r=xv(ta(e),kv);/*#__PURE__*/
38
- return je.createElement(va.span,bv({ref:t,className:S("chakra-badge",e.className)},r,{__css:bv({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}).displayName="Badge");var Sv=["size","centerContent"],Cv=["size"],Ov=va("div");d&&(Ov.displayName="Box");var _v=/*#__PURE__*/ua(function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,a=xv(e,Sv);/*#__PURE__*/
39
- return je.createElement(Ov,bv({ref:t,boxSize:n,__css:bv({},o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},a))});d&&(_v.displayName="Square"),d&&(/*#__PURE__*/ua(function(e,t){var n=e.size,r=xv(e,Cv);/*#__PURE__*/
40
- return je.createElement(_v,bv({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Nv=va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d&&(Nv.displayName="Center");var Rv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Code",e),r=xv(ta(e),Rv);/*#__PURE__*/
41
- return je.createElement(va.code,bv({ref:t,className:S("chakra-code",e.className)},r,{__css:bv({display:"inline-block"},n)}))}).displayName="Code");var Av=["className","centerContent"];d&&(/*#__PURE__*/ua(function(e,t){var n=ta(e),r=n.className,o=n.centerContent,a=xv(n,Av),i=fa("Container",e);/*#__PURE__*/
42
- return je.createElement(va.div,bv({ref:t,className:S("chakra-container",r)},a,{__css:bv({},i,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}).displayName="Container");var Iv=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Pv=["className","orientation","__css"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Divider",e),r=n.borderLeftWidth,o=n.borderBottomWidth,a=n.borderTopWidth,i=n.borderRightWidth,s=n.borderWidth,l=n.borderStyle,u=n.borderColor,c=xv(n,Iv),d=ta(e),f=d.className,p=d.orientation,m=void 0===p?"horizontal":p,v=d.__css,h=xv(d,Pv);/*#__PURE__*/
43
- return je.createElement(va.hr,bv({ref:t,"aria-orientation":m},h,{__css:bv({},c,{border:"0",borderColor:u,borderStyle:l},{vertical:{borderLeftWidth:r||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}}[m],v),className:S("chakra-divider",f)}))}).displayName="Divider");var Tv=["direction","align","justify","wrap","basis","grow","shrink"],Lv=/*#__PURE__*/ua(function(e,t){var n=e.direction,r=e.align,o=e.justify,a=e.wrap,i=e.basis,s=e.grow,l=e.shrink,u=xv(e,Tv);/*#__PURE__*/
44
- return je.createElement(va.div,bv({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l}},u))});d&&(Lv.displayName="Flex");var Mv=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],jv=/*#__PURE__*/ua(function(e,t){var n=e.templateAreas,r=e.gap,o=e.rowGap,a=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,u=e.autoRows,c=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=xv(e,Mv);/*#__PURE__*/
45
- return je.createElement(va.div,bv({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f}},p))});d&&(jv.displayName="Grid");var Dv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Heading",e),r=xv(ta(e),Dv);/*#__PURE__*/
46
- return je.createElement(va.h2,bv({ref:t,className:S("chakra-heading",e.className)},r,{__css:n}))}).displayName="Heading");var Vv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Kbd",e),r=ta(e),o=r.className,a=xv(r,Vv);/*#__PURE__*/
47
- return je.createElement(va.kbd,bv({ref:t,className:S("chakra-kbd",o)},a,{__css:bv({fontFamily:"mono"},n)}))}).displayName="Kbd");var Bv=["className","isExternal"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Link",e),r=ta(e),o=r.className,a=r.isExternal,i=xv(r,Bv);/*#__PURE__*/
48
- return je.createElement(va.a,bv({target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:t,className:S("chakra-link",o)},i,{__css:n}))}).displayName="Link");var Fv=["children","styleType","stylePosition","spacing"],zv=["as"],Wv=["as"],Uv=ea("List"),$v=Uv[0],Hv=Uv[1],qv=/*#__PURE__*/ua(function(e,t){var n,r=pa("List",e),o=ta(e),a=o.children,i=o.styleType,s=void 0===i?"none":i,l=o.stylePosition,u=o.spacing,c=xv(o,Fv),d=Qn(a),f=u?((n={})["& > *:not(style) ~ *:not(style)"]={mt:u},n):{};/*#__PURE__*/
49
- return je.createElement($v,{value:r},/*#__PURE__*/je.createElement(va.ul,bv({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:bv({},r.container,f)},c),d))});d&&(qv.displayName="List"),d&&(/*#__PURE__*/ua(function(e,t){var n=xv(e,zv);/*#__PURE__*/
50
- return je.createElement(qv,bv({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),d&&(/*#__PURE__*/ua(function(e,t){var n=xv(e,Wv);/*#__PURE__*/
51
- return je.createElement(qv,bv({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),d&&(/*#__PURE__*/ua(function(e,t){var n=Hv();/*#__PURE__*/
52
- return je.createElement(va.li,bv({ref:t},e,{__css:n.item}))}).displayName="ListItem"),d&&(/*#__PURE__*/ua(function(e,t){var n=Hv();/*#__PURE__*/
53
- return je.createElement(Oa,bv({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var Yv=["columns","spacingX","spacingY","spacing","minChildWidth"],Zv=/*#__PURE__*/ua(function(e,t){var n=e.columns,r=e.spacingX,o=e.spacingY,a=e.spacing,i=e.minChildWidth,s=xv(e,Yv),l=Qo(),u=i?function(e,t){return L(e,function(e){var n=function(e,t,n){var r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return function(e){var n=o.filter(Boolean),a=r.map(function(t,r){var o;return function(e,t,n){var r,o;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.value};return null!=(r=null!=(o=a(t))?o:a(n))?r:n}(e,"sizes."+t,null!=(o=n[r])?o:t)});return Array.isArray(t)?a:a[0]}}(0,e,function(e){return h(e)?e+"px":e}(e))(t);return M(e)?null:"repeat(auto-fit, minmax("+n+", 1fr))"})}(i,l):L(n,function(e){return M(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
54
- return je.createElement(jv,bv({ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:u},s))});d&&(Zv.displayName="SimpleGrid");var Gv=va("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});d&&(Gv.displayName="Spacer");var Xv="& > *:not(style) ~ *:not(style)",Kv=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Jv=function(e){/*#__PURE__*/
55
- return je.createElement(va.div,bv({className:"chakra-stack__item"},e,{__css:bv({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},Qv=/*#__PURE__*/ua(function(e,t){var n,r=e.isInline,o=e.direction,a=e.align,i=e.justify,s=e.spacing,l=void 0===s?"0.5rem":s,u=e.wrap,c=e.children,d=e.divider,f=e.className,p=e.shouldWrapChildren,m=xv(e,Kv),v=r?"row":null!=o?o:"column",h=je.useMemo(function(){return function(e){var t,n=e.spacing,r=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:r})[Xv]=L(r,function(e){return o[e]}),t}({direction:v,spacing:l})},[v,l]),y=je.useMemo(function(){return function(e){var t=e.spacing,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":L(e.direction,function(e){return n[e]})}}({spacing:l,direction:v})},[l,v]),g=!!d,b=!p&&!g,x=Qn(c),E=b?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,o=p?/*#__PURE__*/je.createElement(Jv,{key:n},e):e;return g?/*#__PURE__*/je.createElement(je.Fragment,{key:n},o,r?null:/*#__PURE__*/je.cloneElement(d,{__css:y})):o}),w=S("chakra-stack",f);/*#__PURE__*/
56
- return je.createElement(va.div,bv({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:h.flexDirection,flexWrap:u,className:w,__css:g?{}:(n={},n[Xv]=h[Xv],n)},m),E)});d&&(Qv.displayName="Stack");var eh=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
57
- return je.createElement(Qv,bv({align:"center"},e,{direction:"row",ref:t}))});d&&(eh.displayName="HStack"),d&&(/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
58
- return je.createElement(Qv,bv({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var th=["className","align","decoration","casing"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Text",e),r=xv(ta(e),th),o=w({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
59
- return je.createElement(va.p,bv({ref:t,className:S("chakra-text",e.className)},o,r,{__css:n}))}).displayName="Text");var nh=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],rh=["className"];function oh(e){return"number"==typeof e?e+"px":e}var ah=/*#__PURE__*/ua(function(e,t){var n=e.spacing,r=void 0===n?"0.5rem":n,o=e.spacingX,a=e.spacingY,i=e.children,s=e.justify,l=e.direction,u=e.align,c=e.className,d=e.shouldWrapChildren,f=xv(e,nh),p=je.useMemo(function(){var e={spacingX:o,spacingY:a},t=e.spacingX,n=void 0===t?r:t,i=e.spacingY,c=void 0===i?r:i;return{"--chakra-wrap-x-spacing":function(e){return L(n,function(t){return oh(gr("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return L(c,function(t){return oh(gr("space",t)(e))})},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:u,flexDirection:l,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,a,s,u,l]),m=d?je.Children.map(i,function(e,t){/*#__PURE__*/
60
- return je.createElement(ih,{key:t},e)}):i;/*#__PURE__*/
61
- return je.createElement(va.div,bv({ref:t,className:S("chakra-wrap",c),overflow:"hidden"},f),/*#__PURE__*/je.createElement(va.ul,{className:"chakra-wrap__list",__css:p},m))});d&&(ah.displayName="Wrap");var ih=/*#__PURE__*/ua(function(e,t){var n=e.className,r=xv(e,rh);/*#__PURE__*/
62
- return je.createElement(va.li,bv({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:S("chakra-wrap__listitem",n)},r))});function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}d&&(ih.displayName="WrapItem");var lh=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function uh(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var ch="top",dh="bottom",fh="right",ph="left",mh=[ch,dh,fh,ph],vh=/*#__PURE__*/mh.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),hh=/*#__PURE__*/[].concat(mh,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),yh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gh(e){return e?(e.nodeName||"").toLowerCase():null}function bh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof bh(e).Element||e instanceof Element}function Eh(e){return e instanceof bh(e).HTMLElement||e instanceof HTMLElement}function wh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bh(e).ShadowRoot||e instanceof ShadowRoot)}function kh(e){return e.split("-")[0]}var Sh=Math.max,Ch=Math.min,Oh=Math.round;function _h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Eh(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Oh(n.width)/i||1),a>0&&(o=Oh(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Nh(e){var t=_h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ah(e){return bh(e).getComputedStyle(e)}function Ih(e){return["table","td","th"].indexOf(gh(e))>=0}function Ph(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Th(e){return"html"===gh(e)?e:e.assignedSlot||e.parentNode||(wh(e)?e.host:null)||Ph(e)}function Lh(e){return Eh(e)&&"fixed"!==Ah(e).position?e.offsetParent:null}function Mh(e){for(var t=bh(e),n=Lh(e);n&&Ih(n)&&"static"===Ah(n).position;)n=Lh(n);return n&&("html"===gh(n)||"body"===gh(n)&&"static"===Ah(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Eh(e)&&"fixed"===Ah(e).position)return null;var n=Th(e);for(wh(n)&&(n=n.host);Eh(n)&&["html","body"].indexOf(gh(n))<0;){var r=Ah(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function jh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dh(e,t,n){return Sh(e,Ch(t,n))}function Vh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Fh(e){return e.split("-")[1]}var zh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof c?c({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=ph,x=ch,E=window;if(u){var w=Mh(n),k="clientHeight",S="clientWidth";w===bh(n)&&"static"!==Ah(w=Ph(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===ch||(o===ph||o===fh)&&"end"===a)&&(x=dh,v-=(d&&w===E&&E.visualViewport?E.visualViewport.height:w[k])-r.height,v*=l?1:-1),o!==ph&&(o!==ch&&o!==dh||"end"!==a)||(b=fh,p-=(d&&w===E&&E.visualViewport?E.visualViewport.width:w[S])-r.width,p*=l?1:-1)}var C,O=Object.assign({position:s},u&&zh),_=!0===c?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Oh(e.x*n)/n||0,y:Oh(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=_.x,v=_.y,Object.assign({},O,l?((C={})[x]=g?"0":"",C[b]=y?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C):((t={})[x]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Uh={passive:!0},$h={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=bh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,Uh)}),s&&l.addEventListener("resize",n.update,Uh),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Uh)}),s&&l.removeEventListener("resize",n.update,Uh)}},data:{}},Hh={left:"right",right:"left",bottom:"top",top:"bottom"};function qh(e){return e.replace(/left|right|bottom|top/g,function(e){return Hh[e]})}var Yh={start:"end",end:"start"};function Zh(e){return e.replace(/start|end/g,function(e){return Yh[e]})}function Gh(e){var t=bh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xh(e){return _h(Ph(e)).left+Gh(e).scrollLeft}function Kh(e){var t=Ah(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Jh(e){return["html","body","#document"].indexOf(gh(e))>=0?e.ownerDocument.body:Eh(e)&&Kh(e)?e:Jh(Th(e))}function Qh(e,t){var n;void 0===t&&(t=[]);var r=Jh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=bh(r),i=o?[a].concat(a.visualViewport||[],Kh(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Qh(Th(i)))}function ey(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ty(e,t){return"viewport"===t?ey(function(e){var t=bh(e),n=Ph(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Xh(e),y:s}}(e)):xh(t)?function(e){var t=_h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ey(function(e){var t,n=Ph(e),r=Gh(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Sh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Sh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Xh(e),l=-r.scrollTop;return"rtl"===Ah(o||n).direction&&(s+=Sh(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Ph(e)))}function ny(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?kh(o):null,i=o?Fh(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case ch:t={x:s,y:n.y-r.height};break;case dh:t={x:s,y:n.y+n.height};break;case fh:t={x:n.x+n.width,y:l};break;case ph:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?jh(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ry(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,u=void 0===l?"popper":l,c=t.altBoundary,d=void 0!==c&&c,f=t.padding,p=void 0===f?0:f,m=Vh("number"!=typeof p?p:Bh(p,mh)),v=e.rects.popper,h=e.elements[d?"popper"===u?"reference":"popper":u],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=Qh(Th(e)),n=["absolute","fixed"].indexOf(Ah(e).position)>=0&&Eh(e)?Mh(e):e;return xh(n)?t.filter(function(e){return xh(e)&&Rh(e,n)&&"body"!==gh(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=ty(e,n);return t.top=Sh(r.top,t.top),t.right=Ch(r.right,t.right),t.bottom=Ch(r.bottom,t.bottom),t.left=Sh(r.left,t.left),t},ty(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(xh(h)?h:h.contextElement||Ph(e.elements.popper),a,s),g=_h(e.elements.reference),b=ny({reference:g,element:v,strategy:"absolute",placement:r}),x=ey(Object.assign({},v,b)),E="popper"===u?x:g,w={top:y.top-E.top+m.top,bottom:E.bottom-y.bottom+m.bottom,left:y.left-E.left+m.left,right:E.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===u&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[fh,dh].indexOf(e)>=0?1:-1,n=[ch,dh].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function oy(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?hh:i,l=Fh(t.placement),u=l?a?vh:vh.filter(function(e){return Fh(e)===l}):mh,c=u.filter(function(e){return s.indexOf(e)>=0});0===c.length&&(c=u,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=c.reduce(function(t,a){return t[a]=ry(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[kh(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var ay={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=kh(h),g=l||(y!==h&&m?function(e){if("auto"===kh(e))return[];var t=qh(e);return[Zh(e),t,Zh(t)]}(h):[qh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===kh(n)?oy(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:v}):n)},[]),x=t.rects.reference,E=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var O=b[C],_=kh(O),N="start"===Fh(O),R=[ch,dh].indexOf(_)>=0,A=R?"width":"height",I=ry(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),P=R?N?fh:ph:N?dh:ch;x[A]>E[A]&&(P=qh(P));var T=qh(P),L=[];if(a&&L.push(I[_]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){S=O,k=!1;break}w.set(O,L)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function iy(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sy(e){return[ch,fh,dh,ph].some(function(t){return e[t]>=0})}var ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=hh.reduce(function(e,n){return e[n]=function(e,t,n){var r=kh(e),o=[ph,ch].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ph,fh].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},uy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.tether,u=void 0===l||l,c=n.tetherOffset,d=void 0===c?0:c,f=ry(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=kh(t.placement),m=Fh(t.placement),v=!m,h=jh(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,O="y"===h?ch:ph,_="y"===h?dh:fh,N="y"===h?"height":"width",R=g[h],A=R+f[O],I=R-f[_],P=u?-x[N]/2:0,T="start"===m?b[N]:x[N],L="start"===m?-x[N]:-b[N],M=t.elements.arrow,j=u&&M?Nh(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[O],B=D[_],F=Dh(0,b[N],j[N]),z=v?b[N]/2-P-F-V-w.mainAxis:T-F-V-w.mainAxis,W=v?-b[N]/2+P+F+B+w.mainAxis:L+F+B+w.mainAxis,U=t.elements.arrow&&Mh(t.elements.arrow),$=null!=(C=null==k?void 0:k[h])?C:0,H=R+W-$,q=Dh(u?Ch(A,R+z-$-(U?"y"===h?U.clientTop||0:U.clientLeft||0:0)):A,R,u?Sh(I,H):I);g[h]=q,S[h]=q-R}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?ch:ph],K=Z-f["x"===h?dh:fh],J=-1!==[ch,ph].indexOf(p),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-x[G]-Q+w.altAxis,te=J?Z+b[G]+x[G]-Q-w.altAxis:K,ne=u&&J?function(e,t,n){var r=Dh(e,t,n);return r>n?n:r}(ee,Z,te):Dh(u?ee:X,Z,u?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function cy(e,t,n){void 0===n&&(n=!1);var r=Eh(t),o=Eh(t)&&function(e){var t=e.getBoundingClientRect(),n=Oh(t.width)/e.offsetWidth||1,r=Oh(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ph(t),i=_h(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==gh(t)||Kh(a))&&(s=function(e){return e!==bh(e)&&Eh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Gh(e);var t}(t)),Eh(t)?((l=_h(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Xh(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function dy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function fy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var py='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',my=["name","enabled","phase","fn","effect","requires","options"],vy="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hy={placement:"bottom",modifiers:[],strategy:"absolute"};function yy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function gy(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?hy:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},hy,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:xh(e)?Qh(e):e.contextElement?Qh(e.contextElement):[],popper:Qh(t)};var i,u,f,p=function(e){var t=dy(e);return yh.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),u=function(e){return e.name},f=new Set,i.filter(function(e){var t=u(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),my).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(fy(py,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(fy(py,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":yh.indexOf(t.phase)<0&&console.error(fy(py,t.name,'"phase"',"either "+yh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(fy(py,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(fy(py,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(fy(py,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fy(py,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+my.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(fy('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===kh(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var v=Ah(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:c,options:void 0===t?{}:t});l.push(r||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(yy(t,n)){s.rects={reference:cy(t,Mh(n),"fixed"===s.options.strategy),popper:Nh(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:c})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(vy)}},update:(a=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(a())})})),i}),destroy:function(){d(),u=!0}};if(!yy(e,t))return"production"!==process.env.NODE_ENV&&console.error(vy),c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var by=/*#__PURE__*/gy({defaultModifiers:[$h,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ny({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var u=Ah(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return u.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:kh(t.placement),variation:Fh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wh(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wh(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Eh(o)&&gh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Eh(r)&&gh(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},ly,ay,uy,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=kh(n.placement),l=jh(s),u=[ph,fh].indexOf(s)>=0?"height":"width";if(a&&i){var c=function(e,t){return Vh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bh(e,mh))}(o.padding,n),d=Nh(a),f="y"===l?ch:ph,p="y"===l?dh:fh,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],h=Mh(a),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[u]/2+(m/2-v/2),b=Dh(c[f],g,y-d[u]-c[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Eh(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Rh(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ry(t,{elementContext:"reference"}),s=ry(t,{altBoundary:!0}),l=iy(i,r),u=iy(s,o,a),c=sy(l),d=sy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}var Ey=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},wy={arrowShadowColor:Ey("--popper-arrow-shadow-color"),arrowSize:Ey("--popper-arrow-size","8px"),arrowSizeHalf:Ey("--popper-arrow-size-half"),arrowBg:Ey("--popper-arrow-bg"),transformOrigin:Ey("--popper-transform-origin"),arrowOffset:Ey("--popper-arrow-offset")},ky={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Sy={scroll:!0,resize:!0},Cy={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){t.elements.popper.style.width=t.elements.reference.offsetWidth+"px"}}},Oy={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){_y(e.state)},effect:function(e){var t=e.state;return function(){_y(t)}}},_y=function(e){e.elements.popper.style.setProperty(wy.transformOrigin.var,ky[e.placement])},Ny={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ry(e.state)}},Ry=function(e){var t;if(e.placement){var n=Ay(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,o;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=wy.arrowSize.varRef,r.height=wy.arrowSize.varRef,r.zIndex=-1,r));var a=((o={})[wy.arrowSizeHalf.var]="calc("+wy.arrowSize.varRef+" / 2)",o[wy.arrowOffset.var]="calc("+wy.arrowSizeHalf.varRef+" * -1)",o);for(var i in a)e.elements.arrow.style.setProperty(i,a[i])}}},Ay=function(e){return e.startsWith("top")?{property:"bottom",value:wy.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:wy.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:wy.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:wy.arrowOffset.varRef}:void 0},Iy={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Py(e.state)},effect:function(e){var t=e.state;return function(){Py(t)}}},Py=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:wy.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ty={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ly={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},My=["size","shadowColor","bg","style"];function jy(e){var t=e.size,n=e.shadowColor,r=e.bg,o=xy({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dy.apply(this,arguments)}function Vy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var By=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],Fy=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],zy=["type","isChecked"],Wy=["children","type","value","defaultValue","onChange"],Uy=Tp(),$y=Uy[0],Hy=Uy[1],qy=Uy[2],Yy=Uy[3],Zy=Jn({strict:!1,name:"MenuContext"}),Gy=Zy[0],Xy=Zy[1];function Ky(e){var t;return z(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function Jy(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.onMouseEnter,r=e.onMouseMove,o=e.onMouseLeave,a=e.onClick,s=e.isDisabled,l=e.isFocusable,u=e.closeOnSelect,c=e.type,d=Vy(e,Fy),f=Xy(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,x=je.useRef(null),E=b+"-menuitem-"+sr(),w=Yy({disabled:s&&!l}),k=w.index,S=w.register,C=je.useCallback(function(e){null==n||n(e),s||p(k)},[p,k,s,n]),_=je.useCallback(function(e){null==r||r(e),x.current&&!U(x.current)&&C(e)},[C,r]),N=je.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),R=je.useCallback(function(e){null==a||a(e),Ky(e.currentTarget)&&(null!=u?u:v)&&h()},[h,a,v,u]),A=k===m,I=s&&!l;lr(function(){g&&(A&&!I&&x.current?i(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!U(y.current)&&i(y.current,{preventScroll:!1}))},[A,I,y,g]);var P=function(e){void 0===e&&(e={});var t=e.ref,n=e.isDisabled,r=e.isFocusable,o=e.clickOnEnter,a=void 0===o||o,i=e.clickOnSpace,s=void 0===i||i,l=e.onMouseDown,u=e.onMouseUp,c=e.onClick,d=e.onKeyDown,f=e.onKeyUp,p=e.tabIndex,m=e.onMouseOver,v=e.onMouseLeave,h=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,lh),y=je.useState(!0),g=y[0],b=y[1],x=je.useState(!1),E=x[0],w=x[1],k=function(){var e=je.useRef(new Map),t=e.current,n=je.useCallback(function(t,n,r,o){e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=je.useCallback(function(t,n,r,o){t.removeEventListener(n,r,o),e.current.delete(r)},[]);return je.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=g?p:p||0,C=n&&!r,_=je.useCallback(function(e){if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==c||c(e)},[n,c]),N=je.useCallback(function(e){E&&uh(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",N,!1))},[E,k]),R=je.useCallback(function(e){if(null==d||d(e),!(n||e.defaultPrevented||e.metaKey)&&uh(e.nativeEvent)&&!g){var t=a&&"Enter"===e.key;s&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",N,!1)}},[n,g,d,a,s,k,N]),A=je.useCallback(function(e){null==f||f(e),n||e.defaultPrevented||e.metaKey||uh(e.nativeEvent)&&!g&&s&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[s,g,n,f]),I=je.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=je.useCallback(function(e){if(!j(e)){if(n)return e.stopPropagation(),void e.preventDefault();g||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==l||l(e)}},[n,g,l,k,I]),T=je.useCallback(function(e){j(e)||(g||w(!1),null==u||u(e))},[u,g]),L=je.useCallback(function(e){n?e.preventDefault():null==m||m(e)},[n,m]),M=je.useCallback(function(e){E&&(e.preventDefault(),w(!1)),null==v||v(e)},[E,v]),D=Kn(t,function(e){e&&"BUTTON"!==e.tagName&&b(!1)});return sh({},h,g?{ref:D,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:_,onMouseDown:l,onMouseUp:u,onKeyUp:f,onKeyDown:d,onMouseOver:m,onMouseLeave:v}:{ref:D,role:"button","data-active":O(E),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:S,onClick:_,onMouseDown:P,onMouseUp:T,onKeyUp:A,onKeyDown:R,onMouseOver:L,onMouseLeave:M})}({onClick:R,onMouseEnter:C,onMouseMove:_,onMouseLeave:N,ref:Kn(S,x,t),isDisabled:s,isFocusable:l});return Dy({},d,P,{type:null!=c?c:P.type,id:E,role:"menuitem",tabIndex:A?0:-1})}var Qy=["descendants"],eg=["children","as"],tg=["rootProps"],ng=["type"],rg=["icon","iconSpacing","command","commandSpacing","children"],og=["icon","iconSpacing"],ag=["className","title"],ig=["title","children","className"],sg=["className","children"],lg=ea("Menu"),ug=lg[0],cg=lg[1],dg=function(e){var t=e.children,n=pa("Menu",e),d=function(e){void 0===e&&(e={});var t=e.id,n=e.closeOnSelect,r=void 0===n||n,d=e.closeOnBlur,f=void 0===d||d,p=e.autoSelect,m=void 0===p||p,v=e.isLazy,h=e.isOpen,y=e.defaultIsOpen,g=e.onClose,b=e.onOpen,x=e.placement,E=void 0===x?"bottom-start":x,w=e.lazyBehavior,k=void 0===w?"unmount":w,S=e.direction,C=e.computePositionOnMount,O=void 0!==C&&C,_=Vy(e,By),N=je.useRef(null),R=je.useRef(null),A=qy(),I=je.useCallback(function(){i(N.current,{nextTick:!0,selectTextIfInput:!1})},[]),P=je.useCallback(function(){var e=setTimeout(function(){var e=A.firstEnabled();e&&q(e.index)});J.current.add(e)},[A]),T=je.useCallback(function(){var e=setTimeout(function(){var e=A.lastEnabled();e&&q(e.index)});J.current.add(e)},[A]),L=function(e){void 0===e&&(e={});var t=e.onClose,n=e.isOpen,r=e.id,o=tr(e.onOpen),i=tr(t),s=je.useState(e.defaultIsOpen||!1),l=s[1],u=or(n,s[0]),c=u[0],d=u[1],f=sr(r,"disclosure"),p=je.useCallback(function(){c||l(!1),null==i||i()},[c,i]),m=je.useCallback(function(){c||l(!0),null==o||o()},[c,o]),v=je.useCallback(function(){(d?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:c,getButtonProps:function(e){return void 0===e&&(e={}),ir({},e,{"aria-expanded":d,"aria-controls":f,onClick:a(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),ir({},e,{hidden:!d,id:f})}}}({isOpen:h,defaultIsOpen:y,onClose:g,onOpen:je.useCallback(function(){null==b||b(),m?P():I()},[m,P,I,b])}),M=L.isOpen,j=L.onOpen,D=L.onClose,V=L.onToggle;!function(e){var t=e.ref,n=e.handler,r=e.enabled,o=void 0===r||r,a=tr(n),i=je.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;je.useEffect(function(){if(o){var e=function(e){fr(e,t)&&(i.isPointerDown=!0)},r=function(e){i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&n&&fr(e,t)&&(i.isPointerDown=!1,a(e))},l=function(e){i.ignoreEmulatedMouseEvents=!0,n&&i.isPointerDown&&fr(e,t)&&(i.isPointerDown=!1,a(e))},u=s(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",r,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",l,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",r,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",l,!0)}}},[n,t,a,i,o])}({enabled:M&&f,ref:N,handler:function(e){var t;null!=(t=R.current)&&t.contains(e.target)||D()}});var B,F,z,W,U=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,o=e.placement,a=void 0===o?"bottom":o,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,u=void 0===l?8:l,c=e.eventListeners,d=void 0===c||c,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,x=void 0===b||b,E=e.matchWidth,w=e.direction,k=void 0===w?"ltr":w,S=je.useRef(null),C=je.useRef(null),O=je.useRef(null),_=function(e,t){var n,r;void 0===t&&(t="ltr");var o=(null==(n=Ty[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=Ly[e])?r:o}(a,k),N=je.useRef(function(){}),R=je.useCallback(function(){var e;n&&S.current&&C.current&&(null==N.current||N.current(),O.current=by(S.current,C.current,{placement:_,modifiers:[Iy,Ny,Oy,xy({},Cy,{enabled:!!E}),xy({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:xy({},Sy,e)}:{enabled:e,options:Sy})),{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),O.current.forceUpdate(),N.current=O.current.destroy)},[_,n,r,E,d,u,f,m,h,x,g,s]);je.useEffect(function(){return function(){var e;S.current||C.current||(null==(e=O.current)||e.destroy(),O.current=null)}},[]);var A=je.useCallback(function(e){S.current=e,R()},[R]),I=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(A,t)})},[A]),P=je.useCallback(function(e){C.current=e,R()},[R]),T=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(P,t),style:xy({},e.style,{position:s,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,E]),L=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,My);return xy({},n,{ref:t,"data-popper-arrow":"",style:jy(e)})},[]),M=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=O.current)||e.update()},forceUpdate:function(){var e;null==(e=O.current)||e.forceUpdate()},transformOrigin:wy.transformOrigin.varRef,referenceRef:A,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:M,getReferenceProps:I}}(Dy({},_,{enabled:M||O,placement:E,direction:S})),$=je.useState(-1),H=$[0],q=$[1];lr(function(){M||q(-1)},[M]),lr(function(){if(W&&!function(e){var t=e.current;if(!t)return!1;var n=l(t);return!!n&&!u(t,n)&&!!c(n)}(B)){var e=(null==z?void 0:z.current)||B.current;e&&i(e,{nextTick:!0})}},[W=(F={focusRef:R,visible:M,shouldFocus:!0}).shouldFocus&&!F.visible,B=N,z=F.focusRef]);var Y=function(e){var t=e.isOpen,n=e.ref,r=je.useState(t),a=r[0],i=r[1],s=je.useState(!1),l=s[0],u=s[1];return je.useEffect(function(){l||(i(t),u(!0))},[t,l,a]),nr("animationend",function(){i(t)},function(){return n.current}),{present:!(!t&&!a),onComplete:function(){var e,t=new(o(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}({isOpen:M,ref:N}),Z=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=sr(e);return je.useMemo(function(){return n.map(function(e){return e+"-"+o})},[o,n])}(t,"menu-button","menu-list"),G=Z[0],X=Z[1],K=je.useCallback(function(){j(),I()},[j,I]),J=je.useRef(new Set([]));ur(function(){J.current.forEach(function(e){return clearTimeout(e)}),J.current.clear()});var Q=je.useCallback(function(){j(),P()},[P,j]),ee=je.useCallback(function(){j(),T()},[j,T]),te=je.useCallback(function(){var e,t,n=s(N.current),r=null==(e=N.current)?void 0:e.contains(n.activeElement);if(M&&!r){var o=null==(t=A.item(H))?void 0:t.node;o&&i(o,{selectTextIfInput:!1,preventScroll:!1})}},[M,H,A]);return{openAndFocusMenu:K,openAndFocusFirstItem:Q,openAndFocusLastItem:ee,onTransitionEnd:te,unstable__animationState:Y,descendants:A,popper:U,buttonId:G,menuId:X,forceUpdate:U.forceUpdate,orientation:"vertical",isOpen:M,onToggle:V,onOpen:j,onClose:D,menuRef:N,buttonRef:R,focusedIndex:H,closeOnSelect:r,closeOnBlur:f,autoSelect:m,setFocusedIndex:q,isLazy:v,lazyBehavior:k}}(Dy({},ta(e),{direction:Qo().direction})),f=d.descendants,p=Vy(d,Qy),m=je.useMemo(function(){return p},[p]);/*#__PURE__*/
63
- return je.createElement($y,{value:f},/*#__PURE__*/je.createElement(Gy,{value:m},/*#__PURE__*/je.createElement(ug,{value:n},r(t,{isOpen:m.isOpen,onClose:m.onClose,forceUpdate:m.forceUpdate}))))};d&&(dg.displayName="Menu");var fg=/*#__PURE__*/ua(function(e,t){var n=cg();/*#__PURE__*/
64
- return je.createElement(va.button,Dy({ref:t},e,{__css:Dy({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),pg=/*#__PURE__*/ua(function(e,t){var n=e.as,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Xy(),r=n.onToggle,o=n.popper,i=n.openAndFocusFirstItem,s=n.openAndFocusLastItem,l=je.useCallback(function(e){var t=D(e),n={Enter:i,ArrowDown:i,ArrowUp:s}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[i,s]);return Dy({},e,{ref:Kn(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":O(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:a(e.onClick,r),onKeyDown:a(e.onKeyDown,l)})}(Vy(e,eg),t);/*#__PURE__*/
65
- return je.createElement(n||fg,Dy({},r,{className:S("chakra-menu__menu-button",e.className)}),/*#__PURE__*/je.createElement(va.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});d&&(pg.displayName="MenuButton");var mg={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},vg=function(e){var t=zf;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(va.div),hg=/*#__PURE__*/ua(function(e,t){var n,r,o=e.rootProps,i=Vy(e,tg),s=Xy(),l=s.isOpen,u=s.onTransitionEnd,c=s.unstable__animationState,d=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Xy();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var r=n.focusedIndex,o=n.setFocusedIndex,i=n.menuRef,s=n.isOpen,l=n.onClose,u=n.menuId,c=n.isLazy,d=n.lazyBehavior,f=n.unstable__animationState,p=Hy(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,o=void 0===r?function(){return!0}:r,a=je.useState([]),i=a[0],s=a[1],l=je.useRef(),u=function(){l.current&&(clearTimeout(l.current),l.current=null)};return je.useEffect(function(){return u},[]),function(e){return function(t){if("Backspace"===t.key){var r=[].concat(i);return r.pop(),void s(r)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var a=i.concat(t.key);o(t)&&(t.preventDefault(),t.stopPropagation()),s(a),e(a.join("")),u(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&Ky(e.target)}}),v=je.useCallback(function(e){var t=D(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(r);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(r);e&&o(e.index)}},a=n[t];if(a)return e.preventDefault(),void a(e);var i=m(function(e){var t=W(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(r));if(t){var n=p.indexOf(t.node);o(n)}});Ky(e.target)&&i(e)},[p,r,m,l,o]),h=je.useRef(!1);s&&(h.current=!0);var y=V({hasBeenSelected:h.current,isLazy:c,lazyBehavior:d,isSelected:f.present});return Dy({},e,{ref:Kn(i,t),children:y?e.children:null,tabIndex:-1,role:"menu",id:u,style:Dy({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:a(e.onKeyDown,v)})}(i,t),f=function(e){void 0===e&&(e={});var t=Xy();return t.popper.getPopperProps(Dy({},e,{style:Dy({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=cg();/*#__PURE__*/
66
- return je.createElement(va.div,Dy({},f,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=p.list)?void 0:r.zIndex}}),/*#__PURE__*/je.createElement(vg,Dy({},d,{onUpdate:u,onAnimationComplete:N(c.onComplete,d.onAnimationComplete),className:S("chakra-menu__menu-list",d.className),variants:mg,initial:!1,animate:l?"enter":"exit",__css:Dy({outline:0},p.list)})))});d&&(hg.displayName="MenuList");var yg=/*#__PURE__*/ua(function(e,t){var n=e.type,r=Vy(e,ng),o=cg(),a=r.as||n?null!=n?n:void 0:"button",i=je.useMemo(function(){return Dy({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item)},[o.item]);/*#__PURE__*/
67
- return je.createElement(va.button,Dy({ref:t,type:a},r,{__css:i}))});d&&(/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,a=e.command,i=e.commandSpacing,s=void 0===i?"0.75rem":i,l=e.children,u=Jy(Vy(e,rg),t),c=n||a?/*#__PURE__*/je.createElement("span",{style:{pointerEvents:"none",flex:1}},l):l;/*#__PURE__*/
68
- return je.createElement(yg,Dy({},u,{className:S("chakra-menu__menuitem",u.className)}),n&&/*#__PURE__*/je.createElement(kg,{fontSize:"0.8em",marginEnd:o},n),c,a&&/*#__PURE__*/je.createElement(wg,{marginStart:s},a))}).displayName="MenuItem");var gg=function(e){/*#__PURE__*/
69
- return je.createElement("svg",Dy({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/je.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},bg=/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,a=Vy(e,og),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,o=e.isChecked;return Dy({},Jy(Vy(e,zy),t),{role:"menuitem"+r,"aria-checked":o})}(a,t);/*#__PURE__*/
70
- return je.createElement(yg,Dy({},i,{className:S("chakra-menu__menuitem-option",a.className)}),null!==n&&/*#__PURE__*/je.createElement(kg,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||/*#__PURE__*/je.createElement(gg,null)),/*#__PURE__*/je.createElement("span",{style:{flex:1}},i.children))});bg.id="MenuItemOption",d&&(bg.displayName="MenuItemOption");var xg=function(e){var t=e.className,n=e.title,r=function(e){void 0===e&&(e={});var t=e.children,n=e.type,r=void 0===n?"radio":n,o=e.value,a=e.defaultValue,i=e.onChange,s=Vy(e,Wy),l=ar({defaultValue:null!=a?a:"radio"===r?"":[],value:o,onChange:i}),u=l[0],c=l[1],d=je.useCallback(function(e){if("radio"===r&&v(u)&&c(e),"checkbox"===r&&b(u)){var t=u.includes(e)?B(u,e):F(u,e);c(t)}},[u,c,r]);return Dy({},s,{children:Qn(t).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===r?e.props.value===u:u.includes(e.props.value);/*#__PURE__*/
71
- return je.cloneElement(e,{type:r,onClick:function(t){d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Vy(e,ag));/*#__PURE__*/
72
- return je.createElement(Eg,Dy({title:n,className:S("chakra-menu__option-group",t)},r))};d&&(xg.displayName="MenuOptionGroup");var Eg=/*#__PURE__*/ua(function(e,t){var n=e.title,r=e.children,o=e.className,a=Vy(e,ig),i=S("chakra-menu__group__title",o),s=cg();/*#__PURE__*/
73
- return je.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/*#__PURE__*/je.createElement(va.p,Dy({className:i},a,{__css:s.groupTitle}),n),r)});d&&(Eg.displayName="MenuGroup");var wg=/*#__PURE__*/ua(function(e,t){var n=cg();/*#__PURE__*/
74
- return je.createElement(va.span,Dy({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});d&&(wg.displayName="MenuCommand");var kg=function(e){var t=e.className,n=e.children,r=Vy(e,sg),o=je.Children.only(n),a=/*#__PURE__*/je.isValidElement(o)?/*#__PURE__*/je.cloneElement(o,{focusable:"false","aria-hidden":!0,className:S("chakra-menu__icon",o.props.className)}):null,i=S("chakra-menu__icon-wrapper",t);/*#__PURE__*/
75
- return je.createElement(va.span,Dy({className:i},r,{__css:{flexShrink:0}}),a)};function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}function Cg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(kg.displayName="MenuIcon");var Og=function(e){/*#__PURE__*/
76
- return je.createElement(Oa,Sg({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"}))},_g=function(e){/*#__PURE__*/
77
- return je.createElement(Oa,Sg({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rg(e,t,n,r){je.useEffect(function(){if(e.current&&r){var a=o(e.current),i=Array.isArray(t)?t:[t],s=new a.MutationObserver(function(e){for(var t,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ng(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var o=t.value;"attributes"===o.type&&o.attributeName&&i.includes(o.attributeName)&&n(o)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ag=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],Ig=/^[Ee0-9+\-.]$/;function Pg(e){return Ig.test(e)}var Tg=["htmlProps"],Lg=ea("NumberInput"),Mg=Lg[0],jg=Lg[1],Dg=Jn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Vg=Dg[0],Bg=Dg[1],Fg=/*#__PURE__*/ua(function(e,t){var n=pa("NumberInput",e),r=function(e){void 0===e&&(e={});var t=e.focusInputOnChange,n=void 0===t||t,r=e.clampValueOnBlur,o=void 0===r||r,l=e.keepWithinRange,u=void 0===l||l,c=e.min,d=void 0===c?P:c,f=e.max,p=void 0===f?T:f,m=e.step,v=void 0===m?1:m,h=e.isReadOnly,y=e.isDisabled,g=e.isRequired,b=e.isInvalid,x=e.pattern,E=void 0===x?"[0-9]*(.[0-9]+)?":x,w=e.inputMode,k=void 0===w?"decimal":w,S=e.allowMouseWheel,C=e.id,O=e.name,N=e["aria-describedby"],R=e["aria-label"],A=e["aria-labelledby"],I=e.onFocus,L=e.onBlur,j=e.onInvalid,V=e.getAriaValueText,B=e.isValidCharacter,F=e.format,z=e.parse,W=Cg(e,Ag),U=tr(I),$=tr(L),H=tr(j),q=tr(null!=B?B:Pg),Y=tr(V),Z=Ym(e),G=Z.update,X=Z.increment,K=Z.decrement,J=rr(),Q=J[0],ee=J[1],te=!(h||y),ne=je.useRef(null),re=je.useRef(null),oe=je.useRef(null),ae=je.useRef(null),ie=je.useCallback(function(e){return e.split("").filter(q).join("")},[q]),se=je.useCallback(function(e){var t;return null!=(t=null==z?void 0:z(e))?t:e},[z]),le=je.useCallback(function(e){var t;return(null!=(t=null==F?void 0:F(e))?t:e).toString()},[F]);lr(function(){(Z.valueAsNumber>p||Z.valueAsNumber<d)&&(null==H||H("rangeOverflow",le(Z.value),Z.valueAsNumber))},[Z.valueAsNumber,Z.value,le,H]),er(function(){if(ne.current&&ne.current.value!=Z.value){var e=se(ne.current.value);Z.setValue(ie(e))}},[se,ie]);var ue=je.useCallback(function(e){void 0===e&&(e=v),te&&X(e)},[X,te,v]),ce=je.useCallback(function(e){void 0===e&&(e=v),te&&K(e)},[K,te,v]),de=function(e,t){var n,r,o=je.useState(!1),a=o[0],i=o[1],s=je.useState(null),l=s[0],u=s[1],c=je.useState(!0),d=c[0],f=c[1],p=je.useRef(null),m=function(){return clearTimeout(p.current)};n=a?50:null,r=tr(function(){"increment"===l&&e(),"decrement"===l&&t()}),je.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=je.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),u("increment")},300)},[e,d]),h=je.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),u("decrement")},300)},[t,d]),y=je.useCallback(function(){f(!0),i(!1),m()},[]);return ur(m),{up:v,down:h,stop:y,isSpinning:a}}(ue,ce);Rg(oe,"disabled",de.stop,de.isSpinning),Rg(ae,"disabled",de.stop,de.isSpinning);var fe=je.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=se(e.currentTarget.value);G(ie(t)),re.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[G,ie,se]),pe=je.useCallback(function(e){var t,n,r;null==U||U(e),re.current&&(e.target.selectionStart=null!=(t=re.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=re.current.end)?r:e.currentTarget.selectionStart)},[U]),me=je.useCallback(function(e){if(!e.nativeEvent.isComposing){(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,q)||e.preventDefault();var t=ve(e)*v,n={ArrowUp:function(){return ue(t)},ArrowDown:function(){return ce(t)},Home:function(){return G(d)},End:function(){return G(p)}}[D(e)];n&&(e.preventDefault(),n(e))}},[q,v,ue,ce,G,d,p]),ve=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},he=je.useMemo(function(){var e=null==Y?void 0:Y(Z.value);return M(e)?Z.value.toString()||void 0:e},[Z.value,Y]),ye=je.useCallback(function(){var e=Z.value;""!==e&&(Z.valueAsNumber<d&&(e=d),Z.valueAsNumber>p&&(e=p),Z.cast(e))},[Z,p,d]),ge=je.useCallback(function(){ee.off(),o&&ye()},[o,ee,ye]),be=je.useCallback(function(){n&&i(ne.current,{nextTick:!0})},[n]),xe=je.useCallback(function(e){e.preventDefault(),de.up(),be()},[be,de]),Ee=je.useCallback(function(e){e.preventDefault(),de.down(),be()},[be,de]);nr("wheel",function(e){var t=s(ne.current);if(S&&t.activeElement===ne.current){e.preventDefault();var n=ve(e)*v,r=Math.sign(e.deltaY);-1===r?ue(n):1===r&&ce(n)}},ne.current,{passive:!1});var we=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=y||u&&Z.isAtMax;return Sg({},e,{ref:Kn(t,oe),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){n||xe(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:n,"aria-disabled":_(n)})},[Z.isAtMax,u,xe,de.stop,y]),ke=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=y||u&&Z.isAtMin;return Sg({},e,{ref:Kn(t,ae),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){n||Ee(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:n,"aria-disabled":_(n)})},[Z.isAtMin,u,Ee,de.stop,y]),Se=je.useCallback(function(e,t){var n,r,o,i;return void 0===e&&(e={}),void 0===t&&(t=null),Sg({name:O,inputMode:k,type:"text",pattern:E,"aria-labelledby":A,"aria-label":R,"aria-describedby":N,id:C,disabled:y},e,{readOnly:null!=(n=e.readOnly)?n:h,"aria-readonly":null!=(r=e.readOnly)?r:h,"aria-required":null!=(o=e.required)?o:g,required:null!=(i=e.required)?i:g,ref:Kn(ne,t),value:le(Z.value),role:"spinbutton","aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Number.isNaN(Z.valueAsNumber)?void 0:Z.valueAsNumber,"aria-invalid":_(null!=b?b:Z.isOutOfRange),"aria-valuetext":he,autoComplete:"off",autoCorrect:"off",onChange:a(e.onChange,fe),onKeyDown:a(e.onKeyDown,me),onFocus:a(e.onFocus,pe,ee.on),onBlur:a(e.onBlur,$,ge)})},[O,k,E,A,R,le,N,C,y,g,h,b,Z.value,Z.valueAsNumber,Z.isOutOfRange,d,p,he,fe,me,pe,ee.on,$,ge]);return{value:le(Z.value),valueAsNumber:Z.valueAsNumber,isFocused:Q,isDisabled:y,isReadOnly:h,getIncrementButtonProps:we,getDecrementButtonProps:ke,getInputProps:Se,htmlProps:W}}(dm(ta(e))),o=r.htmlProps,l=Cg(r,Tg),u=je.useMemo(function(){return l},[l]);/*#__PURE__*/
78
- return je.createElement(Vg,{value:u},/*#__PURE__*/je.createElement(Mg,{value:n},/*#__PURE__*/je.createElement(va.div,Sg({},o,{ref:t,className:S("chakra-numberinput",e.className),__css:Sg({position:"relative",zIndex:0},n.root)}))))});d&&(Fg.displayName="NumberInput");var zg=/*#__PURE__*/ua(function(e,t){var n=jg();/*#__PURE__*/
79
- return je.createElement(va.div,Sg({"aria-hidden":!0,ref:t},e,{__css:Sg({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});d&&(zg.displayName="NumberInputStepper");var Wg=/*#__PURE__*/ua(function(e,t){var n=(0,Bg().getInputProps)(e,t),r=jg();/*#__PURE__*/
80
- return je.createElement(va.input,Sg({},n,{className:S("chakra-numberinput__field",e.className),__css:Sg({width:"100%"},r.field)}))});d&&(Wg.displayName="NumberInputField");var Ug=va("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),$g=/*#__PURE__*/ua(function(e,t){var n,r=jg(),o=(0,Bg().getDecrementButtonProps)(e,t);/*#__PURE__*/
81
- return je.createElement(Ug,Sg({},o,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(Og,null))});d&&($g.displayName="NumberDecrementStepper");var Hg=/*#__PURE__*/ua(function(e,t){var n,r=(0,Bg().getIncrementButtonProps)(e,t),o=jg();/*#__PURE__*/
82
- return je.createElement(Ug,Sg({},r,{__css:o.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(_g,null))});function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qg.apply(this,arguments)}function Yg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Hg.displayName="NumberIncrementStepper");var Zg=["index"],Gg=Tp(),Xg=Gg[0],Kg=Gg[2],Jg=Gg[3],Qg=Jn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),eb=Qg[0],tb=Qg[1],nb=function(e){return null==e?void 0:e.split("")};function rb(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var ob=["children"],ab=["descendants"],ib=function(e){var t=fa("PinInput",e),n=ta(e),r=n.children,o=function(e){void 0===e&&(e={});var t=e.autoFocus,n=e.value,r=e.defaultValue,o=e.onChange,s=e.onComplete,l=e.placeholder,u=void 0===l?"○":l,c=e.manageFocus,d=void 0===c||c,f=e.otp,p=void 0!==f&&f,m=e.id,v=e.isDisabled,h=e.isInvalid,y=e.type,g=void 0===y?"number":y,b=e.mask,x=sr(),E=null!=m?m:"pin-input-"+x,w=Kg(),k=je.useState(!0),S=k[0],C=k[1],O=je.useState(-1),N=O[0],R=O[1],A=ar({defaultValue:nb(r)||[],value:nb(n),onChange:function(e){return null==o?void 0:o(e.join(""))}}),I=A[0],P=A[1];je.useEffect(function(){if(t){var e=w.first();e&&i(e.node,{nextTick:!0})}},[w]);var T=je.useCallback(function(e){if(S&&d){var t=w.next(e,!1);t&&i(t.node,{nextTick:!0})}},[w,S,d]),L=je.useCallback(function(e,t){var n=[].concat(I);n[t]=e,P(n),""!==e&&n.length===w.count()&&n.every(function(e){return null!=e&&""!==e})?null==s||s(n.join("")):T(t)},[I,P,T,s,w]),M=je.useCallback(function(){var e=Array(w.count()).fill("");P(e);var t=w.first();t&&i(t.node)},[w,P]),j=je.useCallback(function(e,t){var n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]),D=je.useCallback(function(e){var t=e.index,n=Yg(e,Zg),r=N===t;return qg({"aria-label":"Please enter your pin code",inputMode:"number"===g?"numeric":"text",type:b?"password":"number"===g?"tel":"text"},n,{id:E+"-"+t,disabled:v,"aria-invalid":_(h),onChange:a(n.onChange,function(e){var n=e.target.value,r=j(I[t],n);if(""!==r)if(n.length>2){if(rb(n,g)){var o=n.split("").filter(function(e,t){return t<w.count()});P(o),o.length===w.count()&&(null==s||s(o.join("")))}}else rb(r,g)&&L(r,t),C(!0);else L("",t)}),onKeyDown:a(n.onKeyDown,function(e){if("Backspace"===e.key&&d)if(""===e.target.value){var n=w.prev(t,!1);n&&(L("",t-1),i(n.node),C(!0))}else C(!1)}),onFocus:a(n.onFocus,function(){R(t)}),onBlur:a(n.onBlur,function(){R(-1)}),value:I[t]||"",autoComplete:p?"one-time-code":"off",placeholder:r?"":u})},[w,N,j,E,v,b,h,d,s,p,u,L,P,g,I]);return{getInputProps:D,id:E,descendants:w,values:I,setValue:L,setValues:P,clear:M}}(Yg(n,ob)),s=o.descendants,l=Yg(o,ab),u=Qn(r).map(function(e){/*#__PURE__*/
83
- return je.cloneElement(e,{__css:t})});/*#__PURE__*/
84
- return je.createElement(Xg,{value:s},/*#__PURE__*/je.createElement(eb,{value:l},u))};d&&(ib.displayName="PinInput");var sb=/*#__PURE__*/ua(function(e,t){var n=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=tb().getInputProps,r=Jg(),o=r.index;return n(qg({},e,{ref:Kn(r.register,t),index:o}))}(e,t);/*#__PURE__*/
85
- return je.createElement(va.input,qg({},n,{className:S("chakra-pin-input",e.className)}))});function lb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}d&&(sb.displayName="PinInputField");var cb=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],db=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],fb=Jn({name:"RadioGroupContext",strict:!1}),pb=fb[0],mb=fb[1],vb=/*#__PURE__*/ua(function(e,t){var n=e.colorScheme,r=e.size,o=e.variant,a=e.children,i=e.className,s=e.isDisabled,l=e.isFocusable,u=function(e){void 0===e&&(e={});var t=e.onChange,n=e.value,r=e.defaultValue,o=e.name,a=e.isDisabled,i=e.isFocusable,s=e.isNative,l=lb(e,cb),u=je.useState(r||""),c=u[1],d=or(n,u[0]),f=d[0],p=d[1],m=je.useRef(null),v=je.useCallback(function(){var e=m.current;if(e){var t="input:not(:disabled):checked",n=e.querySelector(t);if(n)n.focus();else{var r=e.querySelector(t="input:not(:disabled)");null==r||r.focus()}}},[]),h=sr(void 0,"radio"),y=o||h,g=je.useCallback(function(e){var n=H(e)?e.target.value:e;f||c(n),null==t||t(String(n))},[t,f]),b=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:Kn(t,m),role:"radiogroup"})},[]),x=je.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,((n={ref:t,name:y})[s?"checked":"isChecked"]=null!=p?e.value===p:void 0,n.onChange=g,n["data-radiogroup"]=!0,n))},[s,y,g,p]);return{getRootProps:b,getRadioProps:x,name:y,ref:m,focus:v,setValue:c,value:p,onChange:g,isDisabled:a,isFocusable:i,htmlProps:l}}(lb(e,db)),c=u.value,d=u.onChange,f=u.getRootProps,p=u.name,m=u.htmlProps,v=je.useMemo(function(){return{name:p,size:r,onChange:d,colorScheme:n,value:c,variant:o,isDisabled:s,isFocusable:l}},[p,r,d,n,c,o,s,l]),h=f(m,t),y=S("chakra-radio-group",i);/*#__PURE__*/
86
- return je.createElement(pb,{value:v},/*#__PURE__*/je.createElement(va.div,ub({},h,{className:y}),a))});d&&(vb.displayName="RadioGroup");var hb=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function yb(e){e.preventDefault(),e.stopPropagation()}var gb=["spacing","children","isDisabled","isFocusable","inputProps"],bb=/*#__PURE__*/ua(function(e,t){var n,r=mb(),o=e.onChange,i=e.value,s=pa("Radio",ub({},r,e)),l=ta(e),u=l.spacing,c=void 0===u?"0.5rem":u,d=l.children,f=l.isDisabled,p=void 0===f?null==r?void 0:r.isDisabled:f,m=l.isFocusable,v=void 0===m?null==r?void 0:r.isFocusable:m,h=l.inputProps,y=lb(l,gb),g=e.isChecked;null!=(null==r?void 0:r.value)&&null!=i&&(g=r.value===i);var b=o;null!=r&&r.onChange&&null!=i&&(b=N(r.onChange,o));var x=function(e){void 0===e&&(e={});var t=e.defaultChecked,n=e.isChecked,r=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,u=e.isInvalid,c=e.name,d=e.value,f=e.id,p=e["data-radiogroup"],m=e["aria-describedby"],v=lb(e,hb),h=sr(void 0,"radio"),y=am(),g=mb(),b=!y||g||p?h:y.id;b=null!=f?f:b;var x=null!=o?o:null==y?void 0:y.isDisabled,E=null!=i?i:null==y?void 0:y.isReadOnly,w=null!=s?s:null==y?void 0:y.isRequired,k=null!=u?u:null==y?void 0:y.isInvalid,S=je.useState(!1),C=S[0],N=S[1],R=rr(),A=R[0],I=R[1],P=rr(),T=P[0],L=P[1],M=rr(),j=M[0],D=M[1],V=je.useState(Boolean(t)),B=V[1],F=or(n,V[0]),z=F[0],W=F[1];je.useEffect(function(){return Am(N)},[]);var U=je.useCallback(function(e){E||x?e.preventDefault():(z||B(e.target.checked),null==l||l(e))},[z,x,E,l]),$=je.useCallback(function(e){" "===e.key&&D.on()},[D]),H=je.useCallback(function(e){" "===e.key&&D.off()},[D]),q=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:t,"data-active":O(j),"data-hover":O(T),"data-disabled":O(x),"data-invalid":O(k),"data-checked":O(W),"data-focus":O(A),"data-focus-visible":O(A&&C),"data-readonly":O(E),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,D.on),onMouseUp:a(e.onMouseUp,D.off),onMouseEnter:a(e.onMouseEnter,L.on),onMouseLeave:a(e.onMouseLeave,L.off)})},[j,T,x,k,W,A,E,D.on,D.off,L.on,L.off,C]),Y=null!=y?y:{},Z=Y.onFocus,G=Y.onBlur,X=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=x&&!r;return ub({},e,{id:b,ref:t,type:"radio",name:c,value:d,onChange:a(e.onChange,U),onBlur:a(G,e.onBlur,I.off),onFocus:a(Z,e.onFocus,I.on),onKeyDown:a(e.onKeyDown,$),onKeyUp:a(e.onKeyUp,H),checked:W,disabled:n,readOnly:E,required:w,"aria-invalid":_(k),"aria-disabled":_(n),"aria-required":_(w),"data-readonly":O(E),"aria-describedby":m,style:ha})},[x,r,b,c,d,U,G,I,Z,$,H,W,E,w,k,m]);return{state:{isInvalid:k,isFocused:A,isChecked:W,isActive:j,isHovered:T,isDisabled:x,isReadOnly:E,isRequired:w},getCheckboxProps:q,getInputProps:X,getLabelProps:function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:t,onMouseDown:a(e.onMouseDown,yb),onTouchStart:a(e.onTouchStart,yb),"data-disabled":O(x),"data-checked":O(W),"data-invalid":O(k)})},getRootProps:function(e,t){return void 0===t&&(t=null),ub({},e,{ref:t,"data-disabled":O(x),"data-checked":O(W),"data-invalid":O(k)})},htmlProps:v}}(ub({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(n=null==e?void 0:e.name)?n:null==r?void 0:r.name})),E=x.getInputProps,w=x.getCheckboxProps,k=x.getLabelProps,S=x.getRootProps,C=$(x.htmlProps,Io),R=C[0],A=w(C[1]),I=E(h,t),P=k(),T=Object.assign({},R,S()),L=ub({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),M=ub({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),j=ub({userSelect:"none",marginStart:c},s.label);/*#__PURE__*/
87
- return je.createElement(va.label,ub({className:"chakra-radio"},T,{__css:L}),/*#__PURE__*/je.createElement("input",ub({className:"chakra-radio__input"},I)),/*#__PURE__*/je.createElement(va.span,ub({className:"chakra-radio__control"},A,{__css:M})),d&&/*#__PURE__*/je.createElement(va.span,ub({className:"chakra-radio__label"},P,{__css:j}),d))});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.apply(this,arguments)}function Eb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(bb.displayName="Radio");var wb=["children","placeholder","className"],kb=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Sb=["children"],Cb=/*#__PURE__*/ua(function(e,t){var n=e.children,r=e.placeholder,o=e.className,a=Eb(e,wb);/*#__PURE__*/
88
- return je.createElement(va.select,xb({},a,{ref:t,className:S("chakra-select",o)}),r&&/*#__PURE__*/je.createElement("option",{value:""},r),n)});d&&(Cb.displayName="SelectField");var Ob=/*#__PURE__*/ua(function(e,t){var n=pa("Select",e),r=ta(e),o=r.rootProps,a=r.placeholder,i=r.icon,s=r.color,l=r.height,u=r.h,c=r.minH,d=r.minHeight,f=r.iconColor,p=r.iconSize,v=Eb(r,kb),h=$(v,Io),y=h[0],g=cm(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:s},x=m({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
89
- return je.createElement(va.div,xb({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/je.createElement(Cb,xb({ref:t,height:null!=u?u:l,minH:null!=c?c:d,placeholder:a},g,{__css:x}),e.children),/*#__PURE__*/je.createElement(Rb,xb({"data-disabled":O(g.disabled)},(f||s)&&{color:f||s},{__css:n.icon},p&&{fontSize:p}),i))});d&&(Ob.displayName="Select");var _b=function(e){/*#__PURE__*/
90
- return je.createElement("svg",xb({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Nb=va("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Rb=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/je.createElement(_b,null):t,r=Eb(e,Sb),o=/*#__PURE__*/je.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
91
- return je.createElement(Nb,xb({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/je.isValidElement(n)?o:null)};function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}d&&(Rb.displayName="SelectIcon");var Ib=["spacing","children"],Pb=/*#__PURE__*/ua(function(e,t){var n=pa("Switch",e),r=ta(e),o=r.spacing,a=void 0===o?"0.5rem":o,i=r.children,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,Ib),l=zm(s),u=l.state,c=l.getInputProps,d=l.getCheckboxProps,f=l.getRootProps,p=l.getLabelProps,m=je.useMemo(function(){return Ab({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},n.container)},[n.container]),v=je.useMemo(function(){return Ab({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)},[n.track]),h=je.useMemo(function(){return Ab({userSelect:"none",marginStart:a},n.label)},[a,n.label]);/*#__PURE__*/
92
- return je.createElement(va.label,Ab({},f(),{className:S("chakra-switch",e.className),__css:m}),/*#__PURE__*/je.createElement("input",Ab({className:"chakra-switch__input"},c({},t))),/*#__PURE__*/je.createElement(va.span,Ab({},d(),{className:"chakra-switch__track",__css:v}),/*#__PURE__*/je.createElement(va.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":O(u.isChecked),"data-hover":O(u.isHovered)})),i&&/*#__PURE__*/je.createElement(va.span,Ab({className:"chakra-switch__label"},p(),{__css:h}),i))});function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tb.apply(this,arguments)}d&&(Pb.displayName="Switch");var Lb=["className","rows"],Mb=["h","minH","height","minHeight"],jb=/*#__PURE__*/ua(function(e,t){var n=fa("Textarea",e),r=ta(e),o=r.className,a=r.rows,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,Lb),s=cm(i),l=a?E(n,Mb):n;/*#__PURE__*/
93
- return je.createElement(va.textarea,Tb({ref:t,rows:a},s,{className:S("chakra-textarea",o),__css:l}))});function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(this,arguments)}d&&(jb.displayName="Textarea");const Vb=["hideStepper","incrementIcon","decrementIcon"],Bb=ua((e,t)=>{const{hideStepper:n,incrementIcon:r,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Vb);return je.createElement(Fg,Db({},a,{ref:t}),/*#__PURE__*/je.createElement(Wg,null),!n&&/*#__PURE__*/je.createElement(zg,null,/*#__PURE__*/je.createElement(Hg,{children:r}),/*#__PURE__*/je.createElement($g,{children:o})))});function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}Bb.defaultProps={hideStepper:!1},d&&(Bb.displayName="NumberInput");var zb=["as","viewBox","color","focusable","children","className","__css"],Wb={path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ub=/*#__PURE__*/ua(function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,u=e.className,c=e.__css,d=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,zb),f={ref:t,focusable:s,className:S("chakra-icon",u),__css:Fb({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},c)},p=null!=r?r:Wb.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
94
- return je.createElement(va.svg,Fb({as:n},f,d));var m=null!=l?l:Wb.path;/*#__PURE__*/
95
- return je.createElement(va.svg,Fb({verticalAlign:"middle",viewBox:p},f,d),m)});function $b(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,r=e.d,o=e.displayName,a=e.defaultProps,i=void 0===a?{}:a,s=je.Children.toArray(e.path),l=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
96
- return je.createElement(Ub,Fb({ref:t,viewBox:n},i,e),s.length?s:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:r}))});return d&&(l.displayName=o),l}d&&(Ub.displayName="Icon"),$b({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),$b({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),$b({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),$b({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),$b({displayName:"SunIcon",path:/*#__PURE__*/je.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/je.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/je.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Hb=$b({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});$b({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),$b({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),$b({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),$b({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),$b({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var qb=$b({displayName:"ViewIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Yb=$b({displayName:"ViewOffIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/je.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});$b({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),$b({displayName:"DeleteIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),$b({displayName:"RepeatIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),$b({displayName:"RepeatClockIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/je.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),$b({displayName:"EditIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/je.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),$b({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),$b({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Zb=$b({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});$b({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),$b({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),$b({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),$b({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),$b({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),$b({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),$b({displayName:"ExternalLinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/je.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/je.createElement("path",{d:"M10 14L21 3"}))}),$b({displayName:"LinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/je.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),$b({displayName:"PlusSquareIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/je.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/je.createElement("path",{d:"M8 12h8"}))}),$b({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),$b({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),$b({displayName:"TimeIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/je.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),$b({displayName:"ArrowRightIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),$b({displayName:"ArrowLeftIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),$b({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),$b({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),$b({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),$b({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),$b({displayName:"EmailIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),$b({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),$b({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),$b({displayName:"SpinnerIcon",path:/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement("defs",null,/*#__PURE__*/je.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/je.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/je.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/je.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/je.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/je.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/je.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),$b({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),$b({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/je.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),$b({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),$b({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),$b({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),$b({displayName:"InfoOutlineIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/je.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/je.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),$b({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),$b({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),$b({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),$b({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Gb=$b({viewBox:"0 0 14 14",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Xb=$b({displayName:"MinusIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}$b({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});const Jb=["label","children"],Qb=ua((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Jb);return je.createElement(Hp,Kb({ref:t},o),r||n)});function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(this,arguments)}d&&(Qb.displayName="Button");const tx=ua((e,t)=>/*#__PURE__*/je.createElement(gv,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/je.createElement(Qb,ex({ref:t,height:"auto"},e))));function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}tx.id="InputRightElement",d&&(tx.displayName="InputRightButton");const rx=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],ox=ua((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,rx),[c,d]=je.useState(!1),f=c?"Hide password":"Show password";let p;return p=c?n||/*#__PURE__*/je.createElement(qb,null):r||/*#__PURE__*/je.createElement(Yb,null),/*#__PURE__*/je.createElement(av,{width:a||i,size:s,variant:l},/*#__PURE__*/je.createElement(ev,nx({},u,{ref:t,type:c?"text":"password",autoComplete:c?"off":o})),/*#__PURE__*/je.createElement(tx,{onClick:()=>d(!c),"aria-label":f,variant:"ghost"},p))});function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function ix(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(ox.displayName="PasswordInput");const sx=["options","spacing","direction"],lx=["onBlur","onChange"],ux=["value","label"],cx=ua((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=ix(e,sx);const{onBlur:i,onChange:s}=a,l=ix(a,lx);return je.createElement(vb,ax({onChange:s},l),/*#__PURE__*/je.createElement(Qv,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=ix(e,ux);return je.createElement(bb,ax({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}function fx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(cx.displayName="RadioInput");const px=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],mx=["value","label"],vx=ua((e,t)=>{const n=pa("Input",e),r=n.field._focusVisible,o=dx({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return je.createElement(pg,dx({as:Hp},e,{ref:t,sx:o}))});d&&(vx.displayName="SelectButton");const hx=ua((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:l,isDisabled:u,leftIcon:c,rightIcon:d=/*#__PURE__*/je.createElement(Zb,null),multiple:f,size:p,variant:m,menuListProps:v,renderValue:h=(e=>null==e?void 0:e.join(", "))}=e,y=ta(fx(e,px)),[g,b]=je.useState(s||i),x=cm({name:n}),E={isDisabled:u,leftIcon:c,rightIcon:d,size:p,variant:m},w=je.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),k=g?(Array.isArray(g)?g:[g]).map(w):[];return je.createElement(dg,dx({},y,{closeOnSelect:!f}),/*#__PURE__*/je.createElement(va.div,{className:S("saas-select")},/*#__PURE__*/je.createElement(vx,dx({ref:t},E),h(k)||l),/*#__PURE__*/je.createElement(hg,dx({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/je.createElement(xg,{defaultValue:i||s,onChange:e=>{b(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=fx(e,mx);return je.createElement(bg,dx({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/je.createElement(va.input,dx({},x,{name:n,type:"hidden",value:g,className:"saas-select__input"}))))});d&&(hx.displayName="Select");const yx=["options","children"],gx=ua((e,t)=>{let{options:n,children:r}=e,o=fx(e,yx);return je.createElement(Ob,dx({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/je.createElement("option",{key:e,value:e},t||e))))});function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}function xx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(gx.displayName="NativeSelect");const[Ex,wx]=Jn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function kx(e){const{step:t,onChange:n}=e,[r,o]=je.useState(-1),a=je.useRef([]),[,i]=je.useState(Date.now()),s=je.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return je.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),je.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const Sx=["orientation","children"],Cx=["children","orientation","step","onChange"],Ox=["children","orientation","stepComponent"],_x=["children","isOpen"],Nx=["icon","isActive","isCompleted","className"],Rx=["name","title","icon","isActive","isCompleted"],Ax=["isActive"],[Ix,Px]=ea("Stepper"),Tx=ua((e,t)=>{const{orientation:n,children:r}=e,o=xx(e,Sx);return je.createElement(Lx,bx({ref:t,orientation:n},o),/*#__PURE__*/je.createElement(Mx,{orientation:n},r))});d&&(Tx.displayName="Stepper");const Lx=ua((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=xx(e,Cx),a=pa("Stepper",bx({},o,{orientation:r})),i=ta(o),s=kx(e),l=bx({display:"flex",flexDirection:"column"},a.container);return je.createElement(Ix,{value:a},/*#__PURE__*/je.createElement(Ex,{value:s},/*#__PURE__*/je.createElement(va.div,bx({ref:t,__css:l},i,{className:S("saas-stepper",e.className)}),n)))});d&&(Lx.displayName="StepperContainer");const Mx=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=xx(e,Ox),s=Px(),{activeIndex:l}=wx(),u=bx({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),c="vertical"===o,d=a||Vx,f=(h=d,je.Children.toArray(r).filter(e=>Array.isArray(h)?h.some(t=>t===e.type):e.type===h)),p=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/je.createElement(d,bx({key:n},t.props,{icon:t.props.icon||n+1,isActive:l===n,isCompleted:t.props.isCompleted||l>n}))),c&&e.push(/*#__PURE__*/je.createElement(jx,{key:`content-${n}`,isOpen:l===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/je.createElement(Bx,{key:`separator-${n}`,isActive:n<l})),e),[]),m=function(e,t){return je.Children.toArray(e).find(e=>e.type===t)}(r,zx),v=l>=f.length?m:c?null:/*#__PURE__*/je.createElement(jx,null,null==(t=f[l])||null==(n=t.props)?void 0:n.children);var h;return je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(va.div,bx({__css:u},i,{className:S("saas-stepper__steps",e.className)}),p),v)};d&&(Mx.displayName="StepperSteps");const jx=e=>{const{children:t,isOpen:n=!0}=e,r=xx(e,_x),o=Px();return je.createElement(va.div,bx({__css:o.content},r,{className:S("saas-stepper__content",e.className)}),/*#__PURE__*/je.createElement(sp,{in:n},t))};d&&(jx.displayName="StepperContent");const Dx=e=>{const{icon:t,isCompleted:n,className:r}=e,o=xx(e,Nx),a=bx({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Px().icon);let i;return i=n?/*#__PURE__*/je.createElement(Ub,{as:Gb}):t,/*#__PURE__*/je.createElement(va.div,bx({__css:a},o,{className:S("saas-stepper__icon",r)}),i)};d&&(Dx.displayName="StepperIcon");const Vx=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=xx(e,Rx),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=wx();return je.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=bx({display:"flex",alignItems:"center",flexDirection:"row"},Px().step);return je.createElement(va.div,bx({},a,{__css:s,"data-active":O(i.isActive),"data-completed":O(i.isCompleted),className:S("saas-stepper__step",e.className)}),/*#__PURE__*/je.createElement(Dx,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/je.createElement(Fx,null,t))};d&&(Vx.displayName="StepperStep");const Bx=e=>{const{isActive:t}=e,n=xx(e,Ax),r=bx({flex:1,mx:2},Px().separator);return je.createElement(va.div,bx({},n,{"data-active":O(t),className:S("saas-stepper__separator",e.className),__css:r}))};d&&(Bx.displayName="StepperSeparator");const Fx=e=>{const t=Px();return je.createElement(va.p,bx({},e,{__css:t.title,className:S("saas-stepper__title",e.className)}))};d&&(Fx.displayName="StepperStepTitle");const zx=e=>{const t=Px();return je.createElement(va.div,bx({__css:t.completed},e,{className:S("saas-stepper__completed",e.className)}))};function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}function Ux(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(zx.displayName="StepperCompleted");const $x=["name","label","help","hideLabel","children"],Hx=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],qx=["name","rules"],Yx=["ref"],Zx=["name","rules"],Gx=["ref"],Xx=["type","leftAddon","rightAddon","size"],Kx=["type"],Jx=["label","type"],Qx=["pinLength","pinType","spacing"],eE={},tE="text",nE=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=Ux(e,$x),{formState:s}=Y(),l=((e,t)=>Z(t.errors,e))(t,s);return je.createElement(im,Wx({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/je.createElement(ym,null,n):null,/*#__PURE__*/je.createElement(Ov,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/je.createElement(sm,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/je.createElement(vm,null,null==l?void 0:l.message)))};d&&(nE.displayName="BaseField");const rE=je.forwardRef((e,t)=>{const{type:n=tE}=e;return je.createElement(eE[n]||eE[tE],Wx({ref:t},e))}),oE=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>ua((t,n)=>{let{name:r,rules:o}=t,i=Ux(t,qx);const{control:s}=Y();return je.createElement(J,{name:r,control:s,rules:o,render:t=>{let{field:{ref:r}}=t,o=Ux(t.field,Yx);return je.createElement(e,Wx({},o,i,{onChange:a(i.onChange,o.onChange),onBlur:a(i.onBlur,o.onBlur),ref:dr(n,r)}))}})}))(t):(e=>ua((t,n)=>{let{name:r,rules:o}=t,i=Ux(t,Zx);const{register:s}=Y(),l=s(r,o),{ref:u}=l,c=Ux(l,Gx);return je.createElement(e,Wx({},c,i,{onChange:a(i.onChange,c.onChange),onBlur:a(i.onBlur,c.onBlur),ref:dr(n,u)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=ua((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f,rules:p}=t,m=Ux(t,Hx),v=Wx({required:f},p);return je.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f},/*#__PURE__*/je.createElement(e,Wx({ref:o,id:a,name:i,label:n?s:void 0,rules:v},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||nE});return eE[e]=o,o};oE("text",ua((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=Ux(e,Xx);const s=/*#__PURE__*/je.createElement(ev,Wx({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/je.createElement(av,{size:a},r,s,o):s})),oE("number",Bb,{isControlled:!0}),oE("password",ua((e,t)=>/*#__PURE__*/je.createElement(ox,Wx({ref:t},e)))),oE("textarea",jb),oE("switch",ua((e,t)=>{let n=Ux(e,Kx);return je.createElement(Pb,Wx({},n,{ref:t}))}),{isControlled:!0}),oE("select",hx,{isControlled:!0}),oE("checkbox",ua((e,t)=>{let{label:n}=e,r=Ux(e,Jx);return je.createElement(qm,Wx({ref:t},r),n)}),{hideLabel:!0}),oE("radio",cx,{isControlled:!0}),oE("native-select",gx,{isControlled:!0}),oE("pin",ua((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=Ux(e,Qx),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/je.createElement(sb,{key:e,ref:t}));return je.createElement(eh,{spacing:o},/*#__PURE__*/je.createElement(ib,Wx({},a,{type:r}),i))}),{isControlled:!0});const aE=["items","label","title"],iE=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return Wx({},Ux(t,aE),{name:e,label:n||r})}),sE=e=>({getFields:()=>iE(e),getNestedFields:t=>{var n;const r=q(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?iE(r.items.properties):"object"===r.type?iE(r.properties):[r.items]:[]}}),lE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],uE=ua((e,t)=>{const{mode:n="all",resolver:o,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:u,delayError:c,schema:d,defaultValues:f,onChange:p,onSubmit:m,onError:v,formRef:h,children:y}=e,g=Ux(e,lE),b={mode:n,resolver:o,defaultValues:f,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:u,delayError:c};d&&!o&&(b.resolver=null==uE.getResolver?void 0:uE.getResolver(d));const x=X(b),{handleSubmit:E}=x;return je.useImperativeHandle(t,()=>x,[t,x]),je.useEffect(()=>{let e;return p&&(e=x.watch(p)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[x,p]),/*#__PURE__*/je.createElement(K,x,/*#__PURE__*/je.createElement(va.form,Wx({ref:h,onSubmit:E(m,v)},g,{className:S("saas-form",e.className)}),r(y,x)))});uE.getFieldResolver=sE,d&&(uE.displayName="Form");const cE=["children"],dE=({children:e})=>/*#__PURE__*/je.createElement(va.div,null,e);d&&(dE.displayName="FormLayoutItem");const fE=e=>{var t,n,r;let{children:o}=e,a=Ux(e,cE);const i=Wx({},null!=(t=null==(n=Qo().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return je.createElement(Zv,Wx({},i,{className:S("saas-form__layout",a.className)}),je.Children.map(o,e=>je.isValidElement(e)?/*#__PURE__*/je.createElement(dE,null,e):e))};d&&(fE.displayName="FormLayout");const pE=(e,t)=>je.Children.map(t,t=>je.isValidElement(t)&&t.props.name?je.cloneElement(t,Wx({},t.props,{name:`${e}.${t.props.name}`})):t),[mE,vE]=Jn({name:"ArrayFieldContext"}),[hE,yE]=Jn({name:"ArrayFieldRowContext"}),gE=["children","index"],bE=["children"],xE=["children"],EE=["name","defaultValue","keyName","min","max","children"],wE=e=>{let{children:t,index:n}=e,r=Ux(e,gE);return je.createElement(SE,{index:n},/*#__PURE__*/je.createElement(kE,r,t),/*#__PURE__*/je.createElement(CE,null))};d&&(wE.displayName="ArrayFieldRow");const kE=e=>{let{children:t}=e,n=Ux(e,bE);const{name:r}=yE();return je.createElement(fE,Wx({flex:"1",mr:"2"},n),pE(r,t))};d&&(kE.displayName="ArrayFieldRowFields");const SE=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=Y(),{name:n,remove:r,fields:o}=vE();return je.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:je.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return je.createElement(hE,{value:n},/*#__PURE__*/je.createElement(va.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};d&&(SE.displayName="ArrayFieldRowContainer");const CE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Xb,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=yE(),{min:n,fields:r}=vE();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));d&&(CE.displayName="ArrayFieldRemoveButton");const OE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Hb,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=vE();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));d&&(OE.displayName="ArrayFieldAddButton");const _E=ua((e,t)=>{const{children:n}=e,r=Ux(e,xE);return je.createElement(RE,Wx({ref:t},r),/*#__PURE__*/je.createElement(NE,null,e=>/*#__PURE__*/je.createElement(je.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/je.createElement(wE,{key:e,index:t},n)))),/*#__PURE__*/je.createElement(OE,null))});d&&(_E.displayName="ArrayField");const NE=({children:e})=>{const{fields:t}=vE();return e(t)};d&&(NE.displayName="ArrayFieldRows");const RE=je.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=Ux(e,EE);const u=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=Y();return Wx({},G({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return je.useImperativeHandle(t,()=>u,[t,u]),/*#__PURE__*/je.createElement(mE,{value:u},/*#__PURE__*/je.createElement(nE,Wx({name:n},l),s))});d&&(RE.displayName="ArrayFieldContainer");const AE=["name","label","hideLabel","children","columns","spacing"],IE=e=>{const t=fa("FormLegend");return je.createElement(ym,Wx({as:"legend",sx:t},e))},PE=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=Ux(e,AE);return je.createElement(im,Wx({name:t,as:"fieldset"},s),/*#__PURE__*/je.createElement(IE,{display:r?"none":"block"},n),/*#__PURE__*/je.createElement(fE,{columns:a,gridGap:i},pE(t,o)))};d&&(PE.displayName="ObjectField");const TE=["name","type"],LE=["schema","fieldResolver","focusFirstField"],ME=["name","type","defaultValue"],jE=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=Ux(e,TE);return je.createElement(rE,Wx({key:n||t,name:n,type:r},o))})},DE=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=Ux(e,LE);const a=je.useMemo(()=>n||uE.getFieldResolver(t),[t,n]),i=je.useMemo(()=>a.getFields(),[a]),s=Y();return je.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/je.createElement(fE,o,i.map(e=>{let{name:t,type:n}=e,r=Ux(e,ME);return"array"===n?/*#__PURE__*/je.createElement(_E,Wx({key:t,name:t},r),jE(a,t)):"object"===n?/*#__PURE__*/je.createElement(PE,Wx({key:t,name:t},r),jE(a,t)):/*#__PURE__*/je.createElement(rE,Wx({key:t,name:t,type:n},r))}))};d&&(DE.displayName="Fields");const VE=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],BE=je.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=Ux(e,VE),{formState:l}=Y();return je.createElement(Qb,Wx({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});BE.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},d&&(BE.displayName="SubmitButton");const FE=["schema","submitLabel","fieldResolver","children"],zE=ua((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=Ux(e,FE);return je.createElement(uE,Wx({},i,{schema:n,ref:t}),/*#__PURE__*/je.createElement(fE,null,/*#__PURE__*/je.createElement(DE,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/je.createElement(BE,null,r),a))});d&&(zE.displayName="AutoForm");const WE=["onChange"],[UE,$E]=Jn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),HE=["children"],qE=["getFormProps"];je.forwardRef((e,t)=>{const{children:n}=e,o=Ux(e,HE),a=function(e){const t=kx(Ux(e,WE)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=je.useState({}),s=je.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),u(Wx({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=je.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),u=je.useCallback(e=>{i(t=>Wx({},t,{[e.name]:e}))},[a]);return Wx({getFormProps:l,updateStep:u,steps:a},t)}(e),{getFormProps:i}=a,s=Ux(a,qE),l=je.useMemo(()=>s,[s]);return je.createElement(Ex,{value:l},/*#__PURE__*/je.createElement(UE,{value:l},/*#__PURE__*/je.createElement(uE,Wx({ref:t},o,i()),r(n,a))))});const YE=e=>sE(e.properties),ZE=t=>({schema:t,fieldResolver:YE(t),resolver:e(t)});export{ZE as jsonSchemaForm};
1
+ import{ajvResolver as e}from"@hookform/resolvers/ajv";import{memoizedGet as t,mergeWith as n,filterUndefined as r,omit as o,objectFilter as a,runIfFn as i,__DEV__ as s,cx as l,dataAttr as c,get as u,callAllHandlers as d}from"@chakra-ui/utils";import{useFormContext as p,get as f,useForm as m,FormProvider as h,useFieldArray as v,Controller as y}from"react-hook-form";function g(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){var t={exports:{}};return e(t,t.exports),t.exports}var x=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.iterator,L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,M={};function j(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||L}function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||L}j.prototype.isReactComponent={},j.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=j.prototype;var B=V.prototype=new D;B.constructor=V,P(B,j.prototype),B.isPureReactComponent=!0;var F=Array.isArray,z=Object.prototype.hasOwnProperty,$={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function W(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)z.call(t,r)&&!U.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:x,type:e,key:a,ref:i,props:o,_owner:$.current}}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===x}var q=/\/+/g;function Y(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function Z(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case x:case w:i=!0}}if(i)return o=o(i=e),e=""===r?"."+Y(i,0):r,F(o)?(n="",null!=e&&(n=e.replace(q,"$&/")+"/"),Z(o,t,n,"",function(e){return e})):null!=o&&(H(o)&&(o=function(e,t){return{$$typeof:x,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",F(e))for(var s=0;s<e.length;s++){var l=r+Y(a=e[s],s);i+=Z(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Z(a=a.value,t,n,l=r+Y(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function G(e,t,n){if(null==e)return e;var r=[],o=0;return Z(e,r,"","",function(e){return t.call(n,e,o++)}),r}function X(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var K={current:null},J={transition:null},Q={map:G,forEach:function(e,t,n){G(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return G(e,function(){t++}),t},toArray:function(e){return G(e,function(e){return e})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ee={Children:Q,Component:j,Fragment:k,Profiler:C,PureComponent:V,StrictMode:S,Suspense:A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:K,ReactCurrentBatchConfig:J,ReactCurrentOwner:$},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=P({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=$.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)z.call(t,l)&&!U.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:x,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:_,_context:e},e.Consumer=e},createElement:W,createFactory:function(e){var t=W.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:N,render:e}},isValidElement:H,lazy:function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:X}},memo:function(e,t){return{$$typeof:R,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=J.transition;J.transition={};try{e()}finally{J.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return K.current.useCallback(e,t)},useContext:function(e){return K.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return K.current.useDeferredValue(e)},useEffect:function(e,t){return K.current.useEffect(e,t)},useId:function(){return K.current.useId()},useImperativeHandle:function(e,t,n){return K.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return K.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return K.current.useLayoutEffect(e,t)},useMemo:function(e,t){return K.current.useMemo(e,t)},useReducer:function(e,t,n){return K.current.useReducer(e,t,n)},useRef:function(e){return K.current.useRef(e)},useState:function(e){return K.current.useState(e)},useSyncExternalStore:function(e,t,n){return K.current.useSyncExternalStore(e,t,n)},useTransition:function(){return K.current.useTransition()},version:"18.2.0"},te=E(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},E={current:null},x={},w=null;function k(e){w=e}x.setExtraStackFrame=function(e){w=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";w&&(e+=w);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("warn",e,n)}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("error",e,n)}function O(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=x,S.ReactCurrentActQueue=b;var N={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(_("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),N[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},I=Object.assign,T={};function L(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}Object.freeze(T),L.prototype.isReactComponent={},L.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var P={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(L.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in P)P.hasOwnProperty(j)&&M(j,P[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}D.prototype=L.prototype;var B=V.prototype=new D;B.constructor=V,I(B,L.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function $(e){return""+e}function U(e){if(function(e){try{return $(e),!1}catch(e){return!0}}(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),$(e)}function W(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return W(e)+".Consumer";case s:return W(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case f:var n=e._payload,m=e._init;try{return H(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&E.current&&e.__self&&E.current.stateNode!==e.__self){var t=H(E.current.type);Z[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,o,a,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),o.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(a||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,f),i&&ee(o,f)}return ne(e,a,i,s,l,E.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=I({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,u=E.current),J(t)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];a.children=p}return ne(e.type,i,s,l,c,u,a)}function ae(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(U(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var p=e,f=i(p),m=""===a?"."+ue(p,0):a;if(z(f)){var h="";null!=m&&(h=ce(m)+"/"),de(f,t,h,"",function(e){return e})}else null!=f&&(ae(f)&&(!f.key||p&&p.key===f.key||U(f.key),l=f,c=o+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var y=0,g=""===a?".":a+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,o,g+ue(u,b),i);else{var E=v(e);if("function"==typeof E){var x=e;E===x.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=E.call(x),S=0;!(w=k.next()).done;)y+=de(u=w.value,t,o,g+ue(u,S++),i)}else if("object"===s){var _=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return y}function pe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function he(){var e=y.current;return null===e&&_("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var ve,ye,ge,be,Ee,xe,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,_e=S.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Ae=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ae)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Ae=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=_e.current,_e.current=null,function(){if(0===ke){ve=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,_e.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:we})})}ke<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Ne.set(e,f),f}function Te(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ie(e.render,!1);case p:return Te(e.type,t,n);case f:var r=e._payload,o=e._init;try{return Te(o(r),t,n)}catch(e){}}return""}Ne=new Re;var Le,Pe={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Te(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Te(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(E.current){var e=H(E.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Le=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==E.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),De(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function $e(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&ze(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function Ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(je(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),je(null)),s instanceof Error&&!(s.message in Pe)&&(Pe[s.message]=!0,je(o),_("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Le||(Le=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function We(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=re.apply(this,arguments);if(null==c)return c;if(a)for(var u=2;u<arguments.length;u++)$e(arguments[u],e);return e===o?We(c):Ue(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var o=b.current;if(null!==o)try{et(o),function(a){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===o.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=He,nt={map:pe,forEach:function(e,t,n){pe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pe(e,function(){t++}),t},toArray:function(e){return pe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=L,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return Ue(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,_("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===p?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ae,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return he().useCallback(e,t)},t.useContext=function(e){var t=he();if(void 0!==e._context){var n=e._context;n.Consumer===e?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,n){return he().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,n){return he().useReducer(e,t,n)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,n){return he().useSyncExternalStore(e,t,n)},t.useTransition=function(){return he().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),ne=E(function(e){e.exports="production"===process.env.NODE_ENV?ee:te}),re=/*#__PURE__*/g({__proto__:null,default:ne},[ne]),oe=Boolean(null==globalThis?void 0:globalThis.document)?ne.useLayoutEffect:ne.useEffect,ae=ne.createContext({});function ie(){const e=ne.useContext(ae);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}ae.displayName="ColorModeContext";var se=E(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",i="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof b&&b&&b.Object===Object&&b,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),f=t&&!t.nodeType&&t,m=f&&e&&!e.nodeType&&e,h=m&&m.exports===f,v=h&&u.process,y=function(){try{return m&&m.require&&m.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),g=y&&y.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var x,w=Array.prototype,k=Object.prototype,S=p["__core-js_shared__"],C=Function.prototype.toString,_=k.hasOwnProperty,O=(x=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",N=k.toString,A=C.call(Object),R=RegExp("^"+C.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=h?p.Buffer:void 0,T=p.Symbol,L=p.Uint8Array,P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),M=Object.create,j=k.propertyIsEnumerable,D=w.splice,V=T?T.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=I?I.isBuffer:void 0,z=Math.max,$=Date.now,U=ae(p,"Map"),W=ae(Object,"create"),H=function(){function e(){}return function(t){if(!Ee(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=this.__data__=new Y(e);this.size=t.size}function X(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&Q(e,t,n)}function K(e,t,n){var r=e[t];_.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||Q(e,t,n)}function J(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function Q(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=_.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch(e){}var o=N.call(e);return r&&(t?e[V]=n:delete e[V]),o}(e):function(e){return N.call(e)}(e)}function te(e){return xe(e)&&ee(e)==o}function ne(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s))break}}(t,function(a,s){if(o||(o=new G),Ee(a))!function(e,t,n,r,o,a,s){var l=le(e,n),c=le(t,n),u=s.get(c);if(u)X(e,n,u);else{var d,p,f,m,h=a?a(l,c,n+"",e,t,s):void 0,v=void 0===h;if(v){var y=he(c),g=!y&&ye(c),b=!y&&!g&&we(c);h=c,y||g||b?he(l)?h=l:xe(m=l)&&ve(m)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):g?(v=!1,h=c.slice()):b?(v=!1,f=new(p=(d=c).buffer).constructor(p.byteLength),new L(f).set(new L(p)),h=new d.constructor(f,d.byteOffset,d.length)):h=[]:function(e){if(!xe(e)||ee(e)!=i)return!1;var t=P(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==A}(c)||me(c)?(h=l,me(l)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=void 0;void 0===l&&(l=e[s]),o?Q(n,s,l):K(n,s,l)}return n}(e,ke(e))}(l):Ee(l)&&!ge(l)||(h=function(e){return"function"!=typeof e.constructor||se(e)?{}:H(P(e))}(c))):v=!1}v&&(s.set(c,h),o(h,c,r,a,s),s.delete(c)),X(e,n,h)}}(e,t,s,n,ne,r,o);else{var l=r?r(le(e,s),a,s+"",e,t,o):void 0;void 0===l&&(l=a),X(e,s,l)}},ke)}q.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(W){var r=t[e];return r===n?void 0:r}return _.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return W?void 0!==t[e]:_.call(t,e)},q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=J(t,e);return!(n<0||(n==t.length-1?t.pop():D.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=J(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return J(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=J(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(U||Y),string:new q}},Z.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return oe(this,e).get(e)},Z.prototype.has=function(e){return oe(this,e).has(e)},Z.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},G.prototype.clear=function(){this.__data__=new Y,this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!U||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z(r)}return n.set(e,t),this.size=n.size,this};var re=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:_e;function oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||(t=e,O&&O in t))&&(ge(e)?R:s).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function ie(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function se(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ce,ue,de,pe=(ce=re,ue=0,de=0,function(){var e=$(),t=16-(e-de);if(de=e,t>0){if(++ue>=800)return arguments[0]}else ue=0;return ce.apply(void 0,arguments)});function fe(e,t){return e===t||e!=e&&t!=t}var me=te(function(){return arguments}())?te:function(e){return xe(e)&&_.call(e,"callee")&&!j.call(e,"callee")},he=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!ge(e)}var ye=F||function(){return!1};function ge(e){if(!Ee(e))return!1;var t=ee(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=g?function(e){return function(t){return e(t)}}(g):function(e){return xe(e)&&be(e.length)&&!!c[ee(e)]};function ke(e){return ve(e)?function(e,t){var n=he(e),r=!n&&me(e),o=!n&&!r&&ye(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ie(c,l))||s.push(c);return s}(e):function(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=se(e),n=[];for(var r in e)("constructor"!=r||!t&&_.call(e,r))&&n.push(r);return n}(e)}var Se,Ce=(Se=function(e,t,n,r){ne(e,t,n,r)},function(e,t){return pe(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=z(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),E(e,this,s)}}(e,void 0,_e),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&ie(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Se(e,i,n,o)}return e}));function _e(e){return e}e.exports=Ce});function le(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function ce(e,...t){return ue(e)?e(...t):e}var ue=e=>"function"==typeof e,de=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,pe=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=de(r),i=e?`${e}.${a}`:a;let s=le(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=de(s),o?`${s} !important`:s};function fe(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{const a=pe(t,e)(o);let i=(null==n?void 0:n(a,o))??a;return r&&(i=r(i,o)),i}}var me=(...e)=>t=>e.reduce((e,t)=>t(e),t);function he(e,t){return n=>{const r={property:n,scale:e};return r.transform=fe({scale:e,transform:t}),r}}var ve=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,ye=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],ge={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},be={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Ee={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},xe={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},we=new Set(Object.values(xe)),ke=/* @__PURE__ */new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Se=e=>e.trim(),Ce=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),_e=e=>t=>`${e}(${t})`,Oe={filter:e=>"auto"!==e?e:ge,backdropFilter:e=>"auto"!==e?e:be,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(Oe.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ye].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ye].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){var n;if(null==e||ke.has(e))return e;const{type:r,values:o}=(null==(n=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g.exec(e))?void 0:n.groups)??{};if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(Se).filter(Boolean);if(0===(null==s?void 0:s.length))return e;s.unshift(i in xe?xe[i]:i);const l=s.map(e=>{if(we.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=Ce(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s});return`${a}(${l.join(", ")})`}(e,t??{}),blur:_e("blur"),opacity:_e("opacity"),brightness:_e("brightness"),contrast:_e("contrast"),dropShadow:_e("drop-shadow"),grayscale:_e("grayscale"),hueRotate:_e("hue-rotate"),invert:_e("invert"),saturate:_e("saturate"),sepia:_e("sepia"),bgImage:e=>null==e||Ce(e)||ke.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Ee[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Ne={borderWidths:he("borderWidths"),borderStyles:he("borderStyles"),colors:he("colors"),borders:he("borders"),radii:he("radii",Oe.px),space:he("space",me(Oe.vh,Oe.px)),spaceT:he("space",me(Oe.vh,Oe.px)),degreeT:e=>({property:e,transform:Oe.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:fe({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:he("sizes",me(Oe.vh,Oe.px)),sizesT:he("sizes",me(Oe.vh,Oe.fraction)),shadows:he("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:ve(t),transform:n?fe({scale:n,compose:r}):r}},blur:he("blur",Oe.blur)},Ae={background:Ne.colors("background"),backgroundColor:Ne.colors("backgroundColor"),backgroundImage:Ne.propT("backgroundImage",Oe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Oe.bgClip},bgSize:Ne.prop("backgroundSize"),bgPosition:Ne.prop("backgroundPosition"),bg:Ne.colors("background"),bgColor:Ne.colors("backgroundColor"),bgPos:Ne.prop("backgroundPosition"),bgRepeat:Ne.prop("backgroundRepeat"),bgAttachment:Ne.prop("backgroundAttachment"),bgGradient:Ne.propT("backgroundImage",Oe.gradient),bgClip:{transform:Oe.bgClip}};Object.assign(Ae,{bgImage:Ae.backgroundImage,bgImg:Ae.backgroundImage});var Re={border:Ne.borders("border"),borderWidth:Ne.borderWidths("borderWidth"),borderStyle:Ne.borderStyles("borderStyle"),borderColor:Ne.colors("borderColor"),borderRadius:Ne.radii("borderRadius"),borderTop:Ne.borders("borderTop"),borderBlockStart:Ne.borders("borderBlockStart"),borderTopLeftRadius:Ne.radii("borderTopLeftRadius"),borderStartStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Ne.radii("borderTopRightRadius"),borderStartEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Ne.borders("borderRight"),borderInlineEnd:Ne.borders("borderInlineEnd"),borderBottom:Ne.borders("borderBottom"),borderBlockEnd:Ne.borders("borderBlockEnd"),borderBottomLeftRadius:Ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:Ne.radii("borderBottomRightRadius"),borderLeft:Ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Ne.borders(["borderLeft","borderRight"]),borderInline:Ne.borders("borderInline"),borderY:Ne.borders(["borderTop","borderBottom"]),borderBlock:Ne.borders("borderBlock"),borderTopWidth:Ne.borderWidths("borderTopWidth"),borderBlockStartWidth:Ne.borderWidths("borderBlockStartWidth"),borderTopColor:Ne.colors("borderTopColor"),borderBlockStartColor:Ne.colors("borderBlockStartColor"),borderTopStyle:Ne.borderStyles("borderTopStyle"),borderBlockStartStyle:Ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:Ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:Ne.borderWidths("borderBlockEndWidth"),borderBottomColor:Ne.colors("borderBottomColor"),borderBlockEndColor:Ne.colors("borderBlockEndColor"),borderBottomStyle:Ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:Ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:Ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:Ne.borderWidths("borderInlineStartWidth"),borderLeftColor:Ne.colors("borderLeftColor"),borderInlineStartColor:Ne.colors("borderInlineStartColor"),borderLeftStyle:Ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:Ne.borderStyles("borderInlineStartStyle"),borderRightWidth:Ne.borderWidths("borderRightWidth"),borderInlineEndWidth:Ne.borderWidths("borderInlineEndWidth"),borderRightColor:Ne.colors("borderRightColor"),borderInlineEndColor:Ne.colors("borderInlineEndColor"),borderRightStyle:Ne.borderStyles("borderRightStyle"),borderInlineEndStyle:Ne.borderStyles("borderInlineEndStyle"),borderTopRadius:Ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Re,{rounded:Re.borderRadius,roundedTop:Re.borderTopRadius,roundedTopLeft:Re.borderTopLeftRadius,roundedTopRight:Re.borderTopRightRadius,roundedTopStart:Re.borderStartStartRadius,roundedTopEnd:Re.borderStartEndRadius,roundedBottom:Re.borderBottomRadius,roundedBottomLeft:Re.borderBottomLeftRadius,roundedBottomRight:Re.borderBottomRightRadius,roundedBottomStart:Re.borderEndStartRadius,roundedBottomEnd:Re.borderEndEndRadius,roundedLeft:Re.borderLeftRadius,roundedRight:Re.borderRightRadius,roundedStart:Re.borderInlineStartRadius,roundedEnd:Re.borderInlineEndRadius,borderStart:Re.borderInlineStart,borderEnd:Re.borderInlineEnd,borderTopStartRadius:Re.borderStartStartRadius,borderTopEndRadius:Re.borderStartEndRadius,borderBottomStartRadius:Re.borderEndStartRadius,borderBottomEndRadius:Re.borderEndEndRadius,borderStartRadius:Re.borderInlineStartRadius,borderEndRadius:Re.borderInlineEndRadius,borderStartWidth:Re.borderInlineStartWidth,borderEndWidth:Re.borderInlineEndWidth,borderStartColor:Re.borderInlineStartColor,borderEndColor:Re.borderInlineEndColor,borderStartStyle:Re.borderInlineStartStyle,borderEndStyle:Re.borderInlineEndStyle});var Ie={color:Ne.colors("color"),textColor:Ne.colors("color"),fill:Ne.colors("fill"),stroke:Ne.colors("stroke")},Te={boxShadow:Ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:Ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(Te,{shadow:Te.boxShadow});var Le={filter:{transform:Oe.filter},blur:Ne.blur("--chakra-blur"),brightness:Ne.propT("--chakra-brightness",Oe.brightness),contrast:Ne.propT("--chakra-contrast",Oe.contrast),hueRotate:Ne.degreeT("--chakra-hue-rotate"),invert:Ne.propT("--chakra-invert",Oe.invert),saturate:Ne.propT("--chakra-saturate",Oe.saturate),dropShadow:Ne.propT("--chakra-drop-shadow",Oe.dropShadow),backdropFilter:{transform:Oe.backdropFilter},backdropBlur:Ne.blur("--chakra-backdrop-blur"),backdropBrightness:Ne.propT("--chakra-backdrop-brightness",Oe.brightness),backdropContrast:Ne.propT("--chakra-backdrop-contrast",Oe.contrast),backdropHueRotate:Ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Ne.propT("--chakra-backdrop-invert",Oe.invert),backdropSaturate:Ne.propT("--chakra-backdrop-saturate",Oe.saturate)},Pe={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Oe.flexDirection},experimental_spaceX:{static:{"& > :not(style) ~ :not(style)":{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},transform:fe({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{"& > :not(style) ~ :not(style)":{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},transform:fe({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Ne.space("gap"),rowGap:Ne.space("rowGap"),columnGap:Ne.space("columnGap")};Object.assign(Pe,{flexDir:Pe.flexDirection});var Me={gridGap:Ne.space("gridGap"),gridColumnGap:Ne.space("gridColumnGap"),gridRowGap:Ne.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},je={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Oe.outline},outlineOffset:!0,outlineColor:Ne.colors("outlineColor")},De={width:Ne.sizesT("width"),inlineSize:Ne.sizesT("inlineSize"),height:Ne.sizes("height"),blockSize:Ne.sizes("blockSize"),boxSize:Ne.sizes(["width","height"]),minWidth:Ne.sizes("minWidth"),minInlineSize:Ne.sizes("minInlineSize"),minHeight:Ne.sizes("minHeight"),minBlockSize:Ne.sizes("minBlockSize"),maxWidth:Ne.sizes("maxWidth"),maxInlineSize:Ne.sizes("maxInlineSize"),maxHeight:Ne.sizes("maxHeight"),maxBlockSize:Ne.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Ne.propT("float",Oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});var Ve={listStyleType:!0,listStylePosition:!0,listStylePos:Ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Ne.prop("listStyleImage")},Be=(e=>{const t=/* @__PURE__ */new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,/* @__PURE__ */new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),Fe={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ze={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},$e=(e,t,n)=>{const r={},o=Be(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},Ue={srOnly:{transform:e=>!0===e?Fe:"focusable"===e?ze:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>$e(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>$e(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>$e(t,e,n)}},We={position:!0,pos:Ne.prop("position"),zIndex:Ne.prop("zIndex","zIndices"),inset:Ne.spaceT("inset"),insetX:Ne.spaceT(["left","right"]),insetInline:Ne.spaceT("insetInline"),insetY:Ne.spaceT(["top","bottom"]),insetBlock:Ne.spaceT("insetBlock"),top:Ne.spaceT("top"),insetBlockStart:Ne.spaceT("insetBlockStart"),bottom:Ne.spaceT("bottom"),insetBlockEnd:Ne.spaceT("insetBlockEnd"),left:Ne.spaceT("left"),insetInlineStart:Ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Ne.spaceT("right"),insetInlineEnd:Ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(We,{insetStart:We.insetInlineStart,insetEnd:We.insetInlineEnd});var He={ring:{transform:Oe.ring},ringColor:Ne.colors("--chakra-ring-color"),ringOffset:Ne.prop("--chakra-ring-offset-width"),ringOffsetColor:Ne.colors("--chakra-ring-offset-color"),ringInset:Ne.prop("--chakra-ring-inset")},qe={margin:Ne.spaceT("margin"),marginTop:Ne.spaceT("marginTop"),marginBlockStart:Ne.spaceT("marginBlockStart"),marginRight:Ne.spaceT("marginRight"),marginInlineEnd:Ne.spaceT("marginInlineEnd"),marginBottom:Ne.spaceT("marginBottom"),marginBlockEnd:Ne.spaceT("marginBlockEnd"),marginLeft:Ne.spaceT("marginLeft"),marginInlineStart:Ne.spaceT("marginInlineStart"),marginX:Ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Ne.spaceT("marginInline"),marginY:Ne.spaceT(["marginTop","marginBottom"]),marginBlock:Ne.spaceT("marginBlock"),padding:Ne.space("padding"),paddingTop:Ne.space("paddingTop"),paddingBlockStart:Ne.space("paddingBlockStart"),paddingRight:Ne.space("paddingRight"),paddingBottom:Ne.space("paddingBottom"),paddingBlockEnd:Ne.space("paddingBlockEnd"),paddingLeft:Ne.space("paddingLeft"),paddingInlineStart:Ne.space("paddingInlineStart"),paddingInlineEnd:Ne.space("paddingInlineEnd"),paddingX:Ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Ne.space("paddingInline"),paddingY:Ne.space(["paddingTop","paddingBottom"]),paddingBlock:Ne.space("paddingBlock")};Object.assign(qe,{m:qe.margin,mt:qe.marginTop,mr:qe.marginRight,me:qe.marginInlineEnd,marginEnd:qe.marginInlineEnd,mb:qe.marginBottom,ml:qe.marginLeft,ms:qe.marginInlineStart,marginStart:qe.marginInlineStart,mx:qe.marginX,my:qe.marginY,p:qe.padding,pt:qe.paddingTop,py:qe.paddingY,px:qe.paddingX,pb:qe.paddingBottom,pl:qe.paddingLeft,ps:qe.paddingInlineStart,paddingStart:qe.paddingInlineStart,pr:qe.paddingRight,pe:qe.paddingInlineEnd,paddingEnd:qe.paddingInlineEnd});var Ye={textDecorationColor:Ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Ne.shadows("textShadow")},Ze={clipPath:!0,transform:Ne.propT("transform",Oe.transform),transformOrigin:!0,translateX:Ne.spaceT("--chakra-translate-x"),translateY:Ne.spaceT("--chakra-translate-y"),skewX:Ne.degreeT("--chakra-skew-x"),skewY:Ne.degreeT("--chakra-skew-y"),scaleX:Ne.prop("--chakra-scale-x"),scaleY:Ne.prop("--chakra-scale-y"),scale:Ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Ne.degreeT("--chakra-rotate")},Ge={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Ne.prop("transitionDuration","transition.duration"),transitionProperty:Ne.prop("transitionProperty","transition.property"),transitionTimingFunction:Ne.prop("transitionTimingFunction","transition.easing")},Xe={fontFamily:Ne.prop("fontFamily","fonts"),fontSize:Ne.prop("fontSize","fontSizes",Oe.px),fontWeight:Ne.prop("fontWeight","fontWeights"),lineHeight:Ne.prop("lineHeight","lineHeights"),letterSpacing:Ne.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Ke={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Ne.spaceT("scrollMargin"),scrollMarginTop:Ne.spaceT("scrollMarginTop"),scrollMarginBottom:Ne.spaceT("scrollMarginBottom"),scrollMarginLeft:Ne.spaceT("scrollMarginLeft"),scrollMarginRight:Ne.spaceT("scrollMarginRight"),scrollMarginX:Ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Ne.spaceT("scrollPadding"),scrollPaddingTop:Ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:Ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:Ne.spaceT("scrollPaddingRight"),scrollPaddingX:Ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Je(e){return le(e)&&e.reference?e.reference:String(e)}var Qe=(e,...t)=>t.map(Je).join(` ${e} `).replace(/calc/g,""),et=(...e)=>`calc(${Qe("+",...e)})`,tt=(...e)=>`calc(${Qe("-",...e)})`,nt=(...e)=>`calc(${Qe("*",...e)})`,rt=(...e)=>`calc(${Qe("/",...e)})`,ot=e=>{const t=Je(e);return null==t||Number.isNaN(parseFloat(t))?nt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},at=Object.assign(e=>({add:(...t)=>at(et(e,...t)),subtract:(...t)=>at(tt(e,...t)),multiply:(...t)=>at(nt(e,...t)),divide:(...t)=>at(rt(e,...t)),negate:()=>at(ot(e)),toString:()=>e.toString()}),{add:et,subtract:tt,multiply:nt,divide:rt,negate:ot});function it(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}function st(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${it(e)})`),t&&n.push("and",`(max-width: ${it(t)})`),n.join(" ")}var lt=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,ct=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ut=(e,t)=>`${e}:focus-visible ${t}`,dt=(e,t)=>`${e}:focus-within ${t}`,pt=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ft=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,mt=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,ht=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,vt=e=>gt(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yt=e=>gt(t=>e(t,"~ &"),"[data-peer]",".peer"),gt=(e,...t)=>t.map(e).join(", "),bt={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:vt(lt),_peerHover:yt(lt),_groupFocus:vt(ct),_peerFocus:yt(ct),_groupFocusVisible:vt(ut),_peerFocusVisible:yt(ut),_groupActive:vt(pt),_peerActive:yt(pt),_groupDisabled:vt(ft),_peerDisabled:yt(ft),_groupInvalid:vt(mt),_peerInvalid:yt(mt),_groupChecked:vt(ht),_peerChecked:yt(ht),_groupFocusWithin:vt(dt),_peerFocusWithin:yt(dt),_peerPlaceholderShown:yt((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},Et=Object.keys(bt),xt=se({},Ae,Re,Ie,Pe,De,Le,He,je,Me,Ue,We,Te,qe,Ke,Xe,Ye,Ze,Ve,Ge),wt=Object.assign({},qe,De,Pe,Me,We),kt=Object.keys(wt),St=[...Object.keys(xt),...Et],Ct={...xt,...bt},_t=e=>e in Ct,Ot=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Nt=(e,t)=>{if(null==t)return t;const n=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},r=e=>n(e)??e,[o,a]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"("===a?(r=!0,n+=a):")"===a?(r=!1,n+=a):","!==a||r?n+=a:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return n(o)??r(a)??r(t)};function At(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function Rt(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var It=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Tt="-ms-",Lt="-webkit-",Pt=Math.abs,Mt=String.fromCharCode,jt=Object.assign;function Dt(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function Bt(e,t){return e.indexOf(t)}function Ft(e,t){return 0|e.charCodeAt(t)}function zt(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function Ut(e){return e.length}function Wt(e,t){return t.push(e),e}var Ht=1,qt=1,Yt=0,Zt=0,Gt=0,Xt="";function Kt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ht,column:qt,length:i,return:""}}function Jt(e,t){return jt(Kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qt(){return Gt=Zt>0?Ft(Xt,--Zt):0,qt--,10===Gt&&(qt=1,Ht--),Gt}function en(){return Gt=Zt<Yt?Ft(Xt,Zt++):0,qt++,10===Gt&&(qt=1,Ht++),Gt}function tn(){return Ft(Xt,Zt)}function nn(){return Zt}function rn(e,t){return zt(Xt,e,t)}function on(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function an(e){return Ht=qt=1,Yt=$t(Xt=e),Zt=0,[]}function sn(e){return Xt="",e}function ln(e){return Dt(rn(Zt-1,dn(91===e?e+2:40===e?e+1:e)))}function cn(e){for(;(Gt=tn())&&Gt<33;)en();return on(e)>2||on(Gt)>3?"":" "}function un(e,t){for(;--t&&en()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return rn(e,nn()+(t<6&&32==tn()&&32==en()))}function dn(e){for(;en();)switch(Gt){case e:return Zt;case 34:case 39:34!==e&&39!==e&&dn(Gt);break;case 40:41===e&&dn(e);break;case 92:en()}return Zt}function pn(e,t){for(;en()&&e+Gt!==57&&(e+Gt!==84||47!==tn()););return"/*"+rn(t,Zt-1)+"*"+Mt(47===e?e:en())}function fn(e){for(;!on(tn());)en();return rn(e,Zt)}function mn(e){return sn(hn("",null,null,null,[""],e=an(e),0,[0],e))}function hn(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,v=1,y=1,g=0,b="",E=o,x=a,w=r,k=b;v;)switch(m=g,g=en()){case 40:if(108!=m&&58==Ft(k,d-1)){-1!=Bt(k+=Vt(ln(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=ln(g);break;case 9:case 10:case 13:case 32:k+=cn(m);break;case 92:k+=un(nn()-1,7);continue;case 47:switch(tn()){case 42:case 47:Wt(yn(pn(en(),nn()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=$t(k)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:f>0&&$t(k)-d&&Wt(f>32?gn(k+";",r,n,d-1):gn(Vt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Wt(w=vn(k,t,n,c,u,o,s,b,E=[],x=[],d),a),123===g)if(0===u)hn(k,t,w,w,E,a,d,s,x);else switch(99===p&&110===Ft(k,3)?100:p){case 100:case 109:case 115:hn(e,w,w,r&&Wt(vn(e,w,w,0,0,o,s,b,o,E=[],d),x),o,x,d,s,r?E:x);break;default:hn(k,w,w,w,[""],x,0,s,x)}}c=u=f=0,h=y=1,b=k="",d=i;break;case 58:d=1+$t(k),f=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Qt())continue;switch(k+=Mt(g),g*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=($t(k)-1)*y,y=1;break;case 64:45===tn()&&(k+=ln(en())),p=tn(),u=d=$t(b=k+=fn(nn())),g++;break;case 45:45===m&&2==$t(k)&&(h=0)}}return a}function vn(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Ut(p),m=0,h=0,v=0;m<r;++m)for(var y=0,g=zt(e,d+1,d=Pt(h=i[m])),b=e;y<f;++y)(b=Dt(h>0?p[y]+" "+g:Vt(g,/&\f/g,p[y])))&&(l[v++]=b);return Kt(e,t,n,0===o?"rule":s,l,c,u)}function yn(e,t,n){return Kt(e,t,n,"comm",Mt(Gt),zt(e,2,-2),0)}function gn(e,t,n,r){return Kt(e,t,n,"decl",zt(e,0,r),zt(e,r+1,-1),r)}function bn(e,t){for(var n="",r=Ut(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function En(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+bn(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return $t(n=bn(e.children,r))?e.return=e.value+"{"+n+"}":""}function xn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wn=function(e,t,n){for(var r=0,o=0;r=o,o=tn(),38===r&&12===o&&(t[n]=1),!on(o);)en();return rn(e,Zt)},kn=/* #__PURE__ */new WeakMap,Sn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||kn.get(n))&&!r){kn.set(e,!0);for(var o=[],a=function(e,t){return sn(function(e,t){var n=-1,r=44;do{switch(on(r)){case 0:38===r&&12===tn()&&(t[n]=1),e[n]+=wn(Zt-1,t,n);break;case 2:e[n]+=ln(r);break;case 4:if(44===r){e[++n]=58===tn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mt(r)}}while(r=en());return e}(an(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Cn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},_n=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},On=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Nn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},An=function(e,t,n){On(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Nn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!On(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Nn(e)))};function Rn(e,t){switch(function(e,t){return 45^Ft(e,0)?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}(e,t)){case 5103:return Lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+"-moz-"+e+Tt+e+e;case 6828:case 4268:return Lt+e+Tt+e+e;case 6165:return Lt+e+Tt+"flex-"+e+e;case 5187:return Lt+e+Vt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Lt+e+Tt+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Tt+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Tt+Vt(e,"shrink","negative")+e;case 5292:return Lt+e+Tt+Vt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Vt(e,"-grow","")+Lt+e+Tt+Vt(e,"grow","positive")+e;case 4554:return Lt+Vt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,Lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($t(e)-1-t>6)switch(Ft(e,t+1)){case 109:if(45!==Ft(e,t+4))break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ft(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bt(e,"stretch")?Rn(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ft(e,t+1))break;case 6444:switch(Ft(e,$t(e)-3-(~Bt(e,"!important")&&10))){case 107:return Vt(e,":",":"+Lt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(45===Ft(e,14)?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Tt+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Tt+e+e}return e}var In=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Rn(e.value,e.length);break;case"@keyframes":return bn([Jt(e,{value:Vt(e.value,"@","@"+Lt)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return bn([Jt(e,{props:[Vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bn([Jt(e,{props:[Vt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,":-moz-$1")]}),Jt(e,{props:[Vt(t,/:(plac\w+)/,Tt+"input-$1")]})],r)}return""})}}],Tn=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||In;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[Sn,Cn];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent===r[0]?r[0].children:r,i=a.length-1;i>=0;i--){var s=a[i];if(s.line<t.line)break;if(s.column<t.column){if(_n(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),An);var c,u,d=[En,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=Ut(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=function(e,t,n,r){c=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),bn(mn(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new It({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(s),f};function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}var Pn="function"==typeof Symbol&&Symbol.for,Mn=Pn?Symbol.for("react.element"):60103,jn=Pn?Symbol.for("react.portal"):60106,Dn=Pn?Symbol.for("react.fragment"):60107,Vn=Pn?Symbol.for("react.strict_mode"):60108,Bn=Pn?Symbol.for("react.profiler"):60114,Fn=Pn?Symbol.for("react.provider"):60109,zn=Pn?Symbol.for("react.context"):60110,$n=Pn?Symbol.for("react.async_mode"):60111,Un=Pn?Symbol.for("react.concurrent_mode"):60111,Wn=Pn?Symbol.for("react.forward_ref"):60112,Hn=Pn?Symbol.for("react.suspense"):60113,qn=Pn?Symbol.for("react.suspense_list"):60120,Yn=Pn?Symbol.for("react.memo"):60115,Zn=Pn?Symbol.for("react.lazy"):60116,Gn=Pn?Symbol.for("react.block"):60121,Xn=Pn?Symbol.for("react.fundamental"):60117,Kn=Pn?Symbol.for("react.responder"):60118,Jn=Pn?Symbol.for("react.scope"):60119;function Qn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mn:switch(e=e.type){case $n:case Un:case Dn:case Bn:case Vn:case Hn:return e;default:switch(e=e&&e.$$typeof){case zn:case Wn:case Zn:case Yn:case Fn:return e;default:return t}}case jn:return t}}}function er(e){return Qn(e)===Un}var tr={AsyncMode:$n,ConcurrentMode:Un,ContextConsumer:zn,ContextProvider:Fn,Element:Mn,ForwardRef:Wn,Fragment:Dn,Lazy:Zn,Memo:Yn,Portal:jn,Profiler:Bn,StrictMode:Vn,Suspense:Hn,isAsyncMode:function(e){return er(e)||Qn(e)===$n},isConcurrentMode:er,isContextConsumer:function(e){return Qn(e)===zn},isContextProvider:function(e){return Qn(e)===Fn},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mn},isForwardRef:function(e){return Qn(e)===Wn},isFragment:function(e){return Qn(e)===Dn},isLazy:function(e){return Qn(e)===Zn},isMemo:function(e){return Qn(e)===Yn},isPortal:function(e){return Qn(e)===jn},isProfiler:function(e){return Qn(e)===Bn},isStrictMode:function(e){return Qn(e)===Vn},isSuspense:function(e){return Qn(e)===Hn},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Dn||e===Un||e===Bn||e===Vn||e===Hn||e===qn||"object"==typeof e&&null!==e&&(e.$$typeof===Zn||e.$$typeof===Yn||e.$$typeof===Fn||e.$$typeof===zn||e.$$typeof===Wn||e.$$typeof===Xn||e.$$typeof===Kn||e.$$typeof===Jn||e.$$typeof===Gn)},typeOf:Qn},nr=E(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case c:case u:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case l:case d:case h:case m:case s:return v;default:return t}}case r:return t}}}var x=u,w=l,k=s,S=n,C=d,_=o,O=h,N=m,A=r,R=i,I=a,T=p,L=!1;function P(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=_,t.Lazy=O,t.Memo=N,t.Portal=A,t.Profiler=R,t.StrictMode=I,t.Suspense=T,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||E(e)===c},t.isConcurrentMode=P,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E}()});function rr(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}E(function(e){e.exports="production"===process.env.NODE_ENV?tr:nr});var or=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ar=function(e,t,n){or(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},ir={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sr="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",lr=/[A-Z]|^ms/g,cr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ur=function(e){return 45===e.charCodeAt(1)},dr=function(e){return null!=e&&"boolean"!=typeof e},pr=/* #__PURE__ */xn(function(e){return ur(e)?e:e.replace(lr,"-$&").toLowerCase()}),fr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cr,function(e,t,n){return kr={name:t,styles:n,next:kr},t})}return 1===ir[e]||ur(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var mr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,hr=["normal","none","initial","inherit","unset"],vr=fr,yr=/^-ms-/,gr=/-(.)/g,br={};fr=function(e,t){if("content"===e&&("string"!=typeof t||-1===hr.indexOf(t)&&!mr.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=vr(e,t);return""===n||ur(e)||-1===e.indexOf("-")||void 0!==br[e]||(br[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(yr,"ms-").replace(gr,function(e,t){return t.toUpperCase()})+"?")),n}}var Er="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xr(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Er);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return kr={name:n.name,styles:n.styles,next:kr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kr={name:r.name,styles:r.styles,next:kr},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xr(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":dr(i)&&(r+=pr(a)+":"+fr(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(Er);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=xr(e,t,i);switch(a){case"animation":case"animationName":r+=pr(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)dr(i[l])&&(r+=pr(a)+":"+fr(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=kr,i=n(e);return kr=a,xr(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(cr,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var wr,kr,Sr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(wr=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";kr=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=xr(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(sr),o+=i[0]);for(var s=1;s<e.length;s++)o+=xr(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(sr),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(wr,function(e){return a=e,""})),Sr.lastIndex=0;for(var l,c="";null!==(l=Sr.exec(o));)c+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:kr,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:kr}},_r=!!re.useInsertionEffect&&re.useInsertionEffect,Or=_r||function(e){return e()},Nr=_r||ne.useLayoutEffect,Ar={}.hasOwnProperty,Rr=/* #__PURE__ */ne.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Tn({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Rr.displayName="EmotionCacheContext");var Ir=function(e){/*#__PURE__*/
2
+ return ne.forwardRef(function(t,n){var r=ne.useContext(Rr);return e(t,r,n)})},Tr=/* #__PURE__ */ne.createContext({});"production"!==process.env.NODE_ENV&&(Tr.displayName="EmotionThemeContext");var Lr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null};"production"!==process.env.NODE_ENV&&(/* #__PURE__ */Ir(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=rr(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Cr(a,void 0,ne.useContext(Tr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Cr([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Ar.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=n,c.className=i,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Lr,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/ne.createElement(o,c))}).displayName="EmotionCssPropInternal");var Pr=!1,Mr=/* #__PURE__ */Ir(function(e,t){"production"===process.env.NODE_ENV||Pr||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Pr=!0);var n=Cr([e.styles],void 0,ne.useContext(Tr)),r=ne.useRef();return Nr(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Nr(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&ar(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cr(t)}"production"!==process.env.NODE_ENV&&(Mr.displayName="EmotionGlobal");var Dr=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Vr(e,t,n){var r=[],o=rr(e,r,n);return r.length<2?n:o+t(r)}var Br=function(e){var t=e.cache,n=e.serializedArr;return Or(function(){for(var e=0;e<n.length;e++)ar(t,n[e],!1)}),null},Fr=/* #__PURE__ */Ir(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=Cr(o,t.registered);return r.push(i),or(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return Vr(t.registered,o,Dr(r))},theme:ne.useContext(Tr)},i=e.children(a);return n=!0,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Br,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Fr.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest&&"undefined"==typeof vi){var zr="undefined"!=typeof globalThis?globalThis:window,$r="__EMOTION_REACT_"+"11.10.5".split(".")[0]+"__";zr[$r]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),zr[$r]=!0}function Ur(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=ne.createContext(void 0);return o.displayName=r,[o.Provider,function e(){var r;const a=ne.useContext(o);if(!a&&t){const t=new Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return a},o]}var Wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hr=/* #__PURE__ */xn(function(e){return Wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),qr=function(e){return"theme"!==e},Yr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Hr:qr},Zr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Gr="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Xr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return or(t,n,r),Or(function(){return ar(t,n,r)}),null},Kr=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Zr(t,n,a),l=s||Yr(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Gr),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(Gr),d.push(u[f],u[0][f])}var m=Ir(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=ne.useContext(Tr)}"string"==typeof e.className?a=rr(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Cr(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Yr(r):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,/*#__PURE__*/ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(Xr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/ne.createElement(r,v))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Ln({},n,r,{shouldForwardProp:Zr(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Kr[e]=Kr(e)});var Jr="undefined"!=typeof Element,Qr="function"==typeof Map,eo="function"==typeof Set,to="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function no(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!no(e[r],t[r]))return!1;return!0}if(Qr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!no(r.value[1],t.get(r.value[0])))return!1;return!0}if(eo&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(to&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Jr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!no(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var ro=function(e,t){try{return no(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function oo(){const e=ne.useContext(Tr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Ur({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ao=/* @__PURE__ */new Set([...St,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),io=/* @__PURE__ */new Set(["htmlWidth","htmlHeight","htmlSize"]);function so(e){return io.has(e)||!ao.has(e)}function lo(e,t){const{baseStyle:n,...o}=t??{};o.shouldForwardProp||(o.shouldForwardProp=so);const s=(({baseStyle:e})=>t=>{const{theme:n,css:o,__css:s,sx:l,...c}=t,u=a(c,(e,t)=>_t(t)),d=i(e,t),p=Object.assign({},s,d,r(u),l),f=(m=p,e=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i;const s=ce(e,r),l=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=ce(e[i],t);if(null==s)continue;if(s=le(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(s)(r);let c={};for(let e in l){let u=ce(l[e],r);e in n&&(e=n[e]),Ot(e,u)&&(u=Nt(r,u));let d=t[e];if(!0===d&&(d={property:e}),le(u)){c[e]=c[e]??{},c[e]=se({},c[e],o(u,!0));continue}let p=(null==(i=null==d?void 0:d.transform)?void 0:i.call(d,u,r,s))??u;p=(null==d?void 0:d.processResult)?o(p,!0):p;const f=ce(null==d?void 0:d.property,r);if(!a&&(null==d?void 0:d.static)){const e=ce(d.static,r);c=se({},c,e)}if(f&&Array.isArray(f))for(const e of f)c[e]=p;else f?"&"===f&&le(p)?c=se({},c,p):c[f]=p:le(p)?c=se({},c,p):c[e]=p}return c};return o}({theme:e,pseudos:bt,configs:xt})(m))(t.theme);var m;return o?[f,o]:f})({baseStyle:n}),l=Kr(e,o)(s);return ne.forwardRef(function(e,t){const{colorMode:n,forced:r}=ie();return ne.createElement(l,{ref:t,"data-theme":r?n:void 0,...e})})}function co(e){return ne.forwardRef(e)}function uo(e,a={}){const{styleConfig:i,...s}=a,{theme:l,colorMode:c}={...ie(),theme:oo()},u=e?t(l,`components.${e}`):void 0,d=i||u,p=n({theme:l,colorMode:c},(null==d?void 0:d.defaultProps)??{},r(o(s,["children"]))),f=ne.useRef({});if(d){const e=(m=d,e=>{const{variant:t,size:n,theme:r}=e,o=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:le(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let r=0;r<c;r++){const c=t.details[r],p=t.details[At(l,r)],f=st(c.minW,null==p?void 0:p._minW),m=ce(null==(a=e[n])?void 0:a[l[r]],o);m&&(d?null==(i=e.parts)||i.forEach(e=>{se(s,{[e]:u?m[e]:{[f]:m[e]}})}):d?s[f]=m:u?se(s,m):s[f]=m)}return s}}(r);return se({},ce(m.baseStyle??{},e),o(m,"sizes",n,e),o(m,"variants",t,e))}),t=e(p);ro(f.current,t)||(f.current=t)}var m;return f.current}function po(e,t={}){return uo(e,t)}function fo(e,t={}){return uo(e,t)}var mo=function(){const e=/* @__PURE__ */new Map;return new Proxy(lo,{apply:(e,t,n)=>lo(...n),get:(t,n)=>(e.has(n)||e.set(n,lo(n)),e.get(n))})}();function ho(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=ne.createContext(void 0);return i.displayName=t,[i.Provider,function e(){var t;const s=ne.useContext(i);if(!s&&n){const n=new Error(a??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},i]}function vo(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function yo(...e){return ne.useMemo(()=>vo(...e),e)}function go(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function bo(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Eo(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var xo="undefined"!=typeof window?ne.useLayoutEffect:ne.useEffect,[wo,ko]=ho({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function So(){return[wo,()=>ko(),()=>function(){const e=ne.useRef(new class{descendants=/* @__PURE__ */new Map;register=e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=go(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(0!==this.count())return this.values()[e]};enabledItem=e=>{if(0!==this.enabledCount())return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?(null==(t=this.descendants.get(e))?void 0:t.index)??-1:-1};enabledIndexOf=e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=bo(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=bo(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)};prev=(e,t=!0)=>{const n=Eo(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Eo(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=go(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}});return xo(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const t=ko(),[n,r]=ne.useState(-1),o=ne.useRef(null);xo(()=>()=>{o.current&&t.unregister(o.current)},[]),xo(()=>{if(!o.current)return;const e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||r(e)});const a=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:vo(a,o)}}(e)]}var Co=(...e)=>e.filter(Boolean).join(" "),_o={path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/* @__PURE__ */ne.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/* @__PURE__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Oo=co((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:Co("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??_o.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
3
+ return ne.createElement(mo.svg,{as:n,...u,...c});const p=i??_o.path;/* @__PURE__ */
4
+ return ne.createElement(mo.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});function No(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=ne.Children.toArray(e.path),i=co((e,r)=>/* @__PURE__ */ne.createElement(Oo,{ref:r,viewBox:t,...o,...e},a.length?a:/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:n})));return i.displayName=r,i}function Ao(e,t=[]){const n=ne.useRef(e);return ne.useEffect(()=>{n.current=e}),ne.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function Ro(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=((e,t)=>e!==t)}=e,a=Ao(r),i=Ao(o),[s,l]=ne.useState(n),c=void 0!==t,u=c?t:s,d=Ao(e=>{const t="function"==typeof e?e(u):e;i(u,t)&&(c||l(t),a(t))},[c,a,u,i]);return[u,d]}Oo.displayName="Icon";var Io=function(e,t){return Io=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Io(e,t)};function To(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Io(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Lo=function(){return Lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lo.apply(this,arguments)};function Po(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Mo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function jo(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Do="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Vo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Bo={measureLayout:Vo(["layout","layoutId","drag"]),animation:Vo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Vo(["exit"]),drag:Vo(["drag","dragControls"]),focus:Vo(["whileFocus"]),hover:Vo(["whileHover","onHoverStart","onHoverEnd"]),tap:Vo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Vo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Vo(["whileInView","onViewportEnter","onViewportLeave"])},Fo=function(){},zo=function(){};"production"!==process.env.NODE_ENV&&(Fo=function(e,t){e||"undefined"==typeof console||console.warn(t)},zo=function(e,t){if(!e)throw new Error(t)});var $o=ne.createContext({strict:!1}),Uo=Object.keys(Bo),Wo=Uo.length,Ho=ne.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),qo=ne.createContext({}),Yo=ne.createContext(null),Zo="undefined"!=typeof document,Go=Zo?ne.useLayoutEffect:ne.useEffect,Xo={current:null},Ko=!1;function Jo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Qo(e){return Array.isArray(e)}function ea(e){return"string"==typeof e||Qo(e)}function ta(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function na(e,t,n){var r=e.getProps();return ta(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ra(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||ea(e.initial)||ea(e.animate)||ea(e.whileHover)||ea(e.whileDrag)||ea(e.whileTap)||ea(e.whileFocus)||ea(e.exit)}function oa(e){return Boolean(ra(e)||e.variants)}function aa(e){return Array.isArray(e)?e.join(" "):e}function ia(e){var t=ne.useRef(null);return null===t.current&&(t.current=e()),t.current}var sa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},la=1,ca=ne.createContext({}),ua=ne.createContext({}),da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return To(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(ne.Component);function pa(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Bo.projectionNodeConstructor=e[t]:Bo[t].Component=e[t])}(t),ne.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=ne.useContext(ca))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Lo(Lo({},e),{layoutId:l});var c=ne.useContext(Ho),u=null,d=function(e){var t=function(e,t){if(ra(e)){var n=e.initial,r=e.animate;return{initial:!1===n||ea(n)?n:void 0,animate:ea(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,ne.useContext(qo)),n=t.initial,r=t.animate;return ne.useMemo(function(){return{initial:n,animate:r}},[aa(n),aa(r)])}(e),p=c.isStatic?void 0:ia(function(){if(sa.hasEverUpdated)return la++}),f=a(e,c.isStatic);return!c.isStatic&&Zo&&(d.visualElement=function(e,t,n,r){var o,a,i=ne.useContext($o),s=ne.useContext(qo).visualElement,l=ne.useContext(Yo),c=(!Ko&&function(){if(Ko=!0,Zo)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Xo.current=e.matches};e.addListener(t),t()}else Xo.current=!1}(),o=Mo(ne.useState(Xo.current),1)[0],"never"!==(a=ne.useContext(Ho).reducedMotion)&&("always"===a||o)),u=ne.useRef(void 0);r||(r=i.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return Go(function(){null==d||d.syncRender()}),ne.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Go(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,Lo(Lo({},c),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=ne.useContext(ua);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Jo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,r||Bo.projectionNodeConstructor),u=function(e,t,n){var r=[],o=ne.useContext($o);if(!t)return null;"production"!==Do&&n&&o.strict&&zo(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<Wo;a++){var i=Uo[a],s=Bo[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(ne.createElement(l,Lo({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),ne.createElement(da,{visualElement:d.visualElement,props:Lo(Lo({},c),e)},u,ne.createElement(qo.Provider,{value:d},o(i,e,p,function(e,t,n){return ne.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Jo(n)&&(n.current=r))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var fa=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ma(e){return"string"==typeof e&&!e.includes("-")&&!!(fa.indexOf(e)>-1||/[A-Z]/.test(e))}var ha={},va=["","X","Y","Z"],ya=["transformPerspective","x","y","z"];function ga(e,t){return ya.indexOf(e)-ya.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return va.forEach(function(t){return ya.push(e+t)})});var ba=new Set(ya);function Ea(e){return ba.has(e)}var xa=new Set(["originX","originY","originZ"]);function wa(e){return xa.has(e)}function ka(e,t){var n=t.layout,r=t.layoutId;return Ea(e)||wa(e)||(n||void 0!==r)&&(!!ha[e]||"opacity"===e)}var Sa=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Ca={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function _a(e){return e.startsWith("--")}var Oa=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Na=(e,t)=>n=>Math.max(Math.min(n,t),e),Aa=e=>e%1?Number(e.toFixed(5)):e,Ra=/(-)?([\d]*\.?[\d])+/g,Ia=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function La(e){return"string"==typeof e}const Pa={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ma=Object.assign(Object.assign({},Pa),{transform:Na(0,1)}),ja=Object.assign(Object.assign({},Pa),{default:1}),Da=e=>({test:t=>La(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Va=Da("deg"),Ba=Da("%"),Fa=Da("px"),za=Da("vh"),$a=Da("vw"),Ua=Object.assign(Object.assign({},Ba),{parse:e=>Ba.parse(e)/100,transform:e=>Ba.transform(100*e)}),Wa=(e,t)=>n=>Boolean(La(n)&&Ta.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ha=(e,t,n)=>r=>{if(!La(r))return r;const[o,a,i,s]=r.match(Ra);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},qa={test:Wa("hsl","hue"),parse:Ha("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ba.transform(Aa(t))+", "+Ba.transform(Aa(n))+", "+Aa(Ma.transform(r))+")"},Ya=Na(0,255),Za=Object.assign(Object.assign({},Pa),{transform:e=>Math.round(Ya(e))}),Ga={test:Wa("rgb","red"),parse:Ha("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Za.transform(e)+", "+Za.transform(t)+", "+Za.transform(n)+", "+Aa(Ma.transform(r))+")"},Xa={test:Wa("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ga.transform},Ka={test:e=>Ga.test(e)||Xa.test(e)||qa.test(e),parse:e=>Ga.test(e)?Ga.parse(e):qa.test(e)?qa.parse(e):Xa.parse(e),transform:e=>La(e)?e:e.hasOwnProperty("red")?Ga.transform(e):qa.transform(e)};function Ja(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ia);r&&(n=r.length,e=e.replace(Ia,"${c}"),t.push(...r.map(Ka.parse)));const o=e.match(Ra);return o&&(e=e.replace(Ra,"${n}"),t.push(...o.map(Pa.parse))),{values:t,numColors:n,tokenised:e}}function Qa(e){return Ja(e).values}function ei(e){const{values:t,numColors:n,tokenised:r}=Ja(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ka.transform(e[r]):Aa(e[r]));return t}}const ti=e=>"number"==typeof e?0:e,ni={test:function(e){var t,n,r,o;return isNaN(e)&&La(e)&&(null!==(n=null===(t=e.match(Ra))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ia))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qa,createTransformer:ei,getAnimatableNone:function(e){const t=Qa(e);return ei(e)(t.map(ti))}},ri=new Set(["brightness","contrast","saturate","opacity"]);function oi(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ra)||[];if(!r)return e;const o=n.replace(r,"");let a=ri.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const ai=/([a-z-]*)\(.*?\)/g,ii=Object.assign(Object.assign({},ni),{getAnimatableNone:e=>{const t=e.match(ai);return t?t.map(oi).join(" "):e}});var si=Lo(Lo({},Pa),{transform:Math.round}),li={borderWidth:Fa,borderTopWidth:Fa,borderRightWidth:Fa,borderBottomWidth:Fa,borderLeftWidth:Fa,borderRadius:Fa,radius:Fa,borderTopLeftRadius:Fa,borderTopRightRadius:Fa,borderBottomRightRadius:Fa,borderBottomLeftRadius:Fa,width:Fa,maxWidth:Fa,height:Fa,maxHeight:Fa,size:Fa,top:Fa,right:Fa,bottom:Fa,left:Fa,padding:Fa,paddingTop:Fa,paddingRight:Fa,paddingBottom:Fa,paddingLeft:Fa,margin:Fa,marginTop:Fa,marginRight:Fa,marginBottom:Fa,marginLeft:Fa,rotate:Va,rotateX:Va,rotateY:Va,rotateZ:Va,scale:ja,scaleX:ja,scaleY:ja,scaleZ:ja,skew:Va,skewX:Va,skewY:Va,distance:Fa,translateX:Fa,translateY:Fa,translateZ:Fa,x:Fa,y:Fa,z:Fa,perspective:Fa,transformPerspective:Fa,opacity:Ma,originX:Ua,originY:Ua,originZ:Fa,zIndex:si,fillOpacity:Ma,strokeOpacity:Ma,numOctaves:si};function ci(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if(_a(f))i[f]=m;else{var h=li[f],v=Oa(m,h);if(Ea(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else wa(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";a.sort(ga);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(Ca[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function ui(e,t,n){for(var r in t)Sa(t[r])||ka(r,n)||(e[r]=t[r])}function di(e,t,n){var r={},o=function(e,t,n){var r={};return ui(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return ne.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ci(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Lo(Lo({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var pi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function fi(e){return pi.has(e)}var mi,hi=function(e){return!fi(e)};try{(mi=require("@emotion/is-prop-valid").default)&&(hi=function(e){return e.startsWith("on")?!fi(e):mi(e)})}catch(e){}function yi(e,t,n){return"string"==typeof e?e:Fa.transform(t+n*e)}var gi={offset:"stroke-dashoffset",array:"stroke-dasharray"},bi={offset:"strokeDashoffset",array:"strokeDasharray"};function Ei(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;ci(e,Po(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=yi(t,e.x,e.width),o=yi(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?gi:bi;e[a.offset]=Fa.transform(-r);var i=Fa.transform(t),s=Fa.transform(n);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var xi=function(){return Lo(Lo({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function wi(e,t){var n=ne.useMemo(function(){var n=xi();return Ei(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Lo(Lo({},n.attrs),{style:Lo({},n.style)})},[t]);if(e.style){var r={};ui(r,e.style,e),n.style=Lo(Lo({},r),n.style)}return n}function ki(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(ma(t)?wi:di)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(hi(o)||!0===n&&fi(o)||!t&&!fi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=Lo(Lo(Lo({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),ne.createElement(t,u)}}var Si=/([a-z])([A-Z])/g,Ci=function(e){return e.replace(Si,"$1-$2").toLowerCase()};function _i(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Oi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ni(e,t,n,r){for(var o in _i(e,t,void 0,r),t.attrs)e.setAttribute(Oi.has(o)?o:Ci(o),t.attrs[o])}function Ai(e){var t=e.style,n={};for(var r in t)(Sa(t[r])||ka(r,e))&&(n[r]=t[r]);return n}function Ri(e){var t=Ai(e);for(var n in e)Sa(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ii(e){return"object"==typeof e&&"function"==typeof e.start}var Ti=function(e){return Array.isArray(e)},Li=function(e){return Ti(e)?e[e.length-1]||0:e};function Pi(e){var t=Sa(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Mi(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Di(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var ji=function(e){return function(t,n){var r=ne.useContext(qo),o=ne.useContext(Yo);return n?Mi(e,t,r,o):ia(function(){return Mi(e,t,r,o)})}};function Di(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Pi(i[s]);var l=e.initial,c=e.animate,u=ra(e),d=oa(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!Ii(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=ta(e,t);if(n){var r=n.transitionEnd,a=Po(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var Vi,Bi={useVisualState:ji({scrapeMotionValuesFromProps:Ri,createRenderState:xi,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ei(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Ni(t,r)}})},Fi={useVisualState:ji({scrapeMotionValuesFromProps:Ai,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function zi(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function $i(e,t,n,r){ne.useEffect(function(){var o=e.current;if(n&&o)return zi(o,t,n,r)},[e,t,n,r])}function Ui(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Wi(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Vi||(Vi={}));var Hi={pageX:0,pageY:0};function qi(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Hi;return{x:n[t+"X"],y:n[t+"Y"]}}function Yi(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Zi(e,t){return void 0===t&&(t="page"),{point:Wi(e)?qi(e,t):Yi(e,t)}}var Gi=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Zi(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Xi={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ki={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ji(e){return Zo&&null===window.onpointerdown?e:Zo&&null===window.ontouchstart?Ki[e]:Zo&&null===window.onmousedown?Xi[e]:e}function Qi(e,t,n,r){return zi(e,Ji(t),Gi(n,"pointerdown"===t),r)}function es(e,t,n,r){return $i(e,Ji(t),n&&Gi(n,"pointerdown"===t),r)}function ts(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ns=ts("dragHorizontal"),rs=ts("dragVertical");function os(e){var t=!1;if("y"===e)t=rs();else if("x"===e)t=ns();else{var n=ns(),r=rs();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function as(){var e=os(!0);return!e||(e(),!1)}function is(e,t,n){return function(r,o){var a;Ui(r)&&!as()&&(null===(a=e.animationState)||void 0===a||a.setActive(Vi.Hover,t),null==n||n(r,o))}}var ss=function(e,t){return!!t&&(e===t||ss(e,t.parentElement))};function ls(e){return ne.useEffect(function(){return function(){return e()}},[])}const cs=(e,t,n)=>Math.min(Math.max(n,e),t);function us(e,t){return e*Math.sqrt(1-t*t)}const ds=["duration","bounce"],ps=["stiffness","damping","mass"];function fs(e,t){return t.some(t=>void 0!==e[t])}function ms(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Po(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!fs(e,ps)&&fs(e,ds)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Fo(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=cs(.05,1,i),e=cs(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/us(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=us(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),f=hs,m=hs;function h(){const e=u?-u/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=us(i,a);f=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)f=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}ms.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const hs=e=>0,vs=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ys=(e,t,n)=>-n*e+n*t+e;function gs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bs({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=gs(s,r,e+1/3),a=gs(s,r,e),i=gs(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const Es=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},xs=[Xa,Ga,qa],ws=e=>xs.find(t=>t.test(e)),ks=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Ss=(e,t)=>{let n=ws(e),r=ws(t);zo(!!n,ks(e)),zo(!!r,ks(t));let o=n.parse(e),a=r.parse(t);n===qa&&(o=bs(o),n=Ga),r===qa&&(a=bs(a),r=Ga);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Es(o[t],a[t],e));return i.alpha=ys(o.alpha,a.alpha,e),n.transform(i)}},Cs=e=>"number"==typeof e,_s=(e,t)=>n=>t(e(n)),Os=(...e)=>e.reduce(_s);function Ns(e,t){return Cs(e)?n=>ys(e,t,n):Ka.test(e)?Ss(e,t):Ts(e,t)}const As=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Ns(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Rs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ns(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Is(e){const t=ni.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Ts=(e,t)=>{const n=ni.createTransformer(t),r=Is(e),o=Is(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Os(As(r.parsed,o.parsed),n):(Fo(!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.`),n=>`${n>0?t:e}`)},Ls=(e,t)=>n=>ys(e,t,n);function Ps(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;zo(a===t.length,"Both input and output ranges must be the same length"),zo(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Ls:"string"==typeof e?Ka.test(e)?Ss:Ts:Array.isArray(e)?As:"object"==typeof e?Rs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=Os(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(vs(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=vs(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(cs(e[0],e[a-1],t)):s}const Ms=e=>t=>1-e(1-t),js=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ds=e=>t=>t*t*((e+1)*t-e),Vs=e=>e,Bs=e=>Math.pow(e,2),Fs=Ms(Bs),zs=js(Bs),$s=e=>1-Math.sin(Math.acos(e)),Us=Ms($s),Ws=js(Us),Hs=Ds(1.525),qs=Ms(Hs),Ys=js(Hs),Zs=(e=>{const t=Ds(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Gs=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Xs=Ms(Gs);function Ks(e,t){return e.map(()=>t||zs).splice(0,e.length-1)}function Js({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return Ps(s,i,{ease:Array.isArray(n)?n:Ks(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Qs={keyframes:Js,spring:ms,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===a?l:a(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}},el="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),tl="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(el()),16.666666666666668);let nl=!0,rl=!1,ol=!1;const al={delta:0,timestamp:0},il=["read","update","preRender","render","postRender"],sl=il.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),rl=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),ll=il.reduce((e,t)=>{const n=sl[t];return e[t]=(e,t=!1,r=!1)=>(rl||pl(),n.schedule(e,t,r)),e},{}),cl=il.reduce((e,t)=>(e[t]=sl[t].cancel,e),{});il.reduce((e,t)=>(e[t]=()=>sl[t].process(al),e),{});const ul=e=>sl[e].process(al),dl=e=>{rl=!1,al.delta=nl?16.666666666666668:Math.max(Math.min(e-al.timestamp,40),1),al.timestamp=e,ol=!0,il.forEach(ul),ol=!1,rl&&(nl=!1,tl(dl))},pl=()=>{rl=!0,nl=!0,ol||tl(dl)};function fl(e,t,n=0){return e-t-n}const ml=e=>{const t=({delta:t})=>e(t);return{start:()=>ll.update(t,!0),stop:()=>cl.update(t)}};function hl(e){var t,n,{from:r,autoplay:o=!0,driver:a=ml,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=Po(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,y,g,{to:b}=h,E=0,x=h.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return Js;if(Qs[e.type])return Qs[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Js:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ms:Js}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Ps([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),v=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,k)&&(E++,"reverse"===l?(k=E%2==0,i=function(e,t,n=0,r=!0){return r?fl(t+-e,t,n):t-(e-t)+n}(i,x,c,k)):(i=fl(i,x,c),"mirror"===l&&C.flipTarget()),w=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function vl(e,t){return t?e*(1e3/t):0}const yl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),gl=e=>yl(e)&&e.hasOwnProperty("z"),bl=(e,t)=>Math.abs(e-t);function El(e,t){if(Cs(e)&&Cs(t))return bl(e,t);if(yl(e)&&yl(t)){const n=bl(e.x,t.x),r=bl(e.y,t.y),o=gl(e)&&gl(t)?bl(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const xl=(e,t)=>1-3*t+3*e,wl=(e,t)=>3*t-6*e,kl=e=>3*e,Sl=(e,t,n)=>((xl(t,n)*e+wl(t,n))*e+kl(t))*e,Cl=(e,t,n)=>3*xl(t,n)*e*e+2*wl(t,n)*e+kl(t);var _l=new Set;function Ol(e,t,n){e||_l.has(t)||(console.warn(t),n&&console.warn(n),_l.add(t))}var Nl=new WeakMap,Al=new WeakMap,Rl=function(e){var t;null===(t=Nl.get(e.target))||void 0===t||t(e)},Il=function(e){e.forEach(Rl)},Tl={some:0,all:1};function Ll(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;ne.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:Tl[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Po(e,["root"]),r=t||document;Al.has(r)||Al.set(r,{});var o=Al.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Il,Lo({root:t},n))),o[a]}(r);return Nl.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Vi.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){Nl.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function Pl(e,t,n,r){var o=r.fallback,a=void 0===o||o;ne.useEffect(function(){e&&a&&("production"!==Do&&Ol(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Vi.InView,!0)}))},[e])}var Ml=function(e){return function(t){return e(t),null}},jl={inView:Ml(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=ne.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Pl:Ll)(l,s.current,t,i)}),tap:Ml(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=ne.useRef(!1),s=ne.useRef(null),l={passive:!(n||t||r||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(Vi.Tap,!1),!as()}function d(e,n){u()&&(ss(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function f(e,t){var r;c(),i.current||(i.current=!0,s.current=Os(Qi(window,"pointerup",d,l),Qi(window,"pointercancel",p,l)),null===(r=o.animationState)||void 0===r||r.setActive(Vi.Tap,!0),null==n||n(e,t))}es(o,"pointerdown",a?f:void 0,l),ls(c)}),focus:Ml(function(e){var t=e.whileFocus,n=e.visualElement;$i(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Vi.Focus,!0)}:void 0),$i(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Vi.Focus,!1)}:void 0)}),hover:Ml(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;es(o,"pointerenter",t||r?is(o,!0,t):void 0,{passive:!t}),es(o,"pointerleave",n||r?is(o,!1,n):void 0,{passive:!n})})},Dl=0,Vl=function(){return Dl++},Bl=function(){return ia(Vl)};function Fl(){var e=ne.useContext(Yo);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Bl();return ne.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function zl(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var $l=function(e){return 1e3*e},Ul={linear:Vs,easeIn:Bs,easeInOut:zs,easeOut:Fs,circIn:$s,circInOut:Ws,circOut:Us,backIn:Hs,backInOut:Ys,backOut:qs,anticipate:Zs,bounceIn:Xs,bounceInOut:e=>e<.5?.5*(1-Gs(1-2*e)):.5*Gs(2*e-1)+.5,bounceOut:Gs},Wl=function(e){if(Array.isArray(e)){zo(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Mo(e,4);return function(e,t,n,r){if(e===t&&n===r)return Vs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Sl(.1*t,e,n);return a=>0===a||1===a?a:Sl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=Cl(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Cl(t,n,r);if(0===o)return t;t-=(Sl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Sl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(zo(void 0!==Ul[e],"Invalid easing type '".concat(e,"'")),Ul[e]):e},Hl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ni.test(t)||t.startsWith("url(")))},ql=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Yl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Zl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Gl=function(e){return{type:"keyframes",duration:.8,values:e}},Xl={x:ql,y:ql,z:ql,rotate:ql,rotateX:ql,rotateY:ql,rotateZ:ql,scaleX:Yl,scaleY:Yl,scale:Yl,opacity:Zl,backgroundColor:Zl,color:Zl,default:Yl},Kl=Lo(Lo({},li),{color:Ka,backgroundColor:Ka,outlineColor:Ka,fill:Ka,stroke:Ka,borderColor:Ka,borderTopColor:Ka,borderRightColor:Ka,borderBottomColor:Ka,borderLeftColor:Ka,filter:ii,WebkitFilter:ii}),Jl=function(e){return Kl[e]};function Ql(e,t){var n,r=Jl(e);return r!==ii&&(r=ni),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var ec=!1;function tc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function nc(e){return"number"==typeof e?0:Ql("",e)}function rc(e,t){return e[t]||e.default||e}function oc(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=rc(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Hl(e,n);"none"===s&&l&&"string"==typeof n?s=Ql(e,n):tc(s)&&"string"==typeof n?s=nc(n):!Array.isArray(n)&&tc(n)&&"string"==typeof s&&(n=nc(s));var c=Hl(e,s);return Fo(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=hl(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:p,onStop:f}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))g({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=v(r),s=i===n?-1:1;let u,d;const p=e=>{u=d,d=e,t=vl(e-u,al.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Lo(Lo({},r),i)):hl(Lo(Lo({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=jo([],Mo(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Po(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Lo(Lo({},e),(o=n,i=Ti(a=t.to)?Gl:Xl[o]||Xl.default,Lo({to:a},i(a))))),Lo(Lo({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Po(e,["ease","times","yoyo","flip","loop"]),s=Lo({},i);return n&&(s.offset=n),i.duration&&(s.duration=$l(i.duration)),i.repeatDelay&&(s.repeatDelay=$l(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Wl):Wl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Fo(!ec,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ec=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Li(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(rc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,$l(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var ac=function(e){return/^\-?\d*\.?\d+$/.test(e)},ic=function(e){return/^0[^.\s]+$/.test(e)};const sc="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),lc="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(sc()),16.666666666666668);let cc=!0,uc=!1,dc=!1;const pc={delta:0,timestamp:0},fc=["read","update","preRender","render","postRender"],mc=fc.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>uc=!0),e),{}),hc=fc.reduce((e,t)=>{const n=mc[t];return e[t]=(e,t=!1,r=!1)=>(uc||Ec(),n.schedule(e,t,r)),e},{}),vc=fc.reduce((e,t)=>(e[t]=mc[t].cancel,e),{}),yc=fc.reduce((e,t)=>(e[t]=()=>mc[t].process(pc),e),{}),gc=e=>mc[e].process(pc),bc=e=>{uc=!1,pc.delta=cc?16.666666666666668:Math.max(Math.min(e-pc.timestamp,40),1),pc.timestamp=e,dc=!0,fc.forEach(gc),dc=!1,uc&&(cc=!1,lc(bc))},Ec=()=>{uc=!0,cc=!0,dc||lc(bc)},xc=()=>pc;function wc(e,t){-1===e.indexOf(t)&&e.push(t)}function kc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Sc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return wc(this.subscriptions,e),function(){return kc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Cc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Sc,this.velocityUpdateSubscribers=new Sc,this.renderSubscribers=new Sc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=xc(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,hc.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return hc.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?vl(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function _c(e){return new Cc(e)}var Oc=function(e){return function(t){return t.test(e)}},Nc=[Pa,Fa,Ba,Va,$a,za,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ac=function(e){return Nc.find(Oc(e))},Rc=jo(jo([],Mo(Nc),!1),[Ka,ni],!1),Ic=function(e){return Rc.find(Oc(e))};function Tc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_c(n))}function Lc(e,t){if(t)return(t[e]||t.default||t).from}function Pc(e,t,n){var r;void 0===n&&(n={});var o=na(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Mc(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(jc).forEach(function(e,r){i.push(Pc(e,t,Lo(Lo({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=Mo("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Mc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=Po(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in f){var y=e.getValue(v),g=f[v];if(!(!y||void 0===g||h&&Dc(h,v))){var b=Lo({delay:i},d);e.shouldReduceMotion&&Ea(v)&&(b=Lo(Lo({},b),{type:!1,delay:0}));var E=oc(v,y,g,b);m.push(E)}}return Promise.all(m).then(function(){p&&function(e,t){var n=na(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Po(r,["transitionEnd","transition"]);for(var s in i=Lo(Lo({},i),a))Tc(e,s,Li(i[s]))}(e,p)})}function jc(e,t){return e.sortNodePosition(t)}function Dc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var Vc=[Vi.Animate,Vi.InView,Vi.Focus,Vi.Hover,Vi.Tap,Vi.Drag,Vi.Exit],Bc=jo([],Mo(Vc),!1).reverse(),Fc=Vc.length;function zc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var $c={animation:Ml(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return Pc(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Pc(e,t,n);else{var a="function"==typeof t?na(e,t,n.custom):t;r=Mc(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[Vi.Animate]=zc(!0),t[Vi.InView]=zc(),t[Vi.Hover]=zc(),t[Vi.Tap]=zc(),t[Vi.Drag]=zc(),t[Vi.Focus]=zc(),t[Vi.Exit]=zc(),t),o={},a=!0,i=function(t,n){var r=na(e,n);if(r){var o=r.transitionEnd,a=Po(r,["transition","transitionEnd"]);t=Lo(Lo(Lo({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(n){var o=Bc[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],y=ea(v),g=o===s?h.isActive:null;!1===g&&(m=n);var b=v===u[o]&&v!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=Lo({},f),!h.isActive&&null===g||!v&&!h.prevProp||Ii(v)||"boolean"==typeof v)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!Qo(t)&&!zl(t,e)}(h.prevProp,v),x=E||o===s&&h.isActive&&!b&&y||n>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(i,{});!1===g&&(k={});var S=h.prevResolvedValues,C=void 0===S?{}:S,_=Lo(Lo({},C),k),O=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var N in _){var A=k[N],R=C[N];f.hasOwnProperty(N)||(A!==R?Ti(A)&&Ti(R)?!zl(A,R)||E?O(N):h.protectedKeys[N]=!0:void 0!==A?O(N):p.add(N):void 0!==A&&p.has(N)?O(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=k,h.isActive&&(f=Lo(Lo({},f),k)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,jo([],Mo(w.map(function(e){return{animation:e,options:Lo({type:o},t)}})),!1))},v=0;v<Fc;v++)h(v);if(o=Lo({},f),p.size){var y={};p.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Ii(n)&&ne.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ml(function(e){var t=e.custom,n=e.visualElement,r=Mo(Fl(),2),o=r[0],a=r[1],i=ne.useContext(Yo);ne.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Vi.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},Uc=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=qc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=El(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=xc().timestamp;r.history.push(Lo(Lo({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Wc(t,r.transformPagePoint),Ui(e)&&0===e.buttons?r.handlePointerUp(e,t):hc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=qc(Wc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Wi(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Wc(Zi(e),this.transformPagePoint),i=a.point,s=xc().timestamp;this.history=[Lo(Lo({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,qc(a,this.history)),this.removeListeners=Os(Qi(window,"pointermove",this.handlePointerMove),Qi(window,"pointerup",this.handlePointerUp),Qi(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),vc.update(this.updatePoint)},e}();function Wc(e,t){return t?{point:t(e.point)}:e}function Hc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qc(e,t){var n=e.point;return{point:n,delta:Hc(n,Zc(t)),offset:Hc(n,Yc(t)),velocity:Gc(t,.1)}}function Yc(e){return e[0]}function Zc(e){return e[e.length-1]}function Gc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Zc(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>$l(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Xc(e){return e.max-e.min}function Kc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),El(e,t)<n}function Jc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=ys(t.min,t.max,e.origin),e.scale=Xc(n)/Xc(t),(Kc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ys(n.min,n.max,e.origin)-e.originPoint,(Kc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qc(e,t,n,r){Jc(e.x,t.x,n.x,null==r?void 0:r.originX),Jc(e.y,t.y,n.y,null==r?void 0:r.originY)}function eu(e,t,n){e.min=n.min+t.min,e.max=e.min+Xc(t)}function tu(e,t,n){e.min=t.min-n.min,e.max=e.min+Xc(t)}function nu(e,t,n){tu(e.x,t.x,n.x),tu(e.y,t.y,n.y)}function ru(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ou(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Mo([o,r],2))[0],o=n[1]),{min:r,max:o}}function au(e,t,n){return{min:iu(e,t),max:iu(e,n)}}function iu(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function su(e){return[e("x"),e("y")]}function lu(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function cu(e){return void 0===e||1===e}function uu(e){var t=e.scaleX,n=e.scaleY;return!cu(e.scale)||!cu(t)||!cu(n)}function du(e){return uu(e)||pu(e.x)||pu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function pu(e){return e&&"0%"!==e}function fu(e,t,n){return n+t*(e-n)}function mu(e,t,n,r,o){return void 0!==o&&(e=fu(e,o,r)),fu(e,n,r)+t}function hu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=mu(e.min,t,n,r,o),e.max=mu(e.max,t,n,r,o)}function vu(e,t){var n=t.x,r=t.y;hu(e.x,n.translate,n.scale,n.originPoint),hu(e.y,r.translate,r.scale,r.originPoint)}function yu(e,t){e.min=e.min+t,e.max=e.max+t}function gu(e,t,n){var r=Mo(n,3),o=r[0],a=r[1],i=r[2],s=ys(e.min,e.max,void 0!==t[i]?t[i]:.5);hu(e,t[o],t[a],s,t.scale)}var bu=["x","scaleX","originX"],Eu=["y","scaleY","originY"];function xu(e,t){gu(e.x,t,bu),gu(e.y,t,Eu)}function wu(e,t){return lu(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var ku=new WeakMap,Su=function(){function e(e){this.openGlobalLock=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.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Uc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Zi(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=os(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),su(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Ba.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=Xc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Vi.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Vi.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Cu(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?ys(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?ys(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Jo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:ru(e.x,t.left,t.right),y:ru(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:au(e,"left","right"),y:au(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&su(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Jo(t))return!1;var r=t.current;zo(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=wu(e,n),o=t.scroll;return o&&(yu(r.x,o.x),yu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ou(e.x,t.x),y:ou(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=lu(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=su(function(n){var l;if(Cu(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=Lo(Lo({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(n,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return oc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;su(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;su(function(n){if(Cu(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-ys(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Jo(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};su(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r=t.constraints[e],o=.5,i=Xc(n={min:c,max:c}),(s=Xc(r))>i?o=vs(r.min,r.max-i,n.min):i>s&&(o=vs(n.min,n.max-s,r.min)),cs(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),su(function(e){if(Cu(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(ys(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;ku.set(this.visualElement,this);var n=Qi(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Jo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=zi(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(su(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return Lo(Lo({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function Cu(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var _u={pan:Ml(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=ne.useRef(null),l=ne.useContext(Ho).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};ne.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),es(a,"pointerdown",i&&function(e){s.current=new Uc(e,c,{transformPagePoint:l})}),ls(function(){return s.current&&s.current.end()})}),drag:Ml(function(e){var t=e.dragControls,n=e.visualElement,r=ia(function(){return new Su(n)});ne.useEffect(function(){return t&&t.subscribe(r)},[r,t]),ne.useEffect(function(){return r.addListeners()},[r])})},Ou=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Nu=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=v.latestValues,w=v.renderState,k=function(){var e=Ou.map(function(){return new Sc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Ou.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+Ou[t]]=function(t){return e.add(t)},n["notify"+Ou[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,jo([],Mo(t),!1))}}),n}(),S=new Map,C=new Map,_={},O=Lo({},x);function N(){g&&E&&(A(),s(g,w,f.style,D.projection))}function A(){r(D,w,x,t,f)}function R(){k.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,f.onUpdate&&hc.update(R,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var T=d(f);for(var L in T){var P=T[L];void 0!==x[L]&&Sa(P)&&P.set(x[L],!1)}var M=ra(f),j=oa(f),D=Lo(Lo({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&p&&!M&&(b=null==p?void 0:p.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==p||p.children.add(D),D.setProps(f)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),vc.update(R),vc.render(N),C.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(D),k.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,f,t)},measureViewportBox:function(){return i(g,f)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],c(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=_c(t),D.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!Sa(t))return t}return O[e]}},k),{build:function(){return A(),w},scheduleRender:function(){hc.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&D.scheduleRender(),f=e,k.updatePropListeners(e),_=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Sa(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&Ol("6.5.1"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.5.1 may not work as expected."));else if(Sa(i))e.addValue(o,_c(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,_c(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(f),_)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<Ru;r++){var o=Au[r],a=f[o];(ea(a)||!1===a)&&(n[o]=a)}return n}});return D}},Au=jo(["initial"],Mo(Vc),!1),Ru=Au.length;function Iu(e){return"string"==typeof e&&e.startsWith("var(--")}var Tu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Lu(e,t,n){void 0===n&&(n=1),zo(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Mo(function(e){var t=Tu.exec(e);if(!t)return[,];var n=Mo(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Iu(a)?Lu(a,t,n+1):a}}var Pu,Mu=new Set(["width","height","top","left","right","bottom","x","y"]),ju=function(e){return Mu.has(e)},Du=function(e,t){e.set(t,!1),e.set(t)},Vu=function(e){return e===Pa||e===Fa};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Pu||(Pu={}));var Bu=function(e,t){return parseFloat(e.split(", ")[t])},Fu=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Bu(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Bu(i[1],e):0}},zu=new Set(["x","y","z"]),$u=ya.filter(function(e){return!zu.has(e)}),Uu={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:Fu(4,13),y:Fu(5,14)},Wu={treeType:"dom",readValueFromInstance:function(e,t){if(Ea(t)){var n=Jl(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(_a(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return wu(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Po(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Lc(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(ac(p)||ic(p))?p=parseFloat(p):!Ic(p)&&ni.test(d)&&(p=Ql(u,d)),e.addValue(u,_c(p)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=Po(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Lo({},n)),e.forEachValue(function(e){var t=e.get();if(Iu(t)){var n=Lu(t,a);n&&e.set(n)}}),o){var s=o[i];if(Iu(s)){var l=Lu(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(ju)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Lo({},t),r=Lo({},r);var o=Object.keys(t).filter(ju),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=Ac(u),p=t[o];if(Ti(p)){var f=p.length,m=null===p[0]?1:0;d=Ac(u=p[m]);for(var h=m;h<f;h++)c?zo(Ac(p[h])===c,"All keyframes must be of the same type"):(c=Ac(p[h]),zo(c===d||Vu(d)&&Vu(c),"Keyframes must be of the same dimension as the current value"))}else c=Ac(p);if(d!==c)if(Vu(d)&&Vu(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===Fa&&(t[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[o]=d.transform(p):(i||(a=function(e){var t=[];return $u.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Du(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Uu[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);Du(r,i[n]),e[n]=Uu[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=Mo(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return Lo({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Ai,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ci(t,n,r,o.transformTemplate)},render:_i},Hu=Nu(Wu),qu=Nu(Lo(Lo({},Wu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ea(t)?(null===(n=Jl(t))||void 0===n?void 0:n.default)||0:(t=Oi.has(t)?t:Ci(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ri,build:function(e,t,n,r,o){Ei(t,n,r,o.transformTemplate)},render:Ni})),Yu=function(e,t){return ma(e)?qu(t,{enableHardwareAcceleration:!1}):Hu(t,{enableHardwareAcceleration:!0})};function Zu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Gu={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Fa.test(e))return e;e=parseFloat(e)}var n=Zu(e,t.target.x),r=Zu(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Xu={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Tu,function(e){return i.push(e),"_$css"}));var s=ni.parse(e);if(s.length>5)return o;var l=ni.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=ys(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},Ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return To(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(ha,Ju),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Lo(Lo({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),sa.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||hc.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(ne.Component),Ju={borderRadius:Lo(Lo({},Gu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Gu,borderTopRightRadius:Gu,borderBottomLeftRadius:Gu,borderBottomRightRadius:Gu,boxShadow:Xu},Qu={measureLayout:function(e){var t=Mo(Fl(),2),n=t[0],r=t[1],o=ne.useContext(ca);return ne.createElement(Ku,Lo({},e,{layoutGroup:o,switchLayoutGroup:ne.useContext(ua),isPresent:n,safeToRemove:r}))}},ed=["TopLeft","TopRight","BottomLeft","BottomRight"],td=ed.length,nd=function(e){return"string"==typeof e?parseFloat(e):e},rd=function(e){return"number"==typeof e||Fa.test(e)};function od(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var ad=sd(0,.5,Us),id=sd(.5,.95,Vs);function sd(e,t,n){return function(r){return r<e?0:r>t?1:n(vs(e,t,r))}}function ld(e,t){e.min=t.min,e.max=t.max}function cd(e,t){ld(e.x,t.x),ld(e.y,t.y)}function ud(e,t,n,r,o){return e=fu(e-=t,1/n,r),void 0!==o&&(e=fu(e,1/o,r)),e}function dd(e,t,n,r,o){var a=Mo(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Ba.test(t)&&(t=parseFloat(t),t=ys(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=ys(a.min,a.max,r);e===a&&(s-=t),e.min=ud(e.min,t,n,s,o),e.max=ud(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var pd=["x","scaleX","originX"],fd=["y","scaleY","originY"];function md(e,t,n,r){dd(e.x,t,pd,null==n?void 0:n.x,null==r?void 0:r.x),dd(e.y,t,fd,null==n?void 0:n.y,null==r?void 0:r.y)}function hd(e){return 0===e.translate&&1===e.scale}function vd(e){return hd(e.x)&&hd(e.y)}function yd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var gd=function(){function e(){this.members=[]}return e.prototype.add=function(e){wc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(kc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;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.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function bd(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}var Ed=function(e,t){return e.depth-t.depth},xd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){wc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){kc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ed),this.isDirty=!1,this.children.forEach(e)},e}();function wd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Ad),o.nodes.forEach(Rd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?jo(jo([],Mo(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new xd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Sc),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,jo([],Mo(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),sa.hasAnimatedSinceResize&&(sa.hasAnimatedSinceResize=!1,o.nodes.forEach(Nd))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:jd,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!yd(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Lo(Lo({},rc(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,vc.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Id))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(_d);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Dd),this.potentialNodes.clear()),this.nodes.forEach(Od),this.nodes.forEach(kd),this.nodes.forEach(Sd),this.clearAllSnapshots(),yc.update(),yc.preRender(),yc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Cd),this.sharedNodes.forEach(Td)},e.prototype.scheduleUpdateProjection=function(){hc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;hc.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Bd(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();Bd(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!vd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||du(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(yu(t.x,n.x),yu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};cd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){cd(t,e);var a=this.root.scroll;a&&(yu(t.x,-a.x),yu(t.y,-a.y))}yu(t.x,o.x),yu(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};cd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xu(n,{x:-o.scroll.x,y:-o.scroll.y}),du(o.latestValues)&&xu(n,o.latestValues)}return du(this.latestValues)&&xu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};cd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&du(o.latestValues)){uu(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};cd(a,o.measure()),md(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return du(this.latestValues)&&md(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Lo(Lo(Lo({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},nu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),cd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(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&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(eu((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),eu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):cd(this.target,this.layout.actual),vu(this.target,this.targetDelta)):cd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},nu(this.relativeTargetOrigin,this.target,this.relativeParent.target),cd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!du(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();cd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&xu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,vu(e,l)),r&&du(s.latestValues)&&xu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(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}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Qc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=bd(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Lo({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Md));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Ld(s.x,e.x,o),Ld(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(nu(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Pd(e.x,t.x,n.x,r),Pd(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,c;o?(e.opacity=ys(0,null!==(i=n.opacity)&&void 0!==i?i:1,ad(r)),e.opacityExit=ys(null!==(s=t.opacity)&&void 0!==s?s:1,0,id(r))):a&&(e.opacity=ys(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<td;u++){var d="border".concat(ed[u],"Radius"),p=od(t,d),f=od(n,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||rd(p)===rd(f)?(e[d]=Math.max(ys(nd(p),nd(f),r),0),(Ba.test(f)||Ba.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||n.rotate)&&(e.rotate=ys(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(vc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=hc.update(function(){sa.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Sa(0)?0:_c(0);return oc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Lo(Lo({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(cd(t,n),xu(t,r),Qc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new gd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<va.length;r++)e.getStaticValue(o="rotate"+va[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Pi(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=Pi(e.pointerEvents)||""),this.hasProjected&&!du(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=bd(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,ha)if(void 0!==d[h]){var v=ha[h],y=v.applyTo,g=(0,v.correct)(d[h],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[h]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Pi(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(_d),this.root.sharedNodes.clear()},e}()}function kd(e){e.updateLayout()}function Sd(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?su(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Xc(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&su(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Xc(s[e]);t.max=t.min+n});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Qc(c,s,a.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Qc(u,e.applyTransform(l,!0),a.measured):Qc(u,s,a.layout);var d=!vd(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};nu(v,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};nu(y,s,h.actual),yd(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function Cd(e){e.clearSnapshot()}function _d(e){e.clearMeasurements()}function Od(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Nd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Ad(e){e.resolveTargetDelta()}function Rd(e){e.calcProjection()}function Id(e){e.resetRotation()}function Td(e){e.removeLeadSnapshot()}function Ld(e,t,n){e.translate=ys(t.translate,0,n),e.scale=ys(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Pd(e,t,n,r){e.min=ys(t.min,n.min,r),e.max=ys(t.max,n.max,r)}function Md(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var jd={duration:.45,ease:[.4,0,.1,1]};function Dd(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Vd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Bd(e){Vd(e.x),Vd(e.y)}var Fd=wd({attachResizeListener:function(e,t){return zi(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),zd={current:void 0},$d=wd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!zd.current){var e=new Fd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),zd.current=e}return zd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ud=Lo(Lo(Lo(Lo({},$c),jl),_u),Qu),Wd=/*@__PURE__*/pa(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=ma(e)?Bi:Fi;return Lo(Lo({},s),{preloadedFeatures:n,useRender:ki(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Ud,Yu,$d)});function Hd(){var e=ne.useRef(!1);return Go(function(){return e.current=!0,function(){e.current=!1}},[]),e}var qd=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=ia(Yd),l=Bl(),c=ne.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return ne.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),ne.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),ne.createElement(Yo.Provider,{value:c},t)};function Yd(){return new Map}var Zd=function(e){return e.key||""},Gd=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=Mo(function(){var e=Hd(),t=Mo(ne.useState(0),2),n=t[0],r=t[1],o=ne.useCallback(function(){e.current&&r(n+1)},[n]);return[ne.useCallback(function(){return hc.postRender(o)},[o]),n]}(),1),u=c[0],d=ne.useContext(ca).forceRender;d&&(u=d);var p=Hd(),f=function(e){var t=[];return ne.Children.forEach(e,function(e){ne.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=ne.useRef(m),y=ne.useRef(new Map).current,g=ne.useRef(!0);if(Go(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Zd(e);t.set(n,e)})}(f,y),v.current=m}),ls(function(){g.current=!0,y.clear(),h.clear()}),g.current)return ne.createElement(ne.Fragment,null,m.map(function(e){return ne.createElement(qd,{key:Zd(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=jo([],Mo(m),!1);for(var b=v.current.map(Zd),E=f.map(Zd),x=b.length,w=0;w<x;w++){var k=b[w];-1===E.indexOf(k)&&h.add(k)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,ne.createElement(qd,{key:Zd(t),isPresent:!1,onExitComplete:function(){y.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:ne.createElement(qd,{key:Zd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Do&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),ne.createElement(ne.Fragment,null,h.size?m:m.map(function(e){return ne.cloneElement(e)}))},Xd=(...e)=>e.filter(Boolean).join(" "),Kd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Jd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Qd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},ep={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},tp={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function np(e){switch((null==e?void 0:e.direction)??"right"){case"right":default:return Qd;case"left":return Jd;case"bottom":return tp;case"top":return ep}}var rp={enter:{duration:.2,ease:Kd.easeOut},exit:{duration:.1,ease:Kd.easeIn}},op=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),ap=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),ip={exit:{height:{duration:.2,ease:Kd.ease},opacity:{duration:.3,ease:Kd.ease}},enter:{height:{duration:.3,ease:Kd.ease},opacity:{duration:.4,ease:Kd.ease}}},sp={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:(null==n?void 0:n.exit)??ap(ip.exit,o)};var a},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:(null==n?void 0:n.enter)??op(ip.enter,o)})},lp=ne.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:u,...d}=e,[p,f]=ne.useState(!1);ne.useEffect(()=>{const e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:n}=e;t&&"production"!==process.env.NODE_ENV&&console.warn(n)})({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,h={startingHeight:a,endingHeight:i,animateOpacity:o,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:null==u?void 0:u.enter,exit:r?null==u?void 0:u.exit:{...null==u?void 0:u.exit,display:m?"block":"none"}}},v=n||r?"enter":"exit";/* @__PURE__ */
5
+ return ne.createElement(Gd,{initial:!1,custom:h},(!r||n)&&/* @__PURE__ */ne.createElement(Wd.div,{ref:t,...d,className:Xd("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:h,variants:sp,initial:!!r&&"exit",animate:v,exit:"exit"}))});lp.displayName="Collapse";var cp={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(null==e?void 0:e.enter)??op(rp.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(null==e?void 0:e.exit)??ap(rp.exit,n),transitionEnd:null==t?void 0:t.exit})},up={initial:"exit",animate:"enter",exit:"exit",variants:cp},dp=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:i,delay:s,...l}=e,c=r||n?"enter":"exit",u={transition:a,transitionEnd:i,delay:s};/* @__PURE__ */
6
+ return ne.createElement(Gd,{custom:u},(!n||r&&n)&&/* @__PURE__ */ne.createElement(Wd.div,{ref:t,className:Xd("chakra-fade",o),custom:u,...up,animate:c,...l}))});dp.displayName="Fade";var pp={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:(null==n?void 0:n.exit)??ap(rp.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(null==t?void 0:t.enter)??op(rp.enter,n),transitionEnd:null==e?void 0:e.enter})},fp={initial:"exit",animate:"enter",exit:"exit",variants:pp},mp=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:s,transitionEnd:l,delay:c,...u}=e,d=r||n?"enter":"exit",p={initialScale:a,reverse:o,transition:s,transitionEnd:l,delay:c};/* @__PURE__ */
7
+ return ne.createElement(Gd,{custom:p},(!n||r&&n)&&/* @__PURE__ */ne.createElement(Wd.div,{ref:t,className:Xd("chakra-offset-slide",i),...fp,animate:d,custom:p,...u}))});mp.displayName="ScaleFade";var hp={exit:{duration:.15,ease:Kd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},vp={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=np({direction:e});return{...o,transition:(null==t?void 0:t.exit)??ap(hp.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=np({direction:e});return{...o,transition:(null==n?void 0:n.enter)??op(hp.enter,r),transitionEnd:null==t?void 0:t.enter}}},yp=ne.forwardRef(function(e,t){const{direction:n="right",style:r,unmountOnExit:o,in:a,className:i,transition:s,transitionEnd:l,delay:c,motionProps:u,...d}=e,p=np({direction:n}),f=Object.assign({position:"fixed"},p.position,r),m=a||o?"enter":"exit",h={transitionEnd:l,transition:s,direction:n,delay:c};/* @__PURE__ */
8
+ return ne.createElement(Gd,{custom:h},(!o||a&&o)&&/* @__PURE__ */ne.createElement(Wd.div,{...d,ref:t,initial:"exit",className:Xd("chakra-slide",i),animate:m,exit:"exit",custom:h,variants:vp,style:f,...u}))});yp.displayName="Slide";var gp={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(null==n?void 0:n.exit)??ap(rp.exit,o),transitionEnd:null==r?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(null==e?void 0:e.enter)??op(rp.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{const i={x:t,y:e};return{opacity:0,transition:(null==n?void 0:n.exit)??ap(rp.exit,a),...o?{...i,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...i,...null==r?void 0:r.exit}}}}},bp={initial:"initial",animate:"enter",exit:"exit",variants:gp},Ep=ne.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:s=8,transition:l,transitionEnd:c,delay:u,...d}=e,p=r||n?"enter":"exit",f={offsetX:i,offsetY:s,reverse:o,transition:l,transitionEnd:c,delay:u};/* @__PURE__ */
9
+ return ne.createElement(Gd,{custom:f},(!n||r&&n)&&/* @__PURE__ */ne.createElement(Wd.div,{ref:t,className:Xd("chakra-offset-slide",a),custom:f,...bp,animate:p,...d}))});Ep.displayName="SlideFade";var xp=function(){var e=jr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wp=co((e,t)=>{const n=po("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=Rt(e),c=((...e)=>e.filter(Boolean).join(" "))("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${xp} ${a} linear infinite`,...n};/* @__PURE__ */
10
+ return ne.createElement(mo.div,{ref:t,__css:u,className:c,...l},r&&/* @__PURE__ */ne.createElement(mo.span,{srOnly:!0},r))});function kp(e){return ne.Children.toArray(e).filter(e=>ne.isValidElement(e))}wp.displayName="Spinner";var Sp=(...e)=>e.filter(Boolean).join(" "),Cp=e=>e?"":void 0,[_p,Op]=ho({strict:!1,name:"ButtonGroupContext"});function Np(e){const{children:t,className:n,...r}=e,o=ne.isValidElement(t)?ne.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=Sp("chakra-button__icon",n);/* @__PURE__ */
11
+ return ne.createElement(mo.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a},o)}function Ap(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=/* @__PURE__ */ne.createElement(wp,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=Sp("chakra-button__spinner",a),c="start"===n?"marginEnd":"marginStart",u=ne.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,c,r]);/* @__PURE__ */
12
+ return ne.createElement(mo.div,{className:l,...s,__css:u},o)}Np.displayName="ButtonIcon",Ap.displayName="ButtonSpinner";var Rp=co((e,t)=>{const n=Op(),r=po("Button",{...n,...e}),{isDisabled:o=(null==n?void 0:n.isDisabled),isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:p,spinner:f,spinnerPlacement:m="start",className:h,as:v,...y}=Rt(e),g=ne.useMemo(()=>{const e={...null==r?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:e}}},[r,n]),{ref:b,type:E}=function(e){const[t,n]=ne.useState(!e),r=ne.useCallback(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:r,type:t?"button":void 0}}(v),x={rightIcon:c,leftIcon:l,iconSpacing:d,children:s};/* @__PURE__ */
13
+ return ne.createElement(mo.button,{disabled:o||a,ref:yo(t,b),as:v,type:p??E,"data-active":Cp(i),"data-loading":Cp(a),__css:g,className:Sp("chakra-button",h),...y},a&&"start"===m&&/* @__PURE__ */ne.createElement(Ap,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d},f),a?u||/* @__PURE__ */ne.createElement(mo.span,{opacity:0},/* @__PURE__ */ne.createElement(Ip,{...x})):/* @__PURE__ */ne.createElement(Ip,{...x}),a&&"end"===m&&/* @__PURE__ */ne.createElement(Ap,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d},f))});function Ip(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;/* @__PURE__ */
14
+ return ne.createElement(ne.Fragment,null,t&&/* @__PURE__ */ne.createElement(Np,{marginEnd:o},t),r,n&&/* @__PURE__ */ne.createElement(Np,{marginStart:o},n))}Rp.displayName="Button",co(function(e,t){const{size:n,colorScheme:r,variant:o,className:a,spacing:i="0.5rem",isAttached:s,isDisabled:l,...c}=e,u=Sp("chakra-button__group",a),d=ne.useMemo(()=>({size:n,colorScheme:r,variant:o,isDisabled:l}),[n,r,o,l]);let p={display:"inline-flex"};return p=s?{...p,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{...p,"& > *:not(style) ~ *:not(style)":{marginStart:i}},/* @__PURE__ */ne.createElement(_p,{value:d},/* @__PURE__ */ne.createElement(mo.div,{ref:t,role:"group",__css:p,className:u,"data-attached":s?"":void 0,...c}))}).displayName="ButtonGroup";var Tp=co((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":a,...i}=e,s=n||r,l=ne.isValidElement(s)?ne.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/* @__PURE__ */
15
+ return ne.createElement(Rp,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i},l)});Tp.displayName="IconButton";var Lp=(...e)=>e.filter(Boolean).join(" "),Pp=e=>e?"":void 0,Mp=e=>!!e||void 0;function jp(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[Dp,Vp]=ho({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[Bp,Fp]=ho({strict:!1,name:"FormControlContext"}),zp=co(function(e,t){const n=fo("Form",e),r=Rt(e),{getRootProps:o,htmlProps:a,...i}=function(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...i}=e,s=ne.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[p,f]=ne.useState(!1),[m,h]=ne.useState(!1),[v,y]=ne.useState(!1),g=ne.useCallback((e={},t=null)=>({id:d,...e,ref:vo(t,e=>{e&&h(!0)})}),[d]),b=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-focus":Pp(v),"data-disabled":Pp(o),"data-invalid":Pp(r),"data-readonly":Pp(a),id:e.id??c,htmlFor:e.htmlFor??l}),[l,o,v,r,a,c]),E=ne.useCallback((e={},t=null)=>({id:u,...e,ref:vo(t,e=>{e&&f(!0)}),"aria-live":"polite"}),[u]),x=ne.useCallback((e={},t=null)=>({...e,...i,ref:t,role:"group"}),[i]),w=ne.useCallback((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:f,hasHelpText:m,setHasHelpText:h,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:i,getHelpTextProps:g,getErrorMessageProps:E,getRootProps:x,getLabelProps:b,getRequiredIndicatorProps:w}}(r),s=Lp("chakra-form-control",e.className);/* @__PURE__ */
16
+ return ne.createElement(Bp,{value:i},/* @__PURE__ */ne.createElement(Dp,{value:n},/* @__PURE__ */ne.createElement(mo.div,{...o({},t),className:s,__css:n.container})))});zp.displayName="FormControl";var $p=co(function(e,t){const n=Fp(),r=Vp(),o=Lp("chakra-form__helper-text",e.className);/* @__PURE__ */
17
+ return ne.createElement(mo.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});function Up(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=Wp(e);return{...a,disabled:t,readOnly:r,required:o,"aria-invalid":Mp(n),"aria-required":Mp(o),"aria-readonly":Mp(r)}}function Wp(e){const t=Fp(),{id:n,disabled:r,readOnly:o,required:a,isRequired:i,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...p}=e,f=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==t?void 0:t.hasFeedbackText)&&(null==t?void 0:t.isInvalid)&&f.push(t.feedbackId),(null==t?void 0:t.hasHelpText)&&f.push(t.helpTextId),{...p,"aria-describedby":f.join(" ")||void 0,id:n??(null==t?void 0:t.id),isDisabled:r??c??(null==t?void 0:t.isDisabled),isReadOnly:o??l??(null==t?void 0:t.isReadOnly),isRequired:a??i??(null==t?void 0:t.isRequired),isInvalid:s??(null==t?void 0:t.isInvalid),onFocus:jp(null==t?void 0:t.onFocus,u),onBlur:jp(null==t?void 0:t.onBlur,d)}}$p.displayName="FormHelperText";var[Hp,qp]=ho({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),Yp=co((e,t)=>{const n=fo("FormError",e),r=Rt(e),o=Fp();return(null==o?void 0:o.isInvalid)?/* @__PURE__ */ne.createElement(Hp,{value:n},/* @__PURE__ */ne.createElement(mo.div,{...null==o?void 0:o.getErrorMessageProps(r,t),className:Lp("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Yp.displayName="FormErrorMessage",co((e,t)=>{const n=qp(),r=Fp();if(!(null==r?void 0:r.isInvalid))return null;const o=Lp("chakra-form__error-icon",e.className);/* @__PURE__ */
18
+ return ne.createElement(Oo,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o},/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}).displayName="FormErrorIcon";var Zp=co(function(e,t){const n=po("FormLabel",e),r=Rt(e),{className:o,children:a,requiredIndicator:i=/* @__PURE__ */ne.createElement(Gp,null),optionalIndicator:s=null,...l}=r,c=Fp(),u=(null==c?void 0:c.getLabelProps(l,t))??{ref:t,...l};/* @__PURE__ */
19
+ return ne.createElement(mo.label,{...u,className:Lp("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...n}},a,(null==c?void 0:c.isRequired)?i:s)});Zp.displayName="FormLabel";var Gp=co(function(e,t){const n=Fp(),r=Vp();if(!(null==n?void 0:n.isRequired))return null;const o=Lp("chakra-form__required-indicator",e.className);/* @__PURE__ */
20
+ return ne.createElement(mo.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})});function Xp(e,t){const n=ne.useRef(!1),r=ne.useRef(!1);ne.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),ne.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}Gp.displayName="RequiredIndicator";var Kp={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};mo("span",{baseStyle:Kp}).displayName="VisuallyHidden",mo("input",{baseStyle:Kp}).displayName="VisuallyHiddenInput";var Jp=!1,Qp=null,ef=!1,tf=/* @__PURE__ */new Set,nf="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function rf(e,t){tf.forEach(n=>n(e,t))}function of(e){ef=!0,function(e){return!(e.metaKey||!nf&&e.altKey||e.ctrlKey)}(e)&&(Qp="keyboard",rf("keyboard",e))}function af(e){Qp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ef=!0,rf("pointer",e))}function sf(e){e.target!==window&&e.target!==document&&(ef||(Qp="keyboard",rf("keyboard",e)),ef=!1)}function lf(){ef=!1}function cf(){return"pointer"!==Qp}function uf(e){!function(){if("undefined"==typeof window||Jp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){ef=!0,e.apply(this,t)},document.addEventListener("keydown",of,!0),document.addEventListener("keyup",of,!0),window.addEventListener("focus",sf,!0),window.addEventListener("blur",lf,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",af,!0),document.addEventListener("pointermove",af,!0),document.addEventListener("pointerup",af,!0)):(document.addEventListener("mousedown",af,!0),document.addEventListener("mousemove",af,!0),document.addEventListener("mouseup",af,!0)),Jp=!0}(),e(cf());const t=()=>e(cf());return tf.add(t),()=>{tf.delete(t)}}var[df,pf]=ho({name:"CheckboxGroupContext",strict:!1}),ff=(...e)=>e.filter(Boolean).join(" "),mf=e=>e?"":void 0;function hf(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var vf=mo(Wd.svg);function yf(e){/* @__PURE__ */
21
+ return ne.createElement(vf,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e},/* @__PURE__ */ne.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function gf(e){/* @__PURE__ */
22
+ return ne.createElement(vf,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e},/* @__PURE__ */ne.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function bf({open:e,children:t}){/* @__PURE__ */
23
+ return ne.createElement(Gd,{initial:!1},e&&/* @__PURE__ */ne.createElement(Wd.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t))}function Ef(e){const{isIndeterminate:t,isChecked:n,...r}=e;/* @__PURE__ */
24
+ return ne.createElement(bf,{open:n||t},/* @__PURE__ */ne.createElement(t?gf:yf,{...r}))}function xf(e={}){const t=Wp(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:p,onChange:f,isIndeterminate:m,name:h,value:v,tabIndex:y,"aria-label":g,"aria-labelledby":b,"aria-invalid":E,...x}=e,w=function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),k=Ao(f),S=Ao(s),C=Ao(l),[_,O]=ne.useState(!1),[N,A]=ne.useState(!1),[R,I]=ne.useState(!1),[T,L]=ne.useState(!1);ne.useEffect(()=>uf(O),[]);const P=ne.useRef(null),[M,j]=ne.useState(!0),[D,V]=ne.useState(!!u),B=void 0!==d,F=B?d:D,z=ne.useCallback(e=>{r||n?e.preventDefault():(B||V(F?e.target.checked:!!m||e.target.checked),null==k||k(e))},[r,n,F,B,m,k]);oe(()=>{P.current&&(P.current.indeterminate=Boolean(m))},[m]),Xp(()=>{n&&A(!1)},[n,A]),oe(()=>{const e=P.current;(null==e?void 0:e.form)&&(e.form.onreset=()=>{V(!!u)})},[]);const $=n&&!p,U=ne.useCallback(e=>{" "===e.key&&L(!0)},[L]),W=ne.useCallback(e=>{" "===e.key&&L(!1)},[L]);oe(()=>{P.current&&P.current.checked!==F&&V(P.current.checked)},[P.current]);const H=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-active":mf(T),"data-hover":mf(R),"data-checked":mf(F),"data-focus":mf(N),"data-focus-visible":mf(N&&_),"data-indeterminate":mf(m),"data-disabled":mf(n),"data-invalid":mf(a),"data-readonly":mf(r),"aria-hidden":!0,onMouseDown:hf(e.onMouseDown,e=>{N&&e.preventDefault(),L(!0)}),onMouseUp:hf(e.onMouseUp,()=>L(!1)),onMouseEnter:hf(e.onMouseEnter,()=>I(!0)),onMouseLeave:hf(e.onMouseLeave,()=>I(!1))}),[T,F,n,N,_,R,m,a,r]),q=ne.useCallback((e={},t=null)=>({...w,...e,ref:vo(t,e=>{e&&j("LABEL"===e.tagName)}),onClick:hf(e.onClick,()=>{var e;M||(null==(e=P.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=P.current)||e.focus()}))}),"data-disabled":mf(n),"data-checked":mf(F),"data-invalid":mf(a)}),[w,n,F,a,M]),Y=ne.useCallback((e={},t=null)=>({...e,ref:vo(P,t),type:"checkbox",name:h,value:v,id:i,tabIndex:y,onChange:hf(e.onChange,z),onBlur:hf(e.onBlur,S,()=>A(!1)),onFocus:hf(e.onFocus,C,()=>A(!0)),onKeyDown:hf(e.onKeyDown,U),onKeyUp:hf(e.onKeyUp,W),required:o,checked:F,disabled:$,readOnly:r,"aria-label":g,"aria-labelledby":b,"aria-invalid":E?Boolean(E):a,"aria-describedby":c,"aria-disabled":n,style:Kp}),[h,v,i,z,S,C,U,W,o,F,$,r,g,b,E,a,c,n,y]),Z=ne.useCallback((e={},t=null)=>({...e,ref:t,onMouseDown:hf(e.onMouseDown,wf),onTouchStart:hf(e.onTouchStart,wf),"data-disabled":mf(n),"data-checked":mf(F),"data-invalid":mf(a)}),[F,n,a]);return{state:{isInvalid:a,isFocused:N,isChecked:F,isActive:T,isHovered:R,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:q,getCheckboxProps:H,getInputProps:Y,getLabelProps:Z,htmlProps:w}}function wf(e){e.preventDefault(),e.stopPropagation()}var kf={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Sf={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Cf=co(function(e,t){const n=pf(),r=fo("Checkbox",{...n,...e}),o=Rt(e),{spacing:a="0.5rem",className:i,children:s,iconColor:l,iconSize:c,icon:u=/* @__PURE__ */ne.createElement(Ef,null),isChecked:d,isDisabled:p=(null==n?void 0:n.isDisabled),onChange:f,inputProps:m,...h}=o;let v=d;(null==n?void 0:n.value)&&o.value&&(v=n.value.includes(o.value));let y=f;(null==n?void 0:n.onChange)&&o.value&&(y=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,f));const{state:g,getInputProps:b,getCheckboxProps:E,getLabelProps:x,getRootProps:w}=xf({...h,isDisabled:p,isChecked:v,onChange:y}),k=ne.useMemo(()=>({opacity:g.isChecked||g.isIndeterminate?1:0,transform:g.isChecked||g.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:c,color:l,...r.icon}),[l,c,g.isChecked,g.isIndeterminate,r.icon]),S=ne.cloneElement(u,{__css:k,isIndeterminate:g.isIndeterminate,isChecked:g.isChecked});/* @__PURE__ */
25
+ return ne.createElement(mo.label,{__css:{...Sf,...r.container},className:ff("chakra-checkbox",i),...w()},/* @__PURE__ */ne.createElement("input",{className:"chakra-checkbox__input",...b(m,t)}),/* @__PURE__ */ne.createElement(mo.span,{__css:{...kf,...r.control},className:"chakra-checkbox__control",...E()},S),s&&/* @__PURE__ */ne.createElement(mo.span,{className:"chakra-checkbox__label",...x(),__css:{marginStart:a,...r.label}},s))});function _f(e,t){let n=function(e){const t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function Of(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function Nf(e={}){const{onChange:t,precision:n,defaultValue:r,value:o,step:a=1,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,keepWithinRange:l=!0}=e,c=Ao(t),[u,d]=ne.useState(()=>null==r?"":If(r,a,n)??""),p=void 0!==o,f=p?o:u,m=Rf(Af(f),a),h=n??m,v=ne.useCallback(e=>{e!==f&&(p||d(e.toString()),null==c||c(e.toString(),Af(e)))},[c,p,f]),y=ne.useCallback(e=>{let t=e;return l&&(t=function(e,t,n){return null==e?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}(t,i,s)),_f(t,h)},[h,l,s,i]),g=ne.useCallback((e=a)=>{let t;t=""===f?Af(e):Af(f)+e,t=y(t),v(t)},[y,a,v,f]),b=ne.useCallback((e=a)=>{let t;t=""===f?Af(-e):Af(f)-e,t=y(t),v(t)},[y,a,v,f]),E=ne.useCallback(()=>{let e;e=null==r?"":If(r,a,n)??i,v(e)},[r,n,a,v,i]),x=ne.useCallback(e=>{const t=If(e,a,h)??i;v(t)},[h,a,v,i]),w=Af(f);return{isOutOfRange:w>s||w<i,isAtMax:w===s,isAtMin:w===i,precision:h,value:f,valueAsNumber:w,update:v,reset:E,increment:g,decrement:b,clamp:y,cast:x,setValue:d}}function Af(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Rf(e,t){return Math.max(Of(t),Of(e))}function If(e,t,n){const r=Af(e);if(Number.isNaN(r))return;const o=Rf(r,t);return _f(r,n??o)}function Tf(e,t,n,r){const o=Ao(n);return ne.useEffect(()=>{const a="function"==typeof e?e():e??document;if(n&&a)return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const n="function"==typeof e?e():e??document;null==n||n.removeEventListener(t,o,r)}}function Lf(...e){return ne.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})},e)}function Pf(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}Cf.displayName="Checkbox";var Mf=co(function(e,t){const{htmlSize:n,...r}=e,o=fo("Input",r),a=Up(Rt(r)),i=Co("chakra-input",e.className);/* @__PURE__ */
26
+ return ne.createElement(mo.input,{size:n,...a,__css:o.field,ref:t,className:i})});Mf.displayName="Input",Mf.id="Input";var[jf,Df]=ho({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),Vf=co(function(e,t){const n=fo("Input",e),{children:r,className:o,...a}=Rt(e),i=Co("chakra-input__group",o),s={},l=kp(r),c=n.field;l.forEach(e=>{n&&(c&&"InputLeftElement"===e.type.id&&(s.paddingStart=c.height??c.h),c&&"InputRightElement"===e.type.id&&(s.paddingEnd=c.height??c.h),"InputRightAddon"===e.type.id&&(s.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(s.borderStartRadius=0))});const u=l.map(t=>{var n,r;const o=Pf({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return ne.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,s,t.props))});/* @__PURE__ */
27
+ return ne.createElement(mo.div,{className:i,ref:t,__css:{width:"100%",display:"flex",position:"relative"},...a},/* @__PURE__ */ne.createElement(jf,{value:n},u))});Vf.displayName="InputGroup";var Bf={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Ff=mo("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),zf=co(function(e,t){const{placement:n="left",...r}=e,o=Bf[n]??{},a=Df();/* @__PURE__ */
28
+ return ne.createElement(Ff,{ref:t,...r,__css:{...a.addon,...o}})});zf.displayName="InputAddon";var $f=co(function(e,t){/* @__PURE__ */
29
+ return ne.createElement(zf,{ref:t,placement:"left",...e,className:Co("chakra-input__left-addon",e.className)})});$f.displayName="InputLeftAddon",$f.id="InputLeftAddon";var Uf=co(function(e,t){/* @__PURE__ */
30
+ return ne.createElement(zf,{ref:t,placement:"right",...e,className:Co("chakra-input__right-addon",e.className)})});Uf.displayName="InputRightAddon",Uf.id="InputRightAddon";var Wf=mo("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Hf=co(function(e,t){const{placement:n="left",...r}=e,o=Df(),a=o.field,i={["left"===n?"insetStart":"insetEnd"]:"0",width:(null==a?void 0:a.height)??(null==a?void 0:a.h),height:(null==a?void 0:a.height)??(null==a?void 0:a.h),fontSize:null==a?void 0:a.fontSize,...o.element};/* @__PURE__ */
31
+ return ne.createElement(Wf,{ref:t,__css:i,...r})});Hf.id="InputElement",Hf.displayName="InputElement";var qf=co(function(e,t){const{className:n,...r}=e,o=Co("chakra-input__left-element",n);/* @__PURE__ */
32
+ return ne.createElement(Hf,{ref:t,placement:"left",className:o,...r})});qf.id="InputLeftElement",qf.displayName="InputLeftElement";var Yf=co(function(e,t){const{className:n,...r}=e,o=Co("chakra-input__right-element",n);/* @__PURE__ */
33
+ return ne.createElement(Hf,{ref:t,placement:"right",className:o,...r})});function Zf(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):function(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}Yf.id="InputRightElement",Yf.displayName="InputRightElement",Object.freeze(["base","sm","md","lg","xl","2xl"]);var Gf=co(function(e,t){const{ratio:n=4/3,children:r,className:o,...a}=e,i=ne.Children.only(r),s=Co("chakra-aspect-ratio",o);/* @__PURE__ */
34
+ return ne.createElement(mo.div,{ref:t,position:"relative",className:s,_before:{height:0,content:'""',display:"block",paddingBottom:Zf(n,e=>1/e*100+"%")},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a},i)});Gf.displayName="AspectRatio",co(function(e,t){const n=po("Badge",e),{className:r,...o}=Rt(e);/* @__PURE__ */
35
+ return ne.createElement(mo.span,{ref:t,className:Co("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}).displayName="Badge";var Xf=mo("div");Xf.displayName="Box";var Kf=co(function(e,t){const{size:n,centerContent:r=!0,...o}=e;/* @__PURE__ */
36
+ return ne.createElement(Xf,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});Kf.displayName="Square",co(function(e,t){const{size:n,...r}=e;/* @__PURE__ */
37
+ return ne.createElement(Kf,{size:n,ref:t,borderRadius:"9999px",...r})}).displayName="Circle",mo("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}).displayName="Center";var Jf={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};co(function(e,t){const{axis:n="both",...r}=e;/* @__PURE__ */
38
+ return ne.createElement(mo.div,{ref:t,__css:Jf[n],...r,position:"absolute"})}),co(function(e,t){const n=po("Code",e),{className:r,...o}=Rt(e);/* @__PURE__ */
39
+ return ne.createElement(mo.code,{ref:t,className:Co("chakra-code",e.className),...o,__css:{display:"inline-block",...n}})}).displayName="Code",co(function(e,t){const{className:n,centerContent:r,...o}=Rt(e),a=po("Container",e);/* @__PURE__ */
40
+ return ne.createElement(mo.div,{ref:t,className:Co("chakra-container",n),...o,__css:{...a,...r&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}).displayName="Container",co(function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:a,borderWidth:i,borderStyle:s,borderColor:l,...c}=po("Divider",e),{className:u,orientation:d="horizontal",__css:p,...f}=Rt(e);/* @__PURE__ */
41
+ return ne.createElement(mo.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...{vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}}[d],...p},className:Co("chakra-divider",u)})}).displayName="Divider";var Qf=co(function(e,t){const{direction:n,align:r,justify:o,wrap:a,basis:i,grow:s,shrink:l,...c}=e;/* @__PURE__ */
42
+ return ne.createElement(mo.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l},...c})});Qf.displayName="Flex";var em=co(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:p,...f}=e;/* @__PURE__ */
43
+ return ne.createElement(mo.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p},...f})});function tm(e){return Zf(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}em.displayName="Grid",co(function(e,t){const{area:n,colSpan:r,colStart:o,colEnd:a,rowEnd:i,rowSpan:s,rowStart:l,...c}=e,u=Pf({gridArea:n,gridColumn:tm(r),gridRow:tm(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});/* @__PURE__ */
44
+ return ne.createElement(mo.div,{ref:t,__css:u,...c})}).displayName="GridItem",co(function(e,t){const n=po("Heading",e),{className:r,...o}=Rt(e);/* @__PURE__ */
45
+ return ne.createElement(mo.h2,{ref:t,className:Co("chakra-heading",e.className),...o,__css:n})}).displayName="Heading",co(function(e,t){const n=po("Mark",e),r=Rt(e);/* @__PURE__ */
46
+ return ne.createElement(Xf,{ref:t,...r,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...n}})}),co(function(e,t){const n=po("Kbd",e),{className:r,...o}=Rt(e);/* @__PURE__ */
47
+ return ne.createElement(mo.kbd,{ref:t,className:Co("chakra-kbd",r),...o,__css:{fontFamily:"mono",...n}})}).displayName="Kbd",co(function(e,t){const n=po("Link",e),{className:r,isExternal:o,...a}=Rt(e);/* @__PURE__ */
48
+ return ne.createElement(mo.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:Co("chakra-link",r),...a,__css:n})}).displayName="Link",co(function(e,t){const{isExternal:n,target:r,rel:o,className:a,...i}=e;/* @__PURE__ */
49
+ return ne.createElement(mo.a,{...i,ref:t,className:Co("chakra-linkbox__overlay",a),rel:n?"noopener noreferrer":o,target:n?"_blank":r,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),co(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
50
+ return ne.createElement(mo.div,{ref:t,position:"relative",...r,className:Co("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[nm,rm]=ho({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),om=co(function(e,t){const n=fo("List",e),{children:r,styleType:o="none",stylePosition:a,spacing:i,...s}=Rt(e),l=kp(r);/* @__PURE__ */
51
+ return ne.createElement(nm,{value:n},/* @__PURE__ */ne.createElement(mo.ul,{ref:t,listStyleType:o,listStylePosition:a,role:"list",__css:{...n.container,...i?{"& > *:not(style) ~ *:not(style)":{mt:i}}:{}},...s},l))});om.displayName="List",co((e,t)=>{const{as:n,...r}=e;/* @__PURE__ */
52
+ return ne.createElement(om,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList",co(function(e,t){const{as:n,...r}=e;/* @__PURE__ */
53
+ return ne.createElement(om,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})}).displayName="UnorderedList",co(function(e,t){const n=rm();/* @__PURE__ */
54
+ return ne.createElement(mo.li,{ref:t,...e,__css:n.item})}).displayName="ListItem",co(function(e,t){const n=rm();/* @__PURE__ */
55
+ return ne.createElement(Oo,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon";var am=co(function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:a,minChildWidth:i,...s}=e,l=oo(),c=i?function(e,t){return Zf(e,e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return e=>{const n=o.filter(Boolean),a=r.map((t,r)=>function(e,t,n){if(null==t)return t;const r=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return r(t)??r(n)??n}(e,`sizes.${t}`,n[r]??t));return Array.isArray(t)?a:a[0]}}(0,e,function(e){return"number"==typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(i,l):Zf(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);/* @__PURE__ */
56
+ return ne.createElement(em,{ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:c,...s})});am.displayName="SimpleGrid",mo("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}}).displayName="Spacer";var im="& > *:not(style) ~ *:not(style)",sm=e=>/* @__PURE__ */ne.createElement(mo.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});sm.displayName="StackItem";var lm=co((e,t)=>{const{isInline:n,direction:r,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:d,...p}=e,f=n?"row":r??"column",m=ne.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[im]:Zf(n,e=>r[e])}}({direction:f,spacing:i}),[f,i]),h=ne.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Zf(n,e=>r[e])}}({spacing:i,direction:f}),[i,f]),v=!!c,y=!d&&!v,g=ne.useMemo(()=>{const e=kp(l);return y?e:e.map((t,n)=>{const r=void 0!==t.key?t.key:n,o=n+1===e.length,a=d?/* @__PURE__ */ne.createElement(sm,{key:r},t):t;if(!v)return a;const i=ne.cloneElement(c,{__css:h});/* @__PURE__ */
57
+ return ne.createElement(ne.Fragment,{key:r},a,o?null:i)})},[c,h,v,y,d,l]),b=Co("chakra-stack",u);/* @__PURE__ */
58
+ return ne.createElement(mo.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:s,className:b,__css:v?{}:{[im]:m[im]},...p},g)});lm.displayName="Stack";var cm=co((e,t)=>/* @__PURE__ */ne.createElement(lm,{align:"center",...e,direction:"row",ref:t}));function um(e){return"number"==typeof e?`${e}px`:e}cm.displayName="HStack",co((e,t)=>/* @__PURE__ */ne.createElement(lm,{align:"center",...e,direction:"column",ref:t})).displayName="VStack",co(function(e,t){const n=po("Text",e),{className:r,align:o,decoration:a,casing:i,...s}=Rt(e),l=Pf({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/* @__PURE__ */
59
+ return ne.createElement(mo.p,{ref:t,className:Co("chakra-text",e.className),...l,...s,__css:n})}).displayName="Text";var dm=co(function(e,t){const{spacing:n="0.5rem",spacingX:r,spacingY:o,children:a,justify:i,direction:s,align:l,className:c,shouldWrapChildren:u,...d}=e,p=ne.useMemo(()=>{const{spacingX:e=n,spacingY:t=n}={spacingX:r,spacingY:o};return{"--chakra-wrap-x-spacing":t=>Zf(e,e=>um(pe("space",e)(t))),"--chakra-wrap-y-spacing":e=>Zf(t,t=>um(pe("space",t)(e))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:i,alignItems:l,flexDirection:s,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[n,r,o,i,l,s]),f=ne.useMemo(()=>u?ne.Children.map(a,(e,t)=>/* @__PURE__ */ne.createElement(pm,{key:t},e)):a,[a,u]);/* @__PURE__ */
60
+ return ne.createElement(mo.div,{ref:t,className:Co("chakra-wrap",c),overflow:"hidden",...d},/* @__PURE__ */ne.createElement(mo.ul,{className:"chakra-wrap__list",__css:p},f))});dm.displayName="Wrap";var pm=co(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
61
+ return ne.createElement(mo.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:Co("chakra-wrap__listitem",n),...r})});function fm(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function mm(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hm(e){return!!mm(e)&&e instanceof(e.ownerDocument.defaultView??window).HTMLElement}function vm(e){return mm(e)?e.ownerDocument:document}pm.displayName="WrapItem";var ym=e=>e.hasAttribute("tabindex");function gm(e){return!(!e.parentElement||!gm(e.parentElement))||e.hidden}function bm(e){if(!hm(e)||gm(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||ym(e)}var Em="top",xm="bottom",wm="right",km="left",Sm=[Em,xm,wm,km],Cm=/*#__PURE__*/Sm.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),_m=/*#__PURE__*/[].concat(Sm,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Om=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nm(e){return e?(e.nodeName||"").toLowerCase():null}function Am(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rm(e){return e instanceof Am(e).Element||e instanceof Element}function Im(e){return e instanceof Am(e).HTMLElement||e instanceof HTMLElement}function Tm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Am(e).ShadowRoot||e instanceof ShadowRoot)}function Lm(e){return e.split("-")[0]}var Pm=Math.max,Mm=Math.min,jm=Math.round;function Dm(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Im(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=jm(n.width)/i||1),a>0&&(o=jm(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Vm(e){var t=Dm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Bm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fm(e){return Am(e).getComputedStyle(e)}function zm(e){return["table","td","th"].indexOf(Nm(e))>=0}function $m(e){return((Rm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Um(e){return"html"===Nm(e)?e:e.assignedSlot||e.parentNode||(Tm(e)?e.host:null)||$m(e)}function Wm(e){return Im(e)&&"fixed"!==Fm(e).position?e.offsetParent:null}function Hm(e){for(var t=Am(e),n=Wm(e);n&&zm(n)&&"static"===Fm(n).position;)n=Wm(n);return n&&("html"===Nm(n)||"body"===Nm(n)&&"static"===Fm(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Im(e)&&"fixed"===Fm(e).position)return null;var n=Um(e);for(Tm(n)&&(n=n.host);Im(n)&&["html","body"].indexOf(Nm(n))<0;){var r=Fm(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function qm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ym(e,t,n){return Pm(e,Mm(t,n))}function Zm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Xm(e){return e.split("-")[1]}var Km={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=km,E=Em,x=window;if(c){var w=Hm(n),k="clientHeight",S="clientWidth";w===Am(n)&&"static"!==Fm(w=$m(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===Em||(o===km||o===wm)&&"end"===a)&&(E=xm,h-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,h*=l?1:-1),o!==km&&(o!==Em&&o!==xm||"end"!==a)||(b=wm,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var C,_=Object.assign({position:s},c&&Km),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:jm(e.x*n)/n||0,y:jm(t*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},_,l?((C={})[E]=g?"0":"",C[b]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",C):((t={})[E]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}var Qm={passive:!0},eh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Am(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Qm)}),s&&l.addEventListener("resize",n.update,Qm),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Qm)}),s&&l.removeEventListener("resize",n.update,Qm)}},data:{}},th={left:"right",right:"left",bottom:"top",top:"bottom"};function nh(e){return e.replace(/left|right|bottom|top/g,function(e){return th[e]})}var rh={start:"end",end:"start"};function oh(e){return e.replace(/start|end/g,function(e){return rh[e]})}function ah(e){var t=Am(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ih(e){return Dm($m(e)).left+ah(e).scrollLeft}function sh(e){var t=Fm(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function lh(e){return["html","body","#document"].indexOf(Nm(e))>=0?e.ownerDocument.body:Im(e)&&sh(e)?e:lh(Um(e))}function ch(e,t){var n;void 0===t&&(t=[]);var r=lh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Am(r),i=o?[a].concat(a.visualViewport||[],sh(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(ch(Um(i)))}function uh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dh(e,t){return"viewport"===t?uh(function(e){var t=Am(e),n=$m(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+ih(e),y:s}}(e)):Rm(t)?function(e){var t=Dm(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):uh(function(e){var t,n=$m(e),r=ah(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Pm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Pm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ih(e),l=-r.scrollTop;return"rtl"===Fm(o||n).direction&&(s+=Pm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}($m(e)))}function ph(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Lm(o):null,i=o?Xm(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Em:t={x:s,y:n.y-r.height};break;case xm:t={x:s,y:n.y+n.height};break;case wm:t={x:n.x+n.width,y:l};break;case km:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?qm(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function fh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Zm("number"!=typeof f?f:Gm(f,Sm)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=ch(Um(e)),n=["absolute","fixed"].indexOf(Fm(e).position)>=0&&Im(e)?Hm(e):e;return Rm(n)?t.filter(function(e){return Rm(e)&&Bm(e,n)&&"body"!==Nm(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=dh(e,n);return t.top=Pm(r.top,t.top),t.right=Mm(r.right,t.right),t.bottom=Mm(r.bottom,t.bottom),t.left=Pm(r.left,t.left),t},dh(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Rm(v)?v:v.contextElement||$m(e.elements.popper),a,s),g=Dm(e.elements.reference),b=ph({reference:g,element:h,strategy:"absolute",placement:r}),E=uh(Object.assign({},h,b)),x="popper"===c?E:g,w={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[wm,xm].indexOf(e)>=0?1:-1,n=[Em,xm].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function mh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?_m:i,l=Xm(t.placement),c=l?a?Cm:Cm.filter(function(e){return Xm(e)===l}):Sm,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,a){return t[a]=fh(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[Lm(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var hh={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,y=Lm(v),g=l||(y!==v&&m?function(e){if("auto"===Lm(e))return[];var t=nh(e);return[oh(e),t,oh(t)]}(v):[nh(v)]),b=[v].concat(g).reduce(function(e,n){return e.concat("auto"===Lm(n)?mh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var _=b[C],O=Lm(_),N="start"===Xm(_),A=[Em,xm].indexOf(O)>=0,R=A?"width":"height",I=fh(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=A?N?wm:km:N?xm:Em;E[R]>x[R]&&(T=nh(T));var L=nh(T),P=[];if(a&&P.push(I[O]<=0),s&&P.push(I[T]<=0,I[L]<=0),P.every(function(e){return e})){S=_,k=!1;break}w.set(_,P)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yh(e){return[Em,wm,xm,km].some(function(t){return e[t]>=0})}var gh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=_m.reduce(function(e,n){return e[n]=function(e,t,n){var r=Lm(e),o=[km,Em].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[km,wm].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},bh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.tether,c=void 0===l||l,u=n.tetherOffset,d=void 0===u?0:u,p=fh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),f=Lm(t.placement),m=Xm(t.placement),h=!m,v=qm(f),y="x"===v?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,_="y"===v?Em:km,O="y"===v?xm:wm,N="y"===v?"height":"width",A=g[v],R=A+p[_],I=A-p[O],T=c?-E[N]/2:0,L="start"===m?b[N]:E[N],P="start"===m?-E[N]:-b[N],M=t.elements.arrow,j=c&&M?Vm(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[_],B=D[O],F=Ym(0,b[N],j[N]),z=h?b[N]/2-T-F-V-w.mainAxis:L-F-V-w.mainAxis,$=h?-b[N]/2+T+F+B+w.mainAxis:P+F+B+w.mainAxis,U=t.elements.arrow&&Hm(t.elements.arrow),W=null!=(C=null==k?void 0:k[v])?C:0,H=A+$-W,q=Ym(c?Mm(R,A+z-W-(U?"y"===v?U.clientTop||0:U.clientLeft||0:0)):R,A,c?Pm(I,H):I);g[v]=q,S[v]=q-A}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+p["x"===v?Em:km],K=Z-p["x"===v?xm:wm],J=-1!==[Em,km].indexOf(f),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+w.altAxis,te=J?Z+b[G]+E[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Ym(e,t,n);return r>n?n:r}(ee,Z,te):Ym(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function Eh(e,t,n){void 0===n&&(n=!1);var r=Im(t),o=Im(t)&&function(e){var t=e.getBoundingClientRect(),n=jm(t.width)/e.offsetWidth||1,r=jm(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=$m(t),i=Dm(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Nm(t)||sh(a))&&(s=function(e){return e!==Am(e)&&Im(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ah(e);var t}(t)),Im(t)?((l=Dm(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ih(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function xh(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function wh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var kh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Sh=["name","enabled","phase","fn","effect","requires","options"],Ch="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",_h={placement:"bottom",modifiers:[],strategy:"absolute"};function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Nh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?_h:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},_h,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:Rm(e)?ch(e):e.contextElement?ch(e.contextElement):[],popper:ch(t)};var i,c,p,f=function(e){var t=xh(e);return Om.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),Sh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(wh(kh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(wh(kh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Om.indexOf(t.phase)<0&&console.error(wh(kh,t.name,'"phase"',"either "+Om.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(wh(kh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(wh(kh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(wh(kh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(wh(kh,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Sh.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(wh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===Lm(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var h=Fm(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Oh(t,n)){s.rects={reference:Eh(t,Hm(n),"fixed"===s.options.strategy),popper:Vm(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(Ch)}},update:(a=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(a())})})),i}),destroy:function(){d(),c=!0}};if(!Oh(e,t))return"production"!==process.env.NODE_ENV&&console.error(Ch),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Ah=/*#__PURE__*/Nh({defaultModifiers:[eh,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ph({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Fm(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return c.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Lm(t.placement),variation:Xm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Jm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Im(o)&&Nm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Im(r)&&Nm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},gh,hh,bh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Lm(n.placement),l=qm(s),c=[km,wm].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Zm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gm(e,Sm))}(o.padding,n),d=Vm(a),p="y"===l?Em:km,f="y"===l?xm:wm,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=Hm(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=y/2-d[c]/2+(m/2-h/2),b=Ym(u[p],g,y-d[c]-u[f]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Im(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Bm(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=fh(t,{elementContext:"reference"}),s=fh(t,{altBoundary:!0}),l=vh(i,r),c=vh(s,o,a),u=yh(l),d=yh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Rh=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ih={arrowShadowColor:Rh("--popper-arrow-shadow-color"),arrowSize:Rh("--popper-arrow-size","8px"),arrowSizeHalf:Rh("--popper-arrow-size-half"),arrowBg:Rh("--popper-arrow-bg"),transformOrigin:Rh("--popper-transform-origin"),arrowOffset:Rh("--popper-arrow-offset")},Th={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Lh={scroll:!0,resize:!0};function Ph(e){let t;return t="object"==typeof e?{enabled:!0,options:{...Lh,...e}}:{enabled:e,options:Lh},t}var Mh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},jh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Dh(e)},effect:({state:e})=>()=>{Dh(e)}},Dh=e=>{e.elements.popper.style.setProperty(Ih.transformOrigin.var,Th[e.placement])},Vh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Bh(e)}},Bh=e=>{var t;if(!e.placement)return;const n=Fh(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Ih.arrowSize.varRef,height:Ih.arrowSize.varRef,zIndex:-1});const t={[Ih.arrowSizeHalf.var]:`calc(${Ih.arrowSize.varRef} / 2)`,[Ih.arrowOffset.var]:`calc(${Ih.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},Fh=e=>e.startsWith("top")?{property:"bottom",value:Ih.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:Ih.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:Ih.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:Ih.arrowOffset.varRef}:void 0,zh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{$h(e)},effect:({state:e})=>()=>{$h(e)}},$h=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");var n;t&&Object.assign(t.style,{transform:"rotate(45deg)",background:Ih.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(n=e.placement,n.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})},Uh={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Wh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Hh(e){const{size:t,shadowColor:n,bg:r,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function qh(e,t){var n;const r=e.target;return!(e.button>0||r&&!Yh(r).contains(r)||(null==(n=t.current)?void 0:n.contains(r)))}function Yh(e){return(null==e?void 0:e.ownerDocument)??document}var Zh=(...e)=>e.filter(Boolean).join(" ");function Gh(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function Xh(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}var[Kh,Jh,Qh,ev]=So(),[tv,nv]=ho({strict:!1,name:"MenuContext"});function rv(e){return(null==e?void 0:e.ownerDocument)??document}function ov(e){return rv(e).activeElement===e}function av(e){var t,n;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(n=e)&&n instanceof(n.ownerDocument.defaultView??window).HTMLElement&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function iv(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:a,isDisabled:i,isFocusable:s,closeOnSelect:l,type:c,...u}=e,d=nv(),{setFocusedIndex:p,focusedIndex:f,closeOnSelect:m,onClose:h,menuRef:v,isOpen:y,menuId:g}=d,b=ne.useRef(null),E=`${g}-menuitem-${ne.useId()}`,{index:x,register:w}=ev({disabled:i&&!s}),k=ne.useCallback(e=>{null==n||n(e),i||p(x)},[p,x,i,n]),S=ne.useCallback(e=>{null==r||r(e),b.current&&!ov(b.current)&&k(e)},[k,r]),C=ne.useCallback(e=>{null==o||o(e),i||p(-1)},[p,i,o]),_=ne.useCallback(e=>{null==a||a(e),av(e.currentTarget)&&(l??m)&&h()},[h,a,m,l]),O=x===f,N=i&&!s;Xp(()=>{y&&(O&&!N&&b.current?requestAnimationFrame(()=>{var e;null==(e=b.current)||e.focus()}):v.current&&!ov(v.current)&&v.current.focus())},[O,N,v,y]);const A=function(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:p,onMouseLeave:f,...m}=e,[h,v]=ne.useState(!0),[y,g]=ne.useState(!1),b=function(){const e=ne.useRef(/* @__PURE__ */new Map),t=e.current,n=ne.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=ne.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return ne.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=h?d:d||0,x=n&&!r,w=ne.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),k=ne.useCallback(e=>{y&&fm(e)&&(e.preventDefault(),e.stopPropagation(),g(!1),b.remove(document,"keyup",k,!1))},[y,b]),S=ne.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!fm(e.nativeEvent)||h)return;const t=o&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),g(!0)),t&&(e.preventDefault(),e.currentTarget.click()),b.add(document,"keyup",k,!1)},[n,h,c,o,a,b,k]),C=ne.useCallback(e=>{null==u||u(e),n||e.defaultPrevented||e.metaKey||fm(e.nativeEvent)&&!h&&a&&" "===e.key&&(e.preventDefault(),g(!1),e.currentTarget.click())},[a,h,n,u]),_=ne.useCallback(e=>{0===e.button&&(g(!1),b.remove(document,"mouseup",_,!1))},[b]),O=ne.useCallback(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();h||g(!0),e.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",_,!1),null==i||i(e)}},[n,h,i,b,_]),N=ne.useCallback(e=>{0===e.button&&(h||g(!1),null==s||s(e))},[s,h]),A=ne.useCallback(e=>{n?e.preventDefault():null==p||p(e)},[n,p]),R=ne.useCallback(e=>{y&&(e.preventDefault(),g(!1)),null==f||f(e)},[y,f]),I=vo(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return h?{...m,ref:I,type:"button","aria-disabled":x?void 0:n,disabled:x,onClick:w,onMouseDown:i,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:p,onMouseLeave:f}:{...m,ref:I,role:"button","data-active":(T=y,T?"":void 0),"aria-disabled":n?"true":void 0,tabIndex:x?void 0:E,onClick:w,onMouseDown:O,onMouseUp:N,onKeyUp:C,onKeyDown:S,onMouseOver:A,onMouseLeave:R};var T}({onClick:_,onMouseEnter:k,onMouseMove:S,onMouseLeave:C,ref:vo(w,b,t),isDisabled:i,isFocusable:s});return{...u,...A,type:c??A.type,id:E,role:"menuitem",tabIndex:O?0:-1}}var[sv,lv]=ho({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),cv=e=>{const{children:t}=e,n=fo("Menu",e),r=Rt(e),{direction:o}=oo(),{descendants:a,...i}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:a,isOpen:i,defaultIsOpen:s,onClose:l,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:f=!1,...m}=e,h=ne.useRef(null),v=ne.useRef(null),y=Qh(),g=ne.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!1})})},[]),b=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.firstEnabled();e&&N(e.index)});L.current.add(e)},[y]),E=ne.useCallback(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&N(e.index)});L.current.add(e)},[y]),x=ne.useCallback(()=>{null==c||c(),o?b():g()},[o,b,g,c]),{isOpen:w,onOpen:k,onClose:S,onToggle:C}=function(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=Ao(n),i=Ao(t),[s,l]=ne.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=ne.useId(),p=o??`disclosure-${d}`,f=ne.useCallback(()=>{u||l(!1),null==i||i()},[u,i]),m=ne.useCallback(()=>{u||l(!0),null==a||a()},[u,a]),h=ne.useCallback(()=>{c?f():m()},[c,m,f]);return{isOpen:c,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),h()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}({isOpen:i,defaultIsOpen:s,onClose:l,onOpen:x});!function(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Ao(n),a=ne.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;ne.useEffect(()=>{if(!r)return;const e=e=>{qh(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&qh(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&qh(e,t)&&(a.isPointerDown=!1,o(e))},l=Yh(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,a,r])}({enabled:w&&r,ref:h,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||S()}});const _=function(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:p,direction:f="ltr"}=e,m=ne.useRef(null),h=ne.useRef(null),v=ne.useRef(null),y=function(e,t="ltr"){var n;const r=(null==(n=Uh[e])?void 0:n[t])||e;return"ltr"===t?r:Wh[e]??r}(r,f),g=ne.useRef(()=>{}),b=ne.useCallback(()=>{var e;t&&m.current&&h.current&&(null==(e=g.current)||e.call(g),v.current=Ah(m.current,h.current,{placement:y,modifiers:[zh,Vh,jh,{...Mh,enabled:!!p},{name:"eventListeners",...Ph(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...n??[]],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)},[y,t,n,p,i,a,s,l,c,d,u,o]);ne.useEffect(()=>()=>{var e;m.current||h.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const E=ne.useCallback(e=>{m.current=e,b()},[b]),x=ne.useCallback((e={},t=null)=>({...e,ref:vo(E,t)}),[E]),w=ne.useCallback(e=>{h.current=e,b()},[b]),k=ne.useCallback((e={},t=null)=>({...e,ref:vo(w,t),style:{...e.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,p]),S=ne.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:a,...i}=e;return{...i,ref:t,"data-popper-arrow":"",style:Hh(e)}},[]),C=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:Ih.transformOrigin.varRef,referenceRef:E,popperRef:w,getPopperProps:k,getArrowProps:S,getArrowInnerProps:C,getReferenceProps:x}}({...m,enabled:w||f,placement:u,direction:p}),[O,N]=ne.useState(-1);Xp(()=>{w||N(-1)},[w]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,a=n&&!r;Xp(()=>{if(!a)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return vm(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&hm(r)&&bm(r))||(e=>ym(e)&&-1===e.tabIndex)(r)));var r}(e))return;const t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(h,{focusRef:v,visible:w,shouldFocus:!0});const A=function(e){const{isOpen:t,ref:n}=e,[r,o]=ne.useState(t),[a,i]=ne.useState(!1);return ne.useEffect(()=>{a||(o(t),i(!0))},[t,a,r]),Tf(()=>n.current,"animationend",()=>{o(t)}),{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t;return(null==(t=vm(e))?void 0:t.defaultView)??window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:w,ref:h}),[R,I]=function(e,...t){const n=ne.useId(),r=e||n;return ne.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(t,"menu-button","menu-list"),T=ne.useCallback(()=>{k(),g()},[k,g]),L=ne.useRef(/* @__PURE__ */new Set([]));!function(e,t=[]){ne.useEffect(()=>()=>e(),t)}(()=>{L.current.forEach(e=>clearTimeout(e)),L.current.clear()});const P=ne.useCallback(()=>{k(),b()},[b,k]),M=ne.useCallback(()=>{k(),E()},[k,E]),j=ne.useCallback(()=>{var e,t;const n=rv(h.current),r=null==(e=h.current)?void 0:e.contains(n.activeElement);if(!w||r)return;const o=null==(t=y.item(O))?void 0:t.node;null==o||o.focus()},[w,O,y]);return{openAndFocusMenu:T,openAndFocusFirstItem:P,openAndFocusLastItem:M,onTransitionEnd:j,unstable__animationState:A,descendants:y,popper:_,buttonId:R,menuId:I,forceUpdate:_.forceUpdate,orientation:"vertical",isOpen:w,onToggle:C,onOpen:k,onClose:S,menuRef:h,buttonRef:v,focusedIndex:O,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:N,isLazy:a,lazyBehavior:d}}({...r,direction:o}),s=ne.useMemo(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:u}=s;/* @__PURE__ */
62
+ return ne.createElement(Kh,{value:a},/* @__PURE__ */ne.createElement(tv,{value:s},/* @__PURE__ */ne.createElement(sv,{value:n},function(e,...t){return"function"==typeof e?e(...t):e}(t,{isOpen:l,onClose:c,forceUpdate:u}))))};cv.displayName="Menu";var uv=co((e,t)=>{const n=lv();/* @__PURE__ */
63
+ return ne.createElement(mo.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),dv=co((e,t)=>{const{children:n,as:r,...o}=e,a=function(e={},t=null){const n=nv(),{onToggle:r,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=n,s=ne.useCallback(e=>{const t={Enter:a,ArrowDown:a,ArrowUp:i}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,i]);return{...e,ref:vo(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(l=n.isOpen,l?"":void 0),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Gh(e.onClick,r),onKeyDown:Gh(e.onKeyDown,s)};var l}(o,t);/* @__PURE__ */
64
+ return ne.createElement(r||uv,{...a,className:Zh("chakra-menu__menu-button",e.className)},/* @__PURE__ */ne.createElement(mo.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});dv.displayName="MenuButton";var pv=co((e,t)=>{const n=lv();/* @__PURE__ */
65
+ return ne.createElement(mo.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});pv.displayName="MenuCommand";var fv=co((e,t)=>{const{title:n,children:r,className:o,...a}=e,i=Zh("chakra-menu__group__title",o),s=lv();/* @__PURE__ */
66
+ return ne.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/* @__PURE__ */ne.createElement(mo.p,{className:i,...a,__css:s.groupTitle},n),r)});fv.displayName="MenuGroup";var mv=e=>{const{className:t,children:n,...r}=e,o=ne.Children.only(n),a=ne.isValidElement(o)?ne.cloneElement(o,{focusable:"false","aria-hidden":!0,className:Zh("chakra-menu__icon",o.props.className)}):null,i=Zh("chakra-menu__icon-wrapper",t);/* @__PURE__ */
67
+ return ne.createElement(mo.span,{className:i,...r,__css:{flexShrink:0}},a)};mv.displayName="MenuIcon";var hv=co((e,t)=>{const{type:n,...r}=e,o=lv(),a=r.as||n?n??void 0:"button",i=ne.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);/* @__PURE__ */
68
+ return ne.createElement(mo.button,{ref:t,type:a,...r,__css:i})}),vv=e=>/* @__PURE__ */ne.createElement("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e},/* @__PURE__ */ne.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})),yv=co((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",...o}=e,a=function(e={},t=null){const{type:n="radio",isChecked:r,...o}=e;return{...iv(o,t),role:`menuitem${n}`,"aria-checked":r}}(o,t);/* @__PURE__ */
69
+ return ne.createElement(hv,{...a,className:Zh("chakra-menu__menuitem-option",o.className)},null!==n&&/* @__PURE__ */ne.createElement(mv,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||/* @__PURE__ */ne.createElement(vv,null)),/* @__PURE__ */ne.createElement("span",{style:{flex:1}},a.children))});yv.id="MenuItemOption",yv.displayName="MenuItemOption",co((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:a="0.75rem",children:i,...s}=e,l=iv(s,t),c=n||o?/* @__PURE__ */ne.createElement("span",{style:{pointerEvents:"none",flex:1}},i):i;/* @__PURE__ */
70
+ return ne.createElement(hv,{...l,className:Zh("chakra-menu__menuitem",l.className)},n&&/* @__PURE__ */ne.createElement(mv,{fontSize:"0.8em",marginEnd:r},n),c,o&&/* @__PURE__ */ne.createElement(pv,{marginStart:a},o))}).displayName="MenuItem";var gv={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},bv=mo(Wd.div),Ev=co(function(e,t){var n;const{rootProps:r,motionProps:o,...a}=e,{isOpen:i,onTransitionEnd:s,unstable__animationState:l}=nv(),c=function(e={},t=null){const n=nv();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:o,menuRef:a,isOpen:i,onClose:s,menuId:l,isLazy:c,lazyBehavior:u,unstable__animationState:d}=n,p=Jh(),f=function(e={}){const{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=ne.useState([]),a=ne.useRef(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return ne.useEffect(()=>i,[]),function(e){return s=>{if("Backspace"===s.key){const e=[...r];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){const l=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(l),e(l.join("")),i(),a.current=setTimeout(()=>{o([]),a.current=null},t)}}}}({preventDefault:e=>" "!==e.key&&av(e.target)}),m=ne.useCallback(e=>{const t={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{const e=p.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{const e=p.prevEnabled(r);e&&o(e.index)}},n=t[e.key];if(n)return e.preventDefault(),void n(e);const a=f(e=>{const t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(r)?(t=o.indexOf(r)+1,t===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return r}(p.values(),e,e=>{var t;return(null==(t=null==e?void 0:e.node)?void 0:t.textContent)??""},p.item(r));if(t){const e=p.indexOf(t.node);o(e)}});av(e.target)&&a(e)},[p,r,f,s,o]),h=ne.useRef(!1);i&&(h.current=!0);const v=function(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!n||!!r||!("keepMounted"!==o||!t)}({wasSelected:h.current,enabled:c,mode:u,isSelected:d.present});return{...e,ref:vo(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Gh(e.onKeyDown,m)}}(a,t),u=function(e={}){const{popper:t,isOpen:n}=nv();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(r),d=lv();/* @__PURE__ */
71
+ return ne.createElement(mo.div,{...u,__css:{zIndex:e.zIndex??(null==(n=d.list)?void 0:n.zIndex)}},/* @__PURE__ */ne.createElement(bv,{variants:gv,initial:!1,animate:i?"enter":"exit",__css:{outline:0,...d.list},...o,className:Zh("chakra-menu__menu-list",c.className),...c,onUpdate:s,onAnimationComplete:Xh(l.onComplete,c.onAnimationComplete)}))});Ev.displayName="MenuList";var xv=e=>{const{className:t,title:n,...r}=e,o=function(e={}){const{children:t,type:n="radio",value:r,defaultValue:o,onChange:a,...i}=e,s="radio"===n?"":[],[l,c]=Ro({defaultValue:o??s,value:r,onChange:a}),u=ne.useCallback(e=>{if("radio"===n&&"string"==typeof l&&c(e),"checkbox"===n&&Array.isArray(l)){const t=l.includes(e)?l.filter(t=>t!==e):l.concat(e);c(t)}},[l,c,n]);return{...i,children:kp(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;const t="radio"===n?e.props.value===l:l.includes(e.props.value);return ne.cloneElement(e,{type:n,onClick:t=>{var n,r;u(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})})}}(r);/* @__PURE__ */
72
+ return ne.createElement(fv,{title:n,className:Zh("chakra-menu__option-group",t),...o})};xv.displayName="MenuOptionGroup";var wv=(...e)=>e.filter(Boolean).join(" "),kv=e=>!!e||void 0;function Sv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var Cv=e=>/* @__PURE__ */ne.createElement(Oo,{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})),_v=e=>/* @__PURE__ */ne.createElement(Oo,{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}));function Ov(e,t,n,r){ne.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,a=Array.isArray(t)?t:[t],i=new o.MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&n(t)});return i.observe(e.current,{attributes:!0,attributeFilter:a}),()=>i.disconnect()})}var Nv=/^[Ee0-9+\-.]$/;function Av(e){return Nv.test(e)}var[Rv,Iv]=ho({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<NumberInput />\" "}),[Tv,Lv]=ho({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Pv=co(function(e,t){const n=fo("NumberInput",e),r=Wp(Rt(e)),{htmlProps:o,...a}=function(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:i=1,isReadOnly:s,isDisabled:l,isRequired:c,isInvalid:u,pattern:d="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:f,id:m,onChange:h,precision:v,name:y,"aria-describedby":g,"aria-label":b,"aria-labelledby":E,onFocus:x,onBlur:w,onInvalid:k,getAriaValueText:S,isValidCharacter:C,format:_,parse:O,...N}=e,A=Ao(x),R=Ao(w),I=Ao(k),T=Ao(C??Av),L=Ao(S),P=Nf(e),{update:M,increment:j,decrement:D}=P,[V,B]=ne.useState(!1),F=!(s||l),z=ne.useRef(null),$=ne.useRef(null),U=ne.useRef(null),W=ne.useRef(null),H=ne.useCallback(e=>e.split("").filter(T).join(""),[T]),q=ne.useCallback(e=>(null==O?void 0:O(e))??e,[O]),Y=ne.useCallback(e=>((null==_?void 0:_(e))??e).toString(),[_]);Xp(()=>{(P.valueAsNumber>a||P.valueAsNumber<o)&&(null==I||I("rangeOverflow",Y(P.value),P.valueAsNumber))},[P.valueAsNumber,P.value,Y,I]),oe(()=>{if(z.current&&z.current.value!=P.value){const e=q(z.current.value);P.setValue(H(e))}},[q,H]);const Z=ne.useCallback((e=i)=>{F&&j(e)},[j,F,i]),G=ne.useCallback((e=i)=>{F&&D(e)},[D,F,i]),X=function(e,t){const[n,r]=ne.useState(!1),[o,a]=ne.useState(null),[i,s]=ne.useState(!0),l=ne.useRef(null),c=()=>clearTimeout(l.current);!function(n,r){const a=Ao(()=>{"increment"===o&&e(),"decrement"===o&&t()});ne.useEffect(()=>{let e=null;return null!==r&&(e=window.setInterval(()=>a(),r)),()=>{e&&window.clearInterval(e)}},[r,a])}(0,n?50:null);const u=ne.useCallback(()=>{i&&e(),l.current=setTimeout(()=>{s(!1),r(!0),a("increment")},300)},[e,i]),d=ne.useCallback(()=>{i&&t(),l.current=setTimeout(()=>{s(!1),r(!0),a("decrement")},300)},[t,i]),p=ne.useCallback(()=>{s(!0),r(!1),c()},[]);return ne.useEffect(()=>()=>c(),[]),{up:u,down:d,stop:p,isSpinning:n}}(Z,G);Ov(U,"disabled",X.stop,X.isSpinning),Ov(W,"disabled",X.stop,X.isSpinning);const K=ne.useCallback(e=>{if(e.nativeEvent.isComposing)return;const t=q(e.currentTarget.value);M(H(t)),$.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}},[M,H,q]),J=ne.useCallback(e=>{var t;null==A||A(e),$.current&&(e.target.selectionStart=$.current.start??(null==(t=e.currentTarget.value)?void 0:t.length),e.currentTarget.selectionEnd=$.current.end??e.currentTarget.selectionStart)},[A]),Q=ne.useCallback(e=>{if(e.nativeEvent.isComposing)return;(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,T)||e.preventDefault();const t=ee(e)*i,n={ArrowUp:()=>Z(t),ArrowDown:()=>G(t),Home:()=>M(o),End:()=>M(a)}[e.key];n&&(e.preventDefault(),n(e))},[T,i,Z,G,M,o,a]),ee=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},te=ne.useMemo(()=>{const e=null==L?void 0:L(P.value);return null!=e?e:P.value.toString()||void 0},[P.value,L]),re=ne.useCallback(()=>{let e=P.value;""!==P.value&&(/^[eE]/.test(P.value.toString())?P.setValue(""):(P.valueAsNumber<o&&(e=o),P.valueAsNumber>a&&(e=a),P.cast(e)))},[P,a,o]),ae=ne.useCallback(()=>{B(!1),n&&re()},[n,B,re]),ie=ne.useCallback(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=z.current)||e.focus()})},[t]),se=ne.useCallback(e=>{e.preventDefault(),X.up(),ie()},[ie,X]),le=ne.useCallback(e=>{e.preventDefault(),X.down(),ie()},[ie,X]);Tf(()=>z.current,"wheel",e=>{var t;const n=(null==(t=z.current)?void 0:t.ownerDocument)??document;if(!f||n.activeElement!==z.current)return;e.preventDefault();const r=ee(e)*i,o=Math.sign(e.deltaY);-1===o?Z(r):1===o&&G(r)},{passive:!1});const ce=ne.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMax;return{...e,ref:vo(t,U),role:"button",tabIndex:-1,onPointerDown:Sv(e.onPointerDown,e=>{0!==e.button||n||se(e)}),onPointerLeave:Sv(e.onPointerLeave,X.stop),onPointerUp:Sv(e.onPointerUp,X.stop),disabled:n,"aria-disabled":kv(n)}},[P.isAtMax,r,se,X.stop,l]),ue=ne.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMin;return{...e,ref:vo(t,W),role:"button",tabIndex:-1,onPointerDown:Sv(e.onPointerDown,e=>{0!==e.button||n||le(e)}),onPointerLeave:Sv(e.onPointerLeave,X.stop),onPointerUp:Sv(e.onPointerUp,X.stop),disabled:n,"aria-disabled":kv(n)}},[P.isAtMin,r,le,X.stop,l]),de=ne.useCallback((e={},t=null)=>({name:y,inputMode:p,type:"text",pattern:d,"aria-labelledby":E,"aria-label":b,"aria-describedby":g,id:m,disabled:l,...e,readOnly:e.readOnly??s,"aria-readonly":e.readOnly??s,"aria-required":e.required??c,required:e.required??c,ref:vo(z,t),value:Y(P.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Number.isNaN(P.valueAsNumber)?void 0:P.valueAsNumber,"aria-invalid":kv(u??P.isOutOfRange),"aria-valuetext":te,autoComplete:"off",autoCorrect:"off",onChange:Sv(e.onChange,K),onKeyDown:Sv(e.onKeyDown,Q),onFocus:Sv(e.onFocus,J,()=>B(!0)),onBlur:Sv(e.onBlur,R,ae)}),[y,p,d,E,b,Y,g,m,l,c,s,u,P.value,P.valueAsNumber,P.isOutOfRange,o,a,te,K,Q,J,R,ae]);return{value:Y(P.value),valueAsNumber:P.valueAsNumber,isFocused:V,isDisabled:l,isReadOnly:s,getIncrementButtonProps:ce,getDecrementButtonProps:ue,getInputProps:de,htmlProps:N}}(r),i=ne.useMemo(()=>a,[a]);/* @__PURE__ */
73
+ return ne.createElement(Tv,{value:i},/* @__PURE__ */ne.createElement(Rv,{value:n},/* @__PURE__ */ne.createElement(mo.div,{...o,ref:t,className:wv("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...n.root}})))});Pv.displayName="NumberInput";var Mv=co(function(e,t){const n=Iv();/* @__PURE__ */
74
+ return ne.createElement(mo.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});Mv.displayName="NumberInputStepper";var jv=co(function(e,t){const{getInputProps:n}=Lv(),r=n(e,t),o=Iv();/* @__PURE__ */
75
+ return ne.createElement(mo.input,{...r,className:wv("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});jv.displayName="NumberInputField";var Dv=mo("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Vv=co(function(e,t){const n=Iv(),{getDecrementButtonProps:r}=Lv(),o=r(e,t);/* @__PURE__ */
76
+ return ne.createElement(Dv,{...o,__css:n.stepper},e.children??/* @__PURE__ */ne.createElement(Cv,null))});Vv.displayName="NumberDecrementStepper";var Bv=co(function(e,t){const{getIncrementButtonProps:n}=Lv(),r=n(e,t),o=Iv();/* @__PURE__ */
77
+ return ne.createElement(Dv,{...r,__css:o.stepper},e.children??/* @__PURE__ */ne.createElement(_v,null))});Bv.displayName="NumberIncrementStepper";var Fv=(...e)=>e.filter(Boolean).join(" ");function zv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[$v,Uv,Wv,Hv]=So(),[qv,Yv]=ho({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),Zv=e=>null==e?void 0:e.split("");function Gv(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}function Xv(e){const t=po("PinInput",e),{children:n,...r}=Rt(e),{descendants:o,...a}=function(e={}){const{autoFocus:t,value:n,defaultValue:r,onChange:o,onComplete:a,placeholder:i="○",manageFocus:s=!0,otp:l=!1,id:c,isDisabled:u,isInvalid:d,type:p="number",mask:f}=e,m=ne.useId(),h=c??`pin-input-${m}`,v=Wv(),[y,g]=ne.useState(!0),[b,E]=ne.useState(-1),[x,w]=Ro({defaultValue:Zv(r)||[],value:Zv(n),onChange:e=>null==o?void 0:o(e.join(""))});ne.useEffect(()=>{if(t){const e=v.first();e&&requestAnimationFrame(()=>{e.node.focus()})}},[v]);const k=ne.useCallback(e=>{if(!y||!s)return;const t=v.next(e,!1);t&&requestAnimationFrame(()=>{t.node.focus()})},[v,y,s]),S=ne.useCallback((e,t,n=!0)=>{const r=[...x];r[t]=e,w(r),""!==e&&r.length===v.count()&&r.every(e=>null!=e&&""!==e)?null==a||a(r.join("")):n&&k(t)},[x,w,k,a,v]),C=ne.useCallback(()=>{var e;const t=Array(v.count()).fill("");w(t);const n=v.first();null==(e=null==n?void 0:n.node)||e.focus()},[v,w]),_=ne.useCallback((e,t)=>{let n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]);return{getInputProps:ne.useCallback(e=>{const{index:t,...n}=e,r=b===t;return{"aria-label":"Please enter your pin code",inputMode:"number"===p?"numeric":"text",type:f?"password":"number"===p?"tel":"text",...n,id:`${h}-${t}`,disabled:u,"aria-invalid":(o=d,!!o||void 0),onChange:zv(n.onChange,e=>{const n=e.target.value,r=_(x[t],n);if(""!==r)if(n.length>2){if(Gv(n,p)){const e=n.split("").filter((e,t)=>t<v.count());w(e),e.length===v.count()&&(null==a||a(e.join("")))}}else Gv(r,p)&&S(r,t),g(!0);else S("",t)}),onKeyDown:zv(n.onKeyDown,e=>{var n;if("Backspace"===e.key&&s)if(""===e.target.value){const e=v.prev(t,!1);e&&(S("",t-1,!1),null==(n=e.node)||n.focus(),g(!0))}else g(!1)}),onFocus:zv(n.onFocus,()=>{E(t)}),onBlur:zv(n.onBlur,()=>{E(-1)}),value:x[t]||"",autoComplete:l?"one-time-code":"off",placeholder:r?"":i};var o},[v,b,_,h,u,f,d,s,a,l,i,S,w,p,x]),id:h,descendants:v,values:x,setValue:S,setValues:w,clear:C}}(r),i=kp(n).map(e=>ne.cloneElement(e,{__css:t}));/* @__PURE__ */
78
+ return ne.createElement($v,{value:o},/* @__PURE__ */ne.createElement(qv,{value:a},i))}Xv.displayName="PinInput";var Kv=co(function(e,t){const n=function(e={},t=null){const{getInputProps:n}=Yv(),{index:r,register:o}=Hv();return n({...e,ref:vo(o,t),index:r})}(e,t);/* @__PURE__ */
79
+ return ne.createElement(mo.input,{...n,className:Fv("chakra-pin-input",e.className)})});Kv.displayName="PinInputField";var Jv=(...e)=>e.filter(Boolean).join(" ");function Qv(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var ey=e=>e?"":void 0,ty=e=>!!e||void 0;function ny(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[ry,oy]=ho({name:"RadioGroupContext",strict:!1}),ay=co((e,t)=>{const{colorScheme:n,size:r,variant:o,children:a,className:i,isDisabled:s,isFocusable:l,...c}=e,{value:u,onChange:d,getRootProps:p,name:f,htmlProps:m}=function(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:a,isFocusable:i,isNative:s,...l}=e,[c,u]=ne.useState(r||""),d=void 0!==n,p=d?n:c,f=ne.useRef(null),m=ne.useCallback(()=>{const e=f.current;if(!e)return;let t="input:not(:disabled):checked";const n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";const r=e.querySelector(t);null==r||r.focus()},[]),h=ne.useId(),v=o||`radio-${h}`,y=ne.useCallback(e=>{const n=function(e){return e&&Qv(e)&&Qv(e.target)}(e)?e.target.value:e;d||u(n),null==t||t(String(n))},[t,d]);return{getRootProps:ne.useCallback((e={},t=null)=>({...e,ref:vo(t,f),role:"radiogroup"}),[]),getRadioProps:ne.useCallback((e={},t=null)=>{const n=s?"checked":"isChecked";return{...e,ref:t,name:v,[n]:null!=p?e.value===p:void 0,onChange(e){y(e)},"data-radiogroup":!0}},[s,v,y,p]),name:v,ref:f,focus:m,setValue:u,value:p,onChange:y,isDisabled:a,isFocusable:i,htmlProps:l}}(c),h=ne.useMemo(()=>({name:f,size:r,onChange:d,colorScheme:n,value:u,variant:o,isDisabled:s,isFocusable:l}),[f,r,d,n,u,o,s,l]);/* @__PURE__ */
80
+ return ne.createElement(ry,{value:h},/* @__PURE__ */ne.createElement(mo.div,{...p(m,t),className:Jv("chakra-radio-group",i)},a))});ay.displayName="RadioGroup";var iy={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function sy(e){e.preventDefault(),e.stopPropagation()}var ly=co((e,t)=>{const n=oy(),{onChange:r,value:o}=e,a=fo("Radio",{...n,...e}),i=Rt(e),{spacing:s="0.5rem",children:l,isDisabled:c=(null==n?void 0:n.isDisabled),isFocusable:u=(null==n?void 0:n.isFocusable),inputProps:d,...p}=i;let f=e.isChecked;null!=(null==n?void 0:n.value)&&null!=o&&(f=n.value===o);let m=r;(null==n?void 0:n.onChange)&&null!=o&&(m=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,r));const h=(null==e?void 0:e.name)??(null==n?void 0:n.name),{getInputProps:v,getCheckboxProps:y,getLabelProps:g,getRootProps:b,htmlProps:E}=function(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:a,isRequired:i,onChange:s,isInvalid:l,name:c,value:u,id:d,"data-radiogroup":p,"aria-describedby":f,...m}=e,h=`radio-${ne.useId()}`,v=Fp(),y=oy();let g=!v||y||p?h:v.id;g=d??g;const b=o??(null==v?void 0:v.isDisabled),E=a??(null==v?void 0:v.isReadOnly),x=i??(null==v?void 0:v.isRequired),w=l??(null==v?void 0:v.isInvalid),[k,S]=ne.useState(!1),[C,_]=ne.useState(!1),[O,N]=ne.useState(!1),[A,R]=ne.useState(!1),[I,T]=ne.useState(Boolean(t)),L=void 0!==n,P=L?n:I;ne.useEffect(()=>uf(S),[]);const M=ne.useCallback(e=>{E||b?e.preventDefault():(L||T(e.target.checked),null==s||s(e))},[L,b,E,s]),j=ne.useCallback(e=>{" "===e.key&&R(!0)},[R]),D=ne.useCallback(e=>{" "===e.key&&R(!1)},[R]),V=ne.useCallback((e={},t=null)=>({...e,ref:t,"data-active":ey(A),"data-hover":ey(O),"data-disabled":ey(b),"data-invalid":ey(w),"data-checked":ey(P),"data-focus":ey(C),"data-focus-visible":ey(C&&k),"data-readonly":ey(E),"aria-hidden":!0,onMouseDown:ny(e.onMouseDown,()=>R(!0)),onMouseUp:ny(e.onMouseUp,()=>R(!1)),onMouseEnter:ny(e.onMouseEnter,()=>N(!0)),onMouseLeave:ny(e.onMouseLeave,()=>N(!1))}),[A,O,b,w,P,C,E,k]),{onFocus:B,onBlur:F}=v??{},z=ne.useCallback((e={},t=null)=>{const n=b&&!r;return{...e,id:g,ref:t,type:"radio",name:c,value:u,onChange:ny(e.onChange,M),onBlur:ny(F,e.onBlur,()=>_(!1)),onFocus:ny(B,e.onFocus,()=>_(!0)),onKeyDown:ny(e.onKeyDown,j),onKeyUp:ny(e.onKeyUp,D),checked:P,disabled:n,readOnly:E,required:x,"aria-invalid":ty(w),"aria-disabled":ty(n),"aria-required":ty(x),"data-readonly":ey(E),"aria-describedby":f,style:iy}},[b,r,g,c,u,M,F,B,j,D,P,E,x,w,f]);return{state:{isInvalid:w,isFocused:C,isChecked:P,isActive:A,isHovered:O,isDisabled:b,isReadOnly:E,isRequired:x},getCheckboxProps:V,getInputProps:z,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:ny(e.onMouseDown,sy),onTouchStart:ny(e.onTouchStart,sy),"data-disabled":ey(b),"data-checked":ey(P),"data-invalid":ey(w)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":ey(b),"data-checked":ey(P),"data-invalid":ey(w)}),htmlProps:m}}({...p,isChecked:f,isFocusable:u,isDisabled:c,onChange:m,name:h}),[x,w]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(E,kt),k=y(w),S=v(d,t),C=g(),_=Object.assign({},x,b()),O={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},N={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},A={userSelect:"none",marginStart:s,...a.label};/* @__PURE__ */
81
+ return ne.createElement(mo.label,{className:"chakra-radio",..._,__css:O},/* @__PURE__ */ne.createElement("input",{className:"chakra-radio__input",...S}),/* @__PURE__ */ne.createElement(mo.span,{className:"chakra-radio__control",...k,__css:N}),l&&/* @__PURE__ */ne.createElement(mo.span,{className:"chakra-radio__label",...C,__css:A},l))});ly.displayName="Radio";var cy=(...e)=>e.filter(Boolean).join(" "),uy=co(function(e,t){const{children:n,placeholder:r,className:o,...a}=e;/* @__PURE__ */
82
+ return ne.createElement(mo.select,{...a,ref:t,className:cy("chakra-select",o)},r&&/* @__PURE__ */ne.createElement("option",{value:""},r),n)});uy.displayName="SelectField";var dy=co((e,t)=>{var n;const r=fo("Select",e),{rootProps:o,placeholder:a,icon:i,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:p,iconSize:f,...m}=Rt(e),[h,v]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(m,kt),y=Up(v),g={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...null==(n=r.field)?void 0:n._focus}};/* @__PURE__ */
83
+ return ne.createElement(mo.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:s},...h,...o},/* @__PURE__ */ne.createElement(uy,{ref:t,height:c??l,minH:u??d,placeholder:a,...y,__css:g},e.children),/* @__PURE__ */ne.createElement(my,{"data-disabled":(b=y.disabled,b?"":void 0),...(p||s)&&{color:p||s},__css:r.icon,...f&&{fontSize:f}},i));var b});dy.displayName="Select";var py=e=>/* @__PURE__ */ne.createElement("svg",{viewBox:"0 0 24 24",...e},/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),fy=mo("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),my=e=>{const{children:t=/* @__PURE__ */ne.createElement(py,null),...n}=e,r=ne.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/* @__PURE__ */
84
+ return ne.createElement(fy,{...n,className:"chakra-select__icon-wrapper"},ne.isValidElement(t)?r:null)};my.displayName="SelectIcon";var hy=(...e)=>e.filter(Boolean).join(" "),vy=e=>e?"":void 0,yy=co(function(e,t){const n=fo("Switch",e),{spacing:r="0.5rem",children:o,...a}=Rt(e),{state:i,getInputProps:s,getCheckboxProps:l,getRootProps:c,getLabelProps:u}=xf(a),d=ne.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=ne.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),f=ne.useMemo(()=>({userSelect:"none",marginStart:r,...n.label}),[r,n.label]);/* @__PURE__ */
85
+ return ne.createElement(mo.label,{...c(),className:hy("chakra-switch",e.className),__css:d},/* @__PURE__ */ne.createElement("input",{className:"chakra-switch__input",...s({},t)}),/* @__PURE__ */ne.createElement(mo.span,{...l(),className:"chakra-switch__track",__css:p},/* @__PURE__ */ne.createElement(mo.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":vy(i.isChecked),"data-hover":vy(i.isHovered)})),o&&/* @__PURE__ */ne.createElement(mo.span,{className:"chakra-switch__label",...u(),__css:f},o))});yy.displayName="Switch";var gy=(...e)=>e.filter(Boolean).join(" "),by=["h","minH","height","minHeight"],Ey=co((e,t)=>{const n=po("Textarea",e),{className:r,rows:o,...a}=Rt(e),i=Up(a),s=o?function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(n,by):n;/* @__PURE__ */
86
+ return ne.createElement(mo.textarea,{ref:t,rows:o,...i,className:gy("chakra-textarea",r),__css:s})});function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}Ey.displayName="Textarea";const wy=["hideStepper","incrementIcon","decrementIcon"],ky=co((e,t)=>{const{hideStepper:n,incrementIcon:r,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,wy);return ne.createElement(Pv,xy({},a,{ref:t}),/*#__PURE__*/ne.createElement(jv,null),!n&&/*#__PURE__*/ne.createElement(Mv,null,/*#__PURE__*/ne.createElement(Bv,{children:r}),/*#__PURE__*/ne.createElement(Vv,{children:o})))});ky.defaultProps={hideStepper:!1},s&&(ky.displayName="NumberInput"),No({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),No({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),No({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),No({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),No({displayName:"SunIcon",path:/* @__PURE__ */ne.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",r:"5"}),/* @__PURE__ */ne.createElement("path",{d:"M12 1v2"}),/* @__PURE__ */ne.createElement("path",{d:"M12 21v2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M1 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M21 12h2"}),/* @__PURE__ */ne.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/* @__PURE__ */ne.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Sy=No({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});No({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/* @__PURE__ */ne.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),No({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),No({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),No({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),No({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var Cy=No({displayName:"ViewIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),_y=No({displayName:"ViewOffIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/* @__PURE__ */ne.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});No({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),No({displayName:"DeleteIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),No({displayName:"RepeatIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/* @__PURE__ */ne.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),No({displayName:"RepeatClockIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/* @__PURE__ */ne.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),No({displayName:"EditIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/* @__PURE__ */ne.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),No({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),No({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Oy=No({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});No({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),No({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),No({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),No({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),No({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),No({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),No({displayName:"ExternalLinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/* @__PURE__ */ne.createElement("path",{d:"M15 3h6v6"}),/* @__PURE__ */ne.createElement("path",{d:"M10 14L21 3"}))}),No({displayName:"LinkIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/* @__PURE__ */ne.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),No({displayName:"PlusSquareIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */ne.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/* @__PURE__ */ne.createElement("path",{d:"M12 8v8"}),/* @__PURE__ */ne.createElement("path",{d:"M8 12h8"}))}),No({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),No({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),No({displayName:"TimeIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/* @__PURE__ */ne.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),No({displayName:"ArrowRightIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/* @__PURE__ */ne.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),No({displayName:"ArrowLeftIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/* @__PURE__ */ne.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),No({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),No({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),No({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),No({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),No({displayName:"EmailIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/* @__PURE__ */ne.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),No({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),No({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),No({displayName:"SpinnerIcon",path:/* @__PURE__ */ne.createElement(ne.Fragment,null,/* @__PURE__ */ne.createElement("defs",null,/* @__PURE__ */ne.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/* @__PURE__ */ne.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/* @__PURE__ */ne.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/* @__PURE__ */ne.createElement("g",{transform:"translate(2)",fill:"none"},/* @__PURE__ */ne.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/* @__PURE__ */ne.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/* @__PURE__ */ne.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),No({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),No({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/* @__PURE__ */ne.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),No({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),No({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),No({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),No({displayName:"InfoOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/* @__PURE__ */ne.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/* @__PURE__ */ne.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/* @__PURE__ */ne.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),No({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),No({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),No({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),No({displayName:"QuestionOutlineIcon",path:/* @__PURE__ */ne.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */ne.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/* @__PURE__ */ne.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/* @__PURE__ */ne.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),No({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),No({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Ny=No({viewBox:"0 0 14 14",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Ay=No({displayName:"MinusIcon",path:/* @__PURE__ */ne.createElement("g",{fill:"currentColor"},/* @__PURE__ */ne.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}No({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});const Iy=["label","children"],Ty=co((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Iy);return ne.createElement(Rp,Ry({ref:t},o),r||n)});function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ly.apply(this,arguments)}s&&(Ty.displayName="Button");const Py=co((e,t)=>/*#__PURE__*/ne.createElement(Yf,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/ne.createElement(Ty,Ly({ref:t,height:"auto"},e))));function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},My.apply(this,arguments)}Py.id="InputRightElement",s&&(Py.displayName="InputRightButton");const jy=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],Dy=co((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,c=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,jy),[u,d]=ne.useState(!1),p=u?"Hide password":"Show password";let f;return f=u?n||/*#__PURE__*/ne.createElement(Cy,null):r||/*#__PURE__*/ne.createElement(_y,null),/*#__PURE__*/ne.createElement(Vf,{width:a||i,size:s,variant:l},/*#__PURE__*/ne.createElement(Mf,My({},c,{ref:t,type:u?"text":"password",autoComplete:u?"off":o})),/*#__PURE__*/ne.createElement(Py,{onClick:()=>d(!u),"aria-label":p,variant:"ghost"},f))});function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vy.apply(this,arguments)}function By(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Dy.displayName="PasswordInput");const Fy=["options","spacing","direction"],zy=["onBlur","onChange"],$y=["value","label"],Uy=co((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=By(e,Fy);const{onBlur:i,onChange:s}=a,l=By(a,zy);return ne.createElement(ay,Vy({onChange:s},l),/*#__PURE__*/ne.createElement(lm,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=By(e,$y);return ne.createElement(ly,Vy({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(this,arguments)}function Hy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Uy.displayName="RadioInput");const qy=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Yy=["value","label"],Zy=co((e,t)=>{const n=fo("Input",e),r=n.field._focusVisible,o=Wy({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return ne.createElement(dv,Wy({as:Rp},e,{ref:t,sx:o}))});s&&(Zy.displayName="SelectButton");const Gy=co((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:c,isDisabled:u,leftIcon:d,rightIcon:p=/*#__PURE__*/ne.createElement(Oy,null),multiple:f,size:m,variant:h,menuListProps:v,renderValue:y=(e=>null==e?void 0:e.join(", "))}=e,g=Rt(Hy(e,qy)),[b,E]=ne.useState(s||i),x=Up({name:n}),w={isDisabled:u,leftIcon:d,rightIcon:p,size:m,variant:h},k=ne.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),S=b?(Array.isArray(b)?b:[b]).map(k):[];return ne.createElement(cv,Wy({},g,{closeOnSelect:!f}),/*#__PURE__*/ne.createElement(mo.div,{className:l("saas-select")},/*#__PURE__*/ne.createElement(Zy,Wy({ref:t},w),y(S)||c),/*#__PURE__*/ne.createElement(Ev,Wy({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/ne.createElement(xv,{defaultValue:i||s,onChange:e=>{E(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=Hy(e,Yy);return ne.createElement(yv,Wy({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/ne.createElement(mo.input,Wy({},x,{name:n,type:"hidden",value:b,className:"saas-select__input"}))))});s&&(Gy.displayName="Select");const Xy=["options","children"],Ky=co((e,t)=>{let{options:n,children:r}=e,o=Hy(e,Xy);return ne.createElement(dy,Wy({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/ne.createElement("option",{key:e,value:e},t||e))))});function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jy.apply(this,arguments)}function Qy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Ky.displayName="NativeSelect");const[eg,tg]=Ur({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function ng(e){const{step:t,onChange:n}=e,[r,o]=ne.useState(-1),a=ne.useRef([]),[,i]=ne.useState(Date.now()),s=ne.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return ne.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),ne.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const rg=["orientation","children"],og=["children","orientation","step","onChange"],ag=["children","orientation","stepComponent"],ig=["children","isOpen"],sg=["icon","isActive","isCompleted","className"],lg=["name","title","icon","isActive","isCompleted"],cg=["isActive"],[ug,dg]=Ur({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),pg=co((e,t)=>{const{orientation:n,children:r}=e,o=Qy(e,rg);return ne.createElement(fg,Jy({ref:t,orientation:n},o),/*#__PURE__*/ne.createElement(mg,{orientation:n},r))});s&&(pg.displayName="Stepper");const fg=co((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=Qy(e,og),a=fo("Stepper",Jy({},o,{orientation:r})),i=Rt(o),s=ng(e),c=Jy({display:"flex",flexDirection:"column"},a.container);return ne.createElement(ug,{value:a},/*#__PURE__*/ne.createElement(eg,{value:s},/*#__PURE__*/ne.createElement(mo.div,Jy({ref:t,__css:c},i,{className:l("saas-stepper",e.className)}),n)))});s&&(fg.displayName="StepperContainer");const mg=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=Qy(e,ag),s=dg(),{activeIndex:c}=tg(),u=Jy({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),d="vertical"===o,p=a||yg,f=(y=p,ne.Children.toArray(r).filter(e=>Array.isArray(y)?y.some(t=>t===e.type):e.type===y)),m=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/ne.createElement(p,Jy({key:n},t.props,{icon:t.props.icon||n+1,isActive:c===n,isCompleted:t.props.isCompleted||c>n}))),d&&e.push(/*#__PURE__*/ne.createElement(hg,{key:`content-${n}`,isOpen:c===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/ne.createElement(gg,{key:`separator-${n}`,isActive:n<c})),e),[]),h=function(e,t){return ne.Children.toArray(e).find(e=>e.type===t)}(r,Eg),v=c>=f.length?h:d?null:/*#__PURE__*/ne.createElement(hg,null,null==(t=f[c])||null==(n=t.props)?void 0:n.children);var y;return ne.createElement(ne.Fragment,null,/*#__PURE__*/ne.createElement(mo.div,Jy({__css:u},i,{className:l("saas-stepper__steps",e.className)}),m),v)};s&&(mg.displayName="StepperSteps");const hg=e=>{const{children:t,isOpen:n=!0}=e,r=Qy(e,ig),o=dg();return ne.createElement(mo.div,Jy({__css:o.content},r,{className:l("saas-stepper__content",e.className)}),/*#__PURE__*/ne.createElement(lp,{in:n},t))};s&&(hg.displayName="StepperContent");const vg=e=>{const{icon:t,isCompleted:n,className:r}=e,o=Qy(e,sg),a=Jy({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},dg().icon);let i;return i=n?/*#__PURE__*/ne.createElement(Oo,{as:Ny}):t,/*#__PURE__*/ne.createElement(mo.div,Jy({__css:a},o,{className:l("saas-stepper__icon",r)}),i)};s&&(vg.displayName="StepperIcon");const yg=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=Qy(e,lg),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=tg();return ne.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=Jy({display:"flex",alignItems:"center",flexDirection:"row"},dg().step);return ne.createElement(mo.div,Jy({},a,{__css:s,"data-active":c(i.isActive),"data-completed":c(i.isCompleted),className:l("saas-stepper__step",e.className)}),/*#__PURE__*/ne.createElement(vg,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/ne.createElement(bg,null,t))};s&&(yg.displayName="StepperStep");const gg=e=>{const{isActive:t}=e,n=Qy(e,cg),r=Jy({flex:1,mx:2},dg().separator);return ne.createElement(mo.div,Jy({},n,{"data-active":c(t),className:l("saas-stepper__separator",e.className),__css:r}))};s&&(gg.displayName="StepperSeparator");const bg=e=>{const t=dg();return ne.createElement(mo.p,Jy({},e,{__css:t.title,className:l("saas-stepper__title",e.className)}))};s&&(bg.displayName="StepperStepTitle");const Eg=e=>{const t=dg();return ne.createElement(mo.div,Jy({__css:t.completed},e,{className:l("saas-stepper__completed",e.className)}))};function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xg.apply(this,arguments)}function wg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}s&&(Eg.displayName="StepperCompleted");const kg=["name","label","help","hideLabel","children"],Sg=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],Cg=["name","rules"],_g=["ref"],Og=["name","rules"],Ng=["ref"],Ag=["type","leftAddon","rightAddon","size"],Rg=["type"],Ig=["label","type"],Tg=["pinLength","pinType","spacing"],Lg={},Pg="text",Mg=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=wg(e,kg),{formState:s}=p(),l=((e,t)=>f(t.errors,e))(t,s);return ne.createElement(zp,xg({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/ne.createElement(Zp,null,n):null,/*#__PURE__*/ne.createElement(Xf,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/ne.createElement($p,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/ne.createElement(Yp,null,null==l?void 0:l.message)))};s&&(Mg.displayName="BaseField");const jg=ne.forwardRef((e,t)=>{const{type:n=Pg}=e;return ne.createElement(Lg[n]||Lg[Pg],xg({ref:t},e))}),Dg=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>co((t,n)=>{let{name:r,rules:o}=t,a=wg(t,Cg);const{control:i}=p();return ne.createElement(y,{name:r,control:i,rules:o,render:t=>{let{field:{ref:r}}=t,o=wg(t.field,_g);return ne.createElement(e,xg({},o,a,{onChange:d(a.onChange,o.onChange),onBlur:d(a.onBlur,o.onBlur),ref:Lf(n,r)}))}})}))(t):(e=>co((t,n)=>{let{name:r,rules:o}=t,a=wg(t,Og);const{register:i}=p(),s=i(r,o),{ref:l}=s,c=wg(s,Ng);return ne.createElement(e,xg({},c,a,{onChange:d(a.onChange,c.onChange),onBlur:d(a.onBlur,c.onBlur),ref:Lf(n,l)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=co((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,rules:f}=t,m=wg(t,Sg),h=xg({required:p},f);return ne.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p},/*#__PURE__*/ne.createElement(e,xg({ref:o,id:a,name:i,label:n?s:void 0,rules:h},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||Mg});return Lg[e]=o,o};Dg("text",co((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=wg(e,Ag);const s=/*#__PURE__*/ne.createElement(Mf,xg({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/ne.createElement(Vf,{size:a},r,s,o):s})),Dg("number",ky,{isControlled:!0}),Dg("password",co((e,t)=>/*#__PURE__*/ne.createElement(Dy,xg({ref:t},e)))),Dg("textarea",Ey),Dg("switch",co((e,t)=>{let n=wg(e,Rg);return ne.createElement(yy,xg({},n,{ref:t}))}),{isControlled:!0}),Dg("select",Gy,{isControlled:!0}),Dg("checkbox",co((e,t)=>{let{label:n}=e,r=wg(e,Ig);return ne.createElement(Cf,xg({ref:t},r),n)}),{hideLabel:!0}),Dg("radio",Uy,{isControlled:!0}),Dg("native-select",Ky,{isControlled:!0}),Dg("pin",co((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=wg(e,Tg),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/ne.createElement(Kv,{key:e,ref:t}));return ne.createElement(cm,{spacing:o},/*#__PURE__*/ne.createElement(Xv,xg({},a,{type:r}),i))}),{isControlled:!0});const Vg=["items","label","title"],Bg=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return xg({},wg(t,Vg),{name:e,label:n||r})}),Fg=e=>({getFields:()=>Bg(e),getNestedFields:t=>{var n;const r=u(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?Bg(r.items.properties):"object"===r.type?Bg(r.properties):[r.items]:[]}}),zg=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],$g=co((e,t)=>{const{mode:n="all",resolver:r,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d,schema:p,defaultValues:f,onChange:v,onSubmit:y,onError:g,formRef:b,children:E}=e,x=wg(e,zg),w={mode:n,resolver:r,defaultValues:f,reValidateMode:o,shouldFocusError:a,shouldUnregister:s,shouldUseNativeValidation:c,criteriaMode:u,delayError:d};p&&!r&&(w.resolver=null==$g.getResolver?void 0:$g.getResolver(p));const k=m(w),{handleSubmit:S}=k;return ne.useImperativeHandle(t,()=>k,[t,k]),ne.useEffect(()=>{let e;return v&&(e=k.watch(v)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[k,v]),/*#__PURE__*/ne.createElement(h,k,/*#__PURE__*/ne.createElement(mo.form,xg({ref:b,onSubmit:S(y,g)},x,{className:l("saas-form",e.className)}),i(E,k)))});$g.getFieldResolver=Fg,s&&($g.displayName="Form");const Ug=["children"],Wg=({children:e})=>/*#__PURE__*/ne.createElement(mo.div,null,e);s&&(Wg.displayName="FormLayoutItem");const Hg=e=>{var t,n,r;let{children:o}=e,a=wg(e,Ug);const i=xg({},null!=(t=null==(n=oo().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return ne.createElement(am,xg({},i,{className:l("saas-form__layout",a.className)}),ne.Children.map(o,e=>ne.isValidElement(e)?/*#__PURE__*/ne.createElement(Wg,null,e):e))};s&&(Hg.displayName="FormLayout");const qg=(e,t)=>ne.Children.map(t,t=>ne.isValidElement(t)&&t.props.name?ne.cloneElement(t,xg({},t.props,{name:`${e}.${t.props.name}`})):t),[Yg,Zg]=Ur({name:"ArrayFieldContext"}),[Gg,Xg]=Ur({name:"ArrayFieldRowContext"}),Kg=["children","index"],Jg=["children"],Qg=["children"],eb=["name","defaultValue","keyName","min","max","children"],tb=e=>{let{children:t,index:n}=e,r=wg(e,Kg);return ne.createElement(rb,{index:n},/*#__PURE__*/ne.createElement(nb,r,t),/*#__PURE__*/ne.createElement(ob,null))};s&&(tb.displayName="ArrayFieldRow");const nb=e=>{let{children:t}=e,n=wg(e,Jg);const{name:r}=Xg();return ne.createElement(Hg,xg({flex:"1",mr:"2"},n),qg(r,t))};s&&(nb.displayName="ArrayFieldRowFields");const rb=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=p(),{name:n,remove:r,fields:o}=Zg();return ne.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:ne.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return ne.createElement(Gg,{value:n},/*#__PURE__*/ne.createElement(mo.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};s&&(rb.displayName="ArrayFieldRowContainer");const ob=e=>/*#__PURE__*/ne.createElement(Tp,xg({icon:/*#__PURE__*/ne.createElement(Ay,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=Xg(),{min:n,fields:r}=Zg();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));s&&(ob.displayName="ArrayFieldRemoveButton");const ab=e=>/*#__PURE__*/ne.createElement(Tp,xg({icon:/*#__PURE__*/ne.createElement(Sy,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=Zg();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));s&&(ab.displayName="ArrayFieldAddButton");const ib=co((e,t)=>{const{children:n}=e,r=wg(e,Qg);return ne.createElement(lb,xg({ref:t},r),/*#__PURE__*/ne.createElement(sb,null,e=>/*#__PURE__*/ne.createElement(ne.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/ne.createElement(tb,{key:e,index:t},n)))),/*#__PURE__*/ne.createElement(ab,null))});s&&(ib.displayName="ArrayField");const sb=({children:e})=>{const{fields:t}=Zg();return e(t)};s&&(sb.displayName="ArrayFieldRows");const lb=ne.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=wg(e,eb);const c=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=p();return xg({},v({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return ne.useImperativeHandle(t,()=>c,[t,c]),/*#__PURE__*/ne.createElement(Yg,{value:c},/*#__PURE__*/ne.createElement(Mg,xg({name:n},l),s))});s&&(lb.displayName="ArrayFieldContainer");const cb=["name","label","hideLabel","children","columns","spacing"],ub=e=>{const t=po("FormLegend");return ne.createElement(Zp,xg({as:"legend",sx:t},e))},db=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=wg(e,cb);return ne.createElement(zp,xg({name:t,as:"fieldset"},s),/*#__PURE__*/ne.createElement(ub,{display:r?"none":"block"},n),/*#__PURE__*/ne.createElement(Hg,{columns:a,gridGap:i},qg(t,o)))};s&&(db.displayName="ObjectField");const pb=["name","type"],fb=["schema","fieldResolver","focusFirstField"],mb=["name","type","defaultValue"],hb=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=wg(e,pb);return ne.createElement(jg,xg({key:n||t,name:n,type:r},o))})},vb=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=wg(e,fb);const a=ne.useMemo(()=>n||$g.getFieldResolver(t),[t,n]),i=ne.useMemo(()=>a.getFields(),[a]),s=p();return ne.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/ne.createElement(Hg,o,i.map(e=>{let{name:t,type:n}=e,r=wg(e,mb);return"array"===n?/*#__PURE__*/ne.createElement(ib,xg({key:t,name:t},r),hb(a,t)):"object"===n?/*#__PURE__*/ne.createElement(db,xg({key:t,name:t},r),hb(a,t)):/*#__PURE__*/ne.createElement(jg,xg({key:t,name:t,type:n},r))}))};s&&(vb.displayName="Fields");const yb=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],gb=ne.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=wg(e,yb),{formState:l}=p();return ne.createElement(Ty,xg({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});gb.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},s&&(gb.displayName="SubmitButton");const bb=["schema","submitLabel","fieldResolver","children"],Eb=co((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=wg(e,bb);return ne.createElement($g,xg({},i,{schema:n,ref:t}),/*#__PURE__*/ne.createElement(Hg,null,/*#__PURE__*/ne.createElement(vb,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/ne.createElement(gb,null,r),a))});s&&(Eb.displayName="AutoForm");const xb=["onChange"],[wb,kb]=Ur({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),Sb=["children"],Cb=["getFormProps"];ne.forwardRef((e,t)=>{const{children:n}=e,r=wg(e,Sb),o=function(e){const t=ng(wg(e,xb)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=ne.useState({}),s=ne.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),c(xg({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=ne.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),c=ne.useCallback(e=>{i(t=>xg({},t,{[e.name]:e}))},[a]);return xg({getFormProps:l,updateStep:c,steps:a},t)}(e),{getFormProps:a}=o,s=wg(o,Cb),l=ne.useMemo(()=>s,[s]);return ne.createElement(eg,{value:l},/*#__PURE__*/ne.createElement(wb,{value:l},/*#__PURE__*/ne.createElement($g,xg({ref:t},r,a()),i(n,o))))});const _b=e=>Fg(e.properties),Ob=t=>({schema:t,fieldResolver:_b(t),resolver:e(t)});export{Ob as jsonSchemaForm};
97
87
  //# sourceMappingURL=index.modern.js.map