@saas-ui/forms 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/ajv/index.js CHANGED
@@ -1,97 +1,97 @@
1
- var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),n=require("react-hook-form");function r(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 a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var w=_.prototype=new x;w.constructor=_,g(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g;function I(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 P(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+I(l,0):r,k(a)?(n="",null!=e&&(n=e.replace(R,"$&/")+"/"),P(a,t,n,"",function(e){return e})):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",k(e))for(var u=0;u<e.length;u++){var c=r+I(s=e[u],u);l+=P(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=P(s=s.value,t,n,c=r+I(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function L(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 D={current:null},M={transition:null},V={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j={Children:V,Component:E,Fragment:s,Profiler:u,PureComponent:_,StrictMode:l,Suspense:p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},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=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!O.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},createElement:A,createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:f,render:e}},isValidElement:N,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.2.0"},B=a(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"),a=Symbol.for("react.fragment"),o=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},E={current:null},x={},_=null;function w(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function S(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 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("error",e,n)}function O(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=x,k.ReactCurrentActQueue=b;var A={};function N(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;A[a]||(C("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),A[a]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){N(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){N(e,"replaceState")},enqueueSetState:function(e,t,n,r){N(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}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)."]},D=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function V(){}function j(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}V.prototype=T.prototype;var B=j.prototype=new V;B.constructor=j,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function H(e){return""+e}function W(e){if(function(e){try{return H(e),!1}catch(e){return!0}}(e))return C("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)),H(e)}function U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("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 a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return U(e)+".Consumer";case s:return U(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return $(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,C("%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,C("%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=$(E.current.type);Z[t]||(C('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,a,o,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:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,a={},o=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(W(t.key),o=""+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)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.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),a.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,p),i&&ee(a,p)}return ne(e,o,i,s,l,E.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=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=E.current),J(t)&&(W(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==a?a[r]:t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,s,l,u,c,o)}function oe(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?(W(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,a,o,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=""===o?"."+ce(f,0):o;if(z(p)){var v="";null!=m&&(v=ue(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||W(p.key),l=p,u=a+(!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=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(c=e[b],t,a,g+ce(c,b),i);else{var E=h(e);if("function"==typeof E){var x=e;E===x.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var _,w=E.call(x),k=0;!(_=w.next()).done;)y+=de(c=_.value,t,a,g+ce(c,k++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). 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=[],a=0;return de(e,r,"","",function(e){return t.call(n,e,a++)}),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&&C("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||C("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===a||e===i||e===o||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&&C("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,Ee,xe,_e,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,Ce=k.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ae,Ne=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ne)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ne=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===we){he=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();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&&Ae.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ne=!1,Ce.current=a,function(){if(0==--we){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:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:_e})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Oe(f):"";return"function"==typeof e&&Ae.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 Oe(e);switch(e){case c:return Oe("Suspense");case d:return Oe("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,a=e._init;try{return Pe(a(r),t,n)}catch(e){}}return""}Ae=new Re;var Te,Le={},De=k.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function Ve(e){if(e){var t=e._owner;w(Pe(e.type,e._source,t?t.type:null))}else w(null)}function je(){if(E.current){var e=$(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}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=je();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 "+$(e._owner.type)+"."),Ve(e),C('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),Ve(null)}}}function He(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&ze(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function We(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=$(n);!function(e,t,n,r,a){var o=Function.call.bind(G);for(var i in e)if(o(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||(Me(a),C("%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),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ve(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ve(null);break}}null!==e.ref&&(Ve(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}function $e(e,t,r){var o=me(e);if(!o){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||je(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("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(o)for(var c=2;c<arguments.length;c++)He(arguments[c],e);return e===a?Ue(u):We(u),u}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&C("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 a=b.current;if(null!==a)try{et(a),function(o){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&&C("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===a.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=$e,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(!oe(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=a,t.Profiler=i,t.PureComponent=j,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)He(arguments[a],r.type);return We(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,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("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,C("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){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("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 S("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?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("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||C("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=oe,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){C("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){C("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)||C("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&&S("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 a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,s={then:function(e,n){i=!0,o.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,C("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?C("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&&C("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)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?j:B}),z=/*#__PURE__*/r({__proto__:null,default:F},[F]),H=/*#__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}(),W="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function Z(e){return e.trim()}function G(e,t,n){return e.replace(t,n)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,ae=0,oe=0,ie=0,se="";function le(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ne,column:re,length:i,return:""}}function ue(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ce(){return ie=oe>0?K(se,--oe):0,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=oe<ae?K(se,oe++):0,re++,10===ie&&(re=1,ne++),ie}function fe(){return K(se,oe)}function pe(){return oe}function me(e,t){return J(se,e,t)}function ve(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 he(e){return ne=re=1,ae=Q(se=e),oe=0,[]}function ye(e){return se="",e}function ge(e){return Z(me(oe-1,xe(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=fe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function Ee(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,pe()+(t<6&&32==fe()&&32==de()))}function xe(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&xe(ie);break;case 40:41===e&&xe(e);break;case 92:de()}return oe}function _e(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==fe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function we(e){for(;!ve(fe());)de();return me(e,oe)}function ke(e){return ye(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,n,r,a,o,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="",E=a,x=o,_=r,w=b;h;)switch(m=g,g=de()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=X(w+=G(ge(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:w+=ge(g);break;case 9:case 10:case 13:case 32:w+=be(m);break;case 92:w+=Ee(pe()-1,7);continue;case 47:switch(fe()){case 42:case 47:te(Oe(_e(de(),pe()),t,n),l);break;default:w+="/"}break;case 123*v:s[u++]=Q(w)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+c:p>0&&Q(w)-d&&te(p>32?Ae(w+";",r,n,d-1):Ae(G(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(te(_=Ce(w,t,n,u,c,a,s,b,E=[],x=[],d),o),123===g)if(0===c)Se(w,t,_,_,E,o,d,s,x);else switch(f){case 100:case 109:case 115:Se(e,_,_,r&&te(Ce(e,_,_,0,0,a,s,b,a,E=[],d),x),a,x,d,s,r?E:x);break;default:Se(w,_,_,_,[""],x,0,s,x)}}u=c=p=0,v=y=1,b=w="",d=i;break;case 58:d=1+Q(w),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==ce())continue;switch(w+=q(g),g*v){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(Q(w)-1)*y,y=1;break;case 64:45===fe()&&(w+=ge(de())),f=fe(),c=d=Q(b=w+=we(pe())),g++;break;case 45:45===m&&2==Q(w)&&(v=0)}}return o}function Ce(e,t,n,r,a,o,i,s,l,u,c){for(var d=a-1,f=0===a?o:[""],p=ee(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=J(e,d+1,d=$(v=i[m])),b=e;y<p;++y)(b=Z(v>0?f[y]+" "+g:G(g,/&\f/g,f[y])))&&(l[h++]=b);return le(e,t,n,0===a?"rule":s,l,u,c)}function Oe(e,t,n){return le(e,t,n,"comm",q(ie),J(e,2,-2),0)}function Ae(e,t,n,r){return le(e,t,n,"decl",J(e,0,r),J(e,r+1,-1),r)}function Ne(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+W+e+e;case 6828:case 4268:return U+e+W+e+e;case 6165:return U+e+W+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+W+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+W+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+W+G(e,"shrink","negative")+e;case 5292:return U+e+W+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+W+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$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(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ne(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+W+e+e}return e}function Re(e,t){for(var n="",r=ee(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Ie(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+"{"+Re(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Q(n=Re(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Te=function(e,t,n){for(var r=0,a=0;r=a,a=fe(),38===r&&12===a&&(t[n]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=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)||Le.get(n))&&!r){Le.set(e,!0);for(var a=[],o=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ve(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Te(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=de());return e}(he(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ve=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},je=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,n){Ve(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."),je(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ve(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."),je(e)))},Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ne(e.value,e.length);break;case"@keyframes":return Re([ue(e,{value:G(e.value,"@","@"+U)})],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 Re([ue(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Re([ue(e,{props:[G(t,/:(plac\w+)/,":-webkit-input-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""})}}],ze=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||Fe;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 a,o,i={},s=[];a=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=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!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}((a=i.children).length?a[a.length-1]:null))return;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 p.compat}}),Be);var u,c,d=[Ie,"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=ee(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}(l.concat(r,d));o=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)}}),Re(ke(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new H({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};function He(){return He=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},He.apply(this,arguments)}var We="function"==typeof Symbol&&Symbol.for,Ue=We?Symbol.for("react.element"):60103,$e=We?Symbol.for("react.portal"):60106,qe=We?Symbol.for("react.fragment"):60107,Ye=We?Symbol.for("react.strict_mode"):60108,Ze=We?Symbol.for("react.profiler"):60114,Ge=We?Symbol.for("react.provider"):60109,Xe=We?Symbol.for("react.context"):60110,Ke=We?Symbol.for("react.async_mode"):60111,Je=We?Symbol.for("react.concurrent_mode"):60111,Qe=We?Symbol.for("react.forward_ref"):60112,et=We?Symbol.for("react.suspense"):60113,tt=We?Symbol.for("react.suspense_list"):60120,nt=We?Symbol.for("react.memo"):60115,rt=We?Symbol.for("react.lazy"):60116,at=We?Symbol.for("react.block"):60121,ot=We?Symbol.for("react.fundamental"):60117,it=We?Symbol.for("react.responder"):60118,st=We?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ze:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case rt:case nt:case Ge:return e;default:return t}}case $e:return t}}}function ut(e){return lt(e)===Je}var ct={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ge,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:rt,Memo:nt,Portal:$e,Profiler:Ze,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ut(e)||lt(e)===Ke},isConcurrentMode:ut,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ge},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===rt},isMemo:function(e){return lt(e)===nt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ze},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ze||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===Ge||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(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,a=e?Symbol.for("react.fragment"):60107,o=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 E(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 a:case i:case o: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 x=c,_=l,w=s,k=n,S=d,C=a,O=v,A=m,N=r,R=i,I=o,P=f,T=!1;function L(e){return E(e)===c}t.AsyncMode=u,t.ConcurrentMode=x,t.ContextConsumer=_,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=A,t.Portal=N,t.Profiler=R,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)||E(e)===u},t.isConcurrentMode=L,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)===a},t.isLazy=function(e){return E(e)===v},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)===o},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===i||e===o||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=E}()});function ft(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}a(function(e){e.exports="production"===process.env.NODE_ENV?ct:dt});var pt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},mt=function(e,t,n){pt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},vt={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},ht="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",yt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},Et=function(e){return null!=e&&"boolean"!=typeof e},xt=/* #__PURE__ */Pe(function(e){return bt(e)?e:e.replace(yt,"-$&").toLowerCase()}),_t=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gt,function(e,t,n){return Pt={name:t,styles:n,next:Pt},t})}return 1===vt[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var wt=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,kt=["normal","none","initial","inherit","unset"],St=_t,Ct=/^-ms-/,Ot=/-(.)/g,At={};_t=function(e,t){if("content"===e&&("string"!=typeof t||-1===kt.indexOf(t)&&!wt.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=St(e,t);return""===n||bt(e)||-1===e.indexOf("-")||void 0!==At[e]||(At[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ct,"ms-").replace(Ot,function(e,t){return t.toUpperCase()})+"?")),n}}var Nt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Rt(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(Nt);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Pt={name:n.name,styles:n.styles,next:Pt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pt={name:r.name,styles:r.styles,next:Pt},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Rt(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Et(i)&&(r+=xt(o)+":"+_t(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Nt);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Rt(e,t,i);switch(o){case"animation":case"animationName":r+=xt(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&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+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Et(i[l])&&(r+=xt(o)+":"+_t(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Pt,i=n(e);return Pt=o,Rt(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(gt,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 It,Pt,Tt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(It=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Lt=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,a="";Pt=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=Rt(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(ht),a+=i[0]);for(var s=1;s<e.length;s++)a+=Rt(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(ht),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(It,function(e){return o=e,""})),Tt.lastIndex=0;for(var l,u="";null!==(l=Tt.exec(a));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)}(a)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:a,map:o,next:Pt,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:a,next:Pt}},Dt={}.hasOwnProperty,Mt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Mt.displayName="EmotionCacheContext");var Vt=function(e){/*#__PURE__*/
2
- return F.forwardRef(function(t,n){var r=F.useContext(Mt);return e(t,r,n)})},jt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(jt.displayName="EmotionThemeContext");var Bt=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function Ft(e){Bt(e)}var zt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),Ft(function(){return mt(t,n,r)}),null},Ht=/* #__PURE__ */Vt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[r],i="";"string"==typeof e.className?i=ft(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Lt(o,void 0,F.useContext(jt));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Lt([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var u={};for(var c in e)!Dt.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__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(zt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,u))});"production"!==process.env.NODE_ENV&&(Ht.displayName="EmotionCssPropInternal");var Wt=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,Ut=!1,$t=/* #__PURE__ */Vt(function(e,t){"production"===process.env.NODE_ENV||Ut||!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?"),Ut=!0);var n=Lt([e.styles],void 0,F.useContext(jt)),r=F.useRef();return Wt(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),r.current=[a,o],function(){a.flush()}},[t]),Wt(function(){var e=r.current,a=e[0];e[1]?e[1]=!1:(void 0!==n.next&&mt(t,n.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",n,a,!1))},[t,n.name]),null});function qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lt(t)}"production"!==process.env.NODE_ENV&&($t.displayName="EmotionGlobal");var Yt=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.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="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function Zt(e,t,n){var r=[],a=ft(e,r,n);return r.length<2?n:a+t(r)}var Gt=function(e){var t=e.cache,n=e.serializedArr;return Ft(function(){for(var e=0;e<n.length;e++)mt(t,n[e],!1)}),null},Xt=/* #__PURE__ */Vt(function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];var i=Lt(a,t.registered);return r.push(i),pt(t,i,!1),t.key+"-"+i.name},o={css:a,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),o=0;o<e;o++)r[o]=arguments[o];return Zt(t.registered,a,Yt(r))},theme:F.useContext(jt)},i=e.children(o);return n=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Gt,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Xt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Kt="undefined"!=typeof globalThis?globalThis:window,Jt="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Kt[Jt]&&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."),Kt[Jt]=!0}function Qt(e,n){if(null!=e)if(t.isFunction(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function en(){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 Qt(t,e)})}}function tn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,a=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&n){var r=new Error(a);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function nn(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
3
- return F.isValidElement(e)})}var rn=t.isBrowser?F.useLayoutEffect:F.useEffect;function an(e,t){void 0===t&&(t=[]);var n=F.useRef(e);return rn(function(){n.current=e}),F.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 on(e,n,r,a){var o=an(n);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(r))?i:document;if(n)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,r,a,o,n]),function(){var n;(null!=(n=t.runIfFn(r))?n:document).removeEventListener(e,o,a)}}function sn(e){void 0===e&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],a=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,a]}function ln(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function un(e){var n=e.value,r=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=an(e.onChange),s=an(o),l=F.useState(r),u=l[1],c=void 0!==n,d=c?n:l[0],f=F.useCallback(function(e){var n=t.runIfFn(e,d);s(d,n)&&(c||u(n),i(n))},[c,i,d,s]);return[d,f]}function cn(){return cn=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},cn.apply(this,arguments)}function dn(e,t){var n=F.useId();return F.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var fn=function(e,t){var n=F.useRef(!1),r=F.useRef(!1);F.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),F.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function pn(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function mn(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 vn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&mn(t,e)})}},t)}function hn(e,n){var r,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(r=n.current)&&r.contains(a))}var yn=/*#__PURE__*/F.createContext({});function gn(){return gn=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},gn.apply(this,arguments)}t.__DEV__&&(yn.displayName="ColorModeContext");var bn,En,xn=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},_n=function(e,n){return function(r){var a=String(n),o=function(e){return/!(important)?$/.test(e)}(a),i=xn(a),s=e?e+"."+i:i,l=t.isObject(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:n;return l=xn(l),o?l+" !important":l}};function wn(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,a){var o,i=_n(t,e)(a),s=null!=(o=null==n?void 0:n(i,a))?o:i;return r&&(s=r(s,a)),s}}function kn(e,t){return function(n){var r={property:n,scale:e};return r.transform=wn({scale:e,transform:t}),r}}var Sn=["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))"],Cn={"--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(" ")},On={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,/*!*/ /*!*/)"},An={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Nn=((bn={})["& > :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))"},bn),Rn=((En={})["& > :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))"},En);function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,t)}function Pn(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&&In(e,t)}function Tn(){Tn=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),In(o,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 Pn(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,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){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)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Tn.apply(this,arguments)}var Ln={"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"},Dn=new Set(Object.values(Ln)),Mn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Vn=function(e){return e.trim()},jn=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},Bn=function(e){return function(t){return e+"("+t+")"}},Fn={filter:function(e){return"auto"!==e?e:Cn},backdropFilter:function(e){return"auto"!==e?e:On},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(", ")}}(Fn.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(Sn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Sn).join(" "):e},px:function(e){if(null==e)return e;var n=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return n.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var n=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||n?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Mn.has(e))return e;var a=null!=(n=null==(r=/*#__PURE__*/Tn(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(Vn).filter(Boolean),u=l[0],c=l.slice(1);if(0===(null==c?void 0:c.length))return e;c.unshift(u in Ln?Ln[u]:u);var d=c.map(function(e){if(Dn.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=r[0],o=r[1],i=jn(o)?o:o&&o.split(" "),s="colors."+a,l=s in t.__cssMap?t.__cssMap[s].varRef:a;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Bn("blur"),opacity:Bn("opacity"),brightness:Bn("brightness"),contrast:Bn("contrast"),dropShadow:Bn("drop-shadow"),grayscale:Bn("grayscale"),hueRotate:Bn("hue-rotate"),invert:Bn("invert"),saturate:Bn("saturate"),sepia:Bn("sepia"),bgImage:function(e){return null==e||jn(e)||Mn.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=An[e])?t:{},r=n.space,a=n.divide,o={flexDirection:e};return r&&(o[r]=1),a&&(o[a]=1),o}},zn={borderWidths:kn("borderWidths"),borderStyles:kn("borderStyles"),colors:kn("colors"),borders:kn("borders"),radii:kn("radii",Fn.px),space:kn("space",Fn.px),spaceT:kn("space",Fn.px),degreeT:function(e){return{property:e,transform:Fn.degree}},prop:function(e,t,n){return gn({property:e,scale:t},t&&{transform:wn({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:kn("sizes",Fn.px),sizesT:kn("sizes",Fn.fraction),shadows:kn("shadows"),logical:function(e){var t,n,r,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:a?wn({scale:a,compose:o}):o}},blur:kn("blur",Fn.blur)},Hn={background:zn.colors("background"),backgroundColor:zn.colors("backgroundColor"),backgroundImage:zn.propT("backgroundImage",Fn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Fn.bgClip},bgSize:zn.prop("backgroundSize"),bgPosition:zn.prop("backgroundPosition"),bg:zn.colors("background"),bgColor:zn.colors("backgroundColor"),bgPos:zn.prop("backgroundPosition"),bgRepeat:zn.prop("backgroundRepeat"),bgAttachment:zn.prop("backgroundAttachment"),bgGradient:zn.propT("backgroundImage",Fn.gradient),bgClip:{transform:Fn.bgClip}};Object.assign(Hn,{bgImage:Hn.backgroundImage,bgImg:Hn.backgroundImage});var Wn={border:zn.borders("border"),borderWidth:zn.borderWidths("borderWidth"),borderStyle:zn.borderStyles("borderStyle"),borderColor:zn.colors("borderColor"),borderRadius:zn.radii("borderRadius"),borderTop:zn.borders("borderTop"),borderBlockStart:zn.borders("borderBlockStart"),borderTopLeftRadius:zn.radii("borderTopLeftRadius"),borderStartStartRadius:zn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:zn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:zn.radii("borderTopRightRadius"),borderStartEndRadius:zn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:zn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:zn.borders("borderRight"),borderInlineEnd:zn.borders("borderInlineEnd"),borderBottom:zn.borders("borderBottom"),borderBlockEnd:zn.borders("borderBlockEnd"),borderBottomLeftRadius:zn.radii("borderBottomLeftRadius"),borderBottomRightRadius:zn.radii("borderBottomRightRadius"),borderLeft:zn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:zn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:zn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:zn.borders(["borderLeft","borderRight"]),borderInline:zn.borders("borderInline"),borderY:zn.borders(["borderTop","borderBottom"]),borderBlock:zn.borders("borderBlock"),borderTopWidth:zn.borderWidths("borderTopWidth"),borderBlockStartWidth:zn.borderWidths("borderBlockStartWidth"),borderTopColor:zn.colors("borderTopColor"),borderBlockStartColor:zn.colors("borderBlockStartColor"),borderTopStyle:zn.borderStyles("borderTopStyle"),borderBlockStartStyle:zn.borderStyles("borderBlockStartStyle"),borderBottomWidth:zn.borderWidths("borderBottomWidth"),borderBlockEndWidth:zn.borderWidths("borderBlockEndWidth"),borderBottomColor:zn.colors("borderBottomColor"),borderBlockEndColor:zn.colors("borderBlockEndColor"),borderBottomStyle:zn.borderStyles("borderBottomStyle"),borderBlockEndStyle:zn.borderStyles("borderBlockEndStyle"),borderLeftWidth:zn.borderWidths("borderLeftWidth"),borderInlineStartWidth:zn.borderWidths("borderInlineStartWidth"),borderLeftColor:zn.colors("borderLeftColor"),borderInlineStartColor:zn.colors("borderInlineStartColor"),borderLeftStyle:zn.borderStyles("borderLeftStyle"),borderInlineStartStyle:zn.borderStyles("borderInlineStartStyle"),borderRightWidth:zn.borderWidths("borderRightWidth"),borderInlineEndWidth:zn.borderWidths("borderInlineEndWidth"),borderRightColor:zn.colors("borderRightColor"),borderInlineEndColor:zn.colors("borderInlineEndColor"),borderRightStyle:zn.borderStyles("borderRightStyle"),borderInlineEndStyle:zn.borderStyles("borderInlineEndStyle"),borderTopRadius:zn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:zn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:zn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:zn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Wn,{rounded:Wn.borderRadius,roundedTop:Wn.borderTopRadius,roundedTopLeft:Wn.borderTopLeftRadius,roundedTopRight:Wn.borderTopRightRadius,roundedTopStart:Wn.borderStartStartRadius,roundedTopEnd:Wn.borderStartEndRadius,roundedBottom:Wn.borderBottomRadius,roundedBottomLeft:Wn.borderBottomLeftRadius,roundedBottomRight:Wn.borderBottomRightRadius,roundedBottomStart:Wn.borderEndStartRadius,roundedBottomEnd:Wn.borderEndEndRadius,roundedLeft:Wn.borderLeftRadius,roundedRight:Wn.borderRightRadius,roundedStart:Wn.borderInlineStartRadius,roundedEnd:Wn.borderInlineEndRadius,borderStart:Wn.borderInlineStart,borderEnd:Wn.borderInlineEnd,borderTopStartRadius:Wn.borderStartStartRadius,borderTopEndRadius:Wn.borderStartEndRadius,borderBottomStartRadius:Wn.borderEndStartRadius,borderBottomEndRadius:Wn.borderEndEndRadius,borderStartRadius:Wn.borderInlineStartRadius,borderEndRadius:Wn.borderInlineEndRadius,borderStartWidth:Wn.borderInlineStartWidth,borderEndWidth:Wn.borderInlineEndWidth,borderStartColor:Wn.borderInlineStartColor,borderEndColor:Wn.borderInlineEndColor,borderStartStyle:Wn.borderInlineStartStyle,borderEndStyle:Wn.borderInlineEndStyle});var Un={color:zn.colors("color"),textColor:zn.colors("color"),fill:zn.colors("fill"),stroke:zn.colors("stroke")},$n={boxShadow:zn.shadows("boxShadow"),mixBlendMode:!0,blendMode:zn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:zn.prop("backgroundBlendMode"),opacity:!0};Object.assign($n,{shadow:$n.boxShadow});var qn={filter:{transform:Fn.filter},blur:zn.blur("--chakra-blur"),brightness:zn.propT("--chakra-brightness",Fn.brightness),contrast:zn.propT("--chakra-contrast",Fn.contrast),hueRotate:zn.degreeT("--chakra-hue-rotate"),invert:zn.propT("--chakra-invert",Fn.invert),saturate:zn.propT("--chakra-saturate",Fn.saturate),dropShadow:zn.propT("--chakra-drop-shadow",Fn.dropShadow),backdropFilter:{transform:Fn.backdropFilter},backdropBlur:zn.blur("--chakra-backdrop-blur"),backdropBrightness:zn.propT("--chakra-backdrop-brightness",Fn.brightness),backdropContrast:zn.propT("--chakra-backdrop-contrast",Fn.contrast),backdropHueRotate:zn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:zn.propT("--chakra-backdrop-invert",Fn.invert),backdropSaturate:zn.propT("--chakra-backdrop-saturate",Fn.saturate)},Yn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Fn.flexDirection},experimental_spaceX:{static:Nn,transform:wn({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Rn,transform:wn({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:zn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:zn.space("gap"),rowGap:zn.space("rowGap"),columnGap:zn.space("columnGap")};Object.assign(Yn,{flexDir:Yn.flexDirection});var Zn={gridGap:zn.space("gridGap"),gridColumnGap:zn.space("gridColumnGap"),gridRowGap:zn.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},Gn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Fn.outline},outlineOffset:!0,outlineColor:zn.colors("outlineColor")},Xn={width:zn.sizesT("width"),inlineSize:zn.sizesT("inlineSize"),height:zn.sizes("height"),blockSize:zn.sizes("blockSize"),boxSize:zn.sizes(["width","height"]),minWidth:zn.sizes("minWidth"),minInlineSize:zn.sizes("minInlineSize"),minHeight:zn.sizes("minHeight"),minBlockSize:zn.sizes("minBlockSize"),maxWidth:zn.sizes("maxWidth"),maxInlineSize:zn.sizes("maxInlineSize"),maxHeight:zn.sizes("maxHeight"),maxBlockSize:zn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:zn.propT("float",Fn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Xn,{w:Xn.width,h:Xn.height,minW:Xn.minWidth,maxW:Xn.maxWidth,minH:Xn.minHeight,maxH:Xn.maxHeight,overscroll:Xn.overscrollBehavior,overscrollX:Xn.overscrollBehaviorX,overscrollY:Xn.overscrollBehaviorY});var Kn={listStyleType:!0,listStylePosition:!0,listStylePos:zn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:zn.prop("listStyleImage")},Jn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Qn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},er=function(e,n,r){var a={},o=t.memoizedGet(e,n,{});for(var i in o)i in r&&null!=r[i]||(a[i]=o[i]);return a},tr={srOnly:{transform:function(e){return!0===e?Jn:"focusable"===e?Qn:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return er(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return er(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return er(t,e,n)}}},nr={position:!0,pos:zn.prop("position"),zIndex:zn.prop("zIndex","zIndices"),inset:zn.spaceT("inset"),insetX:zn.spaceT(["left","right"]),insetInline:zn.spaceT("insetInline"),insetY:zn.spaceT(["top","bottom"]),insetBlock:zn.spaceT("insetBlock"),top:zn.spaceT("top"),insetBlockStart:zn.spaceT("insetBlockStart"),bottom:zn.spaceT("bottom"),insetBlockEnd:zn.spaceT("insetBlockEnd"),left:zn.spaceT("left"),insetInlineStart:zn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:zn.spaceT("right"),insetInlineEnd:zn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(nr,{insetStart:nr.insetInlineStart,insetEnd:nr.insetInlineEnd});var rr={ring:{transform:Fn.ring},ringColor:zn.colors("--chakra-ring-color"),ringOffset:zn.prop("--chakra-ring-offset-width"),ringOffsetColor:zn.colors("--chakra-ring-offset-color"),ringInset:zn.prop("--chakra-ring-inset")},ar={margin:zn.spaceT("margin"),marginTop:zn.spaceT("marginTop"),marginBlockStart:zn.spaceT("marginBlockStart"),marginRight:zn.spaceT("marginRight"),marginInlineEnd:zn.spaceT("marginInlineEnd"),marginBottom:zn.spaceT("marginBottom"),marginBlockEnd:zn.spaceT("marginBlockEnd"),marginLeft:zn.spaceT("marginLeft"),marginInlineStart:zn.spaceT("marginInlineStart"),marginX:zn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:zn.spaceT("marginInline"),marginY:zn.spaceT(["marginTop","marginBottom"]),marginBlock:zn.spaceT("marginBlock"),padding:zn.space("padding"),paddingTop:zn.space("paddingTop"),paddingBlockStart:zn.space("paddingBlockStart"),paddingRight:zn.space("paddingRight"),paddingBottom:zn.space("paddingBottom"),paddingBlockEnd:zn.space("paddingBlockEnd"),paddingLeft:zn.space("paddingLeft"),paddingInlineStart:zn.space("paddingInlineStart"),paddingInlineEnd:zn.space("paddingInlineEnd"),paddingX:zn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:zn.space("paddingInline"),paddingY:zn.space(["paddingTop","paddingBottom"]),paddingBlock:zn.space("paddingBlock")};Object.assign(ar,{m:ar.margin,mt:ar.marginTop,mr:ar.marginRight,me:ar.marginInlineEnd,marginEnd:ar.marginInlineEnd,mb:ar.marginBottom,ml:ar.marginLeft,ms:ar.marginInlineStart,marginStart:ar.marginInlineStart,mx:ar.marginX,my:ar.marginY,p:ar.padding,pt:ar.paddingTop,py:ar.paddingY,px:ar.paddingX,pb:ar.paddingBottom,pl:ar.paddingLeft,ps:ar.paddingInlineStart,paddingStart:ar.paddingInlineStart,pr:ar.paddingRight,pe:ar.paddingInlineEnd,paddingEnd:ar.paddingInlineEnd});var or={textDecorationColor:zn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:zn.shadows("textShadow")},ir={clipPath:!0,transform:zn.propT("transform",Fn.transform),transformOrigin:!0,translateX:zn.spaceT("--chakra-translate-x"),translateY:zn.spaceT("--chakra-translate-y"),skewX:zn.degreeT("--chakra-skew-x"),skewY:zn.degreeT("--chakra-skew-y"),scaleX:zn.prop("--chakra-scale-x"),scaleY:zn.prop("--chakra-scale-y"),scale:zn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:zn.degreeT("--chakra-rotate")},sr={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:zn.prop("transitionDuration","transition.duration"),transitionProperty:zn.prop("transitionProperty","transition.property"),transitionTimingFunction:zn.prop("transitionTimingFunction","transition.easing")},lr={fontFamily:zn.prop("fontFamily","fonts"),fontSize:zn.prop("fontSize","fontSizes",Fn.px),fontWeight:zn.prop("fontWeight","fontWeights"),lineHeight:zn.prop("lineHeight","lineHeights"),letterSpacing:zn.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"}},ur={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:zn.spaceT("scrollMargin"),scrollMarginTop:zn.spaceT("scrollMarginTop"),scrollMarginBottom:zn.spaceT("scrollMarginBottom"),scrollMarginLeft:zn.spaceT("scrollMarginLeft"),scrollMarginRight:zn.spaceT("scrollMarginRight"),scrollMarginX:zn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:zn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:zn.spaceT("scrollPadding"),scrollPaddingTop:zn.spaceT("scrollPaddingTop"),scrollPaddingBottom:zn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:zn.spaceT("scrollPaddingLeft"),scrollPaddingRight:zn.spaceT("scrollPaddingRight"),scrollPaddingX:zn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:zn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function cr(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var dr=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(cr).join(" "+e+" ").replace(/calc/g,"")},fr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["+"].concat(t))+")"},pr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["-"].concat(t))+")"},mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["*"].concat(t))+")"},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["/"].concat(t))+")"},hr=function(e){var t=cr(e);return null==t||Number.isNaN(parseFloat(t))?mr(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},yr=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 yr(fr.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 yr(pr.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 yr(mr.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 yr(vr.apply(void 0,[e].concat(n)))},negate:function(){return yr(hr(e))},toString:function(){return e.toString()}}},{add:fr,subtract:pr,multiply:mr,divide:vr,negate:hr}),gr=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},br=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Er=function(e,t){return e+":focus-visible "+t},xr=function(e,t){return e+":focus-within "+t},_r=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},wr=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},kr=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Sr=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Cr=function(e){return Ar(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Or=function(e){return Ar(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Ar=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(", ")},Nr={_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:Cr(gr),_peerHover:Or(gr),_groupFocus:Cr(br),_peerFocus:Or(br),_groupFocusVisible:Cr(Er),_peerFocusVisible:Or(Er),_groupActive:Cr(_r),_peerActive:Or(_r),_groupDisabled:Cr(wr),_peerDisabled:Or(wr),_groupInvalid:Cr(kr),_peerInvalid:Or(kr),_groupChecked:Cr(Sr),_peerChecked:Or(Sr),_groupFocusWithin:Cr(xr),_peerFocusWithin:Or(xr),_peerPlaceholderShown:Or(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]"},Rr=t.objectKeys(Nr);function Ir(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 Pr(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 Ir(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)?Ir(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 Tr=t.mergeWith({},Hn,Wn,Un,Yn,Xn,qn,rr,Gn,Zn,tr,nr,$n,ar,ur,lr,or,ir,Kn,sr),Lr=Object.assign({},ar,Xn,Yn,Zn,nr),Dr=t.objectKeys(Lr),Mr=[].concat(t.objectKeys(Tr),Rr),Vr=gn({},Tr,Nr),jr=function(e){return e in Vr},Br=function(e,n){return e.startsWith("--")&&t.isString(n)&&!t.isCssVar(n)},Fr=function(e,t){var n,r;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=a(i[0]))?r:o(s))?n:o(t)},zr=/^((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__ */Pe(function(e){return zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wr=function(e){return"theme"!==e},Ur=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Hr:Wr},$r=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},qr=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Yr="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",Zr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),qr(function(){return mt(t,n,r)}),null},Gr=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,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=$r(t,n,o),l=s||Ur(i),u=!l("as");return function(){var c=arguments,d=o&&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(Yr),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(Yr),d.push(c[p],c[0][p])}var m=Vt(function(e,t,n){var r=u&&e.as||i,o="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(jt)}"string"==typeof e.className?o=ft(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var m=Lt(d.concat(c),t.registered,f);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=u&&void 0===s?Ur(r):l,h={};for(var y in e)u&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=o,h.ref=n,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Zr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/F.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===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,r){return e(t,He({},n,r,{shouldForwardProp:$r(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){Gr[e]=Gr(e)});var Xr="undefined"!=typeof Element,Kr="function"==typeof Map,Jr="function"==typeof Set,Qr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ea(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,a,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if(Kr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!ea(r.value[1],t.get(r.value[0])))return!1;return!0}if(Jr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Qr&&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=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Xr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!ea(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var ta=function(e,t){try{return ea(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 na(){return na=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},na.apply(this,arguments)}function ra(){var e=F.useContext(jt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}tn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var aa=function(e){return tn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function oa(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function ia(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var sa=new Set([].concat(Mr,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),la=new Set(["htmlWidth","htmlHeight","htmlSize"]),ua=function(e){return la.has(e)||!sa.has(e)},ca=["theme","css","__css","sx"],da=["baseStyle"];function fa(e,n){var r=null!=n?n:{},a=r.baseStyle,o=ia(r,da);o.shouldForwardProp||(o.shouldForwardProp=ua);var i=function(e){var n=e.baseStyle;return function(e){var r,a=e.css,o=e.__css,i=e.sx,s=ia(e,ca),l=t.objectFilter(s,function(e,t){return jr(t)}),u=t.runIfFn(n,e),c=Object.assign({},o,u,t.filterUndefined(l),i),d=(r=c,function(e){return function(e){var n=e.configs,r=void 0===n?{}:n,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(n,a){void 0===a&&(a=!1);var s=t.runIfFn(n,i),l=function(e){return function(n){if(!n.__breakpoints)return e;var r=n.__breakpoints,a=r.isResponsive,o=r.toArrayValue,i=r.media,s={};for(var l in e){var u=t.runIfFn(e[l],n);if(null!=u)if(u=t.isObject(u)&&a(u)?o(u):u,Array.isArray(u))for(var c=u.slice(0,i.length).length,d=0;d<c;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=u[d]&&(s[f][l]=u[d])):s[l]=u[d]}else s[l]=u}return s}}(s)(i),u={};for(var c in l){var d,f,p,m,v,h=t.runIfFn(l[c],i);c in o&&(c=o[c]),Br(c,h)&&(h=Fr(i,h));var y=r[c];if(!0===y&&(y={property:c}),t.isObject(h)){var g;u[c]=null!=(g=u[c])?g:{},u[c]=t.mergeWith({},u[c],e(h,!0))}else{var b=null!=(d=null==(f=y)||null==f.transform?void 0:f.transform(h,i,s))?d:h;b=null!=(p=y)&&p.processResult?e(b,!0):b;var E=t.runIfFn(null==(m=y)?void 0:m.property,i);if(!a&&null!=(v=y)&&v.static){var x=t.runIfFn(y.static,i);u=t.mergeWith({},u,x)}if(E&&Array.isArray(E))for(var _,w=Pr(E);!(_=w()).done;)u[_.value]=b;else E?"&"===E&&t.isObject(b)?u=t.mergeWith({},u,b):u[E]=b:t.isObject(b)?u=t.mergeWith({},u,b):u[c]=b}}return u}}({theme:e,pseudos:Nr,configs:Tr})(r)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Gr(e,o)(i)}function pa(e){/*#__PURE__*/
1
+ var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),n=require("react-hook-form");function r(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 a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var w=_.prototype=new x;w.constructor=_,g(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g;function I(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 P(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+I(l,0):r,k(a)?(n="",null!=e&&(n=e.replace(R,"$&/")+"/"),P(a,t,n,"",function(e){return e})):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",k(e))for(var u=0;u<e.length;u++){var c=r+I(s=e[u],u);l+=P(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=P(s=s.value,t,n,c=r+I(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function L(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 D={current:null},M={transition:null},V={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j={Children:V,Component:E,Fragment:s,Profiler:u,PureComponent:_,StrictMode:l,Suspense:p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},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=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!O.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},createElement:A,createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:f,render:e}},isValidElement:N,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.2.0"},B=a(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"),a=Symbol.for("react.fragment"),o=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},E={current:null},x={},_=null;function w(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function S(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 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("error",e,n)}function O(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=x,k.ReactCurrentActQueue=b;var A={};function N(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;A[a]||(C("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),A[a]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){N(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){N(e,"replaceState")},enqueueSetState:function(e,t,n,r){N(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}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)."]},D=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function V(){}function j(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}V.prototype=T.prototype;var B=j.prototype=new V;B.constructor=j,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function H(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return C("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 U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("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 a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return U(e)+".Consumer";case s:return U(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return $(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,C("%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,C("%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=$(E.current.type);Z[t]||(C('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,a,o,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:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,a={},o=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(H(t.key),o=""+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)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.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),a.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,p),i&&ee(a,p)}return ne(e,o,i,s,l,E.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=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=E.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==a?a[r]:t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,s,l,u,c,o)}function oe(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?(H(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,a,o,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=""===o?"."+ce(f,0):o;if(z(p)){var v="";null!=m&&(v=ue(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||H(p.key),l=p,u=a+(!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=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(c=e[b],t,a,g+ce(c,b),i);else{var E=h(e);if("function"==typeof E){var x=e;E===x.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var _,w=E.call(x),k=0;!(_=w.next()).done;)y+=de(c=_.value,t,a,g+ce(c,k++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). 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=[],a=0;return de(e,r,"","",function(e){return t.call(n,e,a++)}),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&&C("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||C("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===a||e===i||e===o||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&&C("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,Ee,xe,_e,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,Ce=k.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ae,Ne=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ne)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ne=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===we){he=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();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&&Ae.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ne=!1,Ce.current=a,function(){if(0==--we){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:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:_e})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Oe(f):"";return"function"==typeof e&&Ae.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 Oe(e);switch(e){case c:return Oe("Suspense");case d:return Oe("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,a=e._init;try{return Pe(a(r),t,n)}catch(e){}}return""}Ae=new Re;var Te,Le={},De=k.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function Ve(e){if(e){var t=e._owner;w(Pe(e.type,e._source,t?t.type:null))}else w(null)}function je(){if(E.current){var e=$(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}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=je();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 "+$(e._owner.type)+"."),Ve(e),C('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),Ve(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&ze(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function He(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=$(n);!function(e,t,n,r,a){var o=Function.call.bind(G);for(var i in e)if(o(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||(Me(a),C("%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),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ve(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ve(null);break}}null!==e.ref&&(Ve(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}function $e(e,t,r){var o=me(e);if(!o){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||je(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("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(o)for(var c=2;c<arguments.length;c++)We(arguments[c],e);return e===a?Ue(u):He(u),u}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&C("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 a=b.current;if(null!==a)try{et(a),function(o){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&&C("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===a.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=$e,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(!oe(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=a,t.Profiler=i,t.PureComponent=j,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)We(arguments[a],r.type);return He(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,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("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,C("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){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("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 S("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?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("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||C("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=oe,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){C("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){C("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)||C("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&&S("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 a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,s={then:function(e,n){i=!0,o.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,C("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?C("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&&C("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)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?j:B}),z=/*#__PURE__*/r({__proto__:null,default:F},[F]),W=/*#__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}(),H="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function Z(e){return e.trim()}function G(e,t,n){return e.replace(t,n)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,ae=0,oe=0,ie=0,se="";function le(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ne,column:re,length:i,return:""}}function ue(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ce(){return ie=oe>0?K(se,--oe):0,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=oe<ae?K(se,oe++):0,re++,10===ie&&(re=1,ne++),ie}function fe(){return K(se,oe)}function pe(){return oe}function me(e,t){return J(se,e,t)}function ve(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 he(e){return ne=re=1,ae=Q(se=e),oe=0,[]}function ye(e){return se="",e}function ge(e){return Z(me(oe-1,xe(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=fe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function Ee(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,pe()+(t<6&&32==fe()&&32==de()))}function xe(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&xe(ie);break;case 40:41===e&&xe(e);break;case 92:de()}return oe}function _e(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==fe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function we(e){for(;!ve(fe());)de();return me(e,oe)}function ke(e){return ye(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,n,r,a,o,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="",E=a,x=o,_=r,w=b;h;)switch(m=g,g=de()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=X(w+=G(ge(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:w+=ge(g);break;case 9:case 10:case 13:case 32:w+=be(m);break;case 92:w+=Ee(pe()-1,7);continue;case 47:switch(fe()){case 42:case 47:te(Oe(_e(de(),pe()),t,n),l);break;default:w+="/"}break;case 123*v:s[u++]=Q(w)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+c:p>0&&Q(w)-d&&te(p>32?Ae(w+";",r,n,d-1):Ae(G(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(te(_=Ce(w,t,n,u,c,a,s,b,E=[],x=[],d),o),123===g)if(0===c)Se(w,t,_,_,E,o,d,s,x);else switch(f){case 100:case 109:case 115:Se(e,_,_,r&&te(Ce(e,_,_,0,0,a,s,b,a,E=[],d),x),a,x,d,s,r?E:x);break;default:Se(w,_,_,_,[""],x,0,s,x)}}u=c=p=0,v=y=1,b=w="",d=i;break;case 58:d=1+Q(w),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==ce())continue;switch(w+=q(g),g*v){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(Q(w)-1)*y,y=1;break;case 64:45===fe()&&(w+=ge(de())),f=fe(),c=d=Q(b=w+=we(pe())),g++;break;case 45:45===m&&2==Q(w)&&(v=0)}}return o}function Ce(e,t,n,r,a,o,i,s,l,u,c){for(var d=a-1,f=0===a?o:[""],p=ee(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=J(e,d+1,d=$(v=i[m])),b=e;y<p;++y)(b=Z(v>0?f[y]+" "+g:G(g,/&\f/g,f[y])))&&(l[h++]=b);return le(e,t,n,0===a?"rule":s,l,u,c)}function Oe(e,t,n){return le(e,t,n,"comm",q(ie),J(e,2,-2),0)}function Ae(e,t,n,r){return le(e,t,n,"decl",J(e,0,r),J(e,r+1,-1),r)}function Ne(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+H+e+e;case 6828:case 4268:return U+e+H+e+e;case 6165:return U+e+H+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+H+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+H+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+H+G(e,"shrink","negative")+e;case 5292:return U+e+H+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+H+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$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(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ne(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+H+e+e}return e}function Re(e,t){for(var n="",r=ee(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Ie(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+"{"+Re(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Q(n=Re(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Te=function(e,t,n){for(var r=0,a=0;r=a,a=fe(),38===r&&12===a&&(t[n]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=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)||Le.get(n))&&!r){Le.set(e,!0);for(var a=[],o=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ve(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Te(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=de());return e}(he(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ve=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},je=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,n){Ve(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."),je(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ve(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."),je(e)))},Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ne(e.value,e.length);break;case"@keyframes":return Re([ue(e,{value:G(e.value,"@","@"+U)})],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 Re([ue(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Re([ue(e,{props:[G(t,/:(plac\w+)/,":-webkit-input-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,H+"input-$1")]})],r)}return""})}}],ze=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||Fe;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 a,o,i={},s=[];a=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=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!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}((a=i.children).length?a[a.length-1]:null))return;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 p.compat}}),Be);var u,c,d=[Ie,"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=ee(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}(l.concat(r,d));o=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)}}),Re(ke(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};function We(){return We=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},We.apply(this,arguments)}var He="function"==typeof Symbol&&Symbol.for,Ue=He?Symbol.for("react.element"):60103,$e=He?Symbol.for("react.portal"):60106,qe=He?Symbol.for("react.fragment"):60107,Ye=He?Symbol.for("react.strict_mode"):60108,Ze=He?Symbol.for("react.profiler"):60114,Ge=He?Symbol.for("react.provider"):60109,Xe=He?Symbol.for("react.context"):60110,Ke=He?Symbol.for("react.async_mode"):60111,Je=He?Symbol.for("react.concurrent_mode"):60111,Qe=He?Symbol.for("react.forward_ref"):60112,et=He?Symbol.for("react.suspense"):60113,tt=He?Symbol.for("react.suspense_list"):60120,nt=He?Symbol.for("react.memo"):60115,rt=He?Symbol.for("react.lazy"):60116,at=He?Symbol.for("react.block"):60121,ot=He?Symbol.for("react.fundamental"):60117,it=He?Symbol.for("react.responder"):60118,st=He?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ze:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case rt:case nt:case Ge:return e;default:return t}}case $e:return t}}}function ut(e){return lt(e)===Je}var ct={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ge,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:rt,Memo:nt,Portal:$e,Profiler:Ze,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ut(e)||lt(e)===Ke},isConcurrentMode:ut,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ge},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===rt},isMemo:function(e){return lt(e)===nt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ze},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ze||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===Ge||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(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,a=e?Symbol.for("react.fragment"):60107,o=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 E(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 a:case i:case o: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 x=c,_=l,w=s,k=n,S=d,C=a,O=v,A=m,N=r,R=i,I=o,P=f,T=!1;function L(e){return E(e)===c}t.AsyncMode=u,t.ConcurrentMode=x,t.ContextConsumer=_,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=A,t.Portal=N,t.Profiler=R,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)||E(e)===u},t.isConcurrentMode=L,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)===a},t.isLazy=function(e){return E(e)===v},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)===o},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===i||e===o||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=E}()});function ft(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}a(function(e){e.exports="production"===process.env.NODE_ENV?ct:dt});var pt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},mt=function(e,t,n){pt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},vt={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},ht="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",yt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},Et=function(e){return null!=e&&"boolean"!=typeof e},xt=/* #__PURE__ */Pe(function(e){return bt(e)?e:e.replace(yt,"-$&").toLowerCase()}),_t=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gt,function(e,t,n){return Pt={name:t,styles:n,next:Pt},t})}return 1===vt[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var wt=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,kt=["normal","none","initial","inherit","unset"],St=_t,Ct=/^-ms-/,Ot=/-(.)/g,At={};_t=function(e,t){if("content"===e&&("string"!=typeof t||-1===kt.indexOf(t)&&!wt.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=St(e,t);return""===n||bt(e)||-1===e.indexOf("-")||void 0!==At[e]||(At[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ct,"ms-").replace(Ot,function(e,t){return t.toUpperCase()})+"?")),n}}var Nt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Rt(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(Nt);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Pt={name:n.name,styles:n.styles,next:Pt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pt={name:r.name,styles:r.styles,next:Pt},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Rt(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Et(i)&&(r+=xt(o)+":"+_t(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Nt);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Rt(e,t,i);switch(o){case"animation":case"animationName":r+=xt(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&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+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Et(i[l])&&(r+=xt(o)+":"+_t(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Pt,i=n(e);return Pt=o,Rt(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(gt,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 It,Pt,Tt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(It=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Lt=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,a="";Pt=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=Rt(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(ht),a+=i[0]);for(var s=1;s<e.length;s++)a+=Rt(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(ht),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(It,function(e){return o=e,""})),Tt.lastIndex=0;for(var l,u="";null!==(l=Tt.exec(a));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)}(a)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:a,map:o,next:Pt,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:a,next:Pt}},Dt={}.hasOwnProperty,Mt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Mt.displayName="EmotionCacheContext");var Vt=function(e){/*#__PURE__*/
2
+ return F.forwardRef(function(t,n){var r=F.useContext(Mt);return e(t,r,n)})},jt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(jt.displayName="EmotionThemeContext");var Bt=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function Ft(e){Bt(e)}var zt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),Ft(function(){return mt(t,n,r)}),null},Wt=/* #__PURE__ */Vt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[r],i="";"string"==typeof e.className?i=ft(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Lt(o,void 0,F.useContext(jt));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Lt([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var u={};for(var c in e)!Dt.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__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(zt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,u))});"production"!==process.env.NODE_ENV&&(Wt.displayName="EmotionCssPropInternal");var Ht=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,Ut=!1,$t=/* #__PURE__ */Vt(function(e,t){"production"===process.env.NODE_ENV||Ut||!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?"),Ut=!0);var n=Lt([e.styles],void 0,F.useContext(jt)),r=F.useRef();return Ht(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),r.current=[a,o],function(){a.flush()}},[t]),Ht(function(){var e=r.current,a=e[0];e[1]?e[1]=!1:(void 0!==n.next&&mt(t,n.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",n,a,!1))},[t,n.name]),null});function qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lt(t)}"production"!==process.env.NODE_ENV&&($t.displayName="EmotionGlobal");var Yt=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.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="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function Zt(e,t,n){var r=[],a=ft(e,r,n);return r.length<2?n:a+t(r)}var Gt=function(e){var t=e.cache,n=e.serializedArr;return Ft(function(){for(var e=0;e<n.length;e++)mt(t,n[e],!1)}),null},Xt=/* #__PURE__ */Vt(function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];var i=Lt(a,t.registered);return r.push(i),pt(t,i,!1),t.key+"-"+i.name},o={css:a,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),o=0;o<e;o++)r[o]=arguments[o];return Zt(t.registered,a,Yt(r))},theme:F.useContext(jt)},i=e.children(o);return n=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Gt,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Xt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Kt="undefined"!=typeof globalThis?globalThis:window,Jt="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Kt[Jt]&&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."),Kt[Jt]=!0}function Qt(e,n){if(null!=e)if(t.isFunction(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function en(){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 Qt(t,e)})}}function tn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,a=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&n){var r=new Error(a);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function nn(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
3
+ return F.isValidElement(e)})}var rn=t.isBrowser?F.useLayoutEffect:F.useEffect;function an(e,t){void 0===t&&(t=[]);var n=F.useRef(e);return rn(function(){n.current=e}),F.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 on(e,n,r,a){var o=an(n);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(r))?i:document;if(n)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,r,a,o,n]),function(){var n;(null!=(n=t.runIfFn(r))?n:document).removeEventListener(e,o,a)}}function sn(e){void 0===e&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],a=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,a]}function ln(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function un(e){var n=e.value,r=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=an(e.onChange),s=an(o),l=F.useState(r),u=l[1],c=void 0!==n,d=c?n:l[0],f=F.useCallback(function(e){var n=t.runIfFn(e,d);s(d,n)&&(c||u(n),i(n))},[c,i,d,s]);return[d,f]}function cn(){return cn=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},cn.apply(this,arguments)}function dn(e,t){var n=F.useId();return F.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var fn=function(e,t){var n=F.useRef(!1),r=F.useRef(!1);F.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),F.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function pn(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function mn(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 vn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&mn(t,e)})}},t)}function hn(e,n){var r,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(r=n.current)&&r.contains(a))}var yn=/*#__PURE__*/F.createContext({});function gn(){return gn=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},gn.apply(this,arguments)}t.__DEV__&&(yn.displayName="ColorModeContext");var bn,En,xn=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},_n=function(e,n){return function(r){var a=String(n),o=function(e){return/!(important)?$/.test(e)}(a),i=xn(a),s=e?e+"."+i:i,l=t.isObject(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:n;return l=xn(l),o?l+" !important":l}};function wn(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,a){var o,i=_n(t,e)(a),s=null!=(o=null==n?void 0:n(i,a))?o:i;return r&&(s=r(s,a)),s}}function kn(e,t){return function(n){var r={property:n,scale:e};return r.transform=wn({scale:e,transform:t}),r}}var Sn=["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))"],Cn={"--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(" ")},On={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,/*!*/ /*!*/)"},An={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Nn=((bn={})["& > :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))"},bn),Rn=((En={})["& > :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))"},En);function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,t)}function Pn(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&&In(e,t)}function Tn(){Tn=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),In(o,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 Pn(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,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){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)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Tn.apply(this,arguments)}var Ln={"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"},Dn=new Set(Object.values(Ln)),Mn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Vn=function(e){return e.trim()},jn=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},Bn=function(e){return function(t){return e+"("+t+")"}},Fn={filter:function(e){return"auto"!==e?e:Cn},backdropFilter:function(e){return"auto"!==e?e:On},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(", ")}}(Fn.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(Sn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Sn).join(" "):e},px:function(e){if(null==e)return e;var n=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return n.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var n=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||n?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Mn.has(e))return e;var a=null!=(n=null==(r=/*#__PURE__*/Tn(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(Vn).filter(Boolean),u=l[0],c=l.slice(1);if(0===(null==c?void 0:c.length))return e;c.unshift(u in Ln?Ln[u]:u);var d=c.map(function(e){if(Dn.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=r[0],o=r[1],i=jn(o)?o:o&&o.split(" "),s="colors."+a,l=s in t.__cssMap?t.__cssMap[s].varRef:a;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Bn("blur"),opacity:Bn("opacity"),brightness:Bn("brightness"),contrast:Bn("contrast"),dropShadow:Bn("drop-shadow"),grayscale:Bn("grayscale"),hueRotate:Bn("hue-rotate"),invert:Bn("invert"),saturate:Bn("saturate"),sepia:Bn("sepia"),bgImage:function(e){return null==e||jn(e)||Mn.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=An[e])?t:{},r=n.space,a=n.divide,o={flexDirection:e};return r&&(o[r]=1),a&&(o[a]=1),o}},zn={borderWidths:kn("borderWidths"),borderStyles:kn("borderStyles"),colors:kn("colors"),borders:kn("borders"),radii:kn("radii",Fn.px),space:kn("space",Fn.px),spaceT:kn("space",Fn.px),degreeT:function(e){return{property:e,transform:Fn.degree}},prop:function(e,t,n){return gn({property:e,scale:t},t&&{transform:wn({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:kn("sizes",Fn.px),sizesT:kn("sizes",Fn.fraction),shadows:kn("shadows"),logical:function(e){var t,n,r,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:a?wn({scale:a,compose:o}):o}},blur:kn("blur",Fn.blur)},Wn={background:zn.colors("background"),backgroundColor:zn.colors("backgroundColor"),backgroundImage:zn.propT("backgroundImage",Fn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Fn.bgClip},bgSize:zn.prop("backgroundSize"),bgPosition:zn.prop("backgroundPosition"),bg:zn.colors("background"),bgColor:zn.colors("backgroundColor"),bgPos:zn.prop("backgroundPosition"),bgRepeat:zn.prop("backgroundRepeat"),bgAttachment:zn.prop("backgroundAttachment"),bgGradient:zn.propT("backgroundImage",Fn.gradient),bgClip:{transform:Fn.bgClip}};Object.assign(Wn,{bgImage:Wn.backgroundImage,bgImg:Wn.backgroundImage});var Hn={border:zn.borders("border"),borderWidth:zn.borderWidths("borderWidth"),borderStyle:zn.borderStyles("borderStyle"),borderColor:zn.colors("borderColor"),borderRadius:zn.radii("borderRadius"),borderTop:zn.borders("borderTop"),borderBlockStart:zn.borders("borderBlockStart"),borderTopLeftRadius:zn.radii("borderTopLeftRadius"),borderStartStartRadius:zn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:zn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:zn.radii("borderTopRightRadius"),borderStartEndRadius:zn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:zn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:zn.borders("borderRight"),borderInlineEnd:zn.borders("borderInlineEnd"),borderBottom:zn.borders("borderBottom"),borderBlockEnd:zn.borders("borderBlockEnd"),borderBottomLeftRadius:zn.radii("borderBottomLeftRadius"),borderBottomRightRadius:zn.radii("borderBottomRightRadius"),borderLeft:zn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:zn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:zn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:zn.borders(["borderLeft","borderRight"]),borderInline:zn.borders("borderInline"),borderY:zn.borders(["borderTop","borderBottom"]),borderBlock:zn.borders("borderBlock"),borderTopWidth:zn.borderWidths("borderTopWidth"),borderBlockStartWidth:zn.borderWidths("borderBlockStartWidth"),borderTopColor:zn.colors("borderTopColor"),borderBlockStartColor:zn.colors("borderBlockStartColor"),borderTopStyle:zn.borderStyles("borderTopStyle"),borderBlockStartStyle:zn.borderStyles("borderBlockStartStyle"),borderBottomWidth:zn.borderWidths("borderBottomWidth"),borderBlockEndWidth:zn.borderWidths("borderBlockEndWidth"),borderBottomColor:zn.colors("borderBottomColor"),borderBlockEndColor:zn.colors("borderBlockEndColor"),borderBottomStyle:zn.borderStyles("borderBottomStyle"),borderBlockEndStyle:zn.borderStyles("borderBlockEndStyle"),borderLeftWidth:zn.borderWidths("borderLeftWidth"),borderInlineStartWidth:zn.borderWidths("borderInlineStartWidth"),borderLeftColor:zn.colors("borderLeftColor"),borderInlineStartColor:zn.colors("borderInlineStartColor"),borderLeftStyle:zn.borderStyles("borderLeftStyle"),borderInlineStartStyle:zn.borderStyles("borderInlineStartStyle"),borderRightWidth:zn.borderWidths("borderRightWidth"),borderInlineEndWidth:zn.borderWidths("borderInlineEndWidth"),borderRightColor:zn.colors("borderRightColor"),borderInlineEndColor:zn.colors("borderInlineEndColor"),borderRightStyle:zn.borderStyles("borderRightStyle"),borderInlineEndStyle:zn.borderStyles("borderInlineEndStyle"),borderTopRadius:zn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:zn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:zn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:zn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Hn,{rounded:Hn.borderRadius,roundedTop:Hn.borderTopRadius,roundedTopLeft:Hn.borderTopLeftRadius,roundedTopRight:Hn.borderTopRightRadius,roundedTopStart:Hn.borderStartStartRadius,roundedTopEnd:Hn.borderStartEndRadius,roundedBottom:Hn.borderBottomRadius,roundedBottomLeft:Hn.borderBottomLeftRadius,roundedBottomRight:Hn.borderBottomRightRadius,roundedBottomStart:Hn.borderEndStartRadius,roundedBottomEnd:Hn.borderEndEndRadius,roundedLeft:Hn.borderLeftRadius,roundedRight:Hn.borderRightRadius,roundedStart:Hn.borderInlineStartRadius,roundedEnd:Hn.borderInlineEndRadius,borderStart:Hn.borderInlineStart,borderEnd:Hn.borderInlineEnd,borderTopStartRadius:Hn.borderStartStartRadius,borderTopEndRadius:Hn.borderStartEndRadius,borderBottomStartRadius:Hn.borderEndStartRadius,borderBottomEndRadius:Hn.borderEndEndRadius,borderStartRadius:Hn.borderInlineStartRadius,borderEndRadius:Hn.borderInlineEndRadius,borderStartWidth:Hn.borderInlineStartWidth,borderEndWidth:Hn.borderInlineEndWidth,borderStartColor:Hn.borderInlineStartColor,borderEndColor:Hn.borderInlineEndColor,borderStartStyle:Hn.borderInlineStartStyle,borderEndStyle:Hn.borderInlineEndStyle});var Un={color:zn.colors("color"),textColor:zn.colors("color"),fill:zn.colors("fill"),stroke:zn.colors("stroke")},$n={boxShadow:zn.shadows("boxShadow"),mixBlendMode:!0,blendMode:zn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:zn.prop("backgroundBlendMode"),opacity:!0};Object.assign($n,{shadow:$n.boxShadow});var qn={filter:{transform:Fn.filter},blur:zn.blur("--chakra-blur"),brightness:zn.propT("--chakra-brightness",Fn.brightness),contrast:zn.propT("--chakra-contrast",Fn.contrast),hueRotate:zn.degreeT("--chakra-hue-rotate"),invert:zn.propT("--chakra-invert",Fn.invert),saturate:zn.propT("--chakra-saturate",Fn.saturate),dropShadow:zn.propT("--chakra-drop-shadow",Fn.dropShadow),backdropFilter:{transform:Fn.backdropFilter},backdropBlur:zn.blur("--chakra-backdrop-blur"),backdropBrightness:zn.propT("--chakra-backdrop-brightness",Fn.brightness),backdropContrast:zn.propT("--chakra-backdrop-contrast",Fn.contrast),backdropHueRotate:zn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:zn.propT("--chakra-backdrop-invert",Fn.invert),backdropSaturate:zn.propT("--chakra-backdrop-saturate",Fn.saturate)},Yn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Fn.flexDirection},experimental_spaceX:{static:Nn,transform:wn({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Rn,transform:wn({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:zn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:zn.space("gap"),rowGap:zn.space("rowGap"),columnGap:zn.space("columnGap")};Object.assign(Yn,{flexDir:Yn.flexDirection});var Zn={gridGap:zn.space("gridGap"),gridColumnGap:zn.space("gridColumnGap"),gridRowGap:zn.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},Gn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Fn.outline},outlineOffset:!0,outlineColor:zn.colors("outlineColor")},Xn={width:zn.sizesT("width"),inlineSize:zn.sizesT("inlineSize"),height:zn.sizes("height"),blockSize:zn.sizes("blockSize"),boxSize:zn.sizes(["width","height"]),minWidth:zn.sizes("minWidth"),minInlineSize:zn.sizes("minInlineSize"),minHeight:zn.sizes("minHeight"),minBlockSize:zn.sizes("minBlockSize"),maxWidth:zn.sizes("maxWidth"),maxInlineSize:zn.sizes("maxInlineSize"),maxHeight:zn.sizes("maxHeight"),maxBlockSize:zn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:zn.propT("float",Fn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Xn,{w:Xn.width,h:Xn.height,minW:Xn.minWidth,maxW:Xn.maxWidth,minH:Xn.minHeight,maxH:Xn.maxHeight,overscroll:Xn.overscrollBehavior,overscrollX:Xn.overscrollBehaviorX,overscrollY:Xn.overscrollBehaviorY});var Kn={listStyleType:!0,listStylePosition:!0,listStylePos:zn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:zn.prop("listStyleImage")},Jn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Qn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},er=function(e,n,r){var a={},o=t.memoizedGet(e,n,{});for(var i in o)i in r&&null!=r[i]||(a[i]=o[i]);return a},tr={srOnly:{transform:function(e){return!0===e?Jn:"focusable"===e?Qn:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return er(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return er(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return er(t,e,n)}}},nr={position:!0,pos:zn.prop("position"),zIndex:zn.prop("zIndex","zIndices"),inset:zn.spaceT("inset"),insetX:zn.spaceT(["left","right"]),insetInline:zn.spaceT("insetInline"),insetY:zn.spaceT(["top","bottom"]),insetBlock:zn.spaceT("insetBlock"),top:zn.spaceT("top"),insetBlockStart:zn.spaceT("insetBlockStart"),bottom:zn.spaceT("bottom"),insetBlockEnd:zn.spaceT("insetBlockEnd"),left:zn.spaceT("left"),insetInlineStart:zn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:zn.spaceT("right"),insetInlineEnd:zn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(nr,{insetStart:nr.insetInlineStart,insetEnd:nr.insetInlineEnd});var rr={ring:{transform:Fn.ring},ringColor:zn.colors("--chakra-ring-color"),ringOffset:zn.prop("--chakra-ring-offset-width"),ringOffsetColor:zn.colors("--chakra-ring-offset-color"),ringInset:zn.prop("--chakra-ring-inset")},ar={margin:zn.spaceT("margin"),marginTop:zn.spaceT("marginTop"),marginBlockStart:zn.spaceT("marginBlockStart"),marginRight:zn.spaceT("marginRight"),marginInlineEnd:zn.spaceT("marginInlineEnd"),marginBottom:zn.spaceT("marginBottom"),marginBlockEnd:zn.spaceT("marginBlockEnd"),marginLeft:zn.spaceT("marginLeft"),marginInlineStart:zn.spaceT("marginInlineStart"),marginX:zn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:zn.spaceT("marginInline"),marginY:zn.spaceT(["marginTop","marginBottom"]),marginBlock:zn.spaceT("marginBlock"),padding:zn.space("padding"),paddingTop:zn.space("paddingTop"),paddingBlockStart:zn.space("paddingBlockStart"),paddingRight:zn.space("paddingRight"),paddingBottom:zn.space("paddingBottom"),paddingBlockEnd:zn.space("paddingBlockEnd"),paddingLeft:zn.space("paddingLeft"),paddingInlineStart:zn.space("paddingInlineStart"),paddingInlineEnd:zn.space("paddingInlineEnd"),paddingX:zn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:zn.space("paddingInline"),paddingY:zn.space(["paddingTop","paddingBottom"]),paddingBlock:zn.space("paddingBlock")};Object.assign(ar,{m:ar.margin,mt:ar.marginTop,mr:ar.marginRight,me:ar.marginInlineEnd,marginEnd:ar.marginInlineEnd,mb:ar.marginBottom,ml:ar.marginLeft,ms:ar.marginInlineStart,marginStart:ar.marginInlineStart,mx:ar.marginX,my:ar.marginY,p:ar.padding,pt:ar.paddingTop,py:ar.paddingY,px:ar.paddingX,pb:ar.paddingBottom,pl:ar.paddingLeft,ps:ar.paddingInlineStart,paddingStart:ar.paddingInlineStart,pr:ar.paddingRight,pe:ar.paddingInlineEnd,paddingEnd:ar.paddingInlineEnd});var or={textDecorationColor:zn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:zn.shadows("textShadow")},ir={clipPath:!0,transform:zn.propT("transform",Fn.transform),transformOrigin:!0,translateX:zn.spaceT("--chakra-translate-x"),translateY:zn.spaceT("--chakra-translate-y"),skewX:zn.degreeT("--chakra-skew-x"),skewY:zn.degreeT("--chakra-skew-y"),scaleX:zn.prop("--chakra-scale-x"),scaleY:zn.prop("--chakra-scale-y"),scale:zn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:zn.degreeT("--chakra-rotate")},sr={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:zn.prop("transitionDuration","transition.duration"),transitionProperty:zn.prop("transitionProperty","transition.property"),transitionTimingFunction:zn.prop("transitionTimingFunction","transition.easing")},lr={fontFamily:zn.prop("fontFamily","fonts"),fontSize:zn.prop("fontSize","fontSizes",Fn.px),fontWeight:zn.prop("fontWeight","fontWeights"),lineHeight:zn.prop("lineHeight","lineHeights"),letterSpacing:zn.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"}},ur={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:zn.spaceT("scrollMargin"),scrollMarginTop:zn.spaceT("scrollMarginTop"),scrollMarginBottom:zn.spaceT("scrollMarginBottom"),scrollMarginLeft:zn.spaceT("scrollMarginLeft"),scrollMarginRight:zn.spaceT("scrollMarginRight"),scrollMarginX:zn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:zn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:zn.spaceT("scrollPadding"),scrollPaddingTop:zn.spaceT("scrollPaddingTop"),scrollPaddingBottom:zn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:zn.spaceT("scrollPaddingLeft"),scrollPaddingRight:zn.spaceT("scrollPaddingRight"),scrollPaddingX:zn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:zn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function cr(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var dr=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(cr).join(" "+e+" ").replace(/calc/g,"")},fr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["+"].concat(t))+")"},pr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["-"].concat(t))+")"},mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["*"].concat(t))+")"},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+dr.apply(void 0,["/"].concat(t))+")"},hr=function(e){var t=cr(e);return null==t||Number.isNaN(parseFloat(t))?mr(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},yr=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 yr(fr.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 yr(pr.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 yr(mr.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 yr(vr.apply(void 0,[e].concat(n)))},negate:function(){return yr(hr(e))},toString:function(){return e.toString()}}},{add:fr,subtract:pr,multiply:mr,divide:vr,negate:hr}),gr=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},br=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Er=function(e,t){return e+":focus-visible "+t},xr=function(e,t){return e+":focus-within "+t},_r=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},wr=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},kr=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Sr=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Cr=function(e){return Ar(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Or=function(e){return Ar(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Ar=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(", ")},Nr={_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:Cr(gr),_peerHover:Or(gr),_groupFocus:Cr(br),_peerFocus:Or(br),_groupFocusVisible:Cr(Er),_peerFocusVisible:Or(Er),_groupActive:Cr(_r),_peerActive:Or(_r),_groupDisabled:Cr(wr),_peerDisabled:Or(wr),_groupInvalid:Cr(kr),_peerInvalid:Or(kr),_groupChecked:Cr(Sr),_peerChecked:Or(Sr),_groupFocusWithin:Cr(xr),_peerFocusWithin:Or(xr),_peerPlaceholderShown:Or(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]"},Rr=t.objectKeys(Nr);function Ir(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 Pr(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 Ir(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)?Ir(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 Tr=t.mergeWith({},Wn,Hn,Un,Yn,Xn,qn,rr,Gn,Zn,tr,nr,$n,ar,ur,lr,or,ir,Kn,sr),Lr=Object.assign({},ar,Xn,Yn,Zn,nr),Dr=t.objectKeys(Lr),Mr=[].concat(t.objectKeys(Tr),Rr),Vr=gn({},Tr,Nr),jr=function(e){return e in Vr},Br=function(e,n){return e.startsWith("--")&&t.isString(n)&&!t.isCssVar(n)},Fr=function(e,t){var n,r;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=a(i[0]))?r:o(s))?n:o(t)},zr=/^((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)-.*))$/,Wr=/* #__PURE__ */Pe(function(e){return zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Hr=function(e){return"theme"!==e},Ur=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Wr:Hr},$r=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},qr=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Yr="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",Zr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),qr(function(){return mt(t,n,r)}),null},Gr=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,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=$r(t,n,o),l=s||Ur(i),u=!l("as");return function(){var c=arguments,d=o&&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(Yr),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(Yr),d.push(c[p],c[0][p])}var m=Vt(function(e,t,n){var r=u&&e.as||i,o="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(jt)}"string"==typeof e.className?o=ft(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var m=Lt(d.concat(c),t.registered,f);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=u&&void 0===s?Ur(r):l,h={};for(var y in e)u&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=o,h.ref=n,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Zr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/F.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===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,r){return e(t,We({},n,r,{shouldForwardProp:$r(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){Gr[e]=Gr(e)});var Xr="undefined"!=typeof Element,Kr="function"==typeof Map,Jr="function"==typeof Set,Qr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ea(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,a,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if(Kr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!ea(r.value[1],t.get(r.value[0])))return!1;return!0}if(Jr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Qr&&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=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Xr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!ea(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var ta=function(e,t){try{return ea(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 na(){return na=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},na.apply(this,arguments)}function ra(){var e=F.useContext(jt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}tn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var aa=function(e){return tn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function oa(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function ia(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var sa=new Set([].concat(Mr,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),la=new Set(["htmlWidth","htmlHeight","htmlSize"]),ua=function(e){return la.has(e)||!sa.has(e)},ca=["theme","css","__css","sx"],da=["baseStyle"];function fa(e,n){var r=null!=n?n:{},a=r.baseStyle,o=ia(r,da);o.shouldForwardProp||(o.shouldForwardProp=ua);var i=function(e){var n=e.baseStyle;return function(e){var r,a=e.css,o=e.__css,i=e.sx,s=ia(e,ca),l=t.objectFilter(s,function(e,t){return jr(t)}),u=t.runIfFn(n,e),c=Object.assign({},o,u,t.filterUndefined(l),i),d=(r=c,function(e){return function(e){var n=e.configs,r=void 0===n?{}:n,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(n,a){void 0===a&&(a=!1);var s=t.runIfFn(n,i),l=function(e){return function(n){if(!n.__breakpoints)return e;var r=n.__breakpoints,a=r.isResponsive,o=r.toArrayValue,i=r.media,s={};for(var l in e){var u=t.runIfFn(e[l],n);if(null!=u)if(u=t.isObject(u)&&a(u)?o(u):u,Array.isArray(u))for(var c=u.slice(0,i.length).length,d=0;d<c;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=u[d]&&(s[f][l]=u[d])):s[l]=u[d]}else s[l]=u}return s}}(s)(i),u={};for(var c in l){var d,f,p,m,v,h=t.runIfFn(l[c],i);c in o&&(c=o[c]),Br(c,h)&&(h=Fr(i,h));var y=r[c];if(!0===y&&(y={property:c}),t.isObject(h)){var g;u[c]=null!=(g=u[c])?g:{},u[c]=t.mergeWith({},u[c],e(h,!0))}else{var b=null!=(d=null==(f=y)||null==f.transform?void 0:f.transform(h,i,s))?d:h;b=null!=(p=y)&&p.processResult?e(b,!0):b;var E=t.runIfFn(null==(m=y)?void 0:m.property,i);if(!a&&null!=(v=y)&&v.static){var x=t.runIfFn(y.static,i);u=t.mergeWith({},u,x)}if(E&&Array.isArray(E))for(var _,w=Pr(E);!(_=w()).done;)u[_.value]=b;else E?"&"===E&&t.isObject(b)?u=t.mergeWith({},u,b):u[E]=b:t.isObject(b)?u=t.mergeWith({},u,b):u[c]=b}}return u}}({theme:e,pseudos:Nr,configs:Tr})(r)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Gr(e,o)(i)}function pa(e){/*#__PURE__*/
4
4
  return F.forwardRef(e)}var ma=["styleConfig"];function va(e,n){var r;void 0===n&&(n={});var a,o=n.styleConfig,i=ia(n,ma),s=na({},function(){var e=F.useContext(yn);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:ra()}),l=s.theme,u=s.colorMode,c=t.memoizedGet(l,"components."+e),d=o||c,f=t.mergeWith({theme:l,colorMode:u},null!=(r=null==d?void 0:d.defaultProps)?r:{},t.filterUndefined(t.omit(i,["children"]))),p=F.useRef({});if(d){var m=(a=d,function(e){var n,r=e.variant,o=e.size,i=function(e){var n=e.__breakpoints;return function(e,r,a,o){if(n){var i={},s=function(e,n){return t.isArray(e)?e:t.isObject(e)?n(e):null!=e?[e]:void 0}(a,n.toArrayValue);if(!s)return i;for(var l=s.length,u=1===l,c=!!e.parts,d=function(a){var l,d,f=n.details[a],p=n.details[function(e,t){for(var n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}(s,a)],m=t.toMediaQueryString(f.minW,null==p?void 0:p._minW),v=t.runIfFn(null==(l=e[r])?void 0:l[s[a]],o);return v?c?(null==(d=e.parts)||d.forEach(function(e){var n,r;t.mergeWith(i,((r={})[e]=u?v[e]:((n={})[m]=v[e],n),r))}),"continue"):c?void(i[m]=v):(u?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},f=0;f<l;f++)d(f);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(n=a.baseStyle)?n:{},e),i(a,"sizes",o,e),i(a,"variants",r,e))}),v=m(f);ta(p.current,v)||(p.current=v)}return p.current}function ha(e,t){return void 0===t&&(t={}),va(e,t)}function ya(e,t){return void 0===t&&(t={}),va(e,t)}var ga,ba=(ga=new Map,new Proxy(fa,{apply:function(e,t,n){return fa.apply(void 0,n)},get:function(e,t){return ga.has(t)||ga.set(t,fa(t)),ga.get(t)}})),Ea={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},xa=ba("span",{baseStyle:Ea});t.__DEV__&&(xa.displayName="VisuallyHidden");var _a=ba("input",{baseStyle:Ea});function wa(){return wa=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},wa.apply(this,arguments)}t.__DEV__&&(_a.displayName="VisuallyHiddenInput");var ka=["label","thickness","speed","emptyColor","className"],Sa=function(){var e=qt.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)"}}),Ca=/*#__PURE__*/pa(function(e,n){var r=ha("Spinner",e),a=oa(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,u=a.speed,c=void 0===u?"0.45s":u,d=a.emptyColor,f=void 0===d?"transparent":d,p=a.className,m=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,ka),v=t.cx("chakra-spinner",p),h=wa({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:f,borderLeftColor:f,animation:Sa+" "+c+" linear infinite"},r);/*#__PURE__*/
5
5
  return F.createElement(ba.div,wa({ref:n,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(xa,null,i))});function Oa(){return Oa=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},Oa.apply(this,arguments)}t.__DEV__&&(Ca.displayName="Spinner");var Aa=["as","viewBox","color","focusable","children","className","__css"],Na={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.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__*/F.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__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ra=/*#__PURE__*/pa(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,u=e.children,c=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Aa),p={ref:n,focusable:l,className:t.cx("chakra-icon",c),__css:Oa({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Na.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
6
6
  return F.createElement(ba.svg,Oa({as:r},p,f));var v=null!=u?u:Na.path;/*#__PURE__*/
7
- return F.createElement(ba.svg,Oa({verticalAlign:"middle",viewBox:m},p,f),v)});t.__DEV__&&(Ra.displayName="Icon");var Ia=Ra,Pa=function(e,t){return Pa=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])},Pa(e,t)};function Ta(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}Pa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var La=function(){return La=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},La.apply(this,arguments)};function Da(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 a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function Ma(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Va(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var ja="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Ba=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Fa={measureLayout:Ba(["layout","layoutId","drag"]),animation:Ba(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ba(["exit"]),drag:Ba(["drag","dragControls"]),focus:Ba(["whileFocus"]),hover:Ba(["whileHover","onHoverStart","onHoverEnd"]),tap:Ba(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ba(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ba(["whileInView","onViewportEnter","onViewportLeave"])},za=function(){},Ha=function(){};"production"!==process.env.NODE_ENV&&(za=function(e,t){e||"undefined"==typeof console||console.warn(t)},Ha=function(e,t){if(!e)throw new Error(t)});var Wa=F.createContext({strict:!1}),Ua=Object.keys(Fa),$a=Ua.length,qa=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ya=F.createContext({}),Za=F.createContext(null),Ga="undefined"!=typeof document,Xa=Ga?F.useLayoutEffect:F.useEffect,Ka={current:null},Ja=!1;function Qa(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function eo(e){return Array.isArray(e)}function to(e){return"string"==typeof e||eo(e)}function no(e,t,n,r,a){var o;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function ro(e,t,n){var r=e.getProps();return no(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 ao(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||to(e.initial)||to(e.animate)||to(e.whileHover)||to(e.whileDrag)||to(e.whileTap)||to(e.whileFocus)||to(e.exit)}function oo(e){return Boolean(ao(e)||e.variants)}function io(e){return Array.isArray(e)?e.join(" "):e}function so(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const lo="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),uo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(lo()),16.666666666666668);let co=!0,fo=!1,po=!1;const mo={delta:0,timestamp:0},vo=["read","update","preRender","render","postRender"],ho=vo.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,u=l?t:n;return o&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!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())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>fo=!0),e),{}),yo=vo.reduce((e,t)=>{const n=ho[t];return e[t]=(e,t=!1,r=!1)=>(fo||_o(),n.schedule(e,t,r)),e},{}),go=vo.reduce((e,t)=>(e[t]=ho[t].cancel,e),{}),bo=vo.reduce((e,t)=>(e[t]=()=>ho[t].process(mo),e),{}),Eo=e=>ho[e].process(mo),xo=e=>{fo=!1,mo.delta=co?16.666666666666668:Math.max(Math.min(e-mo.timestamp,40),1),mo.timestamp=e,po=!0,vo.forEach(Eo),po=!1,fo&&(co=!1,uo(xo))},_o=()=>{fo=!0,co=!0,po||uo(xo)},wo=()=>mo,ko=(e,t,n)=>Math.min(Math.max(n,e),t);function So(e,t){return e*Math.sqrt(1-t*t)}const Co=["duration","bounce"],Oo=["stiffness","damping","mass"];function Ao(e,t){return t.some(t=>void 0!==e[t])}function No(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:a}=e,o=Da(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(!Ao(e,Oo)&&Ao(e,Co)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,o;za(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=ko(.05,1,i),e=ko(.01,10,e/1e3),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/So(t,i)*Math.exp(-a)},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=So(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/u}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=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}(a,o,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}(o),p=Ro,m=Ro;function v(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=So(i,o);p=a=>{const s=Math.exp(-o*i*a);return n-s*((e+o*i*r)/t*Math.sin(t*a)+r*Math.cos(t*a))},m=n=>{const a=Math.exp(-o*i*n);return o*i*a*(Math.sin(t*n)*(e+o*i*r)/t+r*Math.cos(t*n))-a*(Math.cos(t*n)*(e+o*i*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(o*o-1);p=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return n-s*((e+o*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 o=1e3*m(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=a;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}No.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ro=e=>0,Io=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Po=(e,t,n)=>-n*e+n*t+e,To=(e,t)=>n=>Math.max(Math.min(n,t),e),Lo=e=>e%1?Number(e.toFixed(5)):e,Do=/(-)?([\d]*\.?[\d])+/g,Mo=/(#[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,Vo=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function jo(e){return"string"==typeof e}const Bo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Fo=Object.assign(Object.assign({},Bo),{transform:To(0,1)}),zo=Object.assign(Object.assign({},Bo),{default:1}),Ho=e=>({test:t=>jo(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Wo=Ho("deg"),Uo=Ho("%"),$o=Ho("px"),qo=Ho("vh"),Yo=Ho("vw"),Zo=Object.assign(Object.assign({},Uo),{parse:e=>Uo.parse(e)/100,transform:e=>Uo.transform(100*e)}),Go=(e,t)=>n=>Boolean(jo(n)&&Vo.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Xo=(e,t,n)=>r=>{if(!jo(r))return r;const[a,o,i,s]=r.match(Do);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ko={test:Go("hsl","hue"),parse:Xo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Uo.transform(Lo(t))+", "+Uo.transform(Lo(n))+", "+Lo(Fo.transform(r))+")"},Jo=To(0,255),Qo=Object.assign(Object.assign({},Bo),{transform:e=>Math.round(Jo(e))}),ei={test:Go("rgb","red"),parse:Xo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qo.transform(e)+", "+Qo.transform(t)+", "+Qo.transform(n)+", "+Lo(Fo.transform(r))+")"},ti={test:Go("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:ei.transform},ni={test:e=>ei.test(e)||ti.test(e)||Ko.test(e),parse:e=>ei.test(e)?ei.parse(e):Ko.test(e)?Ko.parse(e):ti.parse(e),transform:e=>jo(e)?e:e.hasOwnProperty("red")?ei.transform(e):Ko.transform(e)};function ri(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Mo);r&&(n=r.length,e=e.replace(Mo,"${c}"),t.push(...r.map(ni.parse)));const a=e.match(Do);return a&&(e=e.replace(Do,"${n}"),t.push(...a.map(Bo.parse))),{values:t,numColors:n,tokenised:e}}function ai(e){return ri(e).values}function oi(e){const{values:t,numColors:n,tokenised:r}=ri(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=t.replace(r<n?"${c}":"${n}",r<n?ni.transform(e[r]):Lo(e[r]));return t}}const ii=e=>"number"==typeof e?0:e,si={test:function(e){var t,n,r,a;return isNaN(e)&&jo(e)&&(null!==(n=null===(t=e.match(Do))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(Mo))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:ai,createTransformer:oi,getAnimatableNone:function(e){const t=ai(e);return oi(e)(t.map(ii))}},li=new Set(["brightness","contrast","saturate","opacity"]);function ui(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Do)||[];if(!r)return e;const a=n.replace(r,"");let o=li.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const ci=/([a-z-]*)\(.*?\)/g,di=Object.assign(Object.assign({},si),{getAnimatableNone:e=>{const t=e.match(ci);return t?t.map(ui).join(" "):e}});function fi(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 pi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=fi(s,r,e+1/3),o=fi(s,r,e),i=fi(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}const mi=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},vi=[ti,ei,Ko],hi=e=>vi.find(t=>t.test(e)),yi=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,gi=(e,t)=>{let n=hi(e),r=hi(t);Ha(!!n,yi(e)),Ha(!!r,yi(t));let a=n.parse(e),o=r.parse(t);n===Ko&&(a=pi(a),n=ei),r===Ko&&(o=pi(o),r=ei);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=mi(a[t],o[t],e));return i.alpha=Po(a.alpha,o.alpha,e),n.transform(i)}},bi=e=>"number"==typeof e,Ei=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce(Ei);function _i(e,t){return bi(e)?n=>Po(e,t,n):ni.test(e)?gi(e,t):Ci(e,t)}const wi=(e,t)=>{const n=[...e],r=n.length,a=e.map((e,n)=>_i(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},ki=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=_i(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Si(e){const t=si.parse(e),n=t.length;let r=0,a=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:o}}const Ci=(e,t)=>{const n=si.createTransformer(t),r=Si(e),a=Si(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?xi(wi(r.parsed,a.parsed),n):(za(!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}`)},Oi=(e,t)=>n=>Po(e,t,n);function Ai(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;Ha(o===t.length,"Both input and output ranges must be the same length"),Ha(!r||!Array.isArray(r)||r.length===o-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[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],a=n||function(e){return"number"==typeof e?Oi:"string"==typeof e?ni.test(e)?gi:Ci:Array.isArray(e)?wi:"object"==typeof e?ki:void 0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=xi(e,o)}r.push(o)}return r}(t,r,a),s=2===o?function([e,t],[n]){return r=>n(Io(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[r]&&(o=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>a||t===r);t++);o=t-1}const s=Io(e[o],e[o+1],a);return t[o](s)}}(e,i);return n?t=>s(ko(e[0],e[o-1],t)):s}const Ni=e=>t=>1-e(1-t),Ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ii=e=>t=>t*t*((e+1)*t-e),Pi=e=>e,Ti=e=>Math.pow(e,2),Li=Ni(Ti),Di=Ri(Ti),Mi=e=>1-Math.sin(Math.acos(e)),Vi=Ni(Mi),ji=Ri(Vi),Bi=Ii(1.525),Fi=Ni(Bi),zi=Ri(Bi),Hi=(e=>{const t=Ii(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Wi=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},Ui=Ni(Wi);function $i(e,t){return e.map(()=>t||Di).splice(0,e.length-1)}function qi({from:e=0,to:t=1,ease:n,offset:r,duration:a=300}){const o={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),a);function l(){return Ai(s,i,{ease:Array.isArray(n)?n:$i(i,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),u=l()}}}const Yi={keyframes:qi,spring:No,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>a||t<-a),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}};function Zi(e,t,n=0){return e-t-n}const Gi=e=>{const t=({delta:t})=>e(t);return{start:()=>yo.update(t,!0),stop:()=>go.update(t)}};function Xi(e){var t,n,{from:r,autoplay:a=!0,driver:o=Gi,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=Da(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,E=0,x=v.duration,_=!1,w=!0;const k=function(e){if(Array.isArray(e.to))return qi;if(Yi[e.type])return Yi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?No:qi}(v);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Ai([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},v),{from:r,to:b}));return a&&(null==c||c(),h=o(function(e){if(w||(e=-e),i+=e,!_){const e=S.next(Math.max(0,i));y=e.value,g&&(y=g(y)),_=w?e.done:i<=0}null==m||m(y),_&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,w)&&(E++,"reverse"===l?(w=E%2==0,i=function(e,t,n=0,r=!0){return r?Zi(t+-e,t,n):t-(e-t)+n}(i,x,u,w)):(i=Zi(i,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function Ki(e,t){return t?e*(1e3/t):0}const Ji=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Qi=e=>Ji(e)&&e.hasOwnProperty("z"),es=(e,t)=>Math.abs(e-t);function ts(e,t){if(bi(e)&&bi(t))return es(e,t);if(Ji(e)&&Ji(t)){const n=es(e.x,t.x),r=es(e.y,t.y),a=Qi(e)&&Qi(t)?es(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}const ns=(e,t)=>1-3*t+3*e,rs=(e,t)=>3*t-6*e,as=e=>3*e,os=(e,t,n)=>((ns(t,n)*e+rs(t,n))*e+as(t))*e,is=(e,t,n)=>3*ns(t,n)*e*e+2*rs(t,n)*e+as(t);function ss(e,t){-1===e.indexOf(t)&&e.push(t)}function ls(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var us=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ss(this.subscriptions,e),function(){return ls(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 a=0;a<r;a++){var o=this.subscriptions[a];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),cs=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new us,this.velocityUpdateSubscribers=new us,this.renderSubscribers=new us,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=wo(),a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=r.delta,t.lastUpdated=a,yo.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 yo.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?Ki(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 ds(e){return new cs(e)}var fs=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},ps=function(e){return 1e3*e},ms={linear:Pi,easeIn:Ti,easeInOut:Di,easeOut:Li,circIn:Mi,circInOut:ji,circOut:Vi,backIn:Bi,backInOut:zi,backOut:Fi,anticipate:Hi,bounceIn:Ui,bounceInOut:e=>e<.5?.5*(1-Wi(1-2*e)):.5*Wi(2*e-1)+.5,bounceOut:Wi},vs=function(e){if(Array.isArray(e)){Ha(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Ma(e,4);return function(e,t,n,r){if(e===t&&n===r)return Pi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=os(.1*t,e,n);return o=>0===o||1===o?o:os(function(t){let r=0,o=1;for(;10!==o&&a[o]<=t;++o)r+=.1;--o;const i=r+(t-a[o])/(a[o+1]-a[o])*.1,s=is(i,e,n);return s>=.001?function(e,t,n,r){for(let a=0;a<8;++a){const a=is(t,n,r);if(0===a)return t;t-=(os(t,n,r)-e)/a}return t}(t,i,e,n):0===s?i:function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=os(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(o),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Ha(void 0!==ms[e],"Invalid easing type '".concat(e,"'")),ms[e]):e},hs=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!si.test(t)||t.startsWith("url(")))},ys=function(e){return Array.isArray(e)},gs=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},bs=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Es=function(){return{type:"keyframes",ease:"linear",duration:.3}},xs=function(e){return{type:"keyframes",duration:.8,values:e}},_s={x:gs,y:gs,z:gs,rotate:gs,rotateX:gs,rotateY:gs,rotateZ:gs,scaleX:bs,scaleY:bs,scale:bs,opacity:Es,backgroundColor:Es,color:Es,default:bs},ws=La(La({},Bo),{transform:Math.round}),ks={borderWidth:$o,borderTopWidth:$o,borderRightWidth:$o,borderBottomWidth:$o,borderLeftWidth:$o,borderRadius:$o,radius:$o,borderTopLeftRadius:$o,borderTopRightRadius:$o,borderBottomRightRadius:$o,borderBottomLeftRadius:$o,width:$o,maxWidth:$o,height:$o,maxHeight:$o,size:$o,top:$o,right:$o,bottom:$o,left:$o,padding:$o,paddingTop:$o,paddingRight:$o,paddingBottom:$o,paddingLeft:$o,margin:$o,marginTop:$o,marginRight:$o,marginBottom:$o,marginLeft:$o,rotate:Wo,rotateX:Wo,rotateY:Wo,rotateZ:Wo,scale:zo,scaleX:zo,scaleY:zo,scaleZ:zo,skew:Wo,skewX:Wo,skewY:Wo,distance:$o,translateX:$o,translateY:$o,translateZ:$o,x:$o,y:$o,z:$o,perspective:$o,transformPerspective:$o,opacity:Fo,originX:Zo,originY:Zo,originZ:$o,zIndex:ws,fillOpacity:Fo,strokeOpacity:Fo,numOctaves:ws},Ss=La(La({},ks),{color:ni,backgroundColor:ni,outlineColor:ni,fill:ni,stroke:ni,borderColor:ni,borderTopColor:ni,borderRightColor:ni,borderBottomColor:ni,borderLeftColor:ni,filter:di,WebkitFilter:di}),Cs=function(e){return Ss[e]};function Os(e,t){var n,r=Cs(e);return r!==di&&(r=si),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var As=function(e){return ys(e)?e[e.length-1]||0:e},Ns=!1;function Rs(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Is(e){return"number"==typeof e?0:Os("",e)}function Ps(e,t){return e[t]||e.default||e}function Ts(e,t,n,r){return void 0===r&&(r={}),t.start(function(a){var o,i,s=function(e,t,n,r,a){var o,i=Ps(r,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=hs(e,n);"none"===s&&l&&"string"==typeof n?s=Os(e,n):Rs(s)&&"string"==typeof n?s=Is(n):!Array.isArray(n)&&Rs(n)&&"string"==typeof s&&(n=Is(s));var u=hs(e,s);return za(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:a,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:a=.8,timeConstant:o=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=Xi(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=a*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=Ki(e-c,wo().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:u,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(La(La({},r),i)):Xi(La(La({},function(e,t,n){var r,a,o,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=Va([],Ma(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Da(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=La(La({},e),(a=n,i=ys(o=t.to)?xs:_s[a]||_s.default,La({to:o},i(o))))),La(La({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,o=e.loop,i=Da(e,["ease","times","yoyo","flip","loop"]),s=La({},i);return n&&(s.offset=n),i.duration&&(s.duration=ps(i.duration)),i.repeatDelay&&(s.repeatDelay=ps(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(vs):vs(t)),"tween"===i.type&&(s.type="keyframes"),(r||o||a)&&(za(!Ns,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Ns=!0,r?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||r||a||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,o=As(n);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,a),l=function(e,t){var n,r;return null!==(r=null!==(n=(Ps(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?o=window.setTimeout(u,ps(l)):u(),function(){clearTimeout(o),null==i||i.stop()}})}var Ls=["TopLeft","TopRight","BottomLeft","BottomRight"],Ds=Ls.length,Ms=function(e){return"string"==typeof e?parseFloat(e):e},Vs=function(e){return"number"==typeof e||$o.test(e)};function js(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Bs=zs(0,.5,Vi),Fs=zs(.5,.95,Pi);function zs(e,t,n){return function(r){return r<e?0:r>t?1:n(Io(e,t,r))}}function Hs(e,t){e.min=t.min,e.max=t.max}function Ws(e,t){Hs(e.x,t.x),Hs(e.y,t.y)}function Us(e){return void 0===e||1===e}function $s(e){var t=e.scaleX,n=e.scaleY;return!Us(e.scale)||!Us(t)||!Us(n)}function qs(e){return $s(e)||Ys(e.x)||Ys(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Ys(e){return e&&"0%"!==e}function Zs(e,t,n){return n+t*(e-n)}function Gs(e,t,n,r,a){return void 0!==a&&(e=Zs(e,a,r)),Zs(e,n,r)+t}function Xs(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Gs(e.min,t,n,r,a),e.max=Gs(e.max,t,n,r,a)}function Ks(e,t){var n=t.x,r=t.y;Xs(e.x,n.translate,n.scale,n.originPoint),Xs(e.y,r.translate,r.scale,r.originPoint)}function Js(e,t){e.min=e.min+t,e.max=e.max+t}function Qs(e,t,n){var r=Ma(n,3),a=r[0],o=r[1],i=r[2],s=Po(e.min,e.max,void 0!==t[i]?t[i]:.5);Xs(e,t[a],t[o],s,t.scale)}var el=["x","scaleX","originX"],tl=["y","scaleY","originY"];function nl(e,t){Qs(e.x,t,el),Qs(e.y,t,tl)}function rl(e){return e.max-e.min}function al(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ts(e,t)<n}function ol(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Po(t.min,t.max,e.origin),e.scale=rl(n)/rl(t),(al(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Po(n.min,n.max,e.origin)-e.originPoint,(al(e.translate)||isNaN(e.translate))&&(e.translate=0)}function il(e,t,n,r){ol(e.x,t.x,n.x,null==r?void 0:r.originX),ol(e.y,t.y,n.y,null==r?void 0:r.originY)}function sl(e,t,n){e.min=n.min+t.min,e.max=e.min+rl(t)}function ll(e,t,n){e.min=t.min-n.min,e.max=e.min+rl(t)}function ul(e,t,n){ll(e.x,t.x,n.x),ll(e.y,t.y,n.y)}function cl(e,t,n,r,a){return e=Zs(e-=t,1/n,r),void 0!==a&&(e=Zs(e,1/a,r)),e}function dl(e,t,n,r,a){var o=Ma(n,3);!function(e,t,n,r,a,o,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===i&&(i=e),Uo.test(t)&&(t=parseFloat(t),t=Po(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=Po(o.min,o.max,r);e===o&&(s-=t),e.min=cl(e.min,t,n,s,a),e.max=cl(e.max,t,n,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,r,a)}var fl=["x","scaleX","originX"],pl=["y","scaleY","originY"];function ml(e,t,n,r){dl(e.x,t,fl,null==n?void 0:n.x,null==r?void 0:r.x),dl(e.y,t,pl,null==n?void 0:n.y,null==r?void 0:r.y)}function vl(e){return 0===e.translate&&1===e.scale}function hl(e){return vl(e.x)&&vl(e.y)}function yl(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 gl=function(){function e(){this.members=[]}return e.prototype.add=function(e){ss(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(ls(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 a=this.members[r];if(!1!==a.isPresent){t=a;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,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)})},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}(),bl={};function El(e,t,n){var r=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,i=n.rotateX,s=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":a}function xl(e){return[e("x"),e("y")]}var _l=["","X","Y","Z"],wl=["transformPerspective","x","y","z"];function kl(e,t){return wl.indexOf(e)-wl.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return _l.forEach(function(t){return wl.push(e+t)})});var Sl=new Set(wl);function Cl(e){return Sl.has(e)}var Ol=new Set(["originX","originY","originZ"]);function Al(e){return Ol.has(e)}var Nl=function(e,t){return e.depth-t.depth},Rl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ss(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ls(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Nl),this.isDirty=!1,this.children.forEach(e)},e}();function Il(e){var t=fs(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Pl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Tl(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var a=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(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(Fl),a.nodes.forEach(zl)},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?Va(Va([],Ma(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new us),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,Va([],Ma(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,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.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 a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Pl.hasAnimatedSinceResize&&(Pl.hasAnimatedSinceResize=!1,a.nodes.forEach(Bl))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var f=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Yl,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!a.targetLayout||!yl(a.targetLayout,d)||c,y=!u&&c;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=La(La({},Ps(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}else u||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(i=(o=a.options).onExitComplete)||void 0===i||i.call(o));a.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,go.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(Hl))},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 a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.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(Vl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Zl),this.potentialNodes.clear()),this.nodes.forEach(jl),this.nodes.forEach(Ll),this.nodes.forEach(Dl),this.clearAllSnapshots(),bo.update(),bo.preRender(),bo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Ml),this.sharedNodes.forEach(Wl)},e.prototype.scheduleUpdateProjection=function(){yo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;yo.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));Xl(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();Xl(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=a(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!hl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==r?void 0:r(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(n||qs(this.latestValues)||i)&&(o(this.instance,a),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&&(Js(t.x,n.x),Js(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ws(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll;if(r!==this.root&&a&&r.options.layoutScroll){if(r.isScrollRoot){Ws(t,e);var o=this.root.scroll;o&&(Js(t.x,-o.x),Js(t.y,-o.y))}Js(t.x,a.x),Js(t.y,a.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}};Ws(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&nl(n,{x:-a.scroll.x,y:-a.scroll.y}),qs(a.latestValues)&&nl(n,a.latestValues)}return qs(this.latestValues)&&nl(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Ws(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&qs(a.latestValues)){$s(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Ws(o,a.measure()),ml(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return qs(this.latestValues)&&ml(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=La(La(La({},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,a=this.options;this.layout&&(a.layout||a.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}},ul(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ws(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)?(sl((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),sl(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ws(this.target,this.layout.actual),Ks(this.target,this.targetDelta)):Ws(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}},ul(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ws(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!qs(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 a=this.getLead();Ws(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,o;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===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Ks(e,l)),r&&qs(s.latestValues)&&nl(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==a);var o=a.target;if(o){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;il(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=El(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},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 a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=La({},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==a?void 0:a.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(ql));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;Ul(s.x,e.x,a),Ul(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ul(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){$l(e.x,t.x,n.x,r),$l(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,a)),u&&(r.animationValues=i,function(e,t,n,r,a,o){var i,s,l,u;a?(e.opacity=Po(0,null!==(i=n.opacity)&&void 0!==i?i:1,Bs(r)),e.opacityExit=Po(null!==(s=t.opacity)&&void 0!==s?s:1,0,Fs(r))):o&&(e.opacity=Po(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ds;c++){var d="border".concat(Ls[c],"Radius"),f=js(t,d),p=js(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Vs(f)===Vs(p)?(e[d]=Math.max(Po(Ms(f),Ms(p),r),0),(Uo.test(p)||Uo.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Po(t.rotate||0,n.rotate||0,r))}(i,o,r.latestValues,a,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},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&&(go.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yo.update(function(){Pl.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=fs(0)?0:ds(0);return Ts("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,La(La({},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&&(Ws(t,n),nl(t,r),il(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new gl),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.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,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),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<_l.length;r++)e.getStaticValue(a="rotate"+_l[r])&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,o,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=Il(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=Il(e.pointerEvents)||""),this.hasProjected&&!qs(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=El(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!==(a=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,bl)if(void 0!==d[v]){var h=bl[v],y=h.applyTo,g=(0,h.correct)(d[v],u);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=u===this?Il(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(Vl),this.root.sharedNodes.clear()},e}()}function Ll(e){e.updateLayout()}function Dl(e){var t,n,r,a,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?xl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=rl(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&xl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=rl(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}};il(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?il(c,e.applyTransform(l,!0),o.measured):il(c,s,o.layout);var d=!hl(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}};ul(h,o.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};ul(y,s,v.actual),yl(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function Ml(e){e.clearSnapshot()}function Vl(e){e.clearMeasurements()}function jl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Bl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Fl(e){e.resolveTargetDelta()}function zl(e){e.calcProjection()}function Hl(e){e.resetRotation()}function Wl(e){e.removeLeadSnapshot()}function Ul(e,t,n){e.translate=Po(t.translate,0,n),e.scale=Po(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $l(e,t,n,r){e.min=Po(t.min,n.min,r),e.max=Po(t.max,n.max,r)}function ql(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Yl={duration:.45,ease:[.4,0,.1,1]};function Zl(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 a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function Gl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Xl(e){Gl(e.x),Gl(e.y)}var Kl=1,Jl=F.createContext({}),Ql=F.createContext({}),eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(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}(F.Component);function tu(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Fa.projectionNodeConstructor=e[t]:Fa[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=F.useContext(Jl))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=La(La({},e),{layoutId:l});var u=F.useContext(qa),c=null,d=function(e){var t=function(e,t){if(ao(e)){var n=e.initial,r=e.animate;return{initial:!1===n||to(n)?n:void 0,animate:to(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(Ya)),n=t.initial,r=t.animate;return F.useMemo(function(){return{initial:n,animate:r}},[io(n),io(r)])}(e),f=u.isStatic?void 0:so(function(){if(Pl.hasEverUpdated)return Kl++}),p=o(e,u.isStatic);return!u.isStatic&&Ga&&(d.visualElement=function(e,t,n,r){var a,o,i=F.useContext(Wa),s=F.useContext(Ya).visualElement,l=F.useContext(Za),u=(!Ja&&function(){if(Ja=!0,Ga)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ka.current=e.matches};e.addListener(t),t()}else Ka.current=!1}(),a=Ma(F.useState(Ka.current),1)[0],"never"!==(o=F.useContext(qa).reducedMotion)&&("always"===o||a)),c=F.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 Xa(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Xa(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,La(La({},u),e),n),function(e,t,n,r){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=F.useContext(Ql);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Qa(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:c,layoutScroll:u}))}(f,e,d.visualElement,r||Fa.projectionNodeConstructor),c=function(e,t,n){var r=[],a=F.useContext(Wa);if(!t)return null;"production"!==ja&&n&&a.strict&&Ha(!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 o=0;o<$a;o++){var i=Ua[o],s=Fa[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(F.createElement(l,La({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),F.createElement(eu,{visualElement:d.visualElement,props:La(La({},u),e)},c,F.createElement(Ya.Provider,{value:d},a(i,e,f,function(e,t,n){return F.useCallback(function(r){var a;r&&(null===(a=e.mount)||void 0===a||a.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Qa(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 nu=["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 ru(e){return"string"==typeof e&&!e.includes("-")&&!!(nu.indexOf(e)>-1||/[A-Z]/.test(e))}function au(e,t){var n=t.layout,r=t.layoutId;return Cl(e)||Al(e)||(n||void 0!==r)&&(!!bl[e]||"opacity"===e)}var ou={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function iu(e){return e.startsWith("--")}var su=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function lu(e,t,n,r){var a,o=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(iu(p))i[p]=m;else{var v=ks[p],h=su(m,v);if(Cl(p)){if(c=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(f=!1)}else Al(p)?(u[p]=h,d=!0):o[p]=h}}c?o.transform=function(e,t,n,r){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(kl);for(var d=!1,f=o.length,p=0;p<f;p++){var m=o[p];c+="".concat(ou[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(a,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(o)}(u))}function uu(e,t,n){for(var r in t)fs(t[r])||au(r,n)||(e[r]=t[r])}function cu(e,t,n){var r={},a=function(e,t,n){var r={};return uu(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};lu(e,t,{enableHardwareAcceleration:!n},r);var a=e.style;return La(La({},e.vars),a)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var du=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 fu(e){return du.has(e)}var pu,mu=function(e){return!fu(e)};try{(pu=require("@emotion/is-prop-valid").default)&&(mu=function(e){return e.startsWith("on")?!fu(e):pu(e)})}catch(e){}function vu(e,t,n){return"string"==typeof e?e:$o.transform(t+n*e)}var hu={offset:"stroke-dashoffset",array:"stroke-dasharray"},yu={offset:"strokeDashoffset",array:"strokeDasharray"};function gu(e,t,n,r){var a=t.attrX,o=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;lu(e,Da(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=vu(t,e.x,e.width),a=vu(n,e.y,e.height);return"".concat(r," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?hu:yu;e[o.offset]=$o.transform(-r);var i=$o.transform(t),s=$o.transform(n);e[o.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var bu=function(){return La(La({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Eu(e,t){var n=F.useMemo(function(){var n=bu();return gu(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),La(La({},n.attrs),{style:La({},n.style)})},[t]);if(e.style){var r={};uu(r,e.style,e),n.style=La(La({},r),n.style)}return n}function xu(e){return void 0===e&&(e=!1),function(t,n,r,a,o,i){var s=o.latestValues,l=(ru(t)?Eu:cu)(n,s,i),u=function(e,t,n){var r={};for(var a in e)(mu(a)||!0===n&&fu(a)||!t&&!fu(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),c=La(La(La({},u),l),{ref:a});return r&&(c["data-projection-id"]=r),F.createElement(t,c)}}var _u=/([a-z])([A-Z])/g,wu=function(e){return e.replace(_u,"$1-$2").toLowerCase()};function ku(e,t,n,r){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),o)e.style.setProperty(i,o[i])}var Su=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Cu(e,t,n,r){for(var a in ku(e,t,void 0,r),t.attrs)e.setAttribute(Su.has(a)?a:wu(a),t.attrs[a])}function Ou(e){var t=e.style,n={};for(var r in t)(fs(t[r])||au(r,e))&&(n[r]=t[r]);return n}function Au(e){var t=Ou(e);for(var n in e)fs(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Nu(e){return"object"==typeof e&&"function"==typeof e.start}function Ru(e,t,n,r){var a=e.createRenderState,o=e.onMount,i={latestValues:Pu(t,n,r,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var Iu=function(e){return function(t,n){var r=F.useContext(Ya),a=F.useContext(Za);return n?Ru(e,t,r,a):so(function(){return Ru(e,t,r,a)})}};function Pu(e,t,n,r){var a={},o=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)a[s]=Il(i[s]);var l=e.initial,u=e.animate,c=ao(e),d=oo(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=o||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Nu(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=no(e,t);if(n){var r=n.transitionEnd,o=Da(n,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in r)a[i]=r[i]}}),a}var Tu,Lu={useVisualState:Iu({scrapeMotionValuesFromProps:Au,createRenderState:bu,onMount:function(e,t,n){var r=n.renderState,a=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}}gu(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),Cu(t,r)}})},Du={useVisualState:Iu({scrapeMotionValuesFromProps:Ou,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Mu(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Vu(e,t,n,r){F.useEffect(function(){var a=e.current;if(n&&a)return Mu(a,t,n,r)},[e,t,n,r])}function ju(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Bu(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"}(Tu||(Tu={}));var Fu={pageX:0,pageY:0};function zu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Fu;return{x:n[t+"X"],y:n[t+"Y"]}}function Hu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wu(e,t){return void 0===t&&(t="page"),{point:Bu(e)?zu(e,t):Hu(e,t)}}var Uu=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Wu(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},$u={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},qu={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Yu(e){return Ga&&null===window.onpointerdown?e:Ga&&null===window.ontouchstart?qu[e]:Ga&&null===window.onmousedown?$u[e]:e}function Zu(e,t,n,r){return Mu(e,Yu(t),Uu(n,"pointerdown"===t),r)}function Gu(e,t,n,r){return Vu(e,Yu(t),n&&Uu(n,"pointerdown"===t),r)}function Xu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ku=Xu("dragHorizontal"),Ju=Xu("dragVertical");function Qu(e){var t=!1;if("y"===e)t=Ju();else if("x"===e)t=Ku();else{var n=Ku(),r=Ju();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function ec(){var e=Qu(!0);return!e||(e(),!1)}function tc(e,t,n){return function(r,a){var o;ju(r)&&!ec()&&(null===(o=e.animationState)||void 0===o||o.setActive(Tu.Hover,t),null==n||n(r,a))}}var nc=function(e,t){return!!t&&(e===t||nc(e,t.parentElement))};function rc(e){return F.useEffect(function(){return function(){return e()}},[])}var ac=new Set;function oc(e,t,n){e||ac.has(t)||(console.warn(t),n&&console.warn(n),ac.add(t))}var ic=new WeakMap,sc=new WeakMap,lc=function(e){var t;null===(t=ic.get(e.target))||void 0===t||t(e)},uc=function(e){e.forEach(lc)},cc={some:0,all:1};function dc(e,t,n,r){var a=r.root,o=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;F.useEffect(function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:cc[s]};return function(e,r,a){var o=function(e){var t=e.root,n=Da(e,["root"]),r=t||document;sc.has(r)||sc.set(r,{});var a=sc.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(uc,La({root:t},n))),a[o]}(r);return ic.set(e,function(e){var r,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Tu.InView,a);var o=n.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){ic.delete(e),o.unobserve(e)}}(n.getInstance(),r)}},[e,a,o,s])}function fc(e,t,n,r){var a=r.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==ja&&oc(!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(Tu.InView,!0)}))},[e])}var pc=function(e){return function(t){return e(t),null}},mc={inView:pc(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?fc:dc)(l,s.current,t,i)}),tap:pc(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.visualElement,o=t||n||r||e.whileTap,i=F.useRef(!1),s=F.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=a.animationState)||void 0===e||e.setActive(Tu.Tap,!1),!ec()}function d(e,n){c()&&(nc(a.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=xi(Zu(window,"pointerup",d,l),Zu(window,"pointercancel",f,l)),null===(r=a.animationState)||void 0===r||r.setActive(Tu.Tap,!0),null==n||n(e,t))}Gu(a,"pointerdown",o?p:void 0,l),rc(u)}),focus:pc(function(e){var t=e.whileFocus,n=e.visualElement;Vu(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Tu.Focus,!0)}:void 0),Vu(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Tu.Focus,!1)}:void 0)}),hover:pc(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;Gu(a,"pointerenter",t||r?tc(a,!0,t):void 0,{passive:!t}),Gu(a,"pointerleave",n||r?tc(a,!1,n):void 0,{passive:!n})})},vc=0,hc=function(){return vc++},yc=function(){return so(hc)};function gc(){var e=F.useContext(Za);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=yc();return F.useEffect(function(){return r(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function bc(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 Ec=function(e){return/^\-?\d*\.?\d+$/.test(e)},xc=function(e){return/^0[^.\s]+$/.test(e)},_c=function(e){return function(t){return t.test(e)}},wc=[Bo,$o,Uo,Wo,Yo,qo,{test:function(e){return"auto"===e},parse:function(e){return e}}],kc=function(e){return wc.find(_c(e))},Sc=Va(Va([],Ma(wc),!1),[ni,si],!1),Cc=function(e){return Sc.find(_c(e))};function Oc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ds(n))}function Ac(e,t){if(t)return(t[e]||t.default||t).from}function Nc(e,t,n){var r;void 0===n&&(n={});var a=ro(e,t,n.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);var s=a?function(){return Rc(e,a,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 a=i.delayChildren;return function(e,t,n,r,a,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===a?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(Ic).forEach(function(e,r){i.push(Nc(e,t,La(La({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Ma("beforeChildren"===u?[s,l]:[l,s],2),d=c[1];return(0,c[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Rc(e,t,n){var r,a=void 0===n?{}:n,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Da(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&&Pc(v,h))){var b=La({delay:i},d);e.shouldReduceMotion&&Cl(h)&&(b=La(La({},b),{type:!1,delay:0}));var E=Ts(h,y,g,b);m.push(E)}}return Promise.all(m).then(function(){f&&function(e,t){var n=ro(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,o=void 0===a?{}:a,i=Da(r,["transitionEnd","transition"]);for(var s in i=La(La({},i),o))Oc(e,s,As(i[s]))}(e,f)})}function Ic(e,t){return e.sortNodePosition(t)}function Pc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var Tc=[Tu.Animate,Tu.InView,Tu.Focus,Tu.Hover,Tu.Tap,Tu.Drag,Tu.Exit],Lc=Va([],Ma(Tc),!1).reverse(),Dc=Tc.length;function Mc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Vc={animation:pc(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 a=t.map(function(t){return Nc(e,t,n)});r=Promise.all(a)}else if("string"==typeof t)r=Nc(e,t,n);else{var o="function"==typeof t?ro(e,t,n.custom):t;r=Rc(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[Tu.Animate]=Mc(!0),t[Tu.InView]=Mc(),t[Tu.Hover]=Mc(),t[Tu.Tap]=Mc(),t[Tu.Drag]=Mc(),t[Tu.Focus]=Mc(),t[Tu.Exit]=Mc(),t),a={},o=!0,i=function(t,n){var r=ro(e,n);if(r){var a=r.transitionEnd,o=Da(r,["transition","transitionEnd"]);t=La(La(La({},t),o),a)}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 a=Lc[n],v=r[a],h=null!==(l=u[a])&&void 0!==l?l:c[a],y=to(h),g=a===s?v.isActive:null;!1===g&&(m=n);var b=h===c[a]&&h!==u[a]&&y;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=La({},p),!v.isActive&&null===g||!h&&!v.prevProp||Nu(h)||"boolean"==typeof h)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!eo(t)&&!bc(t,e)}(v.prevProp,h),x=E||a===s&&v.isActive&&!b&&y||n>m&&y,_=Array.isArray(h)?h:[h],w=_.reduce(i,{});!1===g&&(w={});var k=v.prevResolvedValues,S=void 0===k?{}:k,C=La(La({},S),w),O=function(e){x=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in C){var N=w[A],R=S[A];p.hasOwnProperty(A)||(N!==R?ys(N)&&ys(R)?!bc(N,R)||E?O(A):v.protectedKeys[A]=!0:void 0!==N?O(A):f.add(A):void 0!==N&&f.has(A)?O(A):v.protectedKeys[A]=!0)}v.prevProp=h,v.prevResolvedValues=w,v.isActive&&(p=La(La({},p),w)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Va([],Ma(_.map(function(e){return{animation:e,options:La({type:a},t)}})),!1))},h=0;h<Dc;h++)v(h);if(a=La({},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 o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.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(a,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Nu(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:pc(function(e){var t=e.custom,n=e.visualElement,r=Ma(gc(),2),a=r[0],o=r[1],i=F.useContext(Za);F.useEffect(function(){var e,r;n.isPresent=a;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Tu.Exit,!a,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!a&&(null==s||s.then(o))},[a])})},jc=function(){function e(e,t,n){var r=this,a=(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=zc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ts(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,o=wo().timestamp;r.history.push(La(La({},a),{timestamp:o}));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=Bc(t,r.transformPagePoint),ju(e)&&0===e.buttons?r.handlePointerUp(e,t):yo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,o=n.onSessionEnd,i=zc(Bc(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,i),o&&o(e,i)},!(Bu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=Bc(Wu(e),this.transformPagePoint),i=o.point,s=wo().timestamp;this.history=[La(La({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,zc(o,this.history)),this.removeListeners=xi(Zu(window,"pointermove",this.handlePointerMove),Zu(window,"pointerup",this.handlePointerUp),Zu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),go.update(this.updatePoint)},e}();function Bc(e,t){return t?{point:t(e.point)}:e}function Fc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zc(e,t){var n=e.point;return{point:n,delta:Fc(n,Wc(t)),offset:Fc(n,Hc(t)),velocity:Uc(t,.1)}}function Hc(e){return e[0]}function Wc(e){return e[e.length-1]}function Uc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=Wc(e);n>=0&&!(a.timestamp-(r=e[n]).timestamp>ps(t));)n--;if(!r)return{x:0,y:0};var o=(a.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function $c(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 qc(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ma([a,r],2))[0],a=n[1]),{min:r,max:a}}function Yc(e,t,n){return{min:Zc(e,t),max:Zc(e,n)}}function Zc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Gc(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Xc(e,t){return Gc(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 Kc=new WeakMap,Jc=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,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new jc(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(Wu(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Qu(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),xl(function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(Uo.test(a)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(a=rl(o)*(parseFloat(a)/100))}n.originPoint[e]=a}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Tu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.onDirectionLock,o=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==a||a(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==o||o(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(Tu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Qc(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?Po(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Po(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Qa(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.bottom;return{x:$c(e.x,t.left,t.right),y:$c(e.y,n,r)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Yc(e,"left","right"),y:Yc(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&xl(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}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Qa(t))return!1;var r=t.current;Ha(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=Xc(e,n),a=t.scroll;return a&&(Js(r.x,a.x),Js(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:qc(e.x,t.x),y:qc(e.y,t.y)}}(a.layout.actual,o);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=Gc(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=xl(function(n){var l;if(Qc(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=La(La({type:"inertia",velocity:a?e[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?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 Ts(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;xl(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;xl(function(n){if(Qc(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n];a.set(e[n]-Po(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=this.visualElement.projection;if(Qa(n.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};xl(function(e){var n,r,a,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();o[e]=(r=t.constraints[e],a=.5,i=rl(n={min:u,max:u}),(s=rl(r))>i?a=Io(r.min,r.max-i,n.min):i>s&&(a=Io(n.min,n.max-s,r.min)),ko(0,1,a))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),xl(function(e){if(Qc(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e];n.set(Po(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Kc.set(this.visualElement,this);var n=Zu(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Qa(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=Mu(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(xl(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(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,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 La(La({},e),{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Qc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var ed={pan:pc(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||n||r||a,s=F.useRef(null),l=F.useContext(qa).transformPagePoint,u={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),Gu(o,"pointerdown",i&&function(e){s.current=new jc(e,u,{transformPagePoint:l})}),rc(function(){return s.current&&s.current.end()})}),drag:pc(function(e){var t=e.dragControls,n=e.visualElement,r=so(function(){return new Jc(n)});F.useEffect(function(){return t&&t.subscribe(r)},[r,t]),F.useEffect(function(){return r.addListeners()},[r])})},td=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],nd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,o=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,E=!1,x=h.latestValues,_=h.renderState,w=function(){var e=td.map(function(){return new us}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){td.forEach(function(r){var a,o="on"+r,i=e[o];null===(a=t[r])||void 0===a||a.call(t),i&&(t[r]=n[o](i))})}};return e.forEach(function(e,t){n["on"+td[t]]=function(t){return e.add(t)},n["notify"+td[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Va([],Ma(t),!1))}}),n}(),k=new Map,S=new Map,C={},O=La({},x);function A(){g&&E&&(N(),s(g,_,p.style,V.projection))}function N(){r(V,_,x,t,p)}function R(){w.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&yo.update(R,!1,!0)}),r=t.onRenderRequest(V.scheduleRender);S.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==x[T]&&fs(L)&&L.set(x[T],!1)}var D=ao(p),M=oo(p),V=La(La({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:M?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){E=!0,g=V.current=e,V.projection&&V.projection.mount(e),M&&f&&!D&&(b=null==f?void 0:f.addVariantChild(V)),k.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(V),V.setProps(p)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),go.update(R),go.render(A),S.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(V),w.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=V.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(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?V:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.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){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(V,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),k.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],u(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=ds(t),V.addValue(e,n)),n},forEachValue:function(e){return k.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(a){var t=a(p,e);if(void 0!==t&&!fs(t))return t}return O[e]}},w),{build:function(){return N(),_},scheduleRender:function(){yo.render(A,!1,!0)},syncRender:A,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&V.scheduleRender(),p=e,w.updatePropListeners(e),C=function(e,t,n){var r;for(var a in t){var o=t[a],i=n[a];if(fs(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&oc("6.3.16"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.16 may not work as expected."));else if(fs(i))e.addValue(a,ds(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,ds(null!==(r=e.getStaticValue(a))&&void 0!==r?r:o))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(V,d(p),C)},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(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<ad;r++){var a=rd[r],o=p[a];(to(o)||!1===o)&&(n[a]=o)}return n}});return V}},rd=Va(["initial"],Ma(Tc),!1),ad=rd.length;function od(e){return"string"==typeof e&&e.startsWith("var(--")}var id=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sd(e,t,n){void 0===n&&(n=1),Ha(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Ma(function(e){var t=id.exec(e);if(!t)return[,];var n=Ma(t,3);return[n[1],n[2]]}(e),2),a=r[0],o=r[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():od(o)?sd(o,t,n+1):o}}var ld,ud=new Set(["width","height","top","left","right","bottom","x","y"]),cd=function(e){return ud.has(e)},dd=function(e,t){e.set(t,!1),e.set(t)},fd=function(e){return e===Bo||e===$o};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ld||(ld={}));var pd=function(e,t){return parseFloat(e.split(", ")[t])},md=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return pd(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?pd(i[1],e):0}},vd=new Set(["x","y","z"]),hd=wl.filter(function(e){return!vd.has(e)}),yd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},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:md(4,13),y:md(5,14)},gd={treeType:"dom",readValueFromInstance:function(e,t){if(Cl(t)){var n=Cs(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(iu(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 Xc(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 a=n.transformValues;void 0===r&&(r=!0);var o=t.transition,i=t.transitionEnd,s=Da(t,["transition","transitionEnd"]),l=function(e,t,n){var r,a,o={};for(var i in e)o[i]=null!==(r=Ac(i,t))&&void 0!==r?r:null===(a=n.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),r){!function(e,t,n){var r,a,o,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!==(a=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==a?a:t[c]),null!=f&&("string"==typeof f&&(Ec(f)||xc(f))?f=parseFloat(f):!Cc(f)&&si.test(d)&&(f=Os(c,d)),e.addValue(c,ds(f)),null!==(o=(i=n)[c])&&void 0!==o||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var a=function(e,t,n){var r,a=Da(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:n};for(var i in n&&(n=La({},n)),e.forEachValue(function(e){var t=e.get();if(od(t)){var n=sd(t,o);n&&e.set(n)}}),a){var s=a[i];if(od(s)){var l=sd(s,o);l&&(a[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(cd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=La({},t),r=La({},r);var a=Object.keys(t).filter(cd),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var u,c=n[a],d=kc(c),f=t[a];if(ys(f)){var p=f.length,m=null===f[0]?1:0;d=kc(c=f[m]);for(var v=m;v<p;v++)u?Ha(kc(f[v])===u,"All keyframes must be of the same type"):(u=kc(f[v]),Ha(u===d||fd(d)&&fd(u),"Keyframes must be of the same dimension as the current value"))}else u=kc(f);if(d!==u)if(fd(d)&&fd(u)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[a]=parseFloat(f):Array.isArray(f)&&u===$o&&(t[a]=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[a]=d.transform(f):(i||(o=function(e){var t=[];return hd.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(a),r[a]=void 0!==r[a]?r[a]:t[a],dd(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=yd[e](r,o)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);dd(r,i[n]),e[n]=yd[n](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=Ma(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=a.target,n,r=a.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return La({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:Ou,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),lu(t,n,r,a.transformTemplate)},render:ku},bd=nd(gd),Ed=nd(La(La({},gd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Cl(t)?(null===(n=Cs(t))||void 0===n?void 0:n.default)||0:(t=Su.has(t)?t:wu(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Au,build:function(e,t,n,r,a){gu(t,n,r,a.transformTemplate)},render:Cu})),xd=function(e,t){return ru(e)?Ed(t,{enableHardwareAcceleration:!1}):bd(t,{enableHardwareAcceleration:!0})};function _d(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var wd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!$o.test(e))return e;e=parseFloat(e)}var n=_d(e,t.target.x),r=_d(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},kd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(id,function(e){return i.push(e),"_$css"}));var s=si.parse(e);if(s.length>5)return a;var l=si.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=Po(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(o){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},Sd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(bl,Cd),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==r?void 0:r.register)&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(La(La({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),Pl.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.drag,o=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||yo.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}(F.Component),Cd={borderRadius:La(La({},wd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:wd,borderTopRightRadius:wd,borderBottomLeftRadius:wd,borderBottomRightRadius:wd,boxShadow:kd},Od={measureLayout:function(e){var t=Ma(gc(),2),n=t[0],r=t[1],a=F.useContext(Jl);return F.createElement(Sd,La({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(Ql),isPresent:n,safeToRemove:r}))}},Ad=Tl({attachResizeListener:function(e,t){return Mu(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Nd={current:void 0},Rd=Tl({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Nd.current){var e=new Ad(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Nd.current=e}return Nd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Id=La(La(La(La({},Vc),mc),ed),Od),Pd=/*@__PURE__*/tu(function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=ru(e)?Lu:Du;return La(La({},s),{preloadedFeatures:n,useRender:xu(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,Id,xd,Rd)});function Td(){var e=F.useRef(!1);return Xa(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Ld=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=so(Dd),l=yc(),u=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:o,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()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),F.useEffect(function(){!r&&!s.size&&(null==a||a())},[r]),F.createElement(Za.Provider,{value:u},t)};function Dd(){return new Map}var Md=function(e){return e.key||""},Vd=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,u=Ma(function(){var e=Td(),t=Ma(F.useState(0),2),n=t[0],r=t[1],a=F.useCallback(function(){e.current&&r(n+1)},[n]);return[F.useCallback(function(){return yo.postRender(a)},[a]),n]}(),1),c=u[0],d=F.useContext(Jl).forceRender;d&&(c=d);var f=Td(),p=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=F.useRef(m),y=F.useRef(new Map).current,g=F.useRef(!0);if(Xa(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Md(e);t.set(n,e)})}(p,y),h.current=m}),rc(function(){g.current=!0,y.clear(),v.clear()}),g.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(Ld,{key:Md(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=Va([],Ma(m),!1);for(var b=h.current.map(Md),E=p.map(Md),x=b.length,_=0;_<x;_++){var w=b[_];-1===E.indexOf(w)&&v.add(w)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,F.createElement(Ld,{key:Md(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(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(Ld,{key:Md(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==ja&&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."),F.createElement(F.Fragment,null,v.size?m:m.map(function(e){return F.cloneElement(e)}))};function jd(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Bd(){return Bd=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},Bd.apply(this,arguments)}var Fd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},zd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Hd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Wd={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Ud={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function $d(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Hd;case"left":return zd;case"bottom":return Ud;case"top":return Wd}}var qd={enter:{duration:.2,ease:Fd.easeOut},exit:{duration:.1,ease:Fd.easeIn}},Yd=function(e,n){return Bd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},Zd=function(e,n){return Bd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},Gd=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],Xd={exit:{height:{duration:.2,ease:Fd.ease},opacity:{duration:.3,ease:Fd.ease}},enter:{height:{duration:.3,ease:Fd.ease},opacity:{duration:.4,ease:Fd.ease}}},Kd={exit:function(e){var t,n,r=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return Bd({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:Zd(Xd.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return Bd({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:Yd(Xd.enter,e.delay)})}},Jd=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,u=e.endingHeight,c=void 0===u?"auto":u,d=e.style,f=e.className,p=e.transition,m=e.transitionEnd,v=jd(e,Gd),h=F.useState(!1),y=h[0],g=h[1];F.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,E={startingHeight:l,endingHeight:c,animateOpacity:i,transition:y?p:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},x=r||a?"enter":"exit";/*#__PURE__*/
8
- return F.createElement(Vd,{initial:!1,custom:E},(!a||r)&&/*#__PURE__*/F.createElement(Pd.div,Bd({ref:n},v,{className:t.cx("chakra-collapse",f),style:Bd({overflow:"hidden",display:"block"},d),custom:E,variants:Kd,initial:!!a&&"exit",animate:x,exit:"exit"})))});t.__DEV__&&(Jd.displayName="Collapse");var Qd=["unmountOnExit","in","className","transition","transitionEnd","delay"],ef={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:Yd(qd.enter,n.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:Zd(qd.exit,n.delay),transitionEnd:null==a?void 0:a.exit}}},tf={initial:"exit",animate:"enter",exit:"exit",variants:ef},nf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,u=jd(e,Qd),c=a||r?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
9
- return F.createElement(Vd,{custom:d},(!r||a&&r)&&/*#__PURE__*/F.createElement(Pd.div,Bd({ref:n,className:t.cx("chakra-fade",o),custom:d},tf,{animate:c},u)))});t.__DEV__&&(nf.displayName="Fade");var rf=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],af={exit:function(e){var t,n=e.initialScale,r=e.transition,a=e.transitionEnd,o=e.delay;return Bd({opacity:0},e.reverse?{scale:n,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:Bd({scale:n},null==a?void 0:a.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:Zd(qd.exit,o)})},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:Yd(qd.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},of={initial:"exit",animate:"enter",exit:"exit",variants:af},sf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,u=e.className,c=e.transition,d=e.transitionEnd,f=e.delay,p=jd(e,rf),m=a||r?"enter":"exit",v={initialScale:l,reverse:i,transition:c,transitionEnd:d,delay:f};/*#__PURE__*/
10
- return F.createElement(Vd,{custom:v},(!r||a&&r)&&/*#__PURE__*/F.createElement(Pd.div,Bd({ref:n,className:t.cx("chakra-offset-slide",u)},of,{animate:m,custom:v},p)))});t.__DEV__&&(sf.displayName="ScaleFade");var lf=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],uf={exit:{duration:.15,ease:Fd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},cf={exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.delay;return Bd({},$d({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:Zd(uf.exit,a),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,a=e.delay;return Bd({},$d({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:Yd(uf.enter,a),transitionEnd:null==n?void 0:n.enter})}},df=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.direction,a=void 0===r?"right":r,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,u=e.transition,c=e.transitionEnd,d=e.delay,f=jd(e,lf),p=$d({direction:a}),m=Object.assign({position:"fixed"},p.position,o),v=s||i?"enter":"exit",h={transitionEnd:c,transition:u,direction:a,delay:d};/*#__PURE__*/
11
- return F.createElement(Vd,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement(Pd.div,Bd({},f,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:cf,style:m})))});t.__DEV__&&(df.displayName="Slide");var ff=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],pf={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:Zd(qd.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:Yd(qd.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return Bd({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:Zd(qd.exit,e.delay)},a?Bd({},o,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:Bd({},o,null==r?void 0:r.exit)})}},mf={initial:"initial",animate:"enter",exit:"exit",variants:pf},vf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,u=void 0===l?0:l,c=e.offsetY,d=void 0===c?8:c,f=e.transition,p=e.transitionEnd,m=e.delay,v=jd(e,ff),h=a||r?"enter":"exit",y={offsetX:u,offsetY:d,reverse:i,transition:f,transitionEnd:p,delay:m};/*#__PURE__*/
12
- return F.createElement(Vd,{custom:y},(!r||a&&r)&&/*#__PURE__*/F.createElement(Pd.div,Bd({ref:n,className:t.cx("chakra-offset-slide",s),custom:y},mf,{animate:h},v)))});function hf(){return hf=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},hf.apply(this,arguments)}function yf(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 gf(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function bf(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}t.__DEV__&&(vf.displayName="SlideFade");var Ef="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,xf=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=yf(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=gf(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 a=gf(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(a)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=bf(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 a=bf(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(a)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=yf(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var a=hf({node:t,index:-1},n);e.descendants.set(t,a),e.assignIndex(r)}}},_f=tn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),wf=_f[0],kf=_f[1];function Sf(){return[wf,function(){return kf()},function(){return e=F.useRef(new xf),Ef(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=kf(),n=F.useState(-1),r=n[0],a=n[1],o=F.useRef(null);Ef(function(){return function(){o.current&&t.unregister(o.current)}},[]),Ef(function(){if(o.current){var e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:en(i,o)}}(e)}]}function Cf(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Of(){return Of=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},Of.apply(this,arguments)}var Af=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Nf=tn({strict:!1,name:"ButtonGroupContext"}),Rf=Nf[0],If=Nf[1],Pf=/*#__PURE__*/pa(function(e,n){var r=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,u=e.isAttached,c=e.isDisabled,d=Cf(e,Af),f=t.cx("chakra-button__group",i),p=F.useMemo(function(){return{size:r,colorScheme:a,variant:o,isDisabled:c}},[r,a,o,c]),m={display:"inline-flex"};return m=Of({},m,u?{"> *: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:l}}),/*#__PURE__*/F.createElement(Rf,{value:p},/*#__PURE__*/F.createElement(ba.div,Of({ref:n,role:"group",__css:m,className:f,"data-attached":u?"":void 0},d)))});t.__DEV__&&(Pf.displayName="ButtonGroup");var Tf=["label","placement","spacing","children","className","__css"],Lf=function(e){var n=e.label,r=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(Ca,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,u=e.__css,c=Cf(e,Tf),d=t.cx("chakra-button__spinner",l),f="start"===r?"marginEnd":"marginStart",p=F.useMemo(function(){var e;return Of(((e={display:"flex",alignItems:"center",position:n?"relative":"absolute"})[f]=n?o:0,e.fontSize="1em",e.lineHeight="normal",e),u)},[u,n,f,o]);/*#__PURE__*/
13
- return F.createElement(ba.div,Of({className:d},c,{__css:p}),s)};t.__DEV__&&(Lf.displayName="ButtonSpinner");var Df=["children","className"],Mf=function(e){var n=e.children,r=e.className,a=Cf(e,Df),o=/*#__PURE__*/F.isValidElement(n)?/*#__PURE__*/F.cloneElement(n,{"aria-hidden":!0,focusable:!1}):n,i=t.cx("chakra-button__icon",r);/*#__PURE__*/
14
- return F.createElement(ba.span,Of({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Mf.displayName="ButtonIcon");var Vf=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],jf=/*#__PURE__*/pa(function(e,n){var r,a,o,i,s=If(),l=ha("Button",Of({},s,e)),u=oa(e),c=u.isDisabled,d=void 0===c?null==s?void 0:s.isDisabled:c,f=u.isLoading,p=u.isActive,m=u.children,v=u.leftIcon,h=u.rightIcon,y=u.loadingText,g=u.iconSpacing,b=void 0===g?"0.5rem":g,E=u.type,x=u.spinner,_=u.spinnerPlacement,w=void 0===_?"start":_,k=u.className,S=u.as,C=Cf(u,Vf),O=F.useMemo(function(){var e,n=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Of({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:n})},[l,s]),A=(a=(r=F.useState(!S))[0],o=r[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),N=A.type,R={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
15
- return F.createElement(ba.button,Of({disabled:d||f,ref:vn(n,A.ref),as:S,type:null!=E?E:N,"data-active":t.dataAttr(p),"data-loading":t.dataAttr(f),__css:O,className:t.cx("chakra-button",k)},C),f&&"start"===w&&/*#__PURE__*/F.createElement(Lf,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},x),f?y||/*#__PURE__*/F.createElement(ba.span,{opacity:0},/*#__PURE__*/F.createElement(Bf,R)):/*#__PURE__*/F.createElement(Bf,R),f&&"end"===w&&/*#__PURE__*/F.createElement(Lf,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},x))});function Bf(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,a=e.iconSpacing;/*#__PURE__*/
16
- return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Mf,{marginEnd:a},t),r,n&&/*#__PURE__*/F.createElement(Mf,{marginStart:a},n))}t.__DEV__&&(jf.displayName="Button");var Ff=["icon","children","isRound","aria-label"],zf=/*#__PURE__*/pa(function(e,t){var n=e.icon,r=e.children,a=e.isRound,o=e["aria-label"],i=Cf(e,Ff),s=n||r,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
17
- return F.createElement(jf,Of({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function Hf(){return Hf=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},Hf.apply(this,arguments)}function Wf(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(zf.displayName="IconButton");var Uf=["id","isRequired","isInvalid","isDisabled","isReadOnly"],$f=["getRootProps","htmlProps"],qf=aa("FormControl"),Yf=qf[0],Zf=qf[1],Gf=Zf,Xf=tn({strict:!1,name:"FormControlContext"}),Kf=Xf[0],Jf=Xf[1],Qf=/*#__PURE__*/pa(function(e,n){var r=ya("Form",e),a=function(e){var n=e.id,r=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=Wf(e,Uf),l=dn(),u=n||"field-"+l,c=u+"-label",d=u+"-feedback",f=u+"-helptext",p=F.useState(!1),m=p[0],v=p[1],h=F.useState(!1),y=h[0],g=h[1],b=sn(),E=b[0],x=b[1],_=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hf({id:f},e,{ref:en(t,function(e){e&&g(!0)})})},[f]),w=F.useCallback(function(e,n){var r,s;return void 0===e&&(e={}),void 0===n&&(n=null),Hf({},e,{ref:n,"data-focus":t.dataAttr(E),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(r=e.id)?r:c,htmlFor:null!=(s=e.htmlFor)?s:u})},[u,o,E,a,i,c]),k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hf({id:d},e,{ref:en(t,function(e){e&&v(!0)}),"aria-live":"polite"})},[d]),S=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hf({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hf({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:x.on,onBlur:x.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:g,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(oa(e)),o=a.getRootProps,i=Wf(a,$f),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
18
- return F.createElement(Kf,{value:i},/*#__PURE__*/F.createElement(Yf,{value:r},/*#__PURE__*/F.createElement(ba.div,Hf({},o({},n),{className:s,__css:r.container}))))});t.__DEV__&&(Qf.displayName="FormControl");var ep=/*#__PURE__*/pa(function(e,n){var r=Jf(),a=Zf(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
19
- return F.createElement(ba.div,Hf({},null==r?void 0:r.getHelpTextProps(e,n),{__css:a.helperText,className:o}))});t.__DEV__&&(ep.displayName="FormHelperText");var tp=["isDisabled","isInvalid","isReadOnly","isRequired"],np=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function rp(e){var n=ap(e),r=n.isDisabled,a=n.isInvalid,o=n.isReadOnly,i=n.isRequired;return Hf({},Wf(n,tp),{disabled:r,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function ap(e){var n,r,a,o=Jf(),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=Wf(e,np),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),Hf({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=l?l:f)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=u?u:c)?a:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:t.callAllHandlers(null==o?void 0:o.onFocus,m),onBlur:t.callAllHandlers(null==o?void 0:o.onBlur,v)})}var op=aa("FormError"),ip=op[0],sp=op[1],lp=/*#__PURE__*/pa(function(e,n){var r=ya("FormError",e),a=oa(e),o=Jf();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(ip,{value:r},/*#__PURE__*/F.createElement(ba.div,Hf({},null==o?void 0:o.getErrorMessageProps(a,n),{className:t.cx("chakra-form__error-message",e.className),__css:Hf({display:"flex",alignItems:"center"},r.text)}))):null});t.__DEV__&&(lp.displayName="FormErrorMessage");var up=/*#__PURE__*/pa(function(e,n){var r=sp(),a=Jf();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
20
- return F.createElement(Ia,Hf({ref:n,"aria-hidden":!0},e,{__css:r.icon,className:o}),/*#__PURE__*/F.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"}))});t.__DEV__&&(up.displayName="FormErrorIcon");var cp=["className","children","requiredIndicator","optionalIndicator"],dp=/*#__PURE__*/pa(function(e,n){var r,a=ha("FormLabel",e),o=oa(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(fp,null):s,u=o.optionalIndicator,c=void 0===u?null:u,d=Wf(o,cp),f=Jf(),p=null!=(r=null==f?void 0:f.getLabelProps(d,n))?r:Hf({ref:n},d);/*#__PURE__*/
21
- return F.createElement(ba.label,Hf({},p,{className:t.cx("chakra-form__label",o.className),__css:Hf({display:"block",textAlign:"start"},a)}),i,null!=f&&f.isRequired?l:c)});t.__DEV__&&(dp.displayName="FormLabel");var fp=/*#__PURE__*/pa(function(e,n){var r=Jf(),a=Gf();if(null==r||!r.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
22
- return F.createElement(ba.span,Hf({},null==r?void 0:r.getRequiredIndicatorProps(e,n),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(fp.displayName="RequiredIndicator");var pp=!1,mp=null,vp=!1,hp=/* @__PURE__ */new Set,yp="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function gp(e,t){hp.forEach(n=>n(e,t))}function bp(e){vp=!0,function(e){return!(e.metaKey||!yp&&e.altKey||e.ctrlKey)}(e)&&(mp="keyboard",gp("keyboard",e))}function Ep(e){mp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(vp=!0,gp("pointer",e))}function xp(e){e.target!==window&&e.target!==document&&(vp||(mp="keyboard",gp("keyboard",e)),vp=!1)}function _p(){vp=!1}function wp(){return"pointer"!==mp}function kp(e){!function(){if("undefined"==typeof window||pp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){vp=!0,e.apply(this,t)},document.addEventListener("keydown",bp,!0),document.addEventListener("keyup",bp,!0),window.addEventListener("focus",xp,!0),window.addEventListener("blur",_p,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ep,!0),document.addEventListener("pointermove",Ep,!0),document.addEventListener("pointerup",Ep,!0)):(document.addEventListener("mousedown",Ep,!0),document.addEventListener("mousemove",Ep,!0),document.addEventListener("mouseup",Ep,!0)),pp=!0}(),e(wp());const t=()=>e(wp());return hp.add(t),()=>{hp.delete(t)}}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)}var Cp=tn({name:"CheckboxGroupContext",strict:!1})[1];function Op(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Ap=["isIndeterminate","isChecked"],Np=function(e){var t=Pd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.svg),Rp=function(e){/*#__PURE__*/
23
- return F.createElement(Np,Sp({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__*/F.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Ip=function(e){/*#__PURE__*/
24
- return F.createElement(Np,Sp({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__*/F.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Pp=function(e){/*#__PURE__*/
25
- return F.createElement(Vd,{initial:!1},e.open&&/*#__PURE__*/F.createElement(Pd.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))},Tp=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Op(e,Ap);/*#__PURE__*/
26
- return F.createElement(Pp,{open:n||t},/*#__PURE__*/F.createElement(t?Ip:Rp,r))},Lp=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Dp(e){void 0===e&&(e={});var n=ap(e),r=n.isDisabled,a=n.isReadOnly,o=n.isRequired,i=n.isInvalid,s=n.id,l=n.onBlur,u=n.onFocus,c=n["aria-describedby"],d=e.defaultChecked,f=e.isChecked,p=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,y=e.value,g=e.tabIndex,b=void 0===g?void 0:g,E=e["aria-label"],x=e["aria-labelledby"],_=e["aria-invalid"],w=Op(e,Lp),k=t.omit(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=an(m),C=an(l),O=an(u),A=F.useState(!1),N=A[0],R=A[1],I=sn(),P=I[0],T=I[1],L=sn(),D=L[0],M=L[1],V=sn(),j=V[0],B=V[1];F.useEffect(function(){return kp(R)},[]);var z=F.useRef(null),H=F.useState(!0),W=H[0],U=H[1],$=F.useState(!!d),q=$[1],Y=ln(f,$[0]),Z=Y[0],G=Y[1],X=F.useCallback(function(e){a||r?e.preventDefault():(Z||q(G?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,r,G,Z,v,S]);rn(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),fn(function(){r&&T.off()},[r,T]),rn(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=r&&!p,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);rn(function(){z.current&&z.current.checked!==G&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sp({},e,{ref:n,"data-active":t.dataAttr(j),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(G),"data-focus":t.dataAttr(P),"data-focus-visible":t.dataAttr(P&&N),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(r),"data-invalid":t.dataAttr(i),"data-readonly":t.dataAttr(a),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,function(e){e.preventDefault(),B.on()}),onMouseUp:t.callAllHandlers(e.onMouseUp,B.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,M.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,M.off)})},[j,G,r,P,N,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sp({},k,e,{ref:en(n,function(e){e&&U("LABEL"===e.tagName)}),onClick:t.callAllHandlers(e.onClick,function(){var e;W||(null==(e=z.current)||e.click(),t.focus(z.current,{nextTick:!0}))}),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[k,r,G,i,W]),ne=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sp({},e,{ref:en(z,n),type:"checkbox",name:h,value:y,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,T.off),onFocus:t.callAllHandlers(e.onFocus,O,T.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:G,disabled:K,readOnly:a,"aria-label":E,"aria-labelledby":x,"aria-invalid":_?Boolean(_):i,"aria-describedby":c,"aria-disabled":r,style:Ea})},[h,y,s,X,T.off,T.on,C,O,J,Q,o,G,K,a,E,x,_,i,c,r,b]),re=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sp({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,Mp),onTouchStart:t.callAllHandlers(e.onTouchStart,Mp),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[G,r,i]);return{state:{isInvalid:i,isFocused:P,isChecked:G,isActive:j,isHovered:D,isIndeterminate:v,isDisabled:r,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:ne,getLabelProps:re,htmlProps:k}}function Mp(e){e.preventDefault(),e.stopPropagation()}var Vp=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],jp=ba("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Bp=ba("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Fp=/*#__PURE__*/pa(function(e,n){var r=Cp(),a=ya("Checkbox",Sp({},r,e)),o=oa(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,u=o.children,c=o.iconColor,d=o.iconSize,f=o.icon,p=void 0===f?/*#__PURE__*/F.createElement(Tp,null):f,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==r?void 0:r.isDisabled:v,y=o.onChange,g=o.inputProps,b=Op(o,Vp),E=m;null!=r&&r.value&&o.value&&(E=r.value.includes(o.value));var x=y;null!=r&&r.onChange&&o.value&&(x=t.callAll(r.onChange,y));var _=Dp(Sp({},b,{isDisabled:h,isChecked:E,onChange:x})),w=_.state,k=_.getInputProps,S=_.getCheckboxProps,C=_.getLabelProps,O=_.getRootProps,A=F.useMemo(function(){return Sp({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:c},a.icon)},[c,d,w.isChecked,w.isIndeterminate,a.icon]),N=/*#__PURE__*/F.cloneElement(p,{__css:A,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
27
- return F.createElement(Bp,Sp({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",Sp({className:"chakra-checkbox__input"},k(g,n))),/*#__PURE__*/F.createElement(jp,Sp({__css:a.control,className:"chakra-checkbox__control"},S()),N),u&&/*#__PURE__*/F.createElement(ba.span,Sp({className:"chakra-checkbox__label"},C(),{__css:Sp({marginStart:s},a.label)}),u))});function zp(e){void 0===e&&(e={});var n=e.precision,r=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,u=e.max,c=void 0===u?t.maxSafeInteger:u,d=e.keepWithinRange,f=void 0===d||d,p=an(e.onChange),m=F.useState(function(){var e;return null==r?"":null!=(e=Up(r,i,n))?e:""}),v=m[1],h=ln(a,m[0]),y=h[0],g=h[1],b=Wp(Hp(g),i),E=null!=n?n:b,x=F.useCallback(function(e){e!==g&&(y||v(e.toString()),null==p||p(e.toString(),Hp(e)))},[p,y,g]),_=F.useCallback(function(e){var n=e;return f&&(n=t.clampValue(n,l,c)),t.toPrecision(n,E)},[E,f,c,l]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?Hp(e):Hp(g)+e,t=_(t),x(t)},[_,i,x,g]),k=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?Hp(-e):Hp(g)-e,t=_(t),x(t)},[_,i,x,g]),S=F.useCallback(function(){var e,t;e=null==r?"":null!=(t=Up(r,i,n))?t:l,x(e)},[r,n,i,x,l]),C=F.useCallback(function(e){var t,n=null!=(t=Up(e,i,E))?t:l;x(n)},[E,i,x,l]),O=Hp(g);return{isOutOfRange:O>c||O<l,isAtMax:O===c,isAtMin:O===l,precision:E,value:g,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:_,cast:C,setValue:v}}function Hp(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Wp(e,n){return Math.max(t.countDecimalPlaces(n),t.countDecimalPlaces(e))}function Up(e,n,r){var a=Hp(e);if(!Number.isNaN(a)){var o=Wp(a,n);return t.toPrecision(a,null!=r?r:o)}}function $p(){return $p=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},$p.apply(this,arguments)}function qp(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Fp.displayName="Checkbox");var Yp=["htmlSize"],Zp=/*#__PURE__*/pa(function(e,n){var r=e.htmlSize,a=qp(e,Yp),o=ya("Input",a),i=rp(oa(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
28
- return F.createElement(ba.input,$p({size:r},i,{__css:o.field,ref:n,className:s}))});t.__DEV__&&(Zp.displayName="Input"),Zp.id="Input";var Gp=["children","className"],Xp=aa("InputGroup"),Kp=Xp[0],Jp=Xp[1],Qp=/*#__PURE__*/pa(function(e,n){var r=ya("Input",e),a=oa(e),o=a.children,i=a.className,s=qp(a,Gp),l=t.cx("chakra-input__group",i),u={},c=nn(o),d=r.field;c.forEach(function(e){var t,n;r&&(d&&"InputLeftElement"===e.type.id&&(u.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(u.paddingEnd=null!=(n=d.height)?n:d.h),"InputRightAddon"===e.type.id&&(u.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(u.borderStartRadius=0))});var f=c.map(function(n){var r,a,o=t.filterUndefined({size:(null==(r=n.props)?void 0:r.size)||e.size,variant:(null==(a=n.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
7
+ return F.createElement(ba.svg,Oa({verticalAlign:"middle",viewBox:m},p,f),v)});t.__DEV__&&(Ra.displayName="Icon");var Ia=Ra,Pa=function(e,t){return Pa=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])},Pa(e,t)};function Ta(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}Pa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var La=function(){return La=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},La.apply(this,arguments)};function Da(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 a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function Ma(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Va(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var ja="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Ba=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Fa={measureLayout:Ba(["layout","layoutId","drag"]),animation:Ba(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ba(["exit"]),drag:Ba(["drag","dragControls"]),focus:Ba(["whileFocus"]),hover:Ba(["whileHover","onHoverStart","onHoverEnd"]),tap:Ba(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ba(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ba(["whileInView","onViewportEnter","onViewportLeave"])},za=function(){},Wa=function(){};"production"!==process.env.NODE_ENV&&(za=function(e,t){e||"undefined"==typeof console||console.warn(t)},Wa=function(e,t){if(!e)throw new Error(t)});var Ha=F.createContext({strict:!1}),Ua=Object.keys(Fa),$a=Ua.length,qa=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ya=F.createContext({}),Za=F.createContext(null),Ga="undefined"!=typeof document,Xa=Ga?F.useLayoutEffect:F.useEffect,Ka={current:null},Ja=!1;function Qa(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function eo(e){return Array.isArray(e)}function to(e){return"string"==typeof e||eo(e)}function no(e,t,n,r,a){var o;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function ro(e,t,n){var r=e.getProps();return no(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 ao(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||to(e.initial)||to(e.animate)||to(e.whileHover)||to(e.whileDrag)||to(e.whileTap)||to(e.whileFocus)||to(e.exit)}function oo(e){return Boolean(ao(e)||e.variants)}function io(e){return Array.isArray(e)?e.join(" "):e}function so(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const lo="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),uo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(lo()),16.666666666666668);let co=!0,fo=!1,po=!1;const mo={delta:0,timestamp:0},vo=["read","update","preRender","render","postRender"],ho=vo.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,u=l?t:n;return o&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(a)o=!0;else{if(a=!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),fo=!0)}a=!1,o&&(o=!1,s.process(e))}}};return s}(),e),{}),yo=vo.reduce((e,t)=>{const n=ho[t];return e[t]=(e,t=!1,r=!1)=>(fo||_o(),n.schedule(e,t,r)),e},{}),go=vo.reduce((e,t)=>(e[t]=ho[t].cancel,e),{}),bo=vo.reduce((e,t)=>(e[t]=()=>ho[t].process(mo),e),{}),Eo=e=>ho[e].process(mo),xo=e=>{fo=!1,mo.delta=co?16.666666666666668:Math.max(Math.min(e-mo.timestamp,40),1),mo.timestamp=e,po=!0,vo.forEach(Eo),po=!1,fo&&(co=!1,uo(xo))},_o=()=>{fo=!0,co=!0,po||uo(xo)},wo=()=>mo,ko=(e,t,n)=>Math.min(Math.max(n,e),t);function So(e,t){return e*Math.sqrt(1-t*t)}const Co=["duration","bounce"],Oo=["stiffness","damping","mass"];function Ao(e,t){return t.some(t=>void 0!==e[t])}function No(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:a}=e,o=Da(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(!Ao(e,Oo)&&Ao(e,Co)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,o;za(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=ko(.05,1,i),e=ko(.01,10,e/1e3),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/So(t,i)*Math.exp(-a)},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=So(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/u}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=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}(a,o,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}(o),p=Ro,m=Ro;function v(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=So(i,o);p=a=>{const s=Math.exp(-o*i*a);return n-s*((e+o*i*r)/t*Math.sin(t*a)+r*Math.cos(t*a))},m=n=>{const a=Math.exp(-o*i*n);return o*i*a*(Math.sin(t*n)*(e+o*i*r)/t+r*Math.cos(t*n))-a*(Math.cos(t*n)*(e+o*i*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(o*o-1);p=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return n-s*((e+o*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 o=1e3*m(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=a;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}No.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ro=e=>0,Io=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Po=(e,t,n)=>-n*e+n*t+e,To=(e,t)=>n=>Math.max(Math.min(n,t),e),Lo=e=>e%1?Number(e.toFixed(5)):e,Do=/(-)?([\d]*\.?[\d])+/g,Mo=/(#[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,Vo=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function jo(e){return"string"==typeof e}const Bo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Fo=Object.assign(Object.assign({},Bo),{transform:To(0,1)}),zo=Object.assign(Object.assign({},Bo),{default:1}),Wo=e=>({test:t=>jo(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ho=Wo("deg"),Uo=Wo("%"),$o=Wo("px"),qo=Wo("vh"),Yo=Wo("vw"),Zo=Object.assign(Object.assign({},Uo),{parse:e=>Uo.parse(e)/100,transform:e=>Uo.transform(100*e)}),Go=(e,t)=>n=>Boolean(jo(n)&&Vo.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Xo=(e,t,n)=>r=>{if(!jo(r))return r;const[a,o,i,s]=r.match(Do);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ko={test:Go("hsl","hue"),parse:Xo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Uo.transform(Lo(t))+", "+Uo.transform(Lo(n))+", "+Lo(Fo.transform(r))+")"},Jo=To(0,255),Qo=Object.assign(Object.assign({},Bo),{transform:e=>Math.round(Jo(e))}),ei={test:Go("rgb","red"),parse:Xo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qo.transform(e)+", "+Qo.transform(t)+", "+Qo.transform(n)+", "+Lo(Fo.transform(r))+")"},ti={test:Go("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:ei.transform},ni={test:e=>ei.test(e)||ti.test(e)||Ko.test(e),parse:e=>ei.test(e)?ei.parse(e):Ko.test(e)?Ko.parse(e):ti.parse(e),transform:e=>jo(e)?e:e.hasOwnProperty("red")?ei.transform(e):Ko.transform(e)};function ri(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Mo);r&&(n=r.length,e=e.replace(Mo,"${c}"),t.push(...r.map(ni.parse)));const a=e.match(Do);return a&&(e=e.replace(Do,"${n}"),t.push(...a.map(Bo.parse))),{values:t,numColors:n,tokenised:e}}function ai(e){return ri(e).values}function oi(e){const{values:t,numColors:n,tokenised:r}=ri(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=t.replace(r<n?"${c}":"${n}",r<n?ni.transform(e[r]):Lo(e[r]));return t}}const ii=e=>"number"==typeof e?0:e,si={test:function(e){var t,n,r,a;return isNaN(e)&&jo(e)&&(null!==(n=null===(t=e.match(Do))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(Mo))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:ai,createTransformer:oi,getAnimatableNone:function(e){const t=ai(e);return oi(e)(t.map(ii))}},li=new Set(["brightness","contrast","saturate","opacity"]);function ui(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Do)||[];if(!r)return e;const a=n.replace(r,"");let o=li.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const ci=/([a-z-]*)\(.*?\)/g,di=Object.assign(Object.assign({},si),{getAnimatableNone:e=>{const t=e.match(ci);return t?t.map(ui).join(" "):e}});function fi(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 pi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=fi(s,r,e+1/3),o=fi(s,r,e),i=fi(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}const mi=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},vi=[ti,ei,Ko],hi=e=>vi.find(t=>t.test(e)),yi=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,gi=(e,t)=>{let n=hi(e),r=hi(t);Wa(!!n,yi(e)),Wa(!!r,yi(t));let a=n.parse(e),o=r.parse(t);n===Ko&&(a=pi(a),n=ei),r===Ko&&(o=pi(o),r=ei);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=mi(a[t],o[t],e));return i.alpha=Po(a.alpha,o.alpha,e),n.transform(i)}},bi=e=>"number"==typeof e,Ei=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce(Ei);function _i(e,t){return bi(e)?n=>Po(e,t,n):ni.test(e)?gi(e,t):Ci(e,t)}const wi=(e,t)=>{const n=[...e],r=n.length,a=e.map((e,n)=>_i(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},ki=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=_i(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Si(e){const t=si.parse(e),n=t.length;let r=0,a=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:o}}const Ci=(e,t)=>{const n=si.createTransformer(t),r=Si(e),a=Si(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?xi(wi(r.parsed,a.parsed),n):(za(!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}`)},Oi=(e,t)=>n=>Po(e,t,n);function Ai(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;Wa(o===t.length,"Both input and output ranges must be the same length"),Wa(!r||!Array.isArray(r)||r.length===o-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[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],a=n||function(e){return"number"==typeof e?Oi:"string"==typeof e?ni.test(e)?gi:Ci:Array.isArray(e)?wi:"object"==typeof e?ki:void 0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=xi(e,o)}r.push(o)}return r}(t,r,a),s=2===o?function([e,t],[n]){return r=>n(Io(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[r]&&(o=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>a||t===r);t++);o=t-1}const s=Io(e[o],e[o+1],a);return t[o](s)}}(e,i);return n?t=>s(ko(e[0],e[o-1],t)):s}const Ni=e=>t=>1-e(1-t),Ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ii=e=>t=>t*t*((e+1)*t-e),Pi=e=>e,Ti=e=>Math.pow(e,2),Li=Ni(Ti),Di=Ri(Ti),Mi=e=>1-Math.sin(Math.acos(e)),Vi=Ni(Mi),ji=Ri(Vi),Bi=Ii(1.525),Fi=Ni(Bi),zi=Ri(Bi),Wi=(e=>{const t=Ii(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Hi=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},Ui=Ni(Hi);function $i(e,t){return e.map(()=>t||Di).splice(0,e.length-1)}function qi({from:e=0,to:t=1,ease:n,offset:r,duration:a=300}){const o={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),a);function l(){return Ai(s,i,{ease:Array.isArray(n)?n:$i(i,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),u=l()}}}const Yi={keyframes:qi,spring:No,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>a||t<-a),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}},Zi="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Gi="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Zi()),16.666666666666668);let Xi=!0,Ki=!1,Ji=!1;const Qi={delta:0,timestamp:0},es=["read","update","preRender","render","postRender"],ts=es.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,u=l?t:n;return o&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!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())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>Ki=!0),e),{}),ns=es.reduce((e,t)=>{const n=ts[t];return e[t]=(e,t=!1,r=!1)=>(Ki||is(),n.schedule(e,t,r)),e},{}),rs=es.reduce((e,t)=>(e[t]=ts[t].cancel,e),{});es.reduce((e,t)=>(e[t]=()=>ts[t].process(Qi),e),{});const as=e=>ts[e].process(Qi),os=e=>{Ki=!1,Qi.delta=Xi?16.666666666666668:Math.max(Math.min(e-Qi.timestamp,40),1),Qi.timestamp=e,Ji=!0,es.forEach(as),Ji=!1,Ki&&(Xi=!1,Gi(os))},is=()=>{Ki=!0,Xi=!0,Ji||Gi(os)};function ss(e,t,n=0){return e-t-n}const ls=e=>{const t=({delta:t})=>e(t);return{start:()=>ns.update(t,!0),stop:()=>rs.update(t)}};function us(e){var t,n,{from:r,autoplay:a=!0,driver:o=ls,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=Da(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,E=0,x=v.duration,_=!1,w=!0;const k=function(e){if(Array.isArray(e.to))return qi;if(Yi[e.type])return Yi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?No:qi}(v);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Ai([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},v),{from:r,to:b}));return a&&(null==c||c(),h=o(function(e){if(w||(e=-e),i+=e,!_){const e=S.next(Math.max(0,i));y=e.value,g&&(y=g(y)),_=w?e.done:i<=0}null==m||m(y),_&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,w)&&(E++,"reverse"===l?(w=E%2==0,i=function(e,t,n=0,r=!0){return r?ss(t+-e,t,n):t-(e-t)+n}(i,x,u,w)):(i=ss(i,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function cs(e,t){return t?e*(1e3/t):0}const ds=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),fs=e=>ds(e)&&e.hasOwnProperty("z"),ps=(e,t)=>Math.abs(e-t);function ms(e,t){if(bi(e)&&bi(t))return ps(e,t);if(ds(e)&&ds(t)){const n=ps(e.x,t.x),r=ps(e.y,t.y),a=fs(e)&&fs(t)?ps(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}const vs=(e,t)=>1-3*t+3*e,hs=(e,t)=>3*t-6*e,ys=e=>3*e,gs=(e,t,n)=>((vs(t,n)*e+hs(t,n))*e+ys(t))*e,bs=(e,t,n)=>3*vs(t,n)*e*e+2*hs(t,n)*e+ys(t);function Es(e,t){-1===e.indexOf(t)&&e.push(t)}function xs(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var _s=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Es(this.subscriptions,e),function(){return xs(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 a=0;a<r;a++){var o=this.subscriptions[a];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ws=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new _s,this.velocityUpdateSubscribers=new _s,this.renderSubscribers=new _s,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=wo(),a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=r.delta,t.lastUpdated=a,yo.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 yo.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?cs(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 ks(e){return new ws(e)}var Ss=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Cs=function(e){return 1e3*e},Os={linear:Pi,easeIn:Ti,easeInOut:Di,easeOut:Li,circIn:Mi,circInOut:ji,circOut:Vi,backIn:Bi,backInOut:zi,backOut:Fi,anticipate:Wi,bounceIn:Ui,bounceInOut:e=>e<.5?.5*(1-Hi(1-2*e)):.5*Hi(2*e-1)+.5,bounceOut:Hi},As=function(e){if(Array.isArray(e)){Wa(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Ma(e,4);return function(e,t,n,r){if(e===t&&n===r)return Pi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=gs(.1*t,e,n);return o=>0===o||1===o?o:gs(function(t){let r=0,o=1;for(;10!==o&&a[o]<=t;++o)r+=.1;--o;const i=r+(t-a[o])/(a[o+1]-a[o])*.1,s=bs(i,e,n);return s>=.001?function(e,t,n,r){for(let a=0;a<8;++a){const a=bs(t,n,r);if(0===a)return t;t-=(gs(t,n,r)-e)/a}return t}(t,i,e,n):0===s?i:function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=gs(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(o),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Wa(void 0!==Os[e],"Invalid easing type '".concat(e,"'")),Os[e]):e},Ns=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!si.test(t)||t.startsWith("url(")))},Rs=function(e){return Array.isArray(e)},Is=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ps=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Ts=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ls=function(e){return{type:"keyframes",duration:.8,values:e}},Ds={x:Is,y:Is,z:Is,rotate:Is,rotateX:Is,rotateY:Is,rotateZ:Is,scaleX:Ps,scaleY:Ps,scale:Ps,opacity:Ts,backgroundColor:Ts,color:Ts,default:Ps},Ms=La(La({},Bo),{transform:Math.round}),Vs={borderWidth:$o,borderTopWidth:$o,borderRightWidth:$o,borderBottomWidth:$o,borderLeftWidth:$o,borderRadius:$o,radius:$o,borderTopLeftRadius:$o,borderTopRightRadius:$o,borderBottomRightRadius:$o,borderBottomLeftRadius:$o,width:$o,maxWidth:$o,height:$o,maxHeight:$o,size:$o,top:$o,right:$o,bottom:$o,left:$o,padding:$o,paddingTop:$o,paddingRight:$o,paddingBottom:$o,paddingLeft:$o,margin:$o,marginTop:$o,marginRight:$o,marginBottom:$o,marginLeft:$o,rotate:Ho,rotateX:Ho,rotateY:Ho,rotateZ:Ho,scale:zo,scaleX:zo,scaleY:zo,scaleZ:zo,skew:Ho,skewX:Ho,skewY:Ho,distance:$o,translateX:$o,translateY:$o,translateZ:$o,x:$o,y:$o,z:$o,perspective:$o,transformPerspective:$o,opacity:Fo,originX:Zo,originY:Zo,originZ:$o,zIndex:Ms,fillOpacity:Fo,strokeOpacity:Fo,numOctaves:Ms},js=La(La({},Vs),{color:ni,backgroundColor:ni,outlineColor:ni,fill:ni,stroke:ni,borderColor:ni,borderTopColor:ni,borderRightColor:ni,borderBottomColor:ni,borderLeftColor:ni,filter:di,WebkitFilter:di}),Bs=function(e){return js[e]};function Fs(e,t){var n,r=Bs(e);return r!==di&&(r=si),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var zs=function(e){return Rs(e)?e[e.length-1]||0:e},Ws=!1;function Hs(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Us(e){return"number"==typeof e?0:Fs("",e)}function $s(e,t){return e[t]||e.default||e}function qs(e,t,n,r){return void 0===r&&(r={}),t.start(function(a){var o,i,s=function(e,t,n,r,a){var o,i=$s(r,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=Ns(e,n);"none"===s&&l&&"string"==typeof n?s=Fs(e,n):Hs(s)&&"string"==typeof n?s=Us(n):!Array.isArray(n)&&Hs(n)&&"string"==typeof s&&(n=Us(s));var u=Ns(e,s);return za(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:a,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:a=.8,timeConstant:o=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=us(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=a*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=cs(e-c,Qi.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:u,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(La(La({},r),i)):us(La(La({},function(e,t,n){var r,a,o,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=Va([],Ma(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Da(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=La(La({},e),(a=n,i=Rs(o=t.to)?Ls:Ds[a]||Ds.default,La({to:o},i(o))))),La(La({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,o=e.loop,i=Da(e,["ease","times","yoyo","flip","loop"]),s=La({},i);return n&&(s.offset=n),i.duration&&(s.duration=Cs(i.duration)),i.repeatDelay&&(s.repeatDelay=Cs(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(As):As(t)),"tween"===i.type&&(s.type="keyframes"),(r||o||a)&&(za(!Ws,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Ws=!0,r?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||r||a||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,o=zs(n);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,a),l=function(e,t){var n,r;return null!==(r=null!==(n=($s(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?o=window.setTimeout(u,Cs(l)):u(),function(){clearTimeout(o),null==i||i.stop()}})}var Ys=["TopLeft","TopRight","BottomLeft","BottomRight"],Zs=Ys.length,Gs=function(e){return"string"==typeof e?parseFloat(e):e},Xs=function(e){return"number"==typeof e||$o.test(e)};function Ks(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Js=el(0,.5,Vi),Qs=el(.5,.95,Pi);function el(e,t,n){return function(r){return r<e?0:r>t?1:n(Io(e,t,r))}}function tl(e,t){e.min=t.min,e.max=t.max}function nl(e,t){tl(e.x,t.x),tl(e.y,t.y)}function rl(e){return void 0===e||1===e}function al(e){var t=e.scaleX,n=e.scaleY;return!rl(e.scale)||!rl(t)||!rl(n)}function ol(e){return al(e)||il(e.x)||il(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function il(e){return e&&"0%"!==e}function sl(e,t,n){return n+t*(e-n)}function ll(e,t,n,r,a){return void 0!==a&&(e=sl(e,a,r)),sl(e,n,r)+t}function ul(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ll(e.min,t,n,r,a),e.max=ll(e.max,t,n,r,a)}function cl(e,t){var n=t.x,r=t.y;ul(e.x,n.translate,n.scale,n.originPoint),ul(e.y,r.translate,r.scale,r.originPoint)}function dl(e,t){e.min=e.min+t,e.max=e.max+t}function fl(e,t,n){var r=Ma(n,3),a=r[0],o=r[1],i=r[2],s=Po(e.min,e.max,void 0!==t[i]?t[i]:.5);ul(e,t[a],t[o],s,t.scale)}var pl=["x","scaleX","originX"],ml=["y","scaleY","originY"];function vl(e,t){fl(e.x,t,pl),fl(e.y,t,ml)}function hl(e){return e.max-e.min}function yl(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ms(e,t)<n}function gl(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Po(t.min,t.max,e.origin),e.scale=hl(n)/hl(t),(yl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Po(n.min,n.max,e.origin)-e.originPoint,(yl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function bl(e,t,n,r){gl(e.x,t.x,n.x,null==r?void 0:r.originX),gl(e.y,t.y,n.y,null==r?void 0:r.originY)}function El(e,t,n){e.min=n.min+t.min,e.max=e.min+hl(t)}function xl(e,t,n){e.min=t.min-n.min,e.max=e.min+hl(t)}function _l(e,t,n){xl(e.x,t.x,n.x),xl(e.y,t.y,n.y)}function wl(e,t,n,r,a){return e=sl(e-=t,1/n,r),void 0!==a&&(e=sl(e,1/a,r)),e}function kl(e,t,n,r,a){var o=Ma(n,3);!function(e,t,n,r,a,o,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===i&&(i=e),Uo.test(t)&&(t=parseFloat(t),t=Po(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=Po(o.min,o.max,r);e===o&&(s-=t),e.min=wl(e.min,t,n,s,a),e.max=wl(e.max,t,n,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,r,a)}var Sl=["x","scaleX","originX"],Cl=["y","scaleY","originY"];function Ol(e,t,n,r){kl(e.x,t,Sl,null==n?void 0:n.x,null==r?void 0:r.x),kl(e.y,t,Cl,null==n?void 0:n.y,null==r?void 0:r.y)}function Al(e){return 0===e.translate&&1===e.scale}function Nl(e){return Al(e.x)&&Al(e.y)}function Rl(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 Il=function(){function e(){this.members=[]}return e.prototype.add=function(e){Es(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(xs(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 a=this.members[r];if(!1!==a.isPresent){t=a;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,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)})},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}(),Pl={};function Tl(e,t,n){var r=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,i=n.rotateX,s=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":a}function Ll(e){return[e("x"),e("y")]}var Dl=["","X","Y","Z"],Ml=["transformPerspective","x","y","z"];function Vl(e,t){return Ml.indexOf(e)-Ml.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Dl.forEach(function(t){return Ml.push(e+t)})});var jl=new Set(Ml);function Bl(e){return jl.has(e)}var Fl=new Set(["originX","originY","originZ"]);function zl(e){return Fl.has(e)}var Wl=function(e,t){return e.depth-t.depth},Hl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Es(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){xs(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Wl),this.isDirty=!1,this.children.forEach(e)},e}();function Ul(e){var t=Ss(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var $l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ql(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var a=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(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(Ql),a.nodes.forEach(eu)},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?Va(Va([],Ma(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new _s),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,Va([],Ma(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,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.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 a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),$l.hasAnimatedSinceResize&&($l.hasAnimatedSinceResize=!1,a.nodes.forEach(Jl))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var f=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:iu,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!a.targetLayout||!Rl(a.targetLayout,d)||c,y=!u&&c;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=La(La({},$s(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}else u||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(i=(o=a.options).onExitComplete)||void 0===i||i.call(o));a.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,go.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(tu))},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 a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.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(Xl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(su),this.potentialNodes.clear()),this.nodes.forEach(Kl),this.nodes.forEach(Yl),this.nodes.forEach(Zl),this.clearAllSnapshots(),bo.update(),bo.preRender(),bo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Gl),this.sharedNodes.forEach(nu)},e.prototype.scheduleUpdateProjection=function(){yo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;yo.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));uu(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();uu(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=a(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Nl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==r?void 0:r(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(n||ol(this.latestValues)||i)&&(o(this.instance,a),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&&(dl(t.x,n.x),dl(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};nl(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll;if(r!==this.root&&a&&r.options.layoutScroll){if(r.isScrollRoot){nl(t,e);var o=this.root.scroll;o&&(dl(t.x,-o.x),dl(t.y,-o.y))}dl(t.x,a.x),dl(t.y,a.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}};nl(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&vl(n,{x:-a.scroll.x,y:-a.scroll.y}),ol(a.latestValues)&&vl(n,a.latestValues)}return ol(this.latestValues)&&vl(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};nl(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&ol(a.latestValues)){al(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};nl(o,a.measure()),Ol(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return ol(this.latestValues)&&Ol(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=La(La(La({},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,a=this.options;this.layout&&(a.layout||a.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}},_l(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),nl(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)?(El((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),El(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):nl(this.target,this.layout.actual),cl(this.target,this.targetDelta)):nl(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}},_l(this.relativeTargetOrigin,this.target,this.relativeParent.target),nl(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!ol(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 a=this.getLead();nl(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,o;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===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,cl(e,l)),r&&ol(s.latestValues)&&vl(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==a);var o=a.target;if(o){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;bl(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Tl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},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 a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=La({},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==a?void 0:a.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(ou));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;ru(s.x,e.x,a),ru(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(_l(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){au(e.x,t.x,n.x,r),au(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,a)),u&&(r.animationValues=i,function(e,t,n,r,a,o){var i,s,l,u;a?(e.opacity=Po(0,null!==(i=n.opacity)&&void 0!==i?i:1,Js(r)),e.opacityExit=Po(null!==(s=t.opacity)&&void 0!==s?s:1,0,Qs(r))):o&&(e.opacity=Po(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Zs;c++){var d="border".concat(Ys[c],"Radius"),f=Ks(t,d),p=Ks(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Xs(f)===Xs(p)?(e[d]=Math.max(Po(Gs(f),Gs(p),r),0),(Uo.test(p)||Uo.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Po(t.rotate||0,n.rotate||0,r))}(i,o,r.latestValues,a,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},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&&(go.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yo.update(function(){$l.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ss(0)?0:ks(0);return qs("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,La(La({},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&&(nl(t,n),vl(t,r),bl(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Il),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.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,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),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<Dl.length;r++)e.getStaticValue(a="rotate"+Dl[r])&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,o,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=Ul(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=Ul(e.pointerEvents)||""),this.hasProjected&&!ol(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Tl(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!==(a=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,Pl)if(void 0!==d[v]){var h=Pl[v],y=h.applyTo,g=(0,h.correct)(d[v],u);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=u===this?Ul(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(Xl),this.root.sharedNodes.clear()},e}()}function Yl(e){e.updateLayout()}function Zl(e){var t,n,r,a,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Ll(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=hl(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Ll(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=hl(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}};bl(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?bl(c,e.applyTransform(l,!0),o.measured):bl(c,s,o.layout);var d=!Nl(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}};_l(h,o.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};_l(y,s,v.actual),Rl(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function Gl(e){e.clearSnapshot()}function Xl(e){e.clearMeasurements()}function Kl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Jl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Ql(e){e.resolveTargetDelta()}function eu(e){e.calcProjection()}function tu(e){e.resetRotation()}function nu(e){e.removeLeadSnapshot()}function ru(e,t,n){e.translate=Po(t.translate,0,n),e.scale=Po(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function au(e,t,n,r){e.min=Po(t.min,n.min,r),e.max=Po(t.max,n.max,r)}function ou(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var iu={duration:.45,ease:[.4,0,.1,1]};function su(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 a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function lu(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function uu(e){lu(e.x),lu(e.y)}var cu=1,du=F.createContext({}),fu=F.createContext({}),pu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(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}(F.Component);function mu(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Fa.projectionNodeConstructor=e[t]:Fa[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=F.useContext(du))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=La(La({},e),{layoutId:l});var u=F.useContext(qa),c=null,d=function(e){var t=function(e,t){if(ao(e)){var n=e.initial,r=e.animate;return{initial:!1===n||to(n)?n:void 0,animate:to(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(Ya)),n=t.initial,r=t.animate;return F.useMemo(function(){return{initial:n,animate:r}},[io(n),io(r)])}(e),f=u.isStatic?void 0:so(function(){if($l.hasEverUpdated)return cu++}),p=o(e,u.isStatic);return!u.isStatic&&Ga&&(d.visualElement=function(e,t,n,r){var a,o,i=F.useContext(Ha),s=F.useContext(Ya).visualElement,l=F.useContext(Za),u=(!Ja&&function(){if(Ja=!0,Ga)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ka.current=e.matches};e.addListener(t),t()}else Ka.current=!1}(),a=Ma(F.useState(Ka.current),1)[0],"never"!==(o=F.useContext(qa).reducedMotion)&&("always"===o||a)),c=F.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 Xa(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Xa(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,La(La({},u),e),n),function(e,t,n,r){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=F.useContext(fu);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Qa(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:c,layoutScroll:u}))}(f,e,d.visualElement,r||Fa.projectionNodeConstructor),c=function(e,t,n){var r=[],a=F.useContext(Ha);if(!t)return null;"production"!==ja&&n&&a.strict&&Wa(!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 o=0;o<$a;o++){var i=Ua[o],s=Fa[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(F.createElement(l,La({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),F.createElement(pu,{visualElement:d.visualElement,props:La(La({},u),e)},c,F.createElement(Ya.Provider,{value:d},a(i,e,f,function(e,t,n){return F.useCallback(function(r){var a;r&&(null===(a=e.mount)||void 0===a||a.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Qa(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 vu=["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 hu(e){return"string"==typeof e&&!e.includes("-")&&!!(vu.indexOf(e)>-1||/[A-Z]/.test(e))}function yu(e,t){var n=t.layout,r=t.layoutId;return Bl(e)||zl(e)||(n||void 0!==r)&&(!!Pl[e]||"opacity"===e)}var gu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function bu(e){return e.startsWith("--")}var Eu=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function xu(e,t,n,r){var a,o=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(bu(p))i[p]=m;else{var v=Vs[p],h=Eu(m,v);if(Bl(p)){if(c=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(f=!1)}else zl(p)?(u[p]=h,d=!0):o[p]=h}}c?o.transform=function(e,t,n,r){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(Vl);for(var d=!1,f=o.length,p=0;p<f;p++){var m=o[p];c+="".concat(gu[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(a,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(o)}(u))}function _u(e,t,n){for(var r in t)Ss(t[r])||yu(r,n)||(e[r]=t[r])}function wu(e,t,n){var r={},a=function(e,t,n){var r={};return _u(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};xu(e,t,{enableHardwareAcceleration:!n},r);var a=e.style;return La(La({},e.vars),a)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var ku=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 Su(e){return ku.has(e)}var Cu,Ou=function(e){return!Su(e)};try{(Cu=require("@emotion/is-prop-valid").default)&&(Ou=function(e){return e.startsWith("on")?!Su(e):Cu(e)})}catch(e){}function Au(e,t,n){return"string"==typeof e?e:$o.transform(t+n*e)}var Nu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ru={offset:"strokeDashoffset",array:"strokeDasharray"};function Iu(e,t,n,r){var a=t.attrX,o=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;xu(e,Da(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=Au(t,e.x,e.width),a=Au(n,e.y,e.height);return"".concat(r," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?Nu:Ru;e[o.offset]=$o.transform(-r);var i=$o.transform(t),s=$o.transform(n);e[o.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var Pu=function(){return La(La({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Tu(e,t){var n=F.useMemo(function(){var n=Pu();return Iu(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),La(La({},n.attrs),{style:La({},n.style)})},[t]);if(e.style){var r={};_u(r,e.style,e),n.style=La(La({},r),n.style)}return n}function Lu(e){return void 0===e&&(e=!1),function(t,n,r,a,o,i){var s=o.latestValues,l=(hu(t)?Tu:wu)(n,s,i),u=function(e,t,n){var r={};for(var a in e)(Ou(a)||!0===n&&Su(a)||!t&&!Su(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),c=La(La(La({},u),l),{ref:a});return r&&(c["data-projection-id"]=r),F.createElement(t,c)}}var Du=/([a-z])([A-Z])/g,Mu=function(e){return e.replace(Du,"$1-$2").toLowerCase()};function Vu(e,t,n,r){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),o)e.style.setProperty(i,o[i])}var ju=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Bu(e,t,n,r){for(var a in Vu(e,t,void 0,r),t.attrs)e.setAttribute(ju.has(a)?a:Mu(a),t.attrs[a])}function Fu(e){var t=e.style,n={};for(var r in t)(Ss(t[r])||yu(r,e))&&(n[r]=t[r]);return n}function zu(e){var t=Fu(e);for(var n in e)Ss(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Wu(e){return"object"==typeof e&&"function"==typeof e.start}function Hu(e,t,n,r){var a=e.createRenderState,o=e.onMount,i={latestValues:$u(t,n,r,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var Uu=function(e){return function(t,n){var r=F.useContext(Ya),a=F.useContext(Za);return n?Hu(e,t,r,a):so(function(){return Hu(e,t,r,a)})}};function $u(e,t,n,r){var a={},o=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)a[s]=Ul(i[s]);var l=e.initial,u=e.animate,c=ao(e),d=oo(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=o||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Wu(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=no(e,t);if(n){var r=n.transitionEnd,o=Da(n,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in r)a[i]=r[i]}}),a}var qu,Yu={useVisualState:Uu({scrapeMotionValuesFromProps:zu,createRenderState:Pu,onMount:function(e,t,n){var r=n.renderState,a=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}}Iu(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),Bu(t,r)}})},Zu={useVisualState:Uu({scrapeMotionValuesFromProps:Fu,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Gu(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Xu(e,t,n,r){F.useEffect(function(){var a=e.current;if(n&&a)return Gu(a,t,n,r)},[e,t,n,r])}function Ku(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ju(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"}(qu||(qu={}));var Qu={pageX:0,pageY:0};function ec(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Qu;return{x:n[t+"X"],y:n[t+"Y"]}}function tc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function nc(e,t){return void 0===t&&(t="page"),{point:Ju(e)?ec(e,t):tc(e,t)}}var rc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,nc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},ac={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},oc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ic(e){return Ga&&null===window.onpointerdown?e:Ga&&null===window.ontouchstart?oc[e]:Ga&&null===window.onmousedown?ac[e]:e}function sc(e,t,n,r){return Gu(e,ic(t),rc(n,"pointerdown"===t),r)}function lc(e,t,n,r){return Xu(e,ic(t),n&&rc(n,"pointerdown"===t),r)}function uc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var cc=uc("dragHorizontal"),dc=uc("dragVertical");function fc(e){var t=!1;if("y"===e)t=dc();else if("x"===e)t=cc();else{var n=cc(),r=dc();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function pc(){var e=fc(!0);return!e||(e(),!1)}function mc(e,t,n){return function(r,a){var o;Ku(r)&&!pc()&&(null===(o=e.animationState)||void 0===o||o.setActive(qu.Hover,t),null==n||n(r,a))}}var vc=function(e,t){return!!t&&(e===t||vc(e,t.parentElement))};function hc(e){return F.useEffect(function(){return function(){return e()}},[])}var yc=new Set;function gc(e,t,n){e||yc.has(t)||(console.warn(t),n&&console.warn(n),yc.add(t))}var bc=new WeakMap,Ec=new WeakMap,xc=function(e){var t;null===(t=bc.get(e.target))||void 0===t||t(e)},_c=function(e){e.forEach(xc)},wc={some:0,all:1};function kc(e,t,n,r){var a=r.root,o=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;F.useEffect(function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:wc[s]};return function(e,r,a){var o=function(e){var t=e.root,n=Da(e,["root"]),r=t||document;Ec.has(r)||Ec.set(r,{});var a=Ec.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(_c,La({root:t},n))),a[o]}(r);return bc.set(e,function(e){var r,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(qu.InView,a);var o=n.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){bc.delete(e),o.unobserve(e)}}(n.getInstance(),r)}},[e,a,o,s])}function Sc(e,t,n,r){var a=r.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==ja&&gc(!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(qu.InView,!0)}))},[e])}var Cc=function(e){return function(t){return e(t),null}},Oc={inView:Cc(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Sc:kc)(l,s.current,t,i)}),tap:Cc(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.visualElement,o=t||n||r||e.whileTap,i=F.useRef(!1),s=F.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=a.animationState)||void 0===e||e.setActive(qu.Tap,!1),!pc()}function d(e,n){c()&&(vc(a.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=xi(sc(window,"pointerup",d,l),sc(window,"pointercancel",f,l)),null===(r=a.animationState)||void 0===r||r.setActive(qu.Tap,!0),null==n||n(e,t))}lc(a,"pointerdown",o?p:void 0,l),hc(u)}),focus:Cc(function(e){var t=e.whileFocus,n=e.visualElement;Xu(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(qu.Focus,!0)}:void 0),Xu(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(qu.Focus,!1)}:void 0)}),hover:Cc(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;lc(a,"pointerenter",t||r?mc(a,!0,t):void 0,{passive:!t}),lc(a,"pointerleave",n||r?mc(a,!1,n):void 0,{passive:!n})})},Ac=0,Nc=function(){return Ac++},Rc=function(){return so(Nc)};function Ic(){var e=F.useContext(Za);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=Rc();return F.useEffect(function(){return r(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Pc(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 Tc=function(e){return/^\-?\d*\.?\d+$/.test(e)},Lc=function(e){return/^0[^.\s]+$/.test(e)},Dc=function(e){return function(t){return t.test(e)}},Mc=[Bo,$o,Uo,Ho,Yo,qo,{test:function(e){return"auto"===e},parse:function(e){return e}}],Vc=function(e){return Mc.find(Dc(e))},jc=Va(Va([],Ma(Mc),!1),[ni,si],!1),Bc=function(e){return jc.find(Dc(e))};function Fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ks(n))}function zc(e,t){if(t)return(t[e]||t.default||t).from}function Wc(e,t,n){var r;void 0===n&&(n={});var a=ro(e,t,n.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);var s=a?function(){return Hc(e,a,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 a=i.delayChildren;return function(e,t,n,r,a,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===a?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(Uc).forEach(function(e,r){i.push(Wc(e,t,La(La({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Ma("beforeChildren"===u?[s,l]:[l,s],2),d=c[1];return(0,c[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Hc(e,t,n){var r,a=void 0===n?{}:n,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Da(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&&$c(v,h))){var b=La({delay:i},d);e.shouldReduceMotion&&Bl(h)&&(b=La(La({},b),{type:!1,delay:0}));var E=qs(h,y,g,b);m.push(E)}}return Promise.all(m).then(function(){f&&function(e,t){var n=ro(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,o=void 0===a?{}:a,i=Da(r,["transitionEnd","transition"]);for(var s in i=La(La({},i),o))Fc(e,s,zs(i[s]))}(e,f)})}function Uc(e,t){return e.sortNodePosition(t)}function $c(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var qc=[qu.Animate,qu.InView,qu.Focus,qu.Hover,qu.Tap,qu.Drag,qu.Exit],Yc=Va([],Ma(qc),!1).reverse(),Zc=qc.length;function Gc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Xc={animation:Cc(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 a=t.map(function(t){return Wc(e,t,n)});r=Promise.all(a)}else if("string"==typeof t)r=Wc(e,t,n);else{var o="function"==typeof t?ro(e,t,n.custom):t;r=Hc(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[qu.Animate]=Gc(!0),t[qu.InView]=Gc(),t[qu.Hover]=Gc(),t[qu.Tap]=Gc(),t[qu.Drag]=Gc(),t[qu.Focus]=Gc(),t[qu.Exit]=Gc(),t),a={},o=!0,i=function(t,n){var r=ro(e,n);if(r){var a=r.transitionEnd,o=Da(r,["transition","transitionEnd"]);t=La(La(La({},t),o),a)}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 a=Yc[n],v=r[a],h=null!==(l=u[a])&&void 0!==l?l:c[a],y=to(h),g=a===s?v.isActive:null;!1===g&&(m=n);var b=h===c[a]&&h!==u[a]&&y;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=La({},p),!v.isActive&&null===g||!h&&!v.prevProp||Wu(h)||"boolean"==typeof h)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!eo(t)&&!Pc(t,e)}(v.prevProp,h),x=E||a===s&&v.isActive&&!b&&y||n>m&&y,_=Array.isArray(h)?h:[h],w=_.reduce(i,{});!1===g&&(w={});var k=v.prevResolvedValues,S=void 0===k?{}:k,C=La(La({},S),w),O=function(e){x=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in C){var N=w[A],R=S[A];p.hasOwnProperty(A)||(N!==R?Rs(N)&&Rs(R)?!Pc(N,R)||E?O(A):v.protectedKeys[A]=!0:void 0!==N?O(A):f.add(A):void 0!==N&&f.has(A)?O(A):v.protectedKeys[A]=!0)}v.prevProp=h,v.prevResolvedValues=w,v.isActive&&(p=La(La({},p),w)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Va([],Ma(_.map(function(e){return{animation:e,options:La({type:a},t)}})),!1))},h=0;h<Zc;h++)v(h);if(a=La({},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 o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.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(a,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Wu(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:Cc(function(e){var t=e.custom,n=e.visualElement,r=Ma(Ic(),2),a=r[0],o=r[1],i=F.useContext(Za);F.useEffect(function(){var e,r;n.isPresent=a;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(qu.Exit,!a,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!a&&(null==s||s.then(o))},[a])})},Kc=function(){function e(e,t,n){var r=this,a=(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=ed(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ms(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,o=wo().timestamp;r.history.push(La(La({},a),{timestamp:o}));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=Jc(t,r.transformPagePoint),Ku(e)&&0===e.buttons?r.handlePointerUp(e,t):yo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,o=n.onSessionEnd,i=ed(Jc(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,i),o&&o(e,i)},!(Ju(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=Jc(nc(e),this.transformPagePoint),i=o.point,s=wo().timestamp;this.history=[La(La({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ed(o,this.history)),this.removeListeners=xi(sc(window,"pointermove",this.handlePointerMove),sc(window,"pointerup",this.handlePointerUp),sc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),go.update(this.updatePoint)},e}();function Jc(e,t){return t?{point:t(e.point)}:e}function Qc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ed(e,t){var n=e.point;return{point:n,delta:Qc(n,nd(t)),offset:Qc(n,td(t)),velocity:rd(t,.1)}}function td(e){return e[0]}function nd(e){return e[e.length-1]}function rd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=nd(e);n>=0&&!(a.timestamp-(r=e[n]).timestamp>Cs(t));)n--;if(!r)return{x:0,y:0};var o=(a.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function ad(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 od(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ma([a,r],2))[0],a=n[1]),{min:r,max:a}}function id(e,t,n){return{min:sd(e,t),max:sd(e,n)}}function sd(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function ld(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function ud(e,t){return ld(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 cd=new WeakMap,dd=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,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Kc(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(nc(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=fc(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ll(function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(Uo.test(a)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(a=hl(o)*(parseFloat(a)/100))}n.originPoint[e]=a}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(qu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.onDirectionLock,o=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==a||a(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==o||o(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(qu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&fd(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?Po(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Po(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Qa(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.bottom;return{x:ad(e.x,t.left,t.right),y:ad(e.y,n,r)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:id(e,"left","right"),y:id(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Ll(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}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Qa(t))return!1;var r=t.current;Wa(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=ud(e,n),a=t.scroll;return a&&(dl(r.x,a.x),dl(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:od(e.x,t.x),y:od(e.y,t.y)}}(a.layout.actual,o);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=ld(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ll(function(n){var l;if(fd(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=La(La({type:"inertia",velocity:a?e[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?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 qs(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ll(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;Ll(function(n){if(fd(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n];a.set(e[n]-Po(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=this.visualElement.projection;if(Qa(n.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Ll(function(e){var n,r,a,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();o[e]=(r=t.constraints[e],a=.5,i=hl(n={min:u,max:u}),(s=hl(r))>i?a=Io(r.min,r.max-i,n.min):i>s&&(a=Io(n.min,n.max-s,r.min)),ko(0,1,a))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Ll(function(e){if(fd(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e];n.set(Po(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;cd.set(this.visualElement,this);var n=sc(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Qa(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=Gu(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Ll(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(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,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 La(La({},e),{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function fd(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var pd={pan:Cc(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||n||r||a,s=F.useRef(null),l=F.useContext(qa).transformPagePoint,u={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),lc(o,"pointerdown",i&&function(e){s.current=new Kc(e,u,{transformPagePoint:l})}),hc(function(){return s.current&&s.current.end()})}),drag:Cc(function(e){var t=e.dragControls,n=e.visualElement,r=so(function(){return new dd(n)});F.useEffect(function(){return t&&t.subscribe(r)},[r,t]),F.useEffect(function(){return r.addListeners()},[r])})},md=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],vd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,o=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,E=!1,x=h.latestValues,_=h.renderState,w=function(){var e=md.map(function(){return new _s}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){md.forEach(function(r){var a,o="on"+r,i=e[o];null===(a=t[r])||void 0===a||a.call(t),i&&(t[r]=n[o](i))})}};return e.forEach(function(e,t){n["on"+md[t]]=function(t){return e.add(t)},n["notify"+md[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Va([],Ma(t),!1))}}),n}(),k=new Map,S=new Map,C={},O=La({},x);function A(){g&&E&&(N(),s(g,_,p.style,V.projection))}function N(){r(V,_,x,t,p)}function R(){w.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&yo.update(R,!1,!0)}),r=t.onRenderRequest(V.scheduleRender);S.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==x[T]&&Ss(L)&&L.set(x[T],!1)}var D=ao(p),M=oo(p),V=La(La({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:M?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){E=!0,g=V.current=e,V.projection&&V.projection.mount(e),M&&f&&!D&&(b=null==f?void 0:f.addVariantChild(V)),k.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(V),V.setProps(p)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),go.update(R),go.render(A),S.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(V),w.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=V.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(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?V:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.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){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(V,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),k.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],u(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=ks(t),V.addValue(e,n)),n},forEachValue:function(e){return k.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(a){var t=a(p,e);if(void 0!==t&&!Ss(t))return t}return O[e]}},w),{build:function(){return N(),_},scheduleRender:function(){yo.render(A,!1,!0)},syncRender:A,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&V.scheduleRender(),p=e,w.updatePropListeners(e),C=function(e,t,n){var r;for(var a in t){var o=t[a],i=n[a];if(Ss(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&gc("6.3.16"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.16 may not work as expected."));else if(Ss(i))e.addValue(a,ks(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,ks(null!==(r=e.getStaticValue(a))&&void 0!==r?r:o))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(V,d(p),C)},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(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<yd;r++){var a=hd[r],o=p[a];(to(o)||!1===o)&&(n[a]=o)}return n}});return V}},hd=Va(["initial"],Ma(qc),!1),yd=hd.length;function gd(e){return"string"==typeof e&&e.startsWith("var(--")}var bd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ed(e,t,n){void 0===n&&(n=1),Wa(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Ma(function(e){var t=bd.exec(e);if(!t)return[,];var n=Ma(t,3);return[n[1],n[2]]}(e),2),a=r[0],o=r[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():gd(o)?Ed(o,t,n+1):o}}var xd,_d=new Set(["width","height","top","left","right","bottom","x","y"]),wd=function(e){return _d.has(e)},kd=function(e,t){e.set(t,!1),e.set(t)},Sd=function(e){return e===Bo||e===$o};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(xd||(xd={}));var Cd=function(e,t){return parseFloat(e.split(", ")[t])},Od=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return Cd(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?Cd(i[1],e):0}},Ad=new Set(["x","y","z"]),Nd=Ml.filter(function(e){return!Ad.has(e)}),Rd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},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:Od(4,13),y:Od(5,14)},Id={treeType:"dom",readValueFromInstance:function(e,t){if(Bl(t)){var n=Bs(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(bu(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 ud(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 a=n.transformValues;void 0===r&&(r=!0);var o=t.transition,i=t.transitionEnd,s=Da(t,["transition","transitionEnd"]),l=function(e,t,n){var r,a,o={};for(var i in e)o[i]=null!==(r=zc(i,t))&&void 0!==r?r:null===(a=n.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),r){!function(e,t,n){var r,a,o,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!==(a=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==a?a:t[c]),null!=f&&("string"==typeof f&&(Tc(f)||Lc(f))?f=parseFloat(f):!Bc(f)&&si.test(d)&&(f=Fs(c,d)),e.addValue(c,ks(f)),null!==(o=(i=n)[c])&&void 0!==o||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var a=function(e,t,n){var r,a=Da(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:n};for(var i in n&&(n=La({},n)),e.forEachValue(function(e){var t=e.get();if(gd(t)){var n=Ed(t,o);n&&e.set(n)}}),a){var s=a[i];if(gd(s)){var l=Ed(s,o);l&&(a[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(wd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=La({},t),r=La({},r);var a=Object.keys(t).filter(wd),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var u,c=n[a],d=Vc(c),f=t[a];if(Rs(f)){var p=f.length,m=null===f[0]?1:0;d=Vc(c=f[m]);for(var v=m;v<p;v++)u?Wa(Vc(f[v])===u,"All keyframes must be of the same type"):(u=Vc(f[v]),Wa(u===d||Sd(d)&&Sd(u),"Keyframes must be of the same dimension as the current value"))}else u=Vc(f);if(d!==u)if(Sd(d)&&Sd(u)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[a]=parseFloat(f):Array.isArray(f)&&u===$o&&(t[a]=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[a]=d.transform(f):(i||(o=function(e){var t=[];return Nd.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(a),r[a]=void 0!==r[a]?r[a]:t[a],kd(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Rd[e](r,o)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);kd(r,i[n]),e[n]=Rd[n](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=Ma(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=a.target,n,r=a.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return La({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:Fu,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),xu(t,n,r,a.transformTemplate)},render:Vu},Pd=vd(Id),Td=vd(La(La({},Id),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Bl(t)?(null===(n=Bs(t))||void 0===n?void 0:n.default)||0:(t=ju.has(t)?t:Mu(t),e.getAttribute(t))},scrapeMotionValuesFromProps:zu,build:function(e,t,n,r,a){Iu(t,n,r,a.transformTemplate)},render:Bu})),Ld=function(e,t){return hu(e)?Td(t,{enableHardwareAcceleration:!1}):Pd(t,{enableHardwareAcceleration:!0})};function Dd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Md={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!$o.test(e))return e;e=parseFloat(e)}var n=Dd(e,t.target.x),r=Dd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Vd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(bd,function(e){return i.push(e),"_$css"}));var s=si.parse(e);if(s.length>5)return a;var l=si.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=Po(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(o){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},jd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(Pl,Bd),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==r?void 0:r.register)&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(La(La({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),$l.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.drag,o=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||yo.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}(F.Component),Bd={borderRadius:La(La({},Md),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Md,borderTopRightRadius:Md,borderBottomLeftRadius:Md,borderBottomRightRadius:Md,boxShadow:Vd},Fd={measureLayout:function(e){var t=Ma(Ic(),2),n=t[0],r=t[1],a=F.useContext(du);return F.createElement(jd,La({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(fu),isPresent:n,safeToRemove:r}))}},zd=ql({attachResizeListener:function(e,t){return Gu(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Wd={current:void 0},Hd=ql({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Wd.current){var e=new zd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Wd.current=e}return Wd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ud=La(La(La(La({},Xc),Oc),pd),Fd),$d=/*@__PURE__*/mu(function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=hu(e)?Yu:Zu;return La(La({},s),{preloadedFeatures:n,useRender:Lu(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,Ud,Ld,Hd)});function qd(){var e=F.useRef(!1);return Xa(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Yd=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=so(Zd),l=Rc(),u=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:o,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()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),F.useEffect(function(){!r&&!s.size&&(null==a||a())},[r]),F.createElement(Za.Provider,{value:u},t)};function Zd(){return new Map}var Gd=function(e){return e.key||""},Xd=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,u=Ma(function(){var e=qd(),t=Ma(F.useState(0),2),n=t[0],r=t[1],a=F.useCallback(function(){e.current&&r(n+1)},[n]);return[F.useCallback(function(){return yo.postRender(a)},[a]),n]}(),1),c=u[0],d=F.useContext(du).forceRender;d&&(c=d);var f=qd(),p=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=F.useRef(m),y=F.useRef(new Map).current,g=F.useRef(!0);if(Xa(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Gd(e);t.set(n,e)})}(p,y),h.current=m}),hc(function(){g.current=!0,y.clear(),v.clear()}),g.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(Yd,{key:Gd(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=Va([],Ma(m),!1);for(var b=h.current.map(Gd),E=p.map(Gd),x=b.length,_=0;_<x;_++){var w=b[_];-1===E.indexOf(w)&&v.add(w)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,F.createElement(Yd,{key:Gd(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(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(Yd,{key:Gd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==ja&&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."),F.createElement(F.Fragment,null,v.size?m:m.map(function(e){return F.cloneElement(e)}))};function Kd(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Jd(){return Jd=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},Jd.apply(this,arguments)}var Qd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ef={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},tf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},nf={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},rf={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function af(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return tf;case"left":return ef;case"bottom":return rf;case"top":return nf}}var of={enter:{duration:.2,ease:Qd.easeOut},exit:{duration:.1,ease:Qd.easeIn}},sf=function(e,n){return Jd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},lf=function(e,n){return Jd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},uf=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],cf={exit:{height:{duration:.2,ease:Qd.ease},opacity:{duration:.3,ease:Qd.ease}},enter:{height:{duration:.3,ease:Qd.ease},opacity:{duration:.4,ease:Qd.ease}}},df={exit:function(e){var t,n,r=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return Jd({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:lf(cf.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return Jd({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:sf(cf.enter,e.delay)})}},ff=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,u=e.endingHeight,c=void 0===u?"auto":u,d=e.style,f=e.className,p=e.transition,m=e.transitionEnd,v=Kd(e,uf),h=F.useState(!1),y=h[0],g=h[1];F.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,E={startingHeight:l,endingHeight:c,animateOpacity:i,transition:y?p:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},x=r||a?"enter":"exit";/*#__PURE__*/
8
+ return F.createElement(Xd,{initial:!1,custom:E},(!a||r)&&/*#__PURE__*/F.createElement($d.div,Jd({ref:n},v,{className:t.cx("chakra-collapse",f),style:Jd({overflow:"hidden",display:"block"},d),custom:E,variants:df,initial:!!a&&"exit",animate:x,exit:"exit"})))});t.__DEV__&&(ff.displayName="Collapse");var pf=["unmountOnExit","in","className","transition","transitionEnd","delay"],mf={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:sf(of.enter,n.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:lf(of.exit,n.delay),transitionEnd:null==a?void 0:a.exit}}},vf={initial:"exit",animate:"enter",exit:"exit",variants:mf},hf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,u=Kd(e,pf),c=a||r?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
9
+ return F.createElement(Xd,{custom:d},(!r||a&&r)&&/*#__PURE__*/F.createElement($d.div,Jd({ref:n,className:t.cx("chakra-fade",o),custom:d},vf,{animate:c},u)))});t.__DEV__&&(hf.displayName="Fade");var yf=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],gf={exit:function(e){var t,n=e.initialScale,r=e.transition,a=e.transitionEnd,o=e.delay;return Jd({opacity:0},e.reverse?{scale:n,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:Jd({scale:n},null==a?void 0:a.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:lf(of.exit,o)})},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:sf(of.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},bf={initial:"exit",animate:"enter",exit:"exit",variants:gf},Ef=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,u=e.className,c=e.transition,d=e.transitionEnd,f=e.delay,p=Kd(e,yf),m=a||r?"enter":"exit",v={initialScale:l,reverse:i,transition:c,transitionEnd:d,delay:f};/*#__PURE__*/
10
+ return F.createElement(Xd,{custom:v},(!r||a&&r)&&/*#__PURE__*/F.createElement($d.div,Jd({ref:n,className:t.cx("chakra-offset-slide",u)},bf,{animate:m,custom:v},p)))});t.__DEV__&&(Ef.displayName="ScaleFade");var xf=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],_f={exit:{duration:.15,ease:Qd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},wf={exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.delay;return Jd({},af({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:lf(_f.exit,a),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,a=e.delay;return Jd({},af({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:sf(_f.enter,a),transitionEnd:null==n?void 0:n.enter})}},kf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.direction,a=void 0===r?"right":r,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,u=e.transition,c=e.transitionEnd,d=e.delay,f=Kd(e,xf),p=af({direction:a}),m=Object.assign({position:"fixed"},p.position,o),v=s||i?"enter":"exit",h={transitionEnd:c,transition:u,direction:a,delay:d};/*#__PURE__*/
11
+ return F.createElement(Xd,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement($d.div,Jd({},f,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:wf,style:m})))});t.__DEV__&&(kf.displayName="Slide");var Sf=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Cf={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:lf(of.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:sf(of.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return Jd({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:lf(of.exit,e.delay)},a?Jd({},o,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:Jd({},o,null==r?void 0:r.exit)})}},Of={initial:"initial",animate:"enter",exit:"exit",variants:Cf},Af=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,u=void 0===l?0:l,c=e.offsetY,d=void 0===c?8:c,f=e.transition,p=e.transitionEnd,m=e.delay,v=Kd(e,Sf),h=a||r?"enter":"exit",y={offsetX:u,offsetY:d,reverse:i,transition:f,transitionEnd:p,delay:m};/*#__PURE__*/
12
+ return F.createElement(Xd,{custom:y},(!r||a&&r)&&/*#__PURE__*/F.createElement($d.div,Jd({ref:n,className:t.cx("chakra-offset-slide",s),custom:y},Of,{animate:h},v)))});function Nf(){return Nf=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},Nf.apply(this,arguments)}function Rf(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 If(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function Pf(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}t.__DEV__&&(Af.displayName="SlideFade");var Tf="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,Lf=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=Rf(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=If(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 a=If(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(a)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=Pf(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 a=Pf(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(a)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=Rf(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var a=Nf({node:t,index:-1},n);e.descendants.set(t,a),e.assignIndex(r)}}},Df=tn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Mf=Df[0],Vf=Df[1];function jf(){return[Mf,function(){return Vf()},function(){return e=F.useRef(new Lf),Tf(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=Vf(),n=F.useState(-1),r=n[0],a=n[1],o=F.useRef(null);Tf(function(){return function(){o.current&&t.unregister(o.current)}},[]),Tf(function(){if(o.current){var e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:en(i,o)}}(e)}]}function Bf(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Ff(){return Ff=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},Ff.apply(this,arguments)}var zf=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Wf=tn({strict:!1,name:"ButtonGroupContext"}),Hf=Wf[0],Uf=Wf[1],$f=/*#__PURE__*/pa(function(e,n){var r=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,u=e.isAttached,c=e.isDisabled,d=Bf(e,zf),f=t.cx("chakra-button__group",i),p=F.useMemo(function(){return{size:r,colorScheme:a,variant:o,isDisabled:c}},[r,a,o,c]),m={display:"inline-flex"};return m=Ff({},m,u?{"> *: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:l}}),/*#__PURE__*/F.createElement(Hf,{value:p},/*#__PURE__*/F.createElement(ba.div,Ff({ref:n,role:"group",__css:m,className:f,"data-attached":u?"":void 0},d)))});t.__DEV__&&($f.displayName="ButtonGroup");var qf=["label","placement","spacing","children","className","__css"],Yf=function(e){var n=e.label,r=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(Ca,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,u=e.__css,c=Bf(e,qf),d=t.cx("chakra-button__spinner",l),f="start"===r?"marginEnd":"marginStart",p=F.useMemo(function(){var e;return Ff(((e={display:"flex",alignItems:"center",position:n?"relative":"absolute"})[f]=n?o:0,e.fontSize="1em",e.lineHeight="normal",e),u)},[u,n,f,o]);/*#__PURE__*/
13
+ return F.createElement(ba.div,Ff({className:d},c,{__css:p}),s)};t.__DEV__&&(Yf.displayName="ButtonSpinner");var Zf=["children","className"],Gf=function(e){var n=e.children,r=e.className,a=Bf(e,Zf),o=/*#__PURE__*/F.isValidElement(n)?/*#__PURE__*/F.cloneElement(n,{"aria-hidden":!0,focusable:!1}):n,i=t.cx("chakra-button__icon",r);/*#__PURE__*/
14
+ return F.createElement(ba.span,Ff({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Gf.displayName="ButtonIcon");var Xf=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Kf=/*#__PURE__*/pa(function(e,n){var r,a,o,i,s=Uf(),l=ha("Button",Ff({},s,e)),u=oa(e),c=u.isDisabled,d=void 0===c?null==s?void 0:s.isDisabled:c,f=u.isLoading,p=u.isActive,m=u.children,v=u.leftIcon,h=u.rightIcon,y=u.loadingText,g=u.iconSpacing,b=void 0===g?"0.5rem":g,E=u.type,x=u.spinner,_=u.spinnerPlacement,w=void 0===_?"start":_,k=u.className,S=u.as,C=Bf(u,Xf),O=F.useMemo(function(){var e,n=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Ff({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:n})},[l,s]),A=(a=(r=F.useState(!S))[0],o=r[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),N=A.type,R={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
15
+ return F.createElement(ba.button,Ff({disabled:d||f,ref:vn(n,A.ref),as:S,type:null!=E?E:N,"data-active":t.dataAttr(p),"data-loading":t.dataAttr(f),__css:O,className:t.cx("chakra-button",k)},C),f&&"start"===w&&/*#__PURE__*/F.createElement(Yf,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},x),f?y||/*#__PURE__*/F.createElement(ba.span,{opacity:0},/*#__PURE__*/F.createElement(Jf,R)):/*#__PURE__*/F.createElement(Jf,R),f&&"end"===w&&/*#__PURE__*/F.createElement(Yf,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},x))});function Jf(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,a=e.iconSpacing;/*#__PURE__*/
16
+ return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Gf,{marginEnd:a},t),r,n&&/*#__PURE__*/F.createElement(Gf,{marginStart:a},n))}t.__DEV__&&(Kf.displayName="Button");var Qf=["icon","children","isRound","aria-label"],ep=/*#__PURE__*/pa(function(e,t){var n=e.icon,r=e.children,a=e.isRound,o=e["aria-label"],i=Bf(e,Qf),s=n||r,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
17
+ return F.createElement(Kf,Ff({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function tp(){return tp=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},tp.apply(this,arguments)}function np(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(ep.displayName="IconButton");var rp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],ap=["getRootProps","htmlProps"],op=aa("FormControl"),ip=op[0],sp=op[1],lp=sp,up=tn({strict:!1,name:"FormControlContext"}),cp=up[0],dp=up[1],fp=/*#__PURE__*/pa(function(e,n){var r=ya("Form",e),a=function(e){var n=e.id,r=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=np(e,rp),l=dn(),u=n||"field-"+l,c=u+"-label",d=u+"-feedback",f=u+"-helptext",p=F.useState(!1),m=p[0],v=p[1],h=F.useState(!1),y=h[0],g=h[1],b=sn(),E=b[0],x=b[1],_=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),tp({id:f},e,{ref:en(t,function(e){e&&g(!0)})})},[f]),w=F.useCallback(function(e,n){var r,s;return void 0===e&&(e={}),void 0===n&&(n=null),tp({},e,{ref:n,"data-focus":t.dataAttr(E),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(r=e.id)?r:c,htmlFor:null!=(s=e.htmlFor)?s:u})},[u,o,E,a,i,c]),k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),tp({id:d},e,{ref:en(t,function(e){e&&v(!0)}),"aria-live":"polite"})},[d]),S=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),tp({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),tp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:x.on,onBlur:x.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:g,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(oa(e)),o=a.getRootProps,i=np(a,ap),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
18
+ return F.createElement(cp,{value:i},/*#__PURE__*/F.createElement(ip,{value:r},/*#__PURE__*/F.createElement(ba.div,tp({},o({},n),{className:s,__css:r.container}))))});t.__DEV__&&(fp.displayName="FormControl");var pp=/*#__PURE__*/pa(function(e,n){var r=dp(),a=sp(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
19
+ return F.createElement(ba.div,tp({},null==r?void 0:r.getHelpTextProps(e,n),{__css:a.helperText,className:o}))});t.__DEV__&&(pp.displayName="FormHelperText");var mp=["isDisabled","isInvalid","isReadOnly","isRequired"],vp=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function hp(e){var n=yp(e),r=n.isDisabled,a=n.isInvalid,o=n.isReadOnly,i=n.isRequired;return tp({},np(n,mp),{disabled:r,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function yp(e){var n,r,a,o=dp(),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=np(e,vp),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),tp({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=l?l:f)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=u?u:c)?a:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:t.callAllHandlers(null==o?void 0:o.onFocus,m),onBlur:t.callAllHandlers(null==o?void 0:o.onBlur,v)})}var gp=aa("FormError"),bp=gp[0],Ep=gp[1],xp=/*#__PURE__*/pa(function(e,n){var r=ya("FormError",e),a=oa(e),o=dp();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(bp,{value:r},/*#__PURE__*/F.createElement(ba.div,tp({},null==o?void 0:o.getErrorMessageProps(a,n),{className:t.cx("chakra-form__error-message",e.className),__css:tp({display:"flex",alignItems:"center"},r.text)}))):null});t.__DEV__&&(xp.displayName="FormErrorMessage");var _p=/*#__PURE__*/pa(function(e,n){var r=Ep(),a=dp();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
20
+ return F.createElement(Ia,tp({ref:n,"aria-hidden":!0},e,{__css:r.icon,className:o}),/*#__PURE__*/F.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"}))});t.__DEV__&&(_p.displayName="FormErrorIcon");var wp=["className","children","requiredIndicator","optionalIndicator"],kp=/*#__PURE__*/pa(function(e,n){var r,a=ha("FormLabel",e),o=oa(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(Sp,null):s,u=o.optionalIndicator,c=void 0===u?null:u,d=np(o,wp),f=dp(),p=null!=(r=null==f?void 0:f.getLabelProps(d,n))?r:tp({ref:n},d);/*#__PURE__*/
21
+ return F.createElement(ba.label,tp({},p,{className:t.cx("chakra-form__label",o.className),__css:tp({display:"block",textAlign:"start"},a)}),i,null!=f&&f.isRequired?l:c)});t.__DEV__&&(kp.displayName="FormLabel");var Sp=/*#__PURE__*/pa(function(e,n){var r=dp(),a=lp();if(null==r||!r.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
22
+ return F.createElement(ba.span,tp({},null==r?void 0:r.getRequiredIndicatorProps(e,n),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(Sp.displayName="RequiredIndicator");var Cp=!1,Op=null,Ap=!1,Np=/* @__PURE__ */new Set,Rp="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Ip(e,t){Np.forEach(n=>n(e,t))}function Pp(e){Ap=!0,function(e){return!(e.metaKey||!Rp&&e.altKey||e.ctrlKey)}(e)&&(Op="keyboard",Ip("keyboard",e))}function Tp(e){Op="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ap=!0,Ip("pointer",e))}function Lp(e){e.target!==window&&e.target!==document&&(Ap||(Op="keyboard",Ip("keyboard",e)),Ap=!1)}function Dp(){Ap=!1}function Mp(){return"pointer"!==Op}function Vp(e){!function(){if("undefined"==typeof window||Cp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Ap=!0,e.apply(this,t)},document.addEventListener("keydown",Pp,!0),document.addEventListener("keyup",Pp,!0),window.addEventListener("focus",Lp,!0),window.addEventListener("blur",Dp,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Tp,!0),document.addEventListener("pointermove",Tp,!0),document.addEventListener("pointerup",Tp,!0)):(document.addEventListener("mousedown",Tp,!0),document.addEventListener("mousemove",Tp,!0),document.addEventListener("mouseup",Tp,!0)),Cp=!0}(),e(Mp());const t=()=>e(Mp());return Np.add(t),()=>{Np.delete(t)}}function jp(){return jp=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},jp.apply(this,arguments)}var Bp=tn({name:"CheckboxGroupContext",strict:!1})[1];function Fp(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var zp=["isIndeterminate","isChecked"],Wp=function(e){var t=$d;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.svg),Hp=function(e){/*#__PURE__*/
23
+ return F.createElement(Wp,jp({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__*/F.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Up=function(e){/*#__PURE__*/
24
+ return F.createElement(Wp,jp({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__*/F.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},$p=function(e){/*#__PURE__*/
25
+ return F.createElement(Xd,{initial:!1},e.open&&/*#__PURE__*/F.createElement($d.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))},qp=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Fp(e,zp);/*#__PURE__*/
26
+ return F.createElement($p,{open:n||t},/*#__PURE__*/F.createElement(t?Up:Hp,r))},Yp=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Zp(e){void 0===e&&(e={});var n=yp(e),r=n.isDisabled,a=n.isReadOnly,o=n.isRequired,i=n.isInvalid,s=n.id,l=n.onBlur,u=n.onFocus,c=n["aria-describedby"],d=e.defaultChecked,f=e.isChecked,p=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,y=e.value,g=e.tabIndex,b=void 0===g?void 0:g,E=e["aria-label"],x=e["aria-labelledby"],_=e["aria-invalid"],w=Fp(e,Yp),k=t.omit(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=an(m),C=an(l),O=an(u),A=F.useState(!1),N=A[0],R=A[1],I=sn(),P=I[0],T=I[1],L=sn(),D=L[0],M=L[1],V=sn(),j=V[0],B=V[1];F.useEffect(function(){return Vp(R)},[]);var z=F.useRef(null),W=F.useState(!0),H=W[0],U=W[1],$=F.useState(!!d),q=$[1],Y=ln(f,$[0]),Z=Y[0],G=Y[1],X=F.useCallback(function(e){a||r?e.preventDefault():(Z||q(G?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,r,G,Z,v,S]);rn(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),fn(function(){r&&T.off()},[r,T]),rn(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=r&&!p,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);rn(function(){z.current&&z.current.checked!==G&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),jp({},e,{ref:n,"data-active":t.dataAttr(j),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(G),"data-focus":t.dataAttr(P),"data-focus-visible":t.dataAttr(P&&N),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(r),"data-invalid":t.dataAttr(i),"data-readonly":t.dataAttr(a),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,function(e){P&&e.preventDefault(),B.on()}),onMouseUp:t.callAllHandlers(e.onMouseUp,B.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,M.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,M.off)})},[j,G,r,P,N,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),jp({},k,e,{ref:en(n,function(e){e&&U("LABEL"===e.tagName)}),onClick:t.callAllHandlers(e.onClick,function(){var e;H||(null==(e=z.current)||e.click(),t.focus(z.current,{nextTick:!0}))}),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[k,r,G,i,H]),ne=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),jp({},e,{ref:en(z,n),type:"checkbox",name:h,value:y,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,T.off),onFocus:t.callAllHandlers(e.onFocus,O,T.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:G,disabled:K,readOnly:a,"aria-label":E,"aria-labelledby":x,"aria-invalid":_?Boolean(_):i,"aria-describedby":c,"aria-disabled":r,style:Ea})},[h,y,s,X,T.off,T.on,C,O,J,Q,o,G,K,a,E,x,_,i,c,r,b]),re=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),jp({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,Gp),onTouchStart:t.callAllHandlers(e.onTouchStart,Gp),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[G,r,i]);return{state:{isInvalid:i,isFocused:P,isChecked:G,isActive:j,isHovered:D,isIndeterminate:v,isDisabled:r,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:ne,getLabelProps:re,htmlProps:k}}function Gp(e){e.preventDefault(),e.stopPropagation()}var Xp=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],Kp=ba("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Jp=ba("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Qp=/*#__PURE__*/pa(function(e,n){var r=Bp(),a=ya("Checkbox",jp({},r,e)),o=oa(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,u=o.children,c=o.iconColor,d=o.iconSize,f=o.icon,p=void 0===f?/*#__PURE__*/F.createElement(qp,null):f,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==r?void 0:r.isDisabled:v,y=o.onChange,g=o.inputProps,b=Fp(o,Xp),E=m;null!=r&&r.value&&o.value&&(E=r.value.includes(o.value));var x=y;null!=r&&r.onChange&&o.value&&(x=t.callAll(r.onChange,y));var _=Zp(jp({},b,{isDisabled:h,isChecked:E,onChange:x})),w=_.state,k=_.getInputProps,S=_.getCheckboxProps,C=_.getLabelProps,O=_.getRootProps,A=F.useMemo(function(){return jp({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:c},a.icon)},[c,d,w.isChecked,w.isIndeterminate,a.icon]),N=/*#__PURE__*/F.cloneElement(p,{__css:A,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
27
+ return F.createElement(Jp,jp({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",jp({className:"chakra-checkbox__input"},k(g,n))),/*#__PURE__*/F.createElement(Kp,jp({__css:a.control,className:"chakra-checkbox__control"},S()),N),u&&/*#__PURE__*/F.createElement(ba.span,jp({className:"chakra-checkbox__label"},C(),{__css:jp({marginStart:s},a.label)}),u))});function em(e){void 0===e&&(e={});var n=e.precision,r=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,u=e.max,c=void 0===u?t.maxSafeInteger:u,d=e.keepWithinRange,f=void 0===d||d,p=an(e.onChange),m=F.useState(function(){var e;return null==r?"":null!=(e=rm(r,i,n))?e:""}),v=m[1],h=ln(a,m[0]),y=h[0],g=h[1],b=nm(tm(g),i),E=null!=n?n:b,x=F.useCallback(function(e){e!==g&&(y||v(e.toString()),null==p||p(e.toString(),tm(e)))},[p,y,g]),_=F.useCallback(function(e){var n=e;return f&&(n=t.clampValue(n,l,c)),t.toPrecision(n,E)},[E,f,c,l]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?tm(e):tm(g)+e,t=_(t),x(t)},[_,i,x,g]),k=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?tm(-e):tm(g)-e,t=_(t),x(t)},[_,i,x,g]),S=F.useCallback(function(){var e,t;e=null==r?"":null!=(t=rm(r,i,n))?t:l,x(e)},[r,n,i,x,l]),C=F.useCallback(function(e){var t,n=null!=(t=rm(e,i,E))?t:l;x(n)},[E,i,x,l]),O=tm(g);return{isOutOfRange:O>c||O<l,isAtMax:O===c,isAtMin:O===l,precision:E,value:g,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:_,cast:C,setValue:v}}function tm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function nm(e,n){return Math.max(t.countDecimalPlaces(n),t.countDecimalPlaces(e))}function rm(e,n,r){var a=tm(e);if(!Number.isNaN(a)){var o=nm(a,n);return t.toPrecision(a,null!=r?r:o)}}function am(){return am=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},am.apply(this,arguments)}function om(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Qp.displayName="Checkbox");var im=["htmlSize"],sm=/*#__PURE__*/pa(function(e,n){var r=e.htmlSize,a=om(e,im),o=ya("Input",a),i=hp(oa(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
28
+ return F.createElement(ba.input,am({size:r},i,{__css:o.field,ref:n,className:s}))});t.__DEV__&&(sm.displayName="Input"),sm.id="Input";var lm=["children","className"],um=aa("InputGroup"),cm=um[0],dm=um[1],fm=/*#__PURE__*/pa(function(e,n){var r=ya("Input",e),a=oa(e),o=a.children,i=a.className,s=om(a,lm),l=t.cx("chakra-input__group",i),u={},c=nn(o),d=r.field;c.forEach(function(e){var t,n;r&&(d&&"InputLeftElement"===e.type.id&&(u.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(u.paddingEnd=null!=(n=d.height)?n:d.h),"InputRightAddon"===e.type.id&&(u.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(u.borderStartRadius=0))});var f=c.map(function(n){var r,a,o=t.filterUndefined({size:(null==(r=n.props)?void 0:r.size)||e.size,variant:(null==(a=n.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
29
29
  return F.cloneElement(n,"Input"!==n.type.id?o:Object.assign(o,u,n.props))});/*#__PURE__*/
30
- return F.createElement(ba.div,$p({className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(Kp,{value:r},f))});t.__DEV__&&(Qp.displayName="InputGroup");var em=["placement"],tm={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},nm=ba("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),rm=/*#__PURE__*/pa(function(e,t){var n,r=e.placement,a=void 0===r?"left":r,o=qp(e,em),i=null!=(n=tm[a])?n:{},s=Jp();/*#__PURE__*/
31
- return F.createElement(nm,$p({ref:t},o,{__css:$p({},s.addon,i)}))});t.__DEV__&&(rm.displayName="InputAddon");var am=/*#__PURE__*/pa(function(e,n){/*#__PURE__*/
32
- return F.createElement(rm,$p({ref:n,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(am.displayName="InputLeftAddon"),am.id="InputLeftAddon";var om=/*#__PURE__*/pa(function(e,n){/*#__PURE__*/
33
- return F.createElement(rm,$p({ref:n,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(om.displayName="InputRightAddon"),om.id="InputRightAddon";var im=["placement"],sm=["className"],lm=["className"],um=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),cm=/*#__PURE__*/pa(function(e,t){var n,r,a,o=e.placement,i=void 0===o?"left":o,s=qp(e,im),l=Jp(),u=l.field,c=$p(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==u?void 0:u.height)?n:null==u?void 0:u.h,a.height=null!=(r=null==u?void 0:u.height)?r:null==u?void 0:u.h,a.fontSize=null==u?void 0:u.fontSize,a),l.element);/*#__PURE__*/
34
- return F.createElement(um,$p({ref:t,__css:c},s))});cm.id="InputElement",t.__DEV__&&(cm.displayName="InputElement");var dm=/*#__PURE__*/pa(function(e,n){var r=e.className,a=qp(e,sm),o=t.cx("chakra-input__left-element",r);/*#__PURE__*/
35
- return F.createElement(cm,$p({ref:n,placement:"left",className:o},a))});dm.id="InputLeftElement",t.__DEV__&&(dm.displayName="InputLeftElement");var fm=/*#__PURE__*/pa(function(e,n){var r=e.className,a=qp(e,lm),o=t.cx("chakra-input__right-element",r);/*#__PURE__*/
36
- return F.createElement(cm,$p({ref:n,placement:"right",className:o},a))});function pm(){return pm=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},pm.apply(this,arguments)}function mm(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}fm.id="InputRightElement",t.__DEV__&&(fm.displayName="InputRightElement");var vm=["ratio","children","className"],hm=/*#__PURE__*/pa(function(e,n){var r=e.ratio,a=void 0===r?4/3:r,o=e.children,i=e.className,s=mm(e,vm),l=F.Children.only(o),u=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
37
- return F.createElement(ba.div,pm({ref:n,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:t.mapResponsive(a,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"}}},s),l)});t.__DEV__&&(hm.displayName="AspectRatio");var ym=["className"],gm=/*#__PURE__*/pa(function(e,n){var r=ha("Badge",e),a=mm(oa(e),ym);/*#__PURE__*/
38
- return F.createElement(ba.span,pm({ref:n,className:t.cx("chakra-badge",e.className)},a,{__css:pm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))});t.__DEV__&&(gm.displayName="Badge");var bm=["size","centerContent"],Em=["size"],xm=ba("div");t.__DEV__&&(xm.displayName="Box");var _m=/*#__PURE__*/pa(function(e,t){var n=e.size,r=e.centerContent,a=void 0===r||r,o=mm(e,bm);/*#__PURE__*/
39
- return F.createElement(xm,pm({ref:t,boxSize:n,__css:pm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(_m.displayName="Square"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=e.size,r=mm(e,Em);/*#__PURE__*/
40
- return F.createElement(_m,pm({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var wm=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(wm.displayName="Center");var km=["className"],Sm=/*#__PURE__*/pa(function(e,n){var r=ha("Code",e),a=mm(oa(e),km);/*#__PURE__*/
41
- return F.createElement(ba.code,pm({ref:n,className:t.cx("chakra-code",e.className)},a,{__css:pm({display:"inline-block"},r)}))});t.__DEV__&&(Sm.displayName="Code");var Cm=["className","centerContent"],Om=/*#__PURE__*/pa(function(e,n){var r=oa(e),a=r.className,o=r.centerContent,i=mm(r,Cm),s=ha("Container",e);/*#__PURE__*/
42
- return F.createElement(ba.div,pm({ref:n,className:t.cx("chakra-container",a)},i,{__css:pm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Om.displayName="Container");var Am=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Nm=["className","orientation","__css"],Rm=/*#__PURE__*/pa(function(e,n){var r=ha("Divider",e),a=r.borderLeftWidth,o=r.borderBottomWidth,i=r.borderTopWidth,s=r.borderRightWidth,l=r.borderWidth,u=r.borderStyle,c=r.borderColor,d=mm(r,Am),f=oa(e),p=f.className,m=f.orientation,v=void 0===m?"horizontal":m,h=f.__css,y=mm(f,Nm);/*#__PURE__*/
43
- return F.createElement(ba.hr,pm({ref:n,"aria-orientation":v},y,{__css:pm({},d,{border:"0",borderColor:c,borderStyle:u},{vertical:{borderLeftWidth:a||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||l||"1px",width:"100%"}}[v],h),className:t.cx("chakra-divider",p)}))});t.__DEV__&&(Rm.displayName="Divider");var Im=["direction","align","justify","wrap","basis","grow","shrink"],Pm=/*#__PURE__*/pa(function(e,t){var n=e.direction,r=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,u=mm(e,Im);/*#__PURE__*/
44
- return F.createElement(ba.div,pm({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},u))});t.__DEV__&&(Pm.displayName="Flex");var Tm=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Lm=/*#__PURE__*/pa(function(e,t){var n=e.templateAreas,r=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,u=e.autoRows,c=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=mm(e,Tm);/*#__PURE__*/
45
- return F.createElement(ba.div,pm({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f}},p))});t.__DEV__&&(Lm.displayName="Grid");var Dm=["className"],Mm=/*#__PURE__*/pa(function(e,n){var r=ha("Heading",e),a=mm(oa(e),Dm);/*#__PURE__*/
46
- return F.createElement(ba.h2,pm({ref:n,className:t.cx("chakra-heading",e.className)},a,{__css:r}))});t.__DEV__&&(Mm.displayName="Heading");var Vm=["className"],jm=/*#__PURE__*/pa(function(e,n){var r=ha("Kbd",e),a=oa(e),o=a.className,i=mm(a,Vm);/*#__PURE__*/
47
- return F.createElement(ba.kbd,pm({ref:n,className:t.cx("chakra-kbd",o)},i,{__css:pm({fontFamily:"mono"},r)}))});t.__DEV__&&(jm.displayName="Kbd");var Bm=["className","isExternal"],Fm=/*#__PURE__*/pa(function(e,n){var r=ha("Link",e),a=oa(e),o=a.className,i=a.isExternal,s=mm(a,Bm);/*#__PURE__*/
48
- return F.createElement(ba.a,pm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:t.cx("chakra-link",o)},s,{__css:r}))});t.__DEV__&&(Fm.displayName="Link");var zm=["children","styleType","stylePosition","spacing"],Hm=["as"],Wm=["as"],Um=aa("List"),$m=Um[0],qm=Um[1],Ym=/*#__PURE__*/pa(function(e,t){var n,r=ya("List",e),a=oa(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,u=a.spacing,c=mm(a,zm),d=nn(o),f=u?((n={})["& > *:not(style) ~ *:not(style)"]={mt:u},n):{};/*#__PURE__*/
49
- return F.createElement($m,{value:r},/*#__PURE__*/F.createElement(ba.ul,pm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:pm({},r.container,f)},c),d))});t.__DEV__&&(Ym.displayName="List"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=mm(e,Hm);/*#__PURE__*/
50
- return F.createElement(Ym,pm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=mm(e,Wm);/*#__PURE__*/
51
- return F.createElement(Ym,pm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=qm();/*#__PURE__*/
52
- return F.createElement(ba.li,pm({ref:t},e,{__css:n.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=qm();/*#__PURE__*/
53
- return F.createElement(Ra,pm({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var Zm=["columns","spacingX","spacingY","spacing","minChildWidth"],Gm=/*#__PURE__*/pa(function(e,n){var r=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=mm(e,Zm),u=s?t.mapResponsive(s,function(e){return t.isNull(e)?null:"repeat(auto-fit, minmax("+function(e){return t.isNumber(e)?e+"px":e}(e)+", 1fr))"}):t.mapResponsive(r,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
54
- return F.createElement(Lm,pm({ref:n,gap:i,columnGap:a,rowGap:o,templateColumns:u},l))});t.__DEV__&&(Gm.displayName="SimpleGrid");var Xm=ba("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(Xm.displayName="Spacer");var Km="& > *:not(style) ~ *:not(style)",Jm=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Qm=function(e){/*#__PURE__*/
55
- return F.createElement(ba.div,pm({className:"chakra-stack__item"},e,{__css:pm({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},ev=/*#__PURE__*/pa(function(e,n){var r,a=e.isInline,o=e.direction,i=e.align,s=e.justify,l=e.spacing,u=void 0===l?"0.5rem":l,c=e.wrap,d=e.children,f=e.divider,p=e.className,m=e.shouldWrapChildren,v=mm(e,Jm),h=a?"row":null!=o?o:"column",y=F.useMemo(function(){return function(e){var n,r=e.spacing,a=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(n={flexDirection:a})[Km]=t.mapResponsive(a,function(e){return o[e]}),n}({direction:h,spacing:u})},[h,u]),g=F.useMemo(function(){return function(e){var n=e.spacing,r={column:{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return r[e]})}}({spacing:u,direction:h})},[u,h]),b=!!f,E=!m&&!b,x=nn(d),_=E?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,a=m?/*#__PURE__*/F.createElement(Qm,{key:n},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:n},a,r?null:/*#__PURE__*/F.cloneElement(f,{__css:g})):a}),w=t.cx("chakra-stack",p);/*#__PURE__*/
56
- return F.createElement(ba.div,pm({ref:n,display:"flex",alignItems:i,justifyContent:s,flexDirection:y.flexDirection,flexWrap:c,className:w,__css:b?{}:(r={},r[Km]=y[Km],r)},v),_)});t.__DEV__&&(ev.displayName="Stack");var tv=/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
57
- return F.createElement(ev,pm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(tv.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
58
- return F.createElement(ev,pm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var nv=["className","align","decoration","casing"],rv=/*#__PURE__*/pa(function(e,n){var r=ha("Text",e),a=mm(oa(e),nv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
59
- return F.createElement(ba.p,pm({ref:n,className:t.cx("chakra-text",e.className)},o,a,{__css:r}))});t.__DEV__&&(rv.displayName="Text");var av=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],ov=["className"];function iv(e){return"number"==typeof e?e+"px":e}var sv=/*#__PURE__*/pa(function(e,n){var r=e.spacing,a=void 0===r?"0.5rem":r,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,u=e.direction,c=e.align,d=e.className,f=e.shouldWrapChildren,p=mm(e,av),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},n=e.spacingX,r=void 0===n?a:n,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(r,function(t){return iv(_n("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return iv(_n("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:l,alignItems:c,flexDirection:u,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)"}}},[a,o,i,l,c,u]),v=f?F.Children.map(s,function(e,t){/*#__PURE__*/
60
- return F.createElement(lv,{key:t},e)}):s;/*#__PURE__*/
61
- return F.createElement(ba.div,pm({ref:n,className:t.cx("chakra-wrap",d),overflow:"hidden"},p),/*#__PURE__*/F.createElement(ba.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(sv.displayName="Wrap");var lv=/*#__PURE__*/pa(function(e,n){var r=e.className,a=mm(e,ov);/*#__PURE__*/
62
- return F.createElement(ba.li,pm({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",r)},a))});function uv(){return uv=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},uv.apply(this,arguments)}t.__DEV__&&(lv.displayName="WrapItem");var cv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function dv(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var fv="top",pv="bottom",mv="right",vv="left",hv=[fv,pv,mv,vv],yv=/*#__PURE__*/hv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),gv=/*#__PURE__*/[].concat(hv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),bv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ev(e){return e?(e.nodeName||"").toLowerCase():null}function xv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _v(e){return e instanceof xv(e).Element||e instanceof Element}function wv(e){return e instanceof xv(e).HTMLElement||e instanceof HTMLElement}function kv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xv(e).ShadowRoot||e instanceof ShadowRoot)}function Sv(e){return e.split("-")[0]}var Cv=Math.max,Ov=Math.min,Av=Math.round;function Nv(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(wv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Av(n.width)/i||1),o>0&&(a=Av(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Rv(e){var t=Nv(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 Iv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pv(e){return xv(e).getComputedStyle(e)}function Tv(e){return["table","td","th"].indexOf(Ev(e))>=0}function Lv(e){return((_v(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dv(e){return"html"===Ev(e)?e:e.assignedSlot||e.parentNode||(kv(e)?e.host:null)||Lv(e)}function Mv(e){return wv(e)&&"fixed"!==Pv(e).position?e.offsetParent:null}function Vv(e){for(var t=xv(e),n=Mv(e);n&&Tv(n)&&"static"===Pv(n).position;)n=Mv(n);return n&&("html"===Ev(n)||"body"===Ev(n)&&"static"===Pv(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&wv(e)&&"fixed"===Pv(e).position)return null;var n=Dv(e);for(kv(n)&&(n=n.host);wv(n)&&["html","body"].indexOf(Ev(n))<0;){var r=Pv(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 jv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bv(e,t,n){return Cv(e,Ov(t,n))}function Fv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function zv(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Hv(e){return e.split("-")[1]}var Wv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=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=vv,E=fv,x=window;if(u){var _=Vv(n),w="clientHeight",k="clientWidth";_===xv(n)&&"static"!==Pv(_=Lv(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth"),(a===fv||(a===vv||a===mv)&&"end"===o)&&(E=pv,v-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[w])-r.height,v*=l?1:-1),a!==vv&&(a!==fv&&a!==pv||"end"!==o)||(b=mv,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-r.width,p*=l?1:-1)}var S,C=Object.assign({position:s},u&&Wv),O=!0===c?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Av(e.x*n)/n||0,y:Av(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=O.x,v=O.y,Object.assign({},C,l?((S={})[E]=g?"0":"",S[b]=y?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",S):((t={})[E]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var $v={passive:!0},qv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=xv(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,$v)}),s&&l.addEventListener("resize",n.update,$v),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,$v)}),s&&l.removeEventListener("resize",n.update,$v)}},data:{}},Yv={left:"right",right:"left",bottom:"top",top:"bottom"};function Zv(e){return e.replace(/left|right|bottom|top/g,function(e){return Yv[e]})}var Gv={start:"end",end:"start"};function Xv(e){return e.replace(/start|end/g,function(e){return Gv[e]})}function Kv(e){var t=xv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jv(e){return Nv(Lv(e)).left+Kv(e).scrollLeft}function Qv(e){var t=Pv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function eh(e){return["html","body","#document"].indexOf(Ev(e))>=0?e.ownerDocument.body:wv(e)&&Qv(e)?e:eh(Dv(e))}function th(e,t){var n;void 0===t&&(t=[]);var r=eh(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=xv(r),i=a?[o].concat(o.visualViewport||[],Qv(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(th(Dv(i)))}function nh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rh(e,t){return"viewport"===t?nh(function(e){var t=xv(e),n=Lv(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+Jv(e),y:s}}(e)):_v(t)?function(e){var t=Nv(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):nh(function(e){var t,n=Lv(e),r=Kv(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Cv(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Cv(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+Jv(e),l=-r.scrollTop;return"rtl"===Pv(a||n).direction&&(s+=Cv(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(Lv(e)))}function ah(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?Sv(a):null,i=a?Hv(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case fv:t={x:s,y:n.y-r.height};break;case pv:t={x:s,y:n.y+n.height};break;case mv:t={x:n.x+n.width,y:l};break;case vv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?jv(o):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 oh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.boundary,o=void 0===a?"clippingParents":a,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=Fv("number"!=typeof p?p:zv(p,hv)),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=th(Dv(e)),n=["absolute","fixed"].indexOf(Pv(e).position)>=0&&wv(e)?Vv(e):e;return _v(n)?t.filter(function(e){return _v(e)&&Iv(e,n)&&"body"!==Ev(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a.reduce(function(t,n){var r=rh(e,n);return t.top=Cv(r.top,t.top),t.right=Ov(r.right,t.right),t.bottom=Ov(r.bottom,t.bottom),t.left=Cv(r.left,t.left),t},rh(e,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(_v(h)?h:h.contextElement||Lv(e.elements.popper),o,s),g=Nv(e.elements.reference),b=ah({reference:g,element:v,strategy:"absolute",placement:r}),E=nh(Object.assign({},v,b)),x="popper"===u?E:g,_={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},w=e.modifiersData.offset;if("popper"===u&&w){var k=w[r];Object.keys(_).forEach(function(e){var t=[mv,pv].indexOf(e)>=0?1:-1,n=[fv,pv].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t})}return _}function ih(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?gv:i,l=Hv(t.placement),u=l?o?yv:yv.filter(function(e){return Hv(e)===l}):hv,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,o){return t[o]=oh(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[Sv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var sh={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 a=n.mainAxis,o=void 0===a||a,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=Sv(h),g=l||(y!==h&&m?function(e){if("auto"===Sv(e))return[];var t=Zv(e);return[Xv(e),t,Xv(t)]}(h):[Zv(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===Sv(n)?ih(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],O=Sv(C),A="start"===Hv(C),N=[fv,pv].indexOf(O)>=0,R=N?"width":"height",I=oh(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),P=N?A?mv:vv:A?pv:fv;E[R]>x[R]&&(P=Zv(P));var T=Zv(P),L=[];if(o&&L.push(I[O]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){k=C,w=!1;break}_.set(C,L)}if(w)for(var D=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lh(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 uh(e){return[fv,mv,pv,vv].some(function(t){return e[t]>=0})}var ch={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=gv.reduce(function(e,n){return e[n]=function(e,t,n){var r=Sv(e),a=[vv,fv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[vv,mv].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=o}},dh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,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=oh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=Sv(t.placement),m=Hv(t.placement),v=!m,h=jv(p),y="x"===h?"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,_="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(g){if(o){var S,C="y"===h?fv:vv,O="y"===h?pv:mv,A="y"===h?"height":"width",N=g[h],R=N+f[C],I=N-f[O],P=u?-E[A]/2:0,T="start"===m?b[A]:E[A],L="start"===m?-E[A]:-b[A],D=t.elements.arrow,M=u&&D?Rv(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[C],B=V[O],F=Bv(0,b[A],M[A]),z=v?b[A]/2-P-F-j-_.mainAxis:T-F-j-_.mainAxis,H=v?-b[A]/2+P+F+B+_.mainAxis:L+F+B+_.mainAxis,W=t.elements.arrow&&Vv(t.elements.arrow),U=null!=(S=null==w?void 0:w[h])?S:0,$=N+H-U,q=Bv(u?Ov(R,N+z-U-(W?"y"===h?W.clientTop||0:W.clientLeft||0:0)):R,N,u?Cv(I,$):I);g[h]=q,k[h]=q-N}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?fv:vv],K=Z-f["x"===h?pv:mv],J=-1!==[fv,vv].indexOf(p),Q=null!=(Y=null==w?void 0:w[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+_.altAxis,te=J?Z+b[G]+E[G]-Q-_.altAxis:K,ne=u&&J?function(e,t,n){var r=Bv(e,t,n);return r>n?n:r}(ee,Z,te):Bv(u?ee:X,Z,u?te:K);g[y]=ne,k[y]=ne-Z}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function fh(e,t,n){void 0===n&&(n=!1);var r=wv(t),a=wv(t)&&function(e){var t=e.getBoundingClientRect(),n=Av(t.width)/e.offsetWidth||1,r=Av(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Lv(t),i=Nv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ev(t)||Qv(o))&&(s=function(e){return e!==xv(e)&&wv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Kv(e);var t}(t)),wv(t)?((l=Nv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Jv(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function ph(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||a(e)}),r}function mh(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 vh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',hh=["name","enabled","phase","fn","effect","requires","options"],yh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",gh={placement:"bottom",modifiers:[],strategy:"absolute"};function bh(){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 Eh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?gh:r;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},gh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:_v(e)?th(e):e.contextElement?th(e.contextElement):[],popper:th(t)};var i,u,f,p=function(e){var t=ph(e);return bv.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),hh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(mh(vh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(mh(vh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":bv.indexOf(t.phase)<0&&console.error(mh(vh,t.name,'"phase"',"either "+bv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(mh(vh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(mh(vh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(mh(vh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(mh(vh,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 '+hh.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(mh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===Sv(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=Pv(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(bh(t,n)){s.rects={reference:fh(t,Vv(n),"fixed"===s.options.strategy),popper:Rv(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,a=0;a<s.orderedModifiers.length;a++){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 o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:c})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(yh)}},update:(o=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(o())})})),i}),destroy:function(){d(),u=!0}};if(!bh(e,t))return"production"!==process.env.NODE_ENV&&console.error(yh),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 xh=/*#__PURE__*/Eh({defaultModifiers:[qv,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ah({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,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var u=Pv(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:Sv(t.placement),variation:Hv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Uv(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,Uv(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]||{},a=t.elements[e];wv(a)&&Ev(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.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],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});wv(r)&&Ev(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},ch,sh,dh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Sv(n.placement),l=jv(s),u=[vv,mv].indexOf(s)>=0?"height":"width";if(o&&i){var c=function(e,t){return Fv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:zv(e,hv))}(a.padding,n),d=Rv(o),f="y"===l?fv:vv,p="y"===l?pv:mv,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],h=Vv(o),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[u]/2+(m/2-v/2),b=Bv(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&&(wv(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(" "))),Iv(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,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=oh(t,{elementContext:"reference"}),s=oh(t,{altBoundary:!0}),l=lh(i,r),u=lh(s,a,o),c=uh(l),d=uh(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 _h(){return _h=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},_h.apply(this,arguments)}var wh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},kh={arrowShadowColor:wh("--popper-arrow-shadow-color"),arrowSize:wh("--popper-arrow-size","8px"),arrowSizeHalf:wh("--popper-arrow-size-half"),arrowBg:wh("--popper-arrow-bg"),transformOrigin:wh("--popper-transform-origin"),arrowOffset:wh("--popper-arrow-offset")},Sh={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"},Ch={scroll:!0,resize:!0},Oh={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"}}},Ah={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Nh(e.state)},effect:function(e){var t=e.state;return function(){Nh(t)}}},Nh=function(e){e.elements.popper.style.setProperty(kh.transformOrigin.var,Sh[e.placement])},Rh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ih(e.state)}},Ih=function(e){var t;if(e.placement){var n=Ph(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,a;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=kh.arrowSize.varRef,r.height=kh.arrowSize.varRef,r.zIndex=-1,r));var o=((a={})[kh.arrowSizeHalf.var]="calc("+kh.arrowSize.varRef+" / 2)",a[kh.arrowOffset.var]="calc("+kh.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},Ph=function(e){return e.startsWith("top")?{property:"bottom",value:kh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:kh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:kh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:kh.arrowOffset.varRef}:void 0},Th={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Lh(e.state)},effect:function(e){var t=e.state;return function(){Lh(t)}}},Lh=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:kh.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)})}},Dh={"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"}},Mh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},Vh=["size","shadowColor","bg","style"];function jh(e){var t=e.size,n=e.shadowColor,r=e.bg,a=_h({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Bh(){return Bh=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},Bh.apply(this,arguments)}function Fh(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var zh=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],Hh=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Wh=["type","isChecked"],Uh=["children","type","value","defaultValue","onChange"],$h=Sf(),qh=$h[0],Yh=$h[1],Zh=$h[2],Gh=$h[3],Xh=tn({strict:!1,name:"MenuContext"}),Kh=Xh[0],Jh=Xh[1];function Qh(e){var n;return t.isHTMLElement(e)&&!(null==(n=e.getAttribute("role"))||!n.startsWith("menuitem"))}function ey(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,u=e.closeOnSelect,c=e.type,d=Fh(e,Hh),f=Jh(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,E=F.useRef(null),x=b+"-menuitem-"+dn(),_=Gh({disabled:s&&!l}),w=_.index,k=_.register,S=F.useCallback(function(e){null==r||r(e),s||p(w)},[p,w,s,r]),C=F.useCallback(function(e){null==a||a(e),E.current&&!t.isActiveElement(E.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),A=F.useCallback(function(e){null==i||i(e),Qh(e.currentTarget)&&(null!=u?u:v)&&h()},[h,i,v,u]),N=w===m,R=s&&!l;fn(function(){g&&(N&&!R&&E.current?t.focus(E.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!t.isActiveElement(y.current)&&t.focus(y.current,{preventScroll:!1}))},[N,R,y,g]);var I=function(e){void 0===e&&(e={});var n=e.ref,r=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,u=e.onMouseDown,c=e.onMouseUp,d=e.onClick,f=e.onKeyDown,p=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,y=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,cv),g=F.useState(!0),b=g[0],E=g[1],x=F.useState(!1),_=x[0],w=x[1],k=function(){var e=F.useRef(new Map),t=e.current,n=F.useCallback(function(t,n,r,a){e.current.set(r,{type:n,el:t,options:a}),t.addEventListener(n,r,a)},[]),r=F.useCallback(function(t,n,r,a){t.removeEventListener(n,r,a),e.current.delete(r)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=b?m:m||0,C=r&&!a,O=F.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[r,d]),A=F.useCallback(function(e){_&&dv(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))},[_,k]),N=F.useCallback(function(e){if(null==f||f(e),!(r||e.defaultPrevented||e.metaKey)&&dv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",A,!1)}},[r,b,f,i,l,k,A]),R=F.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||dv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[l,b,r,p]),I=F.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=F.useCallback(function(e){if(!t.isRightClick(e)){if(r)return e.stopPropagation(),void e.preventDefault();b||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==u||u(e)}},[r,b,u,k,I]),T=F.useCallback(function(e){t.isRightClick(e)||(b||w(!1),null==c||c(e))},[c,b]),L=F.useCallback(function(e){r?e.preventDefault():null==v||v(e)},[r,v]),D=F.useCallback(function(e){_&&(e.preventDefault(),w(!1)),null==h||h(e)},[_,h]),M=en(n,function(e){e&&"BUTTON"!==e.tagName&&E(!1)});return uv({},y,b?{ref:M,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:u,onMouseUp:c,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(_),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:P,onMouseUp:T,onKeyUp:R,onKeyDown:N,onMouseOver:L,onMouseLeave:D})}({onClick:A,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:en(k,E,n),isDisabled:s,isFocusable:l});return Bh({},d,I,{type:null!=c?c:I.type,id:x,role:"menuitem",tabIndex:N?0:-1})}var ty=["descendants"],ny=["children","as"],ry=["rootProps"],ay=["type"],oy=["icon","iconSpacing","command","commandSpacing","children"],iy=["icon","iconSpacing"],sy=["className","title"],ly=["title","children","className"],uy=["className","children"],cy=aa("Menu"),dy=cy[0],fy=cy[1],py=function(e){var n=e.children,r=ya("Menu",e),a=function(e){void 0===e&&(e={});var n=e.id,r=e.closeOnSelect,a=void 0===r||r,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,u=e.isLazy,c=e.isOpen,d=e.defaultIsOpen,f=e.onClose,p=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,y=void 0===h?"unmount":h,g=e.direction,b=e.computePositionOnMount,E=void 0!==b&&b,x=Fh(e,zh),_=F.useRef(null),w=F.useRef(null),k=Zh(),S=F.useCallback(function(){t.focus(_.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=k.firstEnabled();e&&z(e.index)});Y.current.add(e)},[k]),O=F.useCallback(function(){var e=setTimeout(function(){var e=k.lastEnabled();e&&z(e.index)});Y.current.add(e)},[k]),A=function(e){void 0===e&&(e={});var n=e.onClose,r=e.isOpen,a=e.id,o=an(e.onOpen),i=an(n),s=F.useState(e.defaultIsOpen||!1),l=s[1],u=ln(r,s[0]),c=u[0],d=u[1],f=dn(a,"disclosure"),p=F.useCallback(function(){c||l(!1),null==i||i()},[c,i]),m=F.useCallback(function(){c||l(!0),null==o||o()},[c,o]),v=F.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={}),cn({},e,{"aria-expanded":d,"aria-controls":f,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),cn({},e,{hidden:!d,id:f})}}}({isOpen:c,defaultIsOpen:d,onClose:f,onOpen:F.useCallback(function(){null==p||p(),l?C():S()},[l,C,S,p])}),N=A.isOpen,R=A.onOpen,I=A.onClose,P=A.onToggle;!function(e){var n=e.ref,r=e.handler,a=e.enabled,o=void 0===a||a,i=an(r),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){hn(e,n)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&r&&hn(e,n)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&hn(e,n)&&(s.isPointerDown=!1,i(e))},u=t.getOwnerDocument(n.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",a,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",l,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",a,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",l,!0)}}},[r,n,i,s,o])}({enabled:N&&i,ref:_,handler:function(e){var t;null!=(t=w.current)&&t.contains(e.target)||I()}});var T,L,D,M,V=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,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,E=void 0===b||b,x=e.matchWidth,_=e.direction,w=void 0===_?"ltr":_,k=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var a=(null==(n=Dh[e])?void 0:n[t])||e;return"ltr"===t?a:null!=(r=Mh[e])?r:a}(o,w),A=F.useRef(function(){}),N=F.useCallback(function(){var e;n&&k.current&&S.current&&(null==A.current||A.current(),C.current=xh(k.current,S.current,{placement:O,modifiers:[Th,Rh,Ah,_h({},Oh,{enabled:!!x}),_h({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:_h({},Ch,e)}:{enabled:e,options:Ch})),{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!E,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),C.current.forceUpdate(),A.current=C.current.destroy)},[O,n,r,x,d,u,f,m,h,E,g,s]);F.useEffect(function(){return function(){var e;k.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var R=F.useCallback(function(e){k.current=e,N()},[N]),I=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),_h({},e,{ref:en(R,t)})},[R]),P=F.useCallback(function(e){S.current=e,N()},[N]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),_h({},e,{ref:en(P,t),style:_h({},e.style,{position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,x]),L=F.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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Vh);return _h({},n,{ref:t,"data-popper-arrow":"",style:jh(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),_h({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=C.current)||e.update()},forceUpdate:function(){var e;null==(e=C.current)||e.forceUpdate()},transformOrigin:kh.transformOrigin.varRef,referenceRef:R,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:I}}(Bh({},x,{enabled:N||E,placement:v,direction:g})),j=F.useState(-1),B=j[0],z=j[1];fn(function(){N||z(-1)},[N]),fn(function(){if(M&&!function(e){var n=e.current;if(!n)return!1;var r=t.getActiveElement(n);return!!r&&!t.contains(n,r)&&!!t.isTabbable(r)}(T)){var e=(null==D?void 0:D.current)||T.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:w,visible:N,shouldFocus:!0}).shouldFocus&&!L.visible,T=_,D=L.focusRef]);var H=function(e){var n=e.isOpen,r=e.ref,a=F.useState(n),o=a[0],i=a[1],s=F.useState(!1),l=s[0],u=s[1];return F.useEffect(function(){l||(i(n),u(!0))},[n,l,o]),on("animationend",function(){i(n)},function(){return r.current}),{present:!(!n&&!o),onComplete:function(){var e,n=new(t.getOwnerWindow(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:N,ref:_}),W=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 a=dn(e);return F.useMemo(function(){return n.map(function(e){return e+"-"+a})},[a,n])}(n,"menu-button","menu-list"),U=W[0],$=W[1],q=F.useCallback(function(){R(),S()},[R,S]),Y=F.useRef(new Set([]));pn(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var Z=F.useCallback(function(){R(),C()},[C,R]),G=F.useCallback(function(){R(),O()},[R,O]),X=F.useCallback(function(){var e,n,r=t.getOwnerDocument(_.current),a=null==(e=_.current)?void 0:e.contains(r.activeElement);if(N&&!a){var o=null==(n=k.item(B))?void 0:n.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[N,B,k]);return{openAndFocusMenu:q,openAndFocusFirstItem:Z,openAndFocusLastItem:G,onTransitionEnd:X,unstable__animationState:H,descendants:k,popper:V,buttonId:U,menuId:$,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:N,onToggle:P,onOpen:R,onClose:I,menuRef:_,buttonRef:w,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:u,lazyBehavior:y}}(Bh({},oa(e),{direction:ra().direction})),o=a.descendants,i=Fh(a,ty),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
63
- return F.createElement(qh,{value:o},/*#__PURE__*/F.createElement(Kh,{value:s},/*#__PURE__*/F.createElement(dy,{value:r},t.runIfFn(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(py.displayName="Menu");var my=/*#__PURE__*/pa(function(e,t){var n=fy();/*#__PURE__*/
64
- return F.createElement(ba.button,Bh({ref:t},e,{__css:Bh({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),vy=/*#__PURE__*/pa(function(e,n){var r=e.as,a=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=Jh(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,s=r.openAndFocusLastItem,l=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Enter:i,ArrowDown:i,ArrowUp:s}[n];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[i,s]);return Bh({},e,{ref:en(r.buttonRef,n,o.referenceRef),id:r.buttonId,"data-active":t.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(Fh(e,ny),n);/*#__PURE__*/
65
- return F.createElement(r||my,Bh({},a,{className:t.cx("chakra-menu__menu-button",e.className)}),/*#__PURE__*/F.createElement(ba.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});t.__DEV__&&(vy.displayName="MenuButton");var hy={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"}}},yy=function(e){var t=Pd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.div),gy=/*#__PURE__*/pa(function(e,n){var r,a,o=e.rootProps,i=Fh(e,ry),s=Jh(),l=s.isOpen,u=s.onTransitionEnd,c=s.unstable__animationState,d=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=Jh();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=r.focusedIndex,o=r.setFocusedIndex,i=r.menuRef,s=r.isOpen,l=r.onClose,u=r.menuId,c=r.isLazy,d=r.lazyBehavior,f=r.unstable__animationState,p=Yh(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,a=void 0===r?function(){return!0}:r,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),u=function(){l.current&&(clearTimeout(l.current),l.current=null)};return F.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 o=i.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),s(o),e(o.join("")),u(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&Qh(e.target)}}),v=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(a);e&&o(e.index)}},i=r[n];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var n=t.getNextItemFromSearch(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(a));if(n){var r=p.indexOf(n.node);o(r)}});Qh(e.target)&&s(e)},[p,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var y=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:c,lazyBehavior:d,isSelected:f.present});return Bh({},e,{ref:en(i,n),children:y?e.children:null,tabIndex:-1,role:"menu",id:u,style:Bh({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,n),f=function(e){void 0===e&&(e={});var t=Jh();return t.popper.getPopperProps(Bh({},e,{style:Bh({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=fy();/*#__PURE__*/
66
- return F.createElement(ba.div,Bh({},f,{__css:{zIndex:null!=(r=e.zIndex)?r:null==(a=p.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(yy,Bh({},d,{onUpdate:u,onAnimationComplete:t.callAll(c.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:hy,initial:!1,animate:l?"enter":"exit",__css:Bh({outline:0},p.list)})))});t.__DEV__&&(gy.displayName="MenuList");var by=/*#__PURE__*/pa(function(e,t){var n=e.type,r=Fh(e,ay),a=fy(),o=r.as||n?null!=n?n:void 0:"button",i=F.useMemo(function(){return Bh({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},a.item)},[a.item]);/*#__PURE__*/
67
- return F.createElement(ba.button,Bh({ref:t,type:o},r,{__css:i}))}),Ey=/*#__PURE__*/pa(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=e.command,s=e.commandSpacing,l=void 0===s?"0.75rem":s,u=e.children,c=ey(Fh(e,oy),n),d=r||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},u):u;/*#__PURE__*/
68
- return F.createElement(by,Bh({},c,{className:t.cx("chakra-menu__menuitem",c.className)}),r&&/*#__PURE__*/F.createElement(Cy,{fontSize:"0.8em",marginEnd:o},r),d,i&&/*#__PURE__*/F.createElement(Sy,{marginStart:l},i))});t.__DEV__&&(Ey.displayName="MenuItem");var xy=function(e){/*#__PURE__*/
69
- return F.createElement("svg",Bh({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/F.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"}))},_y=/*#__PURE__*/pa(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=Fh(e,iy),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,a=e.isChecked;return Bh({},ey(Fh(e,Wh),t),{role:"menuitem"+r,"aria-checked":a})}(i,n);/*#__PURE__*/
70
- return F.createElement(by,Bh({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&/*#__PURE__*/F.createElement(Cy,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||/*#__PURE__*/F.createElement(xy,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});_y.id="MenuItemOption",t.__DEV__&&(_y.displayName="MenuItemOption");var wy=function(e){var n=e.className,r=e.title,a=function(e){void 0===e&&(e={});var n=e.children,r=e.type,a=void 0===r?"radio":r,o=e.value,i=e.defaultValue,s=e.onChange,l=Fh(e,Uh),u=un({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),c=u[0],d=u[1],f=F.useCallback(function(e){if("radio"===a&&t.isString(c)&&d(e),"checkbox"===a&&t.isArray(c)){var n=c.includes(e)?t.removeItem(c,e):t.addItem(c,e);d(n)}},[c,d,a]);return Bh({},l,{children:nn(n).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===a?e.props.value===c:c.includes(e.props.value);/*#__PURE__*/
71
- return F.cloneElement(e,{type:a,onClick:function(t){f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Fh(e,sy));/*#__PURE__*/
72
- return F.createElement(ky,Bh({title:r,className:t.cx("chakra-menu__option-group",n)},a))};t.__DEV__&&(wy.displayName="MenuOptionGroup");var ky=/*#__PURE__*/pa(function(e,n){var r=e.title,a=e.children,o=e.className,i=Fh(e,ly),s=t.cx("chakra-menu__group__title",o),l=fy();/*#__PURE__*/
73
- return F.createElement("div",{ref:n,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/F.createElement(ba.p,Bh({className:s},i,{__css:l.groupTitle}),r),a)});t.__DEV__&&(ky.displayName="MenuGroup");var Sy=/*#__PURE__*/pa(function(e,t){var n=fy();/*#__PURE__*/
74
- return F.createElement(ba.span,Bh({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});t.__DEV__&&(Sy.displayName="MenuCommand");var Cy=function(e){var n=e.className,r=e.children,a=Fh(e,uy),o=F.Children.only(r),i=/*#__PURE__*/F.isValidElement(o)?/*#__PURE__*/F.cloneElement(o,{focusable:"false","aria-hidden":!0,className:t.cx("chakra-menu__icon",o.props.className)}):null,s=t.cx("chakra-menu__icon-wrapper",n);/*#__PURE__*/
75
- return F.createElement(ba.span,Bh({className:s},a,{__css:{flexShrink:0}}),i)};function Oy(){return Oy=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},Oy.apply(this,arguments)}function Ay(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Cy.displayName="MenuIcon");var Ny=function(e){/*#__PURE__*/
76
- return F.createElement(Ra,Oy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.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"}))},Ry=function(e){/*#__PURE__*/
77
- return F.createElement(Ra,Oy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.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 Iy(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 Py(e,n,r,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(n)?n:[n],s=new o.MutationObserver(function(e){for(var t,n=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 Iy(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)?Iy(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=n()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&r(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ty=["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"],Ly=/^[Ee0-9+\-.]$/;function Dy(e){return Ly.test(e)}var My=["htmlProps"],Vy=aa("NumberInput"),jy=Vy[0],By=Vy[1],Fy=tn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),zy=Fy[0],Hy=Fy[1],Wy=/*#__PURE__*/pa(function(e,n){var r=ya("NumberInput",e),a=function(e){void 0===e&&(e={});var n=e.focusInputOnChange,r=void 0===n||n,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,u=void 0===l?t.minSafeInteger:l,c=e.max,d=void 0===c?t.maxSafeInteger:c,f=e.step,p=void 0===f?1:f,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,y=e.isInvalid,g=e.pattern,b=void 0===g?"[0-9]*(.[0-9]+)?":g,E=e.inputMode,x=void 0===E?"decimal":E,_=e.allowMouseWheel,w=e.id,k=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],A=e.onFocus,N=e.onBlur,R=e.onInvalid,I=e.getAriaValueText,P=e.isValidCharacter,T=e.format,L=e.parse,D=Ay(e,Ty),M=an(A),V=an(N),j=an(R),B=an(null!=P?P:Dy),z=an(I),H=zp(e),W=H.update,U=H.increment,$=H.decrement,q=sn(),Y=q[0],Z=q[1],G=!(m||v),X=F.useRef(null),K=F.useRef(null),J=F.useRef(null),Q=F.useRef(null),ee=F.useCallback(function(e){return e.split("").filter(B).join("")},[B]),te=F.useCallback(function(e){var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),ne=F.useCallback(function(e){var t;return(null!=(t=null==T?void 0:T(e))?t:e).toString()},[T]);fn(function(){(H.valueAsNumber>d||H.valueAsNumber<u)&&(null==j||j("rangeOverflow",ne(H.value),H.valueAsNumber))},[H.valueAsNumber,H.value,ne,j]),rn(function(){if(X.current&&X.current.value!=H.value){var e=te(X.current.value);H.setValue(ee(e))}},[te,ee]);var re=F.useCallback(function(e){void 0===e&&(e=p),G&&U(e)},[U,G,p]),ae=F.useCallback(function(e){void 0===e&&(e=p),G&&$(e)},[$,G,p]),oe=function(e,t){var n,r,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],u=s[1],c=F.useState(!0),d=c[0],f=c[1],p=F.useRef(null),m=function(){return clearTimeout(p.current)};n=o?50:null,r=an(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=F.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),u("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),u("decrement")},300)},[t,d]),y=F.useCallback(function(){f(!0),i(!1),m()},[]);return pn(m),{up:v,down:h,stop:y,isSpinning:o}}(re,ae);Py(J,"disabled",oe.stop,oe.isSpinning),Py(Q,"disabled",oe.stop,oe.isSpinning);var ie=F.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=te(e.currentTarget.value);W(ee(t)),K.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[W,ee,te]),se=F.useCallback(function(e){var t,n,r;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=K.current.end)?r:e.currentTarget.selectionStart)},[M]),le=F.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,B)||e.preventDefault();var n=ue(e)*p,r={ArrowUp:function(){return re(n)},ArrowDown:function(){return ae(n)},Home:function(){return W(u)},End:function(){return W(d)}}[t.normalizeEventKey(e)];r&&(e.preventDefault(),r(e))}},[B,p,re,ae,W,u,d]),ue=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ce=F.useMemo(function(){var e=null==z?void 0:z(H.value);return t.isNull(e)?H.value.toString()||void 0:e},[H.value,z]),de=F.useCallback(function(){var e=H.value;""!==e&&(H.valueAsNumber<u&&(e=u),H.valueAsNumber>d&&(e=d),H.cast(e))},[H,d,u]),fe=F.useCallback(function(){Z.off(),o&&de()},[o,Z,de]),pe=F.useCallback(function(){r&&t.focus(X.current,{nextTick:!0})},[r]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),pe()},[pe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),pe()},[pe,oe]);on("wheel",function(e){var n=t.getOwnerDocument(X.current);if(_&&n.activeElement===X.current){e.preventDefault();var r=ue(e)*p,a=Math.sign(e.deltaY);-1===a?re(r):1===a&&ae(r)}},X.current,{passive:!1});var he=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&H.isAtMax;return Oy({},e,{ref:en(n,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[H.isAtMax,s,me,oe.stop,v]),ye=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&H.isAtMin;return Oy({},e,{ref:en(n,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[H.isAtMin,s,ve,oe.stop,v]),ge=F.useCallback(function(e,n){var r,a,o,i;return void 0===e&&(e={}),void 0===n&&(n=null),Oy({name:k,inputMode:x,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:w,disabled:v},e,{readOnly:null!=(r=e.readOnly)?r:m,"aria-readonly":null!=(a=e.readOnly)?a:m,"aria-required":null!=(o=e.required)?o:h,required:null!=(i=e.required)?i:h,ref:en(X,n),value:ne(H.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":Number.isNaN(H.valueAsNumber)?void 0:H.valueAsNumber,"aria-invalid":t.ariaAttr(null!=y?y:H.isOutOfRange),"aria-valuetext":ce,autoComplete:"off",autoCorrect:"off",onChange:t.callAllHandlers(e.onChange,ie),onKeyDown:t.callAllHandlers(e.onKeyDown,le),onFocus:t.callAllHandlers(e.onFocus,se,Z.on),onBlur:t.callAllHandlers(e.onBlur,V,fe)})},[k,x,b,O,C,ne,S,w,v,h,m,y,H.value,H.valueAsNumber,H.isOutOfRange,u,d,ce,ie,le,se,Z.on,V,fe]);return{value:ne(H.value),valueAsNumber:H.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ye,getInputProps:ge,htmlProps:D}}(ap(oa(e))),o=a.htmlProps,i=Ay(a,My),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
78
- return F.createElement(zy,{value:s},/*#__PURE__*/F.createElement(jy,{value:r},/*#__PURE__*/F.createElement(ba.div,Oy({},o,{ref:n,className:t.cx("chakra-numberinput",e.className),__css:Oy({position:"relative",zIndex:0},r.root)}))))});t.__DEV__&&(Wy.displayName="NumberInput");var Uy=/*#__PURE__*/pa(function(e,t){var n=By();/*#__PURE__*/
79
- return F.createElement(ba.div,Oy({"aria-hidden":!0,ref:t},e,{__css:Oy({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});t.__DEV__&&(Uy.displayName="NumberInputStepper");var $y=/*#__PURE__*/pa(function(e,n){var r=(0,Hy().getInputProps)(e,n),a=By();/*#__PURE__*/
80
- return F.createElement(ba.input,Oy({},r,{className:t.cx("chakra-numberinput__field",e.className),__css:Oy({width:"100%"},a.field)}))});t.__DEV__&&($y.displayName="NumberInputField");var qy=ba("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Yy=/*#__PURE__*/pa(function(e,t){var n,r=By(),a=(0,Hy().getDecrementButtonProps)(e,t);/*#__PURE__*/
81
- return F.createElement(qy,Oy({},a,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Ny,null))});t.__DEV__&&(Yy.displayName="NumberDecrementStepper");var Zy=/*#__PURE__*/pa(function(e,t){var n,r=(0,Hy().getIncrementButtonProps)(e,t),a=By();/*#__PURE__*/
82
- return F.createElement(qy,Oy({},r,{__css:a.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Ry,null))});function Gy(){return Gy=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},Gy.apply(this,arguments)}function Xy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Zy.displayName="NumberIncrementStepper");var Ky=["index"],Jy=Sf(),Qy=Jy[0],eg=Jy[2],tg=Jy[3],ng=tn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),rg=ng[0],ag=ng[1],og=function(e){return null==e?void 0:e.split("")};function ig(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var sg=["children"],lg=["descendants"],ug=function(e){var n=ha("PinInput",e),r=oa(e),a=r.children,o=function(e){void 0===e&&(e={});var n=e.autoFocus,r=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,u=e.manageFocus,c=void 0===u||u,d=e.otp,f=void 0!==d&&d,p=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,y=void 0===h?"number":h,g=e.mask,b=dn(),E=null!=p?p:"pin-input-"+b,x=eg(),_=F.useState(!0),w=_[0],k=_[1],S=F.useState(-1),C=S[0],O=S[1],A=un({defaultValue:og(a)||[],value:og(r),onChange:function(e){return null==o?void 0:o(e.join(""))}}),N=A[0],R=A[1];F.useEffect(function(){if(n){var e=x.first();e&&t.focus(e.node,{nextTick:!0})}},[x]);var I=F.useCallback(function(e){if(w&&c){var n=x.next(e,!1);n&&t.focus(n.node,{nextTick:!0})}},[x,w,c]),P=F.useCallback(function(e,t){var n=[].concat(N);n[t]=e,R(n),""!==e&&n.length===x.count()&&n.every(function(e){return null!=e&&""!==e})?null==i||i(n.join("")):I(t)},[N,R,I,i,x]),T=F.useCallback(function(){var e=Array(x.count()).fill("");R(e);var n=x.first();n&&t.focus(n.node)},[x,R]),L=F.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=F.useCallback(function(e){var n=e.index,r=Xy(e,Ky),a=C===n;return Gy({"aria-label":"Please enter your pin code",inputMode:"number"===y?"numeric":"text",type:g?"password":"number"===y?"tel":"text"},r,{id:E+"-"+n,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(r.onChange,function(e){var t=e.target.value,r=L(N[n],t);if(""!==r)if(t.length>2){if(ig(t,y)){var a=t.split("").filter(function(e,t){return t<x.count()});R(a),a.length===x.count()&&(null==i||i(a.join("")))}}else ig(r,y)&&P(r,n),k(!0);else P("",n)}),onKeyDown:t.callAllHandlers(r.onKeyDown,function(e){if("Backspace"===e.key&&c)if(""===e.target.value){var r=x.prev(n,!1);r&&(P("",n-1),t.focus(r.node),k(!0))}else k(!1)}),onFocus:t.callAllHandlers(r.onFocus,function(){O(n)}),onBlur:t.callAllHandlers(r.onBlur,function(){O(-1)}),value:N[n]||"",autoComplete:f?"one-time-code":"off",placeholder:a?"":l})},[x,C,L,E,m,g,v,c,i,f,l,P,R,y,N]);return{getInputProps:D,id:E,descendants:x,values:N,setValue:P,setValues:R,clear:T}}(Xy(r,sg)),i=o.descendants,s=Xy(o,lg),l=nn(a).map(function(e){/*#__PURE__*/
30
+ return F.createElement(ba.div,am({className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(cm,{value:r},f))});t.__DEV__&&(fm.displayName="InputGroup");var pm=["placement"],mm={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},vm=ba("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),hm=/*#__PURE__*/pa(function(e,t){var n,r=e.placement,a=void 0===r?"left":r,o=om(e,pm),i=null!=(n=mm[a])?n:{},s=dm();/*#__PURE__*/
31
+ return F.createElement(vm,am({ref:t},o,{__css:am({},s.addon,i)}))});t.__DEV__&&(hm.displayName="InputAddon");var ym=/*#__PURE__*/pa(function(e,n){/*#__PURE__*/
32
+ return F.createElement(hm,am({ref:n,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(ym.displayName="InputLeftAddon"),ym.id="InputLeftAddon";var gm=/*#__PURE__*/pa(function(e,n){/*#__PURE__*/
33
+ return F.createElement(hm,am({ref:n,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(gm.displayName="InputRightAddon"),gm.id="InputRightAddon";var bm=["placement"],Em=["className"],xm=["className"],_m=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),wm=/*#__PURE__*/pa(function(e,t){var n,r,a,o=e.placement,i=void 0===o?"left":o,s=om(e,bm),l=dm(),u=l.field,c=am(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==u?void 0:u.height)?n:null==u?void 0:u.h,a.height=null!=(r=null==u?void 0:u.height)?r:null==u?void 0:u.h,a.fontSize=null==u?void 0:u.fontSize,a),l.element);/*#__PURE__*/
34
+ return F.createElement(_m,am({ref:t,__css:c},s))});wm.id="InputElement",t.__DEV__&&(wm.displayName="InputElement");var km=/*#__PURE__*/pa(function(e,n){var r=e.className,a=om(e,Em),o=t.cx("chakra-input__left-element",r);/*#__PURE__*/
35
+ return F.createElement(wm,am({ref:n,placement:"left",className:o},a))});km.id="InputLeftElement",t.__DEV__&&(km.displayName="InputLeftElement");var Sm=/*#__PURE__*/pa(function(e,n){var r=e.className,a=om(e,xm),o=t.cx("chakra-input__right-element",r);/*#__PURE__*/
36
+ return F.createElement(wm,am({ref:n,placement:"right",className:o},a))});function Cm(){return Cm=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},Cm.apply(this,arguments)}function Om(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}Sm.id="InputRightElement",t.__DEV__&&(Sm.displayName="InputRightElement");var Am=["ratio","children","className"],Nm=/*#__PURE__*/pa(function(e,n){var r=e.ratio,a=void 0===r?4/3:r,o=e.children,i=e.className,s=Om(e,Am),l=F.Children.only(o),u=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
37
+ return F.createElement(ba.div,Cm({ref:n,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:t.mapResponsive(a,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"}}},s),l)});t.__DEV__&&(Nm.displayName="AspectRatio");var Rm=["className"],Im=/*#__PURE__*/pa(function(e,n){var r=ha("Badge",e),a=Om(oa(e),Rm);/*#__PURE__*/
38
+ return F.createElement(ba.span,Cm({ref:n,className:t.cx("chakra-badge",e.className)},a,{__css:Cm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))});t.__DEV__&&(Im.displayName="Badge");var Pm=["size","centerContent"],Tm=["size"],Lm=ba("div");t.__DEV__&&(Lm.displayName="Box");var Dm=/*#__PURE__*/pa(function(e,t){var n=e.size,r=e.centerContent,a=void 0===r||r,o=Om(e,Pm);/*#__PURE__*/
39
+ return F.createElement(Lm,Cm({ref:t,boxSize:n,__css:Cm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(Dm.displayName="Square"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=e.size,r=Om(e,Tm);/*#__PURE__*/
40
+ return F.createElement(Dm,Cm({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Mm=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(Mm.displayName="Center");var Vm=["className"],jm=/*#__PURE__*/pa(function(e,n){var r=ha("Code",e),a=Om(oa(e),Vm);/*#__PURE__*/
41
+ return F.createElement(ba.code,Cm({ref:n,className:t.cx("chakra-code",e.className)},a,{__css:Cm({display:"inline-block"},r)}))});t.__DEV__&&(jm.displayName="Code");var Bm=["className","centerContent"],Fm=/*#__PURE__*/pa(function(e,n){var r=oa(e),a=r.className,o=r.centerContent,i=Om(r,Bm),s=ha("Container",e);/*#__PURE__*/
42
+ return F.createElement(ba.div,Cm({ref:n,className:t.cx("chakra-container",a)},i,{__css:Cm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Fm.displayName="Container");var zm=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Wm=["className","orientation","__css"],Hm=/*#__PURE__*/pa(function(e,n){var r=ha("Divider",e),a=r.borderLeftWidth,o=r.borderBottomWidth,i=r.borderTopWidth,s=r.borderRightWidth,l=r.borderWidth,u=r.borderStyle,c=r.borderColor,d=Om(r,zm),f=oa(e),p=f.className,m=f.orientation,v=void 0===m?"horizontal":m,h=f.__css,y=Om(f,Wm);/*#__PURE__*/
43
+ return F.createElement(ba.hr,Cm({ref:n,"aria-orientation":v},y,{__css:Cm({},d,{border:"0",borderColor:c,borderStyle:u},{vertical:{borderLeftWidth:a||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||l||"1px",width:"100%"}}[v],h),className:t.cx("chakra-divider",p)}))});t.__DEV__&&(Hm.displayName="Divider");var Um=["direction","align","justify","wrap","basis","grow","shrink"],$m=/*#__PURE__*/pa(function(e,t){var n=e.direction,r=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,u=Om(e,Um);/*#__PURE__*/
44
+ return F.createElement(ba.div,Cm({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},u))});t.__DEV__&&($m.displayName="Flex");var qm=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Ym=/*#__PURE__*/pa(function(e,t){var n=e.templateAreas,r=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,u=e.autoRows,c=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=Om(e,qm);/*#__PURE__*/
45
+ return F.createElement(ba.div,Cm({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f}},p))});t.__DEV__&&(Ym.displayName="Grid");var Zm=["className"],Gm=/*#__PURE__*/pa(function(e,n){var r=ha("Heading",e),a=Om(oa(e),Zm);/*#__PURE__*/
46
+ return F.createElement(ba.h2,Cm({ref:n,className:t.cx("chakra-heading",e.className)},a,{__css:r}))});t.__DEV__&&(Gm.displayName="Heading");var Xm=["className"],Km=/*#__PURE__*/pa(function(e,n){var r=ha("Kbd",e),a=oa(e),o=a.className,i=Om(a,Xm);/*#__PURE__*/
47
+ return F.createElement(ba.kbd,Cm({ref:n,className:t.cx("chakra-kbd",o)},i,{__css:Cm({fontFamily:"mono"},r)}))});t.__DEV__&&(Km.displayName="Kbd");var Jm=["className","isExternal"],Qm=/*#__PURE__*/pa(function(e,n){var r=ha("Link",e),a=oa(e),o=a.className,i=a.isExternal,s=Om(a,Jm);/*#__PURE__*/
48
+ return F.createElement(ba.a,Cm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:t.cx("chakra-link",o)},s,{__css:r}))});t.__DEV__&&(Qm.displayName="Link");var ev=["children","styleType","stylePosition","spacing"],tv=["as"],nv=["as"],rv=aa("List"),av=rv[0],ov=rv[1],iv=/*#__PURE__*/pa(function(e,t){var n,r=ya("List",e),a=oa(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,u=a.spacing,c=Om(a,ev),d=nn(o),f=u?((n={})["& > *:not(style) ~ *:not(style)"]={mt:u},n):{};/*#__PURE__*/
49
+ return F.createElement(av,{value:r},/*#__PURE__*/F.createElement(ba.ul,Cm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:Cm({},r.container,f)},c),d))});t.__DEV__&&(iv.displayName="List"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=Om(e,tv);/*#__PURE__*/
50
+ return F.createElement(iv,Cm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=Om(e,nv);/*#__PURE__*/
51
+ return F.createElement(iv,Cm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=ov();/*#__PURE__*/
52
+ return F.createElement(ba.li,Cm({ref:t},e,{__css:n.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){var n=ov();/*#__PURE__*/
53
+ return F.createElement(Ra,Cm({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var sv=["columns","spacingX","spacingY","spacing","minChildWidth"],lv=/*#__PURE__*/pa(function(e,n){var r=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=Om(e,sv),u=ra(),c=s?function(e,n){return t.mapResponsive(e,function(e){var r=function(e,t,n){var r=Array.isArray(t)?t:[t],a=Array.isArray(n)?n:[n];return function(e){var n=a.filter(Boolean),o=r.map(function(t,r){var a;return function(e,t,n){var r,a;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.value};return null!=(r=null!=(a=o(t))?a:o(n))?r:n}(e,"sizes."+t,null!=(a=n[r])?a:t)});return Array.isArray(t)?o:o[0]}}(0,e,function(e){return t.isNumber(e)?e+"px":e}(e))(n);return t.isNull(e)?null:"repeat(auto-fit, minmax("+r+", 1fr))"})}(s,u):t.mapResponsive(r,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
54
+ return F.createElement(Ym,Cm({ref:n,gap:i,columnGap:a,rowGap:o,templateColumns:c},l))});t.__DEV__&&(lv.displayName="SimpleGrid");var uv=ba("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(uv.displayName="Spacer");var cv="& > *:not(style) ~ *:not(style)",dv=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],fv=function(e){/*#__PURE__*/
55
+ return F.createElement(ba.div,Cm({className:"chakra-stack__item"},e,{__css:Cm({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},pv=/*#__PURE__*/pa(function(e,n){var r,a=e.isInline,o=e.direction,i=e.align,s=e.justify,l=e.spacing,u=void 0===l?"0.5rem":l,c=e.wrap,d=e.children,f=e.divider,p=e.className,m=e.shouldWrapChildren,v=Om(e,dv),h=a?"row":null!=o?o:"column",y=F.useMemo(function(){return function(e){var n,r=e.spacing,a=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(n={flexDirection:a})[cv]=t.mapResponsive(a,function(e){return o[e]}),n}({direction:h,spacing:u})},[h,u]),g=F.useMemo(function(){return function(e){var n=e.spacing,r={column:{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return r[e]})}}({spacing:u,direction:h})},[u,h]),b=!!f,E=!m&&!b,x=nn(d),_=E?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,a=m?/*#__PURE__*/F.createElement(fv,{key:n},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:n},a,r?null:/*#__PURE__*/F.cloneElement(f,{__css:g})):a}),w=t.cx("chakra-stack",p);/*#__PURE__*/
56
+ return F.createElement(ba.div,Cm({ref:n,display:"flex",alignItems:i,justifyContent:s,flexDirection:y.flexDirection,flexWrap:c,className:w,__css:b?{}:(r={},r[cv]=y[cv],r)},v),_)});t.__DEV__&&(pv.displayName="Stack");var mv=/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
57
+ return F.createElement(pv,Cm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(mv.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
58
+ return F.createElement(pv,Cm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var vv=["className","align","decoration","casing"],hv=/*#__PURE__*/pa(function(e,n){var r=ha("Text",e),a=Om(oa(e),vv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
59
+ return F.createElement(ba.p,Cm({ref:n,className:t.cx("chakra-text",e.className)},o,a,{__css:r}))});t.__DEV__&&(hv.displayName="Text");var yv=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],gv=["className"];function bv(e){return"number"==typeof e?e+"px":e}var Ev=/*#__PURE__*/pa(function(e,n){var r=e.spacing,a=void 0===r?"0.5rem":r,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,u=e.direction,c=e.align,d=e.className,f=e.shouldWrapChildren,p=Om(e,yv),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},n=e.spacingX,r=void 0===n?a:n,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(r,function(t){return bv(_n("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return bv(_n("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:l,alignItems:c,flexDirection:u,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)"}}},[a,o,i,l,c,u]),v=f?F.Children.map(s,function(e,t){/*#__PURE__*/
60
+ return F.createElement(xv,{key:t},e)}):s;/*#__PURE__*/
61
+ return F.createElement(ba.div,Cm({ref:n,className:t.cx("chakra-wrap",d),overflow:"hidden"},p),/*#__PURE__*/F.createElement(ba.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(Ev.displayName="Wrap");var xv=/*#__PURE__*/pa(function(e,n){var r=e.className,a=Om(e,gv);/*#__PURE__*/
62
+ return F.createElement(ba.li,Cm({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",r)},a))});function _v(){return _v=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},_v.apply(this,arguments)}t.__DEV__&&(xv.displayName="WrapItem");var wv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function kv(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var Sv="top",Cv="bottom",Ov="right",Av="left",Nv=[Sv,Cv,Ov,Av],Rv=/*#__PURE__*/Nv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),Iv=/*#__PURE__*/[].concat(Nv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Pv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Tv(e){return e?(e.nodeName||"").toLowerCase():null}function Lv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dv(e){return e instanceof Lv(e).Element||e instanceof Element}function Mv(e){return e instanceof Lv(e).HTMLElement||e instanceof HTMLElement}function Vv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lv(e).ShadowRoot||e instanceof ShadowRoot)}function jv(e){return e.split("-")[0]}var Bv=Math.max,Fv=Math.min,zv=Math.round;function Wv(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Mv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=zv(n.width)/i||1),o>0&&(a=zv(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Hv(e){var t=Wv(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 Uv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $v(e){return Lv(e).getComputedStyle(e)}function qv(e){return["table","td","th"].indexOf(Tv(e))>=0}function Yv(e){return((Dv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zv(e){return"html"===Tv(e)?e:e.assignedSlot||e.parentNode||(Vv(e)?e.host:null)||Yv(e)}function Gv(e){return Mv(e)&&"fixed"!==$v(e).position?e.offsetParent:null}function Xv(e){for(var t=Lv(e),n=Gv(e);n&&qv(n)&&"static"===$v(n).position;)n=Gv(n);return n&&("html"===Tv(n)||"body"===Tv(n)&&"static"===$v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Mv(e)&&"fixed"===$v(e).position)return null;var n=Zv(e);for(Vv(n)&&(n=n.host);Mv(n)&&["html","body"].indexOf(Tv(n))<0;){var r=$v(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 Kv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jv(e,t,n){return Bv(e,Fv(t,n))}function Qv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function eh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function th(e){return e.split("-")[1]}var nh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rh(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=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=Av,E=Sv,x=window;if(u){var _=Xv(n),w="clientHeight",k="clientWidth";_===Lv(n)&&"static"!==$v(_=Yv(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth"),(a===Sv||(a===Av||a===Ov)&&"end"===o)&&(E=Cv,v-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[w])-r.height,v*=l?1:-1),a!==Av&&(a!==Sv&&a!==Cv||"end"!==o)||(b=Ov,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-r.width,p*=l?1:-1)}var S,C=Object.assign({position:s},u&&nh),O=!0===c?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:zv(e.x*n)/n||0,y:zv(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=O.x,v=O.y,Object.assign({},C,l?((S={})[E]=g?"0":"",S[b]=y?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",S):((t={})[E]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var ah={passive:!0},oh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=Lv(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,ah)}),s&&l.addEventListener("resize",n.update,ah),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,ah)}),s&&l.removeEventListener("resize",n.update,ah)}},data:{}},ih={left:"right",right:"left",bottom:"top",top:"bottom"};function sh(e){return e.replace(/left|right|bottom|top/g,function(e){return ih[e]})}var lh={start:"end",end:"start"};function uh(e){return e.replace(/start|end/g,function(e){return lh[e]})}function ch(e){var t=Lv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dh(e){return Wv(Yv(e)).left+ch(e).scrollLeft}function fh(e){var t=$v(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function ph(e){return["html","body","#document"].indexOf(Tv(e))>=0?e.ownerDocument.body:Mv(e)&&fh(e)?e:ph(Zv(e))}function mh(e,t){var n;void 0===t&&(t=[]);var r=ph(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Lv(r),i=a?[o].concat(o.visualViewport||[],fh(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(mh(Zv(i)))}function vh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hh(e,t){return"viewport"===t?vh(function(e){var t=Lv(e),n=Yv(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+dh(e),y:s}}(e)):Dv(t)?function(e){var t=Wv(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):vh(function(e){var t,n=Yv(e),r=ch(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Bv(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Bv(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+dh(e),l=-r.scrollTop;return"rtl"===$v(a||n).direction&&(s+=Bv(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(Yv(e)))}function yh(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?jv(a):null,i=a?th(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Sv:t={x:s,y:n.y-r.height};break;case Cv:t={x:s,y:n.y+n.height};break;case Ov:t={x:n.x+n.width,y:l};break;case Av:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Kv(o):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 gh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.boundary,o=void 0===a?"clippingParents":a,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=Qv("number"!=typeof p?p:eh(p,Nv)),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=mh(Zv(e)),n=["absolute","fixed"].indexOf($v(e).position)>=0&&Mv(e)?Xv(e):e;return Dv(n)?t.filter(function(e){return Dv(e)&&Uv(e,n)&&"body"!==Tv(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a.reduce(function(t,n){var r=hh(e,n);return t.top=Bv(r.top,t.top),t.right=Fv(r.right,t.right),t.bottom=Fv(r.bottom,t.bottom),t.left=Bv(r.left,t.left),t},hh(e,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(Dv(h)?h:h.contextElement||Yv(e.elements.popper),o,s),g=Wv(e.elements.reference),b=yh({reference:g,element:v,strategy:"absolute",placement:r}),E=vh(Object.assign({},v,b)),x="popper"===u?E:g,_={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},w=e.modifiersData.offset;if("popper"===u&&w){var k=w[r];Object.keys(_).forEach(function(e){var t=[Ov,Cv].indexOf(e)>=0?1:-1,n=[Sv,Cv].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t})}return _}function bh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?Iv:i,l=th(t.placement),u=l?o?Rv:Rv.filter(function(e){return th(e)===l}):Nv,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,o){return t[o]=gh(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[jv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var Eh={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 a=n.mainAxis,o=void 0===a||a,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=jv(h),g=l||(y!==h&&m?function(e){if("auto"===jv(e))return[];var t=sh(e);return[uh(e),t,uh(t)]}(h):[sh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===jv(n)?bh(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],O=jv(C),A="start"===th(C),N=[Sv,Cv].indexOf(O)>=0,R=N?"width":"height",I=gh(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),P=N?A?Ov:Av:A?Cv:Sv;E[R]>x[R]&&(P=sh(P));var T=sh(P),L=[];if(o&&L.push(I[O]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){k=C,w=!1;break}_.set(C,L)}if(w)for(var D=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xh(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 _h(e){return[Sv,Ov,Cv,Av].some(function(t){return e[t]>=0})}var wh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=Iv.reduce(function(e,n){return e[n]=function(e,t,n){var r=jv(e),a=[Av,Sv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[Av,Ov].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=o}},kh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,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=gh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=jv(t.placement),m=th(t.placement),v=!m,h=Kv(p),y="x"===h?"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,_="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(g){if(o){var S,C="y"===h?Sv:Av,O="y"===h?Cv:Ov,A="y"===h?"height":"width",N=g[h],R=N+f[C],I=N-f[O],P=u?-E[A]/2:0,T="start"===m?b[A]:E[A],L="start"===m?-E[A]:-b[A],D=t.elements.arrow,M=u&&D?Hv(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[C],B=V[O],F=Jv(0,b[A],M[A]),z=v?b[A]/2-P-F-j-_.mainAxis:T-F-j-_.mainAxis,W=v?-b[A]/2+P+F+B+_.mainAxis:L+F+B+_.mainAxis,H=t.elements.arrow&&Xv(t.elements.arrow),U=null!=(S=null==w?void 0:w[h])?S:0,$=N+W-U,q=Jv(u?Fv(R,N+z-U-(H?"y"===h?H.clientTop||0:H.clientLeft||0:0)):R,N,u?Bv(I,$):I);g[h]=q,k[h]=q-N}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?Sv:Av],K=Z-f["x"===h?Cv:Ov],J=-1!==[Sv,Av].indexOf(p),Q=null!=(Y=null==w?void 0:w[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+_.altAxis,te=J?Z+b[G]+E[G]-Q-_.altAxis:K,ne=u&&J?function(e,t,n){var r=Jv(e,t,n);return r>n?n:r}(ee,Z,te):Jv(u?ee:X,Z,u?te:K);g[y]=ne,k[y]=ne-Z}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function Sh(e,t,n){void 0===n&&(n=!1);var r=Mv(t),a=Mv(t)&&function(e){var t=e.getBoundingClientRect(),n=zv(t.width)/e.offsetWidth||1,r=zv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Yv(t),i=Wv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Tv(t)||fh(o))&&(s=function(e){return e!==Lv(e)&&Mv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ch(e);var t}(t)),Mv(t)?((l=Wv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=dh(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Ch(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||a(e)}),r}function Oh(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 Ah='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Nh=["name","enabled","phase","fn","effect","requires","options"],Rh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ih={placement:"bottom",modifiers:[],strategy:"absolute"};function Ph(){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 Th(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Ih:r;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ih,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Dv(e)?mh(e):e.contextElement?mh(e.contextElement):[],popper:mh(t)};var i,u,f,p=function(e){var t=Ch(e);return Pv.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),Nh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Oh(Ah,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Oh(Ah,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pv.indexOf(t.phase)<0&&console.error(Oh(Ah,t.name,'"phase"',"either "+Pv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Oh(Ah,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Oh(Ah,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Oh(Ah,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Oh(Ah,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 '+Nh.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(Oh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===jv(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=$v(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(Ph(t,n)){s.rects={reference:Sh(t,Xv(n),"fixed"===s.options.strategy),popper:Hv(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,a=0;a<s.orderedModifiers.length;a++){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 o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:c})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(Rh)}},update:(o=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(o())})})),i}),destroy:function(){d(),u=!0}};if(!Ph(e,t))return"production"!==process.env.NODE_ENV&&console.error(Rh),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 Lh=/*#__PURE__*/Th({defaultModifiers:[oh,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=yh({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,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var u=$v(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:jv(t.placement),variation:th(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rh(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,rh(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]||{},a=t.elements[e];Mv(a)&&Tv(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.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],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Mv(r)&&Tv(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},wh,Eh,kh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=jv(n.placement),l=Kv(s),u=[Av,Ov].indexOf(s)>=0?"height":"width";if(o&&i){var c=function(e,t){return Qv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:eh(e,Nv))}(a.padding,n),d=Hv(o),f="y"===l?Sv:Av,p="y"===l?Cv:Ov,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],h=Xv(o),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[u]/2+(m/2-v/2),b=Jv(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&&(Mv(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(" "))),Uv(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,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=gh(t,{elementContext:"reference"}),s=gh(t,{altBoundary:!0}),l=xh(i,r),u=xh(s,a,o),c=_h(l),d=_h(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 Dh(){return Dh=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},Dh.apply(this,arguments)}var Mh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},Vh={arrowShadowColor:Mh("--popper-arrow-shadow-color"),arrowSize:Mh("--popper-arrow-size","8px"),arrowSizeHalf:Mh("--popper-arrow-size-half"),arrowBg:Mh("--popper-arrow-bg"),transformOrigin:Mh("--popper-transform-origin"),arrowOffset:Mh("--popper-arrow-offset")},jh={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"},Bh={scroll:!0,resize:!0},Fh={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"}}},zh={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Wh(e.state)},effect:function(e){var t=e.state;return function(){Wh(t)}}},Wh=function(e){e.elements.popper.style.setProperty(Vh.transformOrigin.var,jh[e.placement])},Hh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Uh(e.state)}},Uh=function(e){var t;if(e.placement){var n=$h(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,a;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=Vh.arrowSize.varRef,r.height=Vh.arrowSize.varRef,r.zIndex=-1,r));var o=((a={})[Vh.arrowSizeHalf.var]="calc("+Vh.arrowSize.varRef+" / 2)",a[Vh.arrowOffset.var]="calc("+Vh.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},$h=function(e){return e.startsWith("top")?{property:"bottom",value:Vh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:Vh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:Vh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:Vh.arrowOffset.varRef}:void 0},qh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Yh(e.state)},effect:function(e){var t=e.state;return function(){Yh(t)}}},Yh=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:Vh.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)})}},Zh={"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"}},Gh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},Xh=["size","shadowColor","bg","style"];function Kh(e){var t=e.size,n=e.shadowColor,r=e.bg,a=Dh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Jh(){return Jh=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},Jh.apply(this,arguments)}function Qh(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var ey=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],ty=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],ny=["type","isChecked"],ry=["children","type","value","defaultValue","onChange"],ay=jf(),oy=ay[0],iy=ay[1],sy=ay[2],ly=ay[3],uy=tn({strict:!1,name:"MenuContext"}),cy=uy[0],dy=uy[1];function fy(e){var n;return t.isHTMLElement(e)&&!(null==(n=e.getAttribute("role"))||!n.startsWith("menuitem"))}function py(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,u=e.closeOnSelect,c=e.type,d=Qh(e,ty),f=dy(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,E=F.useRef(null),x=b+"-menuitem-"+dn(),_=ly({disabled:s&&!l}),w=_.index,k=_.register,S=F.useCallback(function(e){null==r||r(e),s||p(w)},[p,w,s,r]),C=F.useCallback(function(e){null==a||a(e),E.current&&!t.isActiveElement(E.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),A=F.useCallback(function(e){null==i||i(e),fy(e.currentTarget)&&(null!=u?u:v)&&h()},[h,i,v,u]),N=w===m,R=s&&!l;fn(function(){g&&(N&&!R&&E.current?t.focus(E.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!t.isActiveElement(y.current)&&t.focus(y.current,{preventScroll:!1}))},[N,R,y,g]);var I=function(e){void 0===e&&(e={});var n=e.ref,r=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,u=e.onMouseDown,c=e.onMouseUp,d=e.onClick,f=e.onKeyDown,p=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,y=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,wv),g=F.useState(!0),b=g[0],E=g[1],x=F.useState(!1),_=x[0],w=x[1],k=function(){var e=F.useRef(new Map),t=e.current,n=F.useCallback(function(t,n,r,a){e.current.set(r,{type:n,el:t,options:a}),t.addEventListener(n,r,a)},[]),r=F.useCallback(function(t,n,r,a){t.removeEventListener(n,r,a),e.current.delete(r)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=b?m:m||0,C=r&&!a,O=F.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[r,d]),A=F.useCallback(function(e){_&&kv(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))},[_,k]),N=F.useCallback(function(e){if(null==f||f(e),!(r||e.defaultPrevented||e.metaKey)&&kv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",A,!1)}},[r,b,f,i,l,k,A]),R=F.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||kv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[l,b,r,p]),I=F.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=F.useCallback(function(e){if(!t.isRightClick(e)){if(r)return e.stopPropagation(),void e.preventDefault();b||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==u||u(e)}},[r,b,u,k,I]),T=F.useCallback(function(e){t.isRightClick(e)||(b||w(!1),null==c||c(e))},[c,b]),L=F.useCallback(function(e){r?e.preventDefault():null==v||v(e)},[r,v]),D=F.useCallback(function(e){_&&(e.preventDefault(),w(!1)),null==h||h(e)},[_,h]),M=en(n,function(e){e&&"BUTTON"!==e.tagName&&E(!1)});return _v({},y,b?{ref:M,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:u,onMouseUp:c,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(_),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:P,onMouseUp:T,onKeyUp:R,onKeyDown:N,onMouseOver:L,onMouseLeave:D})}({onClick:A,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:en(k,E,n),isDisabled:s,isFocusable:l});return Jh({},d,I,{type:null!=c?c:I.type,id:x,role:"menuitem",tabIndex:N?0:-1})}var my=["descendants"],vy=["children","as"],hy=["rootProps"],yy=["type"],gy=["icon","iconSpacing","command","commandSpacing","children"],by=["icon","iconSpacing"],Ey=["className","title"],xy=["title","children","className"],_y=["className","children"],wy=aa("Menu"),ky=wy[0],Sy=wy[1],Cy=function(e){var n=e.children,r=ya("Menu",e),a=function(e){void 0===e&&(e={});var n=e.id,r=e.closeOnSelect,a=void 0===r||r,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,u=e.isLazy,c=e.isOpen,d=e.defaultIsOpen,f=e.onClose,p=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,y=void 0===h?"unmount":h,g=e.direction,b=e.computePositionOnMount,E=void 0!==b&&b,x=Qh(e,ey),_=F.useRef(null),w=F.useRef(null),k=sy(),S=F.useCallback(function(){t.focus(_.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=k.firstEnabled();e&&z(e.index)});Y.current.add(e)},[k]),O=F.useCallback(function(){var e=setTimeout(function(){var e=k.lastEnabled();e&&z(e.index)});Y.current.add(e)},[k]),A=function(e){void 0===e&&(e={});var n=e.onClose,r=e.isOpen,a=e.id,o=an(e.onOpen),i=an(n),s=F.useState(e.defaultIsOpen||!1),l=s[1],u=ln(r,s[0]),c=u[0],d=u[1],f=dn(a,"disclosure"),p=F.useCallback(function(){c||l(!1),null==i||i()},[c,i]),m=F.useCallback(function(){c||l(!0),null==o||o()},[c,o]),v=F.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={}),cn({},e,{"aria-expanded":d,"aria-controls":f,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),cn({},e,{hidden:!d,id:f})}}}({isOpen:c,defaultIsOpen:d,onClose:f,onOpen:F.useCallback(function(){null==p||p(),l?C():S()},[l,C,S,p])}),N=A.isOpen,R=A.onOpen,I=A.onClose,P=A.onToggle;!function(e){var n=e.ref,r=e.handler,a=e.enabled,o=void 0===a||a,i=an(r),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){hn(e,n)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&r&&hn(e,n)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&hn(e,n)&&(s.isPointerDown=!1,i(e))},u=t.getOwnerDocument(n.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",a,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",l,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",a,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",l,!0)}}},[r,n,i,s,o])}({enabled:N&&i,ref:_,handler:function(e){var t;null!=(t=w.current)&&t.contains(e.target)||I()}});var T,L,D,M,V=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,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,E=void 0===b||b,x=e.matchWidth,_=e.direction,w=void 0===_?"ltr":_,k=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var a=(null==(n=Zh[e])?void 0:n[t])||e;return"ltr"===t?a:null!=(r=Gh[e])?r:a}(o,w),A=F.useRef(function(){}),N=F.useCallback(function(){var e;n&&k.current&&S.current&&(null==A.current||A.current(),C.current=Lh(k.current,S.current,{placement:O,modifiers:[qh,Hh,zh,Dh({},Fh,{enabled:!!x}),Dh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:Dh({},Bh,e)}:{enabled:e,options:Bh})),{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!E,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),C.current.forceUpdate(),A.current=C.current.destroy)},[O,n,r,x,d,u,f,m,h,E,g,s]);F.useEffect(function(){return function(){var e;k.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var R=F.useCallback(function(e){k.current=e,N()},[N]),I=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Dh({},e,{ref:en(R,t)})},[R]),P=F.useCallback(function(e){S.current=e,N()},[N]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Dh({},e,{ref:en(P,t),style:Dh({},e.style,{position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,x]),L=F.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,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Xh);return Dh({},n,{ref:t,"data-popper-arrow":"",style:Kh(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Dh({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=C.current)||e.update()},forceUpdate:function(){var e;null==(e=C.current)||e.forceUpdate()},transformOrigin:Vh.transformOrigin.varRef,referenceRef:R,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:I}}(Jh({},x,{enabled:N||E,placement:v,direction:g})),j=F.useState(-1),B=j[0],z=j[1];fn(function(){N||z(-1)},[N]),fn(function(){if(M&&!function(e){var n=e.current;if(!n)return!1;var r=t.getActiveElement(n);return!!r&&!t.contains(n,r)&&!!t.isTabbable(r)}(T)){var e=(null==D?void 0:D.current)||T.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:w,visible:N,shouldFocus:!0}).shouldFocus&&!L.visible,T=_,D=L.focusRef]);var W=function(e){var n=e.isOpen,r=e.ref,a=F.useState(n),o=a[0],i=a[1],s=F.useState(!1),l=s[0],u=s[1];return F.useEffect(function(){l||(i(n),u(!0))},[n,l,o]),on("animationend",function(){i(n)},function(){return r.current}),{present:!(!n&&!o),onComplete:function(){var e,n=new(t.getOwnerWindow(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:N,ref:_}),H=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 a=dn(e);return F.useMemo(function(){return n.map(function(e){return e+"-"+a})},[a,n])}(n,"menu-button","menu-list"),U=H[0],$=H[1],q=F.useCallback(function(){R(),S()},[R,S]),Y=F.useRef(new Set([]));pn(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var Z=F.useCallback(function(){R(),C()},[C,R]),G=F.useCallback(function(){R(),O()},[R,O]),X=F.useCallback(function(){var e,n,r=t.getOwnerDocument(_.current),a=null==(e=_.current)?void 0:e.contains(r.activeElement);if(N&&!a){var o=null==(n=k.item(B))?void 0:n.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[N,B,k]);return{openAndFocusMenu:q,openAndFocusFirstItem:Z,openAndFocusLastItem:G,onTransitionEnd:X,unstable__animationState:W,descendants:k,popper:V,buttonId:U,menuId:$,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:N,onToggle:P,onOpen:R,onClose:I,menuRef:_,buttonRef:w,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:u,lazyBehavior:y}}(Jh({},oa(e),{direction:ra().direction})),o=a.descendants,i=Qh(a,my),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
63
+ return F.createElement(oy,{value:o},/*#__PURE__*/F.createElement(cy,{value:s},/*#__PURE__*/F.createElement(ky,{value:r},t.runIfFn(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(Cy.displayName="Menu");var Oy=/*#__PURE__*/pa(function(e,t){var n=Sy();/*#__PURE__*/
64
+ return F.createElement(ba.button,Jh({ref:t},e,{__css:Jh({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),Ay=/*#__PURE__*/pa(function(e,n){var r=e.as,a=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=dy(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,s=r.openAndFocusLastItem,l=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Enter:i,ArrowDown:i,ArrowUp:s}[n];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[i,s]);return Jh({},e,{ref:en(r.buttonRef,n,o.referenceRef),id:r.buttonId,"data-active":t.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(Qh(e,vy),n);/*#__PURE__*/
65
+ return F.createElement(r||Oy,Jh({},a,{className:t.cx("chakra-menu__menu-button",e.className)}),/*#__PURE__*/F.createElement(ba.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});t.__DEV__&&(Ay.displayName="MenuButton");var Ny={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"}}},Ry=function(e){var t=$d;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.div),Iy=/*#__PURE__*/pa(function(e,n){var r,a,o=e.rootProps,i=Qh(e,hy),s=dy(),l=s.isOpen,u=s.onTransitionEnd,c=s.unstable__animationState,d=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=dy();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=r.focusedIndex,o=r.setFocusedIndex,i=r.menuRef,s=r.isOpen,l=r.onClose,u=r.menuId,c=r.isLazy,d=r.lazyBehavior,f=r.unstable__animationState,p=iy(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,a=void 0===r?function(){return!0}:r,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),u=function(){l.current&&(clearTimeout(l.current),l.current=null)};return F.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 o=i.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),s(o),e(o.join("")),u(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&fy(e.target)}}),v=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(a);e&&o(e.index)}},i=r[n];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var n=t.getNextItemFromSearch(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(a));if(n){var r=p.indexOf(n.node);o(r)}});fy(e.target)&&s(e)},[p,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var y=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:c,lazyBehavior:d,isSelected:f.present});return Jh({},e,{ref:en(i,n),children:y?e.children:null,tabIndex:-1,role:"menu",id:u,style:Jh({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,n),f=function(e){void 0===e&&(e={});var t=dy();return t.popper.getPopperProps(Jh({},e,{style:Jh({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=Sy();/*#__PURE__*/
66
+ return F.createElement(ba.div,Jh({},f,{__css:{zIndex:null!=(r=e.zIndex)?r:null==(a=p.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(Ry,Jh({},d,{onUpdate:u,onAnimationComplete:t.callAll(c.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:Ny,initial:!1,animate:l?"enter":"exit",__css:Jh({outline:0},p.list)})))});t.__DEV__&&(Iy.displayName="MenuList");var Py=/*#__PURE__*/pa(function(e,t){var n=e.type,r=Qh(e,yy),a=Sy(),o=r.as||n?null!=n?n:void 0:"button",i=F.useMemo(function(){return Jh({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},a.item)},[a.item]);/*#__PURE__*/
67
+ return F.createElement(ba.button,Jh({ref:t,type:o},r,{__css:i}))}),Ty=/*#__PURE__*/pa(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=e.command,s=e.commandSpacing,l=void 0===s?"0.75rem":s,u=e.children,c=py(Qh(e,gy),n),d=r||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},u):u;/*#__PURE__*/
68
+ return F.createElement(Py,Jh({},c,{className:t.cx("chakra-menu__menuitem",c.className)}),r&&/*#__PURE__*/F.createElement(By,{fontSize:"0.8em",marginEnd:o},r),d,i&&/*#__PURE__*/F.createElement(jy,{marginStart:l},i))});t.__DEV__&&(Ty.displayName="MenuItem");var Ly=function(e){/*#__PURE__*/
69
+ return F.createElement("svg",Jh({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/F.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"}))},Dy=/*#__PURE__*/pa(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=Qh(e,by),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,a=e.isChecked;return Jh({},py(Qh(e,ny),t),{role:"menuitem"+r,"aria-checked":a})}(i,n);/*#__PURE__*/
70
+ return F.createElement(Py,Jh({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&/*#__PURE__*/F.createElement(By,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||/*#__PURE__*/F.createElement(Ly,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});Dy.id="MenuItemOption",t.__DEV__&&(Dy.displayName="MenuItemOption");var My=function(e){var n=e.className,r=e.title,a=function(e){void 0===e&&(e={});var n=e.children,r=e.type,a=void 0===r?"radio":r,o=e.value,i=e.defaultValue,s=e.onChange,l=Qh(e,ry),u=un({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),c=u[0],d=u[1],f=F.useCallback(function(e){if("radio"===a&&t.isString(c)&&d(e),"checkbox"===a&&t.isArray(c)){var n=c.includes(e)?t.removeItem(c,e):t.addItem(c,e);d(n)}},[c,d,a]);return Jh({},l,{children:nn(n).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===a?e.props.value===c:c.includes(e.props.value);/*#__PURE__*/
71
+ return F.cloneElement(e,{type:a,onClick:function(t){f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Qh(e,Ey));/*#__PURE__*/
72
+ return F.createElement(Vy,Jh({title:r,className:t.cx("chakra-menu__option-group",n)},a))};t.__DEV__&&(My.displayName="MenuOptionGroup");var Vy=/*#__PURE__*/pa(function(e,n){var r=e.title,a=e.children,o=e.className,i=Qh(e,xy),s=t.cx("chakra-menu__group__title",o),l=Sy();/*#__PURE__*/
73
+ return F.createElement("div",{ref:n,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/F.createElement(ba.p,Jh({className:s},i,{__css:l.groupTitle}),r),a)});t.__DEV__&&(Vy.displayName="MenuGroup");var jy=/*#__PURE__*/pa(function(e,t){var n=Sy();/*#__PURE__*/
74
+ return F.createElement(ba.span,Jh({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});t.__DEV__&&(jy.displayName="MenuCommand");var By=function(e){var n=e.className,r=e.children,a=Qh(e,_y),o=F.Children.only(r),i=/*#__PURE__*/F.isValidElement(o)?/*#__PURE__*/F.cloneElement(o,{focusable:"false","aria-hidden":!0,className:t.cx("chakra-menu__icon",o.props.className)}):null,s=t.cx("chakra-menu__icon-wrapper",n);/*#__PURE__*/
75
+ return F.createElement(ba.span,Jh({className:s},a,{__css:{flexShrink:0}}),i)};function Fy(){return Fy=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},Fy.apply(this,arguments)}function zy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(By.displayName="MenuIcon");var Wy=function(e){/*#__PURE__*/
76
+ return F.createElement(Ra,Fy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.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"}))},Hy=function(e){/*#__PURE__*/
77
+ return F.createElement(Ra,Fy({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.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 Uy(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 $y(e,n,r,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(n)?n:[n],s=new o.MutationObserver(function(e){for(var t,n=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 Uy(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)?Uy(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=n()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&r(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var qy=["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"],Yy=/^[Ee0-9+\-.]$/;function Zy(e){return Yy.test(e)}var Gy=["htmlProps"],Xy=aa("NumberInput"),Ky=Xy[0],Jy=Xy[1],Qy=tn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),eg=Qy[0],tg=Qy[1],ng=/*#__PURE__*/pa(function(e,n){var r=ya("NumberInput",e),a=function(e){void 0===e&&(e={});var n=e.focusInputOnChange,r=void 0===n||n,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,u=void 0===l?t.minSafeInteger:l,c=e.max,d=void 0===c?t.maxSafeInteger:c,f=e.step,p=void 0===f?1:f,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,y=e.isInvalid,g=e.pattern,b=void 0===g?"[0-9]*(.[0-9]+)?":g,E=e.inputMode,x=void 0===E?"decimal":E,_=e.allowMouseWheel,w=e.id,k=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],A=e.onFocus,N=e.onBlur,R=e.onInvalid,I=e.getAriaValueText,P=e.isValidCharacter,T=e.format,L=e.parse,D=zy(e,qy),M=an(A),V=an(N),j=an(R),B=an(null!=P?P:Zy),z=an(I),W=em(e),H=W.update,U=W.increment,$=W.decrement,q=sn(),Y=q[0],Z=q[1],G=!(m||v),X=F.useRef(null),K=F.useRef(null),J=F.useRef(null),Q=F.useRef(null),ee=F.useCallback(function(e){return e.split("").filter(B).join("")},[B]),te=F.useCallback(function(e){var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),ne=F.useCallback(function(e){var t;return(null!=(t=null==T?void 0:T(e))?t:e).toString()},[T]);fn(function(){(W.valueAsNumber>d||W.valueAsNumber<u)&&(null==j||j("rangeOverflow",ne(W.value),W.valueAsNumber))},[W.valueAsNumber,W.value,ne,j]),rn(function(){if(X.current&&X.current.value!=W.value){var e=te(X.current.value);W.setValue(ee(e))}},[te,ee]);var re=F.useCallback(function(e){void 0===e&&(e=p),G&&U(e)},[U,G,p]),ae=F.useCallback(function(e){void 0===e&&(e=p),G&&$(e)},[$,G,p]),oe=function(e,t){var n,r,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],u=s[1],c=F.useState(!0),d=c[0],f=c[1],p=F.useRef(null),m=function(){return clearTimeout(p.current)};n=o?50:null,r=an(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=F.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),u("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),u("decrement")},300)},[t,d]),y=F.useCallback(function(){f(!0),i(!1),m()},[]);return pn(m),{up:v,down:h,stop:y,isSpinning:o}}(re,ae);$y(J,"disabled",oe.stop,oe.isSpinning),$y(Q,"disabled",oe.stop,oe.isSpinning);var ie=F.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=te(e.currentTarget.value);H(ee(t)),K.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[H,ee,te]),se=F.useCallback(function(e){var t,n,r;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=K.current.end)?r:e.currentTarget.selectionStart)},[M]),le=F.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,B)||e.preventDefault();var n=ue(e)*p,r={ArrowUp:function(){return re(n)},ArrowDown:function(){return ae(n)},Home:function(){return H(u)},End:function(){return H(d)}}[t.normalizeEventKey(e)];r&&(e.preventDefault(),r(e))}},[B,p,re,ae,H,u,d]),ue=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ce=F.useMemo(function(){var e=null==z?void 0:z(W.value);return t.isNull(e)?W.value.toString()||void 0:e},[W.value,z]),de=F.useCallback(function(){var e=W.value;""!==e&&(W.valueAsNumber<u&&(e=u),W.valueAsNumber>d&&(e=d),W.cast(e))},[W,d,u]),fe=F.useCallback(function(){Z.off(),o&&de()},[o,Z,de]),pe=F.useCallback(function(){r&&t.focus(X.current,{nextTick:!0})},[r]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),pe()},[pe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),pe()},[pe,oe]);on("wheel",function(e){var n=t.getOwnerDocument(X.current);if(_&&n.activeElement===X.current){e.preventDefault();var r=ue(e)*p,a=Math.sign(e.deltaY);-1===a?re(r):1===a&&ae(r)}},X.current,{passive:!1});var he=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMax;return Fy({},e,{ref:en(n,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMax,s,me,oe.stop,v]),ye=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMin;return Fy({},e,{ref:en(n,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMin,s,ve,oe.stop,v]),ge=F.useCallback(function(e,n){var r,a,o,i;return void 0===e&&(e={}),void 0===n&&(n=null),Fy({name:k,inputMode:x,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:w,disabled:v},e,{readOnly:null!=(r=e.readOnly)?r:m,"aria-readonly":null!=(a=e.readOnly)?a:m,"aria-required":null!=(o=e.required)?o:h,required:null!=(i=e.required)?i:h,ref:en(X,n),value:ne(W.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":t.ariaAttr(null!=y?y:W.isOutOfRange),"aria-valuetext":ce,autoComplete:"off",autoCorrect:"off",onChange:t.callAllHandlers(e.onChange,ie),onKeyDown:t.callAllHandlers(e.onKeyDown,le),onFocus:t.callAllHandlers(e.onFocus,se,Z.on),onBlur:t.callAllHandlers(e.onBlur,V,fe)})},[k,x,b,O,C,ne,S,w,v,h,m,y,W.value,W.valueAsNumber,W.isOutOfRange,u,d,ce,ie,le,se,Z.on,V,fe]);return{value:ne(W.value),valueAsNumber:W.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ye,getInputProps:ge,htmlProps:D}}(yp(oa(e))),o=a.htmlProps,i=zy(a,Gy),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
78
+ return F.createElement(eg,{value:s},/*#__PURE__*/F.createElement(Ky,{value:r},/*#__PURE__*/F.createElement(ba.div,Fy({},o,{ref:n,className:t.cx("chakra-numberinput",e.className),__css:Fy({position:"relative",zIndex:0},r.root)}))))});t.__DEV__&&(ng.displayName="NumberInput");var rg=/*#__PURE__*/pa(function(e,t){var n=Jy();/*#__PURE__*/
79
+ return F.createElement(ba.div,Fy({"aria-hidden":!0,ref:t},e,{__css:Fy({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});t.__DEV__&&(rg.displayName="NumberInputStepper");var ag=/*#__PURE__*/pa(function(e,n){var r=(0,tg().getInputProps)(e,n),a=Jy();/*#__PURE__*/
80
+ return F.createElement(ba.input,Fy({},r,{className:t.cx("chakra-numberinput__field",e.className),__css:Fy({width:"100%"},a.field)}))});t.__DEV__&&(ag.displayName="NumberInputField");var og=ba("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),ig=/*#__PURE__*/pa(function(e,t){var n,r=Jy(),a=(0,tg().getDecrementButtonProps)(e,t);/*#__PURE__*/
81
+ return F.createElement(og,Fy({},a,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Wy,null))});t.__DEV__&&(ig.displayName="NumberDecrementStepper");var sg=/*#__PURE__*/pa(function(e,t){var n,r=(0,tg().getIncrementButtonProps)(e,t),a=Jy();/*#__PURE__*/
82
+ return F.createElement(og,Fy({},r,{__css:a.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Hy,null))});function lg(){return lg=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},lg.apply(this,arguments)}function ug(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(sg.displayName="NumberIncrementStepper");var cg=["index"],dg=jf(),fg=dg[0],pg=dg[2],mg=dg[3],vg=tn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),hg=vg[0],yg=vg[1],gg=function(e){return null==e?void 0:e.split("")};function bg(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var Eg=["children"],xg=["descendants"],_g=function(e){var n=ha("PinInput",e),r=oa(e),a=r.children,o=function(e){void 0===e&&(e={});var n=e.autoFocus,r=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,u=e.manageFocus,c=void 0===u||u,d=e.otp,f=void 0!==d&&d,p=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,y=void 0===h?"number":h,g=e.mask,b=dn(),E=null!=p?p:"pin-input-"+b,x=pg(),_=F.useState(!0),w=_[0],k=_[1],S=F.useState(-1),C=S[0],O=S[1],A=un({defaultValue:gg(a)||[],value:gg(r),onChange:function(e){return null==o?void 0:o(e.join(""))}}),N=A[0],R=A[1];F.useEffect(function(){if(n){var e=x.first();e&&t.focus(e.node,{nextTick:!0})}},[x]);var I=F.useCallback(function(e){if(w&&c){var n=x.next(e,!1);n&&t.focus(n.node,{nextTick:!0})}},[x,w,c]),P=F.useCallback(function(e,t){var n=[].concat(N);n[t]=e,R(n),""!==e&&n.length===x.count()&&n.every(function(e){return null!=e&&""!==e})?null==i||i(n.join("")):I(t)},[N,R,I,i,x]),T=F.useCallback(function(){var e=Array(x.count()).fill("");R(e);var n=x.first();n&&t.focus(n.node)},[x,R]),L=F.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=F.useCallback(function(e){var n=e.index,r=ug(e,cg),a=C===n;return lg({"aria-label":"Please enter your pin code",inputMode:"number"===y?"numeric":"text",type:g?"password":"number"===y?"tel":"text"},r,{id:E+"-"+n,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(r.onChange,function(e){var t=e.target.value,r=L(N[n],t);if(""!==r)if(t.length>2){if(bg(t,y)){var a=t.split("").filter(function(e,t){return t<x.count()});R(a),a.length===x.count()&&(null==i||i(a.join("")))}}else bg(r,y)&&P(r,n),k(!0);else P("",n)}),onKeyDown:t.callAllHandlers(r.onKeyDown,function(e){if("Backspace"===e.key&&c)if(""===e.target.value){var r=x.prev(n,!1);r&&(P("",n-1),t.focus(r.node),k(!0))}else k(!1)}),onFocus:t.callAllHandlers(r.onFocus,function(){O(n)}),onBlur:t.callAllHandlers(r.onBlur,function(){O(-1)}),value:N[n]||"",autoComplete:f?"one-time-code":"off",placeholder:a?"":l})},[x,C,L,E,m,g,v,c,i,f,l,P,R,y,N]);return{getInputProps:D,id:E,descendants:x,values:N,setValue:P,setValues:R,clear:T}}(ug(r,Eg)),i=o.descendants,s=ug(o,xg),l=nn(a).map(function(e){/*#__PURE__*/
83
83
  return F.cloneElement(e,{__css:n})});/*#__PURE__*/
84
- return F.createElement(Qy,{value:i},/*#__PURE__*/F.createElement(rg,{value:s},l))};t.__DEV__&&(ug.displayName="PinInput");var cg=/*#__PURE__*/pa(function(e,n){var r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=ag().getInputProps,r=tg(),a=r.index;return n(Gy({},e,{ref:en(r.register,t),index:a}))}(e,n);/*#__PURE__*/
85
- return F.createElement(ba.input,Gy({},r,{className:t.cx("chakra-pin-input",e.className)}))});function dg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function fg(){return fg=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},fg.apply(this,arguments)}t.__DEV__&&(cg.displayName="PinInputField");var pg=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],mg=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],vg=tn({name:"RadioGroupContext",strict:!1}),hg=vg[0],yg=vg[1],gg=/*#__PURE__*/pa(function(e,n){var r=e.colorScheme,a=e.size,o=e.variant,i=e.children,s=e.className,l=e.isDisabled,u=e.isFocusable,c=function(e){void 0===e&&(e={});var n=e.onChange,r=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,u=dg(e,pg),c=F.useState(a||""),d=c[1],f=ln(r,c[0]),p=f[0],m=f[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.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()}}},[]),y=dn(void 0,"radio"),g=o||y,b=F.useCallback(function(e){var r=t.isInputEvent(e)?e.target.value:e;p||d(r),null==n||n(String(r))},[n,p]),E=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),fg({},e,{ref:en(t,v),role:"radiogroup"})},[]),x=F.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),fg({},e,((n={ref:t,name:g})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,n.onChange=b,n["data-radiogroup"]=!0,n))},[l,g,b,m]);return{getRootProps:E,getRadioProps:x,name:g,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:u}}(dg(e,mg)),d=c.value,f=c.onChange,p=c.getRootProps,m=c.name,v=c.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:f,colorScheme:r,value:d,variant:o,isDisabled:l,isFocusable:u}},[m,a,f,r,d,o,l,u]),y=p(v,n),g=t.cx("chakra-radio-group",s);/*#__PURE__*/
86
- return F.createElement(hg,{value:h},/*#__PURE__*/F.createElement(ba.div,fg({},y,{className:g}),i))});t.__DEV__&&(gg.displayName="RadioGroup");var bg=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function Eg(e){e.preventDefault(),e.stopPropagation()}var xg=["spacing","children","isDisabled","isFocusable","inputProps"],_g=/*#__PURE__*/pa(function(e,n){var r,a=yg(),o=e.onChange,i=e.value,s=ya("Radio",fg({},a,e)),l=oa(e),u=l.spacing,c=void 0===u?"0.5rem":u,d=l.children,f=l.isDisabled,p=void 0===f?null==a?void 0:a.isDisabled:f,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,y=dg(l,xg),g=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(g=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var E=function(e){void 0===e&&(e={});var n=e.defaultChecked,r=e.isChecked,a=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=dg(e,bg),h=dn(void 0,"radio"),y=Jf(),g=yg(),b=!y||g||p?h:y.id;b=null!=f?f:b;var E=null!=o?o:null==y?void 0:y.isDisabled,x=null!=i?i:null==y?void 0:y.isReadOnly,_=null!=s?s:null==y?void 0:y.isRequired,w=null!=u?u:null==y?void 0:y.isInvalid,k=sn(),S=k[0],C=k[1],O=sn(),A=O[0],N=O[1],R=sn(),I=R[0],P=R[1],T=F.useState(Boolean(n)),L=T[1],D=ln(r,T[0]),M=D[0],V=D[1],j=F.useCallback(function(e){x||E?e.preventDefault():(M||L(e.target.checked),null==l||l(e))},[M,E,x,l]),B=F.useCallback(function(e){" "===e.key&&P.on()},[P]),z=F.useCallback(function(e){" "===e.key&&P.off()},[P]),H=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),fg({},e,{ref:n,"data-active":t.dataAttr(I),"data-hover":t.dataAttr(A),"data-disabled":t.dataAttr(E),"data-invalid":t.dataAttr(w),"data-checked":t.dataAttr(V),"data-focus":t.dataAttr(S),"data-readonly":t.dataAttr(x),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,P.on),onMouseUp:t.callAllHandlers(e.onMouseUp,P.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,N.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,N.off)})},[I,A,E,w,V,S,x,P.on,P.off,N.on,N.off]),W=null!=y?y:{},U=W.onFocus,$=W.onBlur,q=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=E&&!a;return fg({},e,{id:b,ref:n,type:"radio",name:c,value:d,onChange:t.callAllHandlers(e.onChange,j),onBlur:t.callAllHandlers($,e.onBlur,C.off),onFocus:t.callAllHandlers(U,e.onFocus,C.on),onKeyDown:t.callAllHandlers(e.onKeyDown,B),onKeyUp:t.callAllHandlers(e.onKeyUp,z),checked:V,disabled:r,readOnly:x,required:_,"aria-invalid":t.ariaAttr(w),"aria-disabled":t.ariaAttr(r),"aria-required":t.ariaAttr(_),"data-readonly":t.dataAttr(x),"aria-describedby":m,style:Ea})},[E,a,b,c,d,j,$,C,U,B,z,V,x,_,w,m]);return{state:{isInvalid:w,isFocused:S,isChecked:V,isActive:I,isHovered:A,isDisabled:E,isReadOnly:x,isRequired:_},getCheckboxProps:H,getInputProps:q,getLabelProps:function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),fg({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,Eg),onTouchStart:t.callAllHandlers(e.onTouchStart,Eg),"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},getRootProps:function(e,n){return void 0===n&&(n=null),fg({},e,{ref:n,"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},htmlProps:v}}(fg({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(r=null==e?void 0:e.name)?r:null==a?void 0:a.name})),x=E.getInputProps,_=E.getCheckboxProps,w=E.getLabelProps,k=E.getRootProps,S=t.split(E.htmlProps,Dr),C=S[0],O=_(S[1]),A=x(h,n),N=w(),R=Object.assign({},C,k()),I=fg({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),P=fg({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),T=fg({userSelect:"none",marginStart:c},s.label);/*#__PURE__*/
87
- return F.createElement(ba.label,fg({className:"chakra-radio"},R,{__css:I}),/*#__PURE__*/F.createElement("input",fg({className:"chakra-radio__input"},A)),/*#__PURE__*/F.createElement(ba.span,fg({className:"chakra-radio__control"},O,{__css:P})),d&&/*#__PURE__*/F.createElement(ba.span,fg({className:"chakra-radio__label"},N,{__css:T}),d))});function wg(){return wg=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},wg.apply(this,arguments)}function kg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(_g.displayName="Radio");var Sg=["children","placeholder","className"],Cg=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Og=["children"],Ag=/*#__PURE__*/pa(function(e,n){var r=e.children,a=e.placeholder,o=e.className,i=kg(e,Sg);/*#__PURE__*/
88
- return F.createElement(ba.select,wg({},i,{ref:n,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),r)});t.__DEV__&&(Ag.displayName="SelectField");var Ng=/*#__PURE__*/pa(function(e,n){var r=ya("Select",e),a=oa(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,u=a.height,c=a.h,d=a.minH,f=a.minHeight,p=a.iconColor,m=a.iconSize,v=kg(a,Cg),h=t.split(v,Dr),y=h[0],g=rp(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},E=t.mergeWith({paddingEnd:"2rem"},r.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
89
- return F.createElement(ba.div,wg({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/F.createElement(Ag,wg({ref:n,height:null!=c?c:u,minH:null!=d?d:f,placeholder:i},g,{__css:E}),e.children),/*#__PURE__*/F.createElement(Pg,wg({"data-disabled":t.dataAttr(g.disabled)},(p||l)&&{color:p||l},{__css:r.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Ng.displayName="Select");var Rg=function(e){/*#__PURE__*/
90
- return F.createElement("svg",wg({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Ig=ba("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Pg=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/F.createElement(Rg,null):t,r=kg(e,Og),a=/*#__PURE__*/F.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
91
- return F.createElement(Ig,wg({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(n)?a:null)};function Tg(){return Tg=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},Tg.apply(this,arguments)}t.__DEV__&&(Pg.displayName="SelectIcon");var Lg=["spacing","children"],Dg=/*#__PURE__*/pa(function(e,n){var r=ya("Switch",e),a=oa(e),o=a.spacing,i=void 0===o?"0.5rem":o,s=a.children,l=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,Lg),u=Dp(l),c=u.state,d=u.getInputProps,f=u.getCheckboxProps,p=u.getRootProps,m=u.getLabelProps,v=F.useMemo(function(){return Tg({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)},[r.container]),h=F.useMemo(function(){return Tg({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)},[r.track]),y=F.useMemo(function(){return Tg({userSelect:"none",marginStart:i},r.label)},[i,r.label]);/*#__PURE__*/
92
- return F.createElement(ba.label,Tg({},p(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",Tg({className:"chakra-switch__input"},d({},n))),/*#__PURE__*/F.createElement(ba.span,Tg({},f(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(ba.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(c.isChecked),"data-hover":t.dataAttr(c.isHovered)})),s&&/*#__PURE__*/F.createElement(ba.span,Tg({className:"chakra-switch__label"},m(),{__css:y}),s))});function Mg(){return Mg=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},Mg.apply(this,arguments)}t.__DEV__&&(Dg.displayName="Switch");var Vg=["className","rows"],jg=["h","minH","height","minHeight"],Bg=/*#__PURE__*/pa(function(e,n){var r=ha("Textarea",e),a=oa(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,Vg),l=rp(s),u=i?t.omit(r,jg):r;/*#__PURE__*/
93
- return F.createElement(ba.textarea,Mg({ref:n,rows:i},l,{className:t.cx("chakra-textarea",o),__css:u}))});function Fg(){return Fg=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},Fg.apply(this,arguments)}t.__DEV__&&(Bg.displayName="Textarea");var zg=["hideStepper","incrementIcon","decrementIcon"],Hg=pa(function(e,t){var n=e.hideStepper,r=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,zg);return F.createElement(Wy,Fg({},o,{ref:t}),/*#__PURE__*/F.createElement($y,null),!n&&/*#__PURE__*/F.createElement(Uy,null,/*#__PURE__*/F.createElement(Zy,{children:r}),/*#__PURE__*/F.createElement(Yy,{children:a})))});function Wg(){return Wg=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},Wg.apply(this,arguments)}Hg.defaultProps={hideStepper:!1},t.__DEV__&&(Hg.displayName="NumberInput");var Ug=["as","viewBox","color","focusable","children","className","__css"],$g={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.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__*/F.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__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},qg=/*#__PURE__*/pa(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,u=e.children,c=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Ug),p={ref:n,focusable:l,className:t.cx("chakra-icon",c),__css:Wg({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:$g.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
94
- return F.createElement(ba.svg,Wg({as:r},p,f));var v=null!=u?u:$g.path;/*#__PURE__*/
95
- return F.createElement(ba.svg,Wg({verticalAlign:"middle",viewBox:m},p,f),v)});function Yg(e){var n=e.viewBox,r=void 0===n?"0 0 24 24":n,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),u=/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
96
- return F.createElement(qg,Wg({ref:t,viewBox:r},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(u.displayName=o),u}t.__DEV__&&(qg.displayName="Icon"),Yg({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"}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Zg=Yg({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"});Yg({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.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"})}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({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 Gg=Yg({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Xg=Yg({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))});Yg({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"}),Yg({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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"}))}),Yg({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.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__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Yg({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Yg({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Kg=Yg({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Yg({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Yg({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Yg({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Yg({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Yg({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"}),Yg({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Yg({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),Yg({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),Yg({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"}),Yg({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"}),Yg({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),Yg({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"}),Yg({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"}),Yg({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Yg({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"}),Yg({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.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"})}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Yg({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"}),Yg({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"}),Yg({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"}),Yg({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.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__*/F.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__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Yg({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"}),Yg({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 Jg=Yg({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Qg=Yg({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function eb(){return eb=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},eb.apply(this,arguments)}Yg({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"});var tb=["label","children"],nb=pa(function(e,t){var n=e.label,r=e.children,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,tb);return F.createElement(jf,eb({ref:t},a),r||n)});function rb(){return rb=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},rb.apply(this,arguments)}t.__DEV__&&(nb.displayName="Button");var ab=pa(function(e,t){/*#__PURE__*/return F.createElement(fm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(nb,rb({ref:t,height:"auto"},e)))});function ob(){return ob=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},ob.apply(this,arguments)}ab.id="InputRightElement",t.__DEV__&&(ab.displayName="InputRightButton");var ib=["viewIcon","viewOffIcon","autoComplete"],sb=pa(function(e,t){var n,r=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,ib),s=F.useState(!1),l=s[0],u=s[1],c=l?"Hide password":"Show password";return n=l?r||/*#__PURE__*/F.createElement(Gg,null):a||/*#__PURE__*/F.createElement(Xg,null),/*#__PURE__*/F.createElement(Qp,null,/*#__PURE__*/F.createElement(Zp,ob({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(ab,{onClick:function(){return u(!l)},"aria-label":c,variant:"ghost"},n))});function lb(){return lb=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},lb.apply(this,arguments)}function ub(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(sb.displayName="PasswordInput");var cb=["options","spacing","direction"],db=["onBlur","onChange"],fb=["value","label"],pb=pa(function(e,t){var n=e.options,r=e.spacing,a=e.direction,o=ub(e,cb),i=o.onBlur,s=o.onChange,l=ub(o,db);return F.createElement(gg,lb({onChange:s},l),/*#__PURE__*/F.createElement(ev,{spacing:r,direction:a},n.map(function(e,n){var r=e.value,a=e.label,o=ub(e,fb);return F.createElement(_g,lb({key:n,onBlur:i,value:r,ref:t},o),a||r)})))});function mb(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 vb(){return vb=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},vb.apply(this,arguments)}function hb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(pb.displayName="RadioInput");var yb=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],gb=["value","label"],bb=pa(function(e,t){var n=ya("Input",e),r=n.field._focusVisible,a=vb({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 F.createElement(vy,vb({as:jf},e,{ref:t,sx:a}))});t.__DEV__&&(bb.displayName="SelectButton");var Eb=pa(function(e,n){var r=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,u=e.placeholder,c=e.isDisabled,d=e.leftIcon,f=e.rightIcon,p=void 0===f?/*#__PURE__*/F.createElement(Kg,null):f,m=e.multiple,v=e.size,h=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=oa(hb(e,yb)),x=F.useState(l||s),_=x[0],w=x[1],k=rp({name:r}),S={isDisabled:c,leftIcon:d,rightIcon:p,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,n=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 mb(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)?mb(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.")}(a);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[a]),O=_?(Array.isArray(_)?_:[_]).map(C):[];return F.createElement(py,vb({},E,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(bb,vb({ref:n},S),b(O)||u),/*#__PURE__*/F.createElement(gy,vb({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/F.createElement(wy,{defaultValue:s||l,onChange:function(e){w(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var n=e.value,r=e.label,a=hb(e,gb);return F.createElement(_y,vb({key:t,value:n},a),r||n)}):o)),/*#__PURE__*/F.createElement(ba.input,vb({},k,{name:r,type:"hidden",value:_,className:"saas-select__input"}))))});t.__DEV__&&(Eb.displayName="Select");var xb=["options","children"],_b=pa(function(e,t){var n=e.options,r=e.children,a=hb(e,xb);return F.createElement(Ng,vb({ref:t},a),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function wb(){return wb=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},wb.apply(this,arguments)}function kb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(_b.displayName="NativeSelect");var Sb=tn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Cb=Sb[0],Ob=Sb[1];function Ab(e){var t=e.step,n=e.onChange,r=F.useState(-1),a=r[0],o=r[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),u=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?u(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==n||n(a)},[a,n]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:u,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var Nb=["orientation","children"],Rb=["children","orientation","step","onChange"],Ib=["children","orientation","stepComponent"],Pb=["children","isOpen"],Tb=["icon","isActive","isCompleted","className"],Lb=["name","title","icon","isActive","isCompleted"],Db=["isActive"],Mb=aa("Stepper"),Vb=Mb[0],jb=Mb[1],Bb=pa(function(e,t){var n=e.orientation,r=e.children,a=kb(e,Nb);return F.createElement(Fb,wb({ref:t,orientation:n},a),/*#__PURE__*/F.createElement(zb,{orientation:n},r))});t.__DEV__&&(Bb.displayName="Stepper");var Fb=pa(function(e,n){var r=e.children,a=e.orientation,o=void 0===a?"horizontal":a,i=kb(e,Rb),s=ya("Stepper",wb({},i,{orientation:o})),l=oa(i),u=Ab(e),c=wb({display:"flex",flexDirection:"column"},s.container);return F.createElement(Vb,{value:s},/*#__PURE__*/F.createElement(Cb,{value:u},/*#__PURE__*/F.createElement(ba.div,wb({ref:n,__css:c},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(Fb.displayName="StepperContainer");var zb=function(e){var n,r,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,u=kb(e,Ib),c=jb(),d=Ob().activeIndex,f=wb({display:"flex",flexDirection:"row",alignItems:"center"},c.steps),p="vertical"===s,m=l||Ub,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/F.createElement(m,wb({key:n},t.props,{icon:t.props.icon||n+1,isActive:d===n,isCompleted:t.props.isCompleted||d>n}))),p&&e.push(/*#__PURE__*/F.createElement(Hb,{key:"content-"+n,isOpen:d===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/F.createElement($b,{key:"separator-"+n,isActive:n<d})),e},[]),y=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,Yb),g=d>=v.length?y:p?null:/*#__PURE__*/F.createElement(Hb,null,null==(n=v[d])||null==(r=n.props)?void 0:r.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(ba.div,wb({__css:f},u,{className:t.cx("saas-stepper__steps",e.className)}),h),g)};t.__DEV__&&(zb.displayName="StepperSteps");var Hb=function(e){var n=e.children,r=e.isOpen,a=void 0===r||r,o=kb(e,Pb),i=jb();return F.createElement(ba.div,wb({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement(Jd,{in:a},n))};t.__DEV__&&(Hb.displayName="StepperContent");var Wb=function(e){var n,r=e.icon,a=e.isCompleted,o=e.className,i=kb(e,Tb),s=wb({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},jb().icon);return n=a?/*#__PURE__*/F.createElement(qg,{as:Jg}):r,/*#__PURE__*/F.createElement(ba.div,wb({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),n)};t.__DEV__&&(Wb.displayName="StepperIcon");var Ub=function(e){var n=e.title,r=e.icon,a=e.isActive,o=e.isCompleted,i=kb(e,Lb),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,a=Ob(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=wb({display:"flex",alignItems:"center",flexDirection:"row"},jb().step);return F.createElement(ba.div,wb({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(Wb,{icon:r,isActive:a,isCompleted:o}),n&&/*#__PURE__*/F.createElement(qb,null,n))};t.__DEV__&&(Ub.displayName="StepperStep");var $b=function(e){var n=e.isActive,r=kb(e,Db),a=wb({flex:1,mx:2},jb().separator);return F.createElement(ba.div,wb({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&($b.displayName="StepperSeparator");var qb=function(e){var n=jb();return F.createElement(ba.p,wb({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(qb.displayName="StepperStepTitle");var Yb=function(e){var n=jb();return F.createElement(ba.div,wb({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function Zb(){return Zb=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},Zb.apply(this,arguments)}function Gb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Yb.displayName="StepperCompleted");var Xb=["name","label","help","variant","hideLabel","children"],Kb=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],Jb=["name","rules"],Qb=["ref"],eE=["name","rules"],tE=["ref"],nE=["type","leftAddon","rightAddon","size"],rE=["type"],aE=["label","type"],oE=["pinLength","pinType","spacing"],iE={},sE=function(e){var t=e.name,r=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=Gb(e,Xb),u=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return F.createElement(Qf,Zb({variant:o},l,{isInvalid:!!u}),r&&!i?/*#__PURE__*/F.createElement(dp,{variant:o},r):null,/*#__PURE__*/F.createElement(xm,null,s,!a||null!=u&&u.message?null:/*#__PURE__*/F.createElement(ep,null,a),(null==u?void 0:u.message)&&/*#__PURE__*/F.createElement(lp,null,null==u?void 0:u.message)))};t.__DEV__&&(sE.displayName="BaseField");var lE=F.forwardRef(function(e,t){var n=e.type;return F.createElement(iE[void 0===n?"text":n]||iE.text,Zb({ref:t},e))}),uE=function(e,t,r){var a;a=null!=r&&r.isControlled?function(e){return pa(function(t,r){var a=t.name,o=t.rules,i=Gb(t,Jb),s=n.useFormContext();return F.createElement(n.Controller,{name:a,control:s.control,rules:o,render:function(t){var n=t.field.ref,a=Gb(t.field,Qb);return F.createElement(e,Zb({},a,i,{ref:vn(r,n)}))}})})}(t):function(e){return pa(function(t,r){var a=t.name,o=t.rules,i=Gb(t,eE),s=(0,n.useFormContext().register)(a,o),l=s.ref,u=Gb(s,tE);return F.createElement(e,Zb({},u,i,{ref:vn(r,l)}))})}(t);var o=function(e,t){var n=t.displayName,r=t.hideLabel,a=t.BaseField,o=pa(function(t,n){var o=t.id,i=t.name,s=t.label,l=t.help,u=t.isDisabled,c=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.rules,m=t.variant,v=Gb(t,Kb),h=Zb({required:f},p);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:r,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f,variant:m},/*#__PURE__*/F.createElement(e,Zb({ref:n,id:o,name:i,label:r?s:void 0,rules:h},v)))});return o.displayName=n,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||sE});return iE[e]=o,o};uE("text",pa(function(e,t){var n=e.type,r=void 0===n?"text":n,a=e.leftAddon,o=e.rightAddon,i=e.size,s=Gb(e,nE),l=/*#__PURE__*/F.createElement(Zp,Zb({type:r,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Qp,{size:i},a,l,o):l})),uE("number",Hg,{isControlled:!0}),uE("password",pa(function(e,t){/*#__PURE__*/return F.createElement(sb,Zb({ref:t},e))})),uE("textarea",Bg),uE("switch",pa(function(e,t){var n=Gb(e,rE);return F.createElement(Dg,Zb({},n,{ref:t}))}),{isControlled:!0}),uE("select",Eb,{isControlled:!0}),uE("checkbox",pa(function(e,t){var n=e.label,r=Gb(e,aE);return F.createElement(Fp,Zb({ref:t},r),n)}),{hideLabel:!0}),uE("radio",pb,{isControlled:!0}),uE("native-select",_b,{isControlled:!0}),uE("pin",pa(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,a=e.pinType,o=e.spacing,i=Gb(e,oE),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/F.createElement(cg,{key:l,ref:t}));return F.createElement(tv,{spacing:o},/*#__PURE__*/F.createElement(ug,Zb({},i,{type:a}),s))}),{isControlled:!0});var cE=["items","label","title"],dE=function(e){return e&&Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n.label,a=n.title;return Zb({},Gb(n,cE),{name:t,label:r||a})})},fE=function(e){return{getFields:function(){return dE(e)},getNestedFields:function(n){var r,a=t.get(e,n);return a?"object"===(null==(r=a.items)?void 0:r.type)?dE(a.items.properties):"object"===a.type?dE(a.properties):[a.items]:[]}}},pE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],mE=pa(function(e,r){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,u=e.shouldUnregister,c=e.shouldUseNativeValidation,d=e.criteriaMode,f=e.delayError,p=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,y=e.formRef,g=e.children,b=Gb(e,pE),E={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:u,shouldUseNativeValidation:c,criteriaMode:d,delayError:f};p&&!i&&(E.resolver=null==mE.getResolver?void 0:mE.getResolver(p));var x=n.useForm(E),_=x.handleSubmit;return F.useImperativeHandle(r,function(){return x},[r,x]),/*#__PURE__*/F.createElement(n.FormProvider,x,/*#__PURE__*/F.createElement(ba.form,Zb({ref:y,onSubmit:_(v,h)},b,{className:t.cx("saas-form",e.className)}),g))});mE.getFieldResolver=fE,t.__DEV__&&(mE.displayName="Form");var vE=["children"],hE=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(hE.displayName="FormLayoutItem");var yE=function(e){var n,r,a,o=e.children,i=Gb(e,vE),s=Zb({},null!=(n=null==(r=ra().components)||null==(a=r.FormLayout)?void 0:a.defaultProps)?n:{spacing:4},i);return F.createElement(Gm,Zb({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(hE,null,e):e}))};t.__DEV__&&(yE.displayName="FormLayout");var gE=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,Zb({},t.props,{name:e+"."+t.props.name})):t})},bE=tn({name:"ArrayFieldContext"}),EE=bE[0],xE=bE[1],_E=tn({name:"ArrayFieldRowContext"}),wE=_E[0],kE=_E[1],SE=["children","index"],CE=["children"],OE=["children"],AE=["name","defaultValue","keyName","min","max","children"],NE=function(e){var t=e.children,n=e.index,r=Gb(e,SE);return F.createElement(IE,{index:n},/*#__PURE__*/F.createElement(RE,r,t),/*#__PURE__*/F.createElement(PE,null))};t.__DEV__&&(NE.displayName="ArrayFieldRow");var RE=function(e){var t=e.children,n=Gb(e,CE),r=kE().name;return F.createElement(yE,Zb({flex:"1",mr:"2"},n),gE(r,t))};t.__DEV__&&(RE.displayName="ArrayFieldRowFields");var IE=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,a=xE(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){r(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){r(o),i(t)},[t])}}({index:e.index});return F.createElement(wE,{value:r},/*#__PURE__*/F.createElement(ba.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(IE.displayName="ArrayFieldRowContainer");var PE=function(e){/*#__PURE__*/return F.createElement(zf,Zb({icon:/*#__PURE__*/F.createElement(Qg,null),"aria-label":"Remove row"},function(){var e=kE(),t=e.isFirst,n=e.remove,r=xE(),a=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(a&&r.fields.length<=a)}}(),e))};t.__DEV__&&(PE.displayName="ArrayFieldRemoveButton");var TE=function(e){/*#__PURE__*/return F.createElement(zf,Zb({icon:/*#__PURE__*/F.createElement(Zg,null),"aria-label":"Add row",float:"right"},function(){var e=xE(),t=e.append,n=e.defaultValue,r=e.max;return{onClick:function(){return t(n,{shouldFocus:!1})},isDisabled:!!(r&&e.fields.length>=r)}}(),e))};t.__DEV__&&(TE.displayName="ArrayFieldAddButton");var LE=pa(function(e,t){var n=e.children,r=Gb(e,OE);return F.createElement(ME,Zb({ref:t},r),/*#__PURE__*/F.createElement(DE,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(NE,{key:e.id,index:t},n)}))}),/*#__PURE__*/F.createElement(TE,null))});t.__DEV__&&(LE.displayName="ArrayField");var DE=function(e){return(0,e.children)(xE().fields)};t.__DEV__&&(DE.displayName="ArrayFieldRows");var ME=F.forwardRef(function(e,t){var r=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,u=Gb(e,AE),c=function(e){var t=e.name,r=e.defaultValue,a=void 0===r?{}:r,o=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return Zb({},n.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:r,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return c},[t,c]),/*#__PURE__*/F.createElement(EE,{value:c},/*#__PURE__*/F.createElement(sE,Zb({name:r},u),l))});t.__DEV__&&(ME.displayName="ArrayFieldContainer");var VE=["name","label","hideLabel","children","columns","spacing"],jE=function(e){var t=ha("FormLegend");return F.createElement(dp,Zb({as:"legend",sx:t},e))},BE=function(e){var t=e.name,n=e.label,r=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=Gb(e,VE);return F.createElement(Qf,Zb({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(jE,{display:r?"none":"block"},n),/*#__PURE__*/F.createElement(yE,{columns:o,gridGap:i},gE(t,a)))};t.__DEV__&&(BE.displayName="ObjectField");var FE=["name","type"],zE=["schema","fieldResolver","focusFirstField"],HE=["name","type","defaultValue"],WE=function(e,t){var n;return null==(n=e.getNestedFields(t))?void 0:n.map(function(e,t){var n=e.name,r=e.type,a=Gb(e,FE);return F.createElement(lE,Zb({key:n||t,name:n,type:r},a))})},UE=function(e){var t=e.schema,r=e.fieldResolver,a=e.focusFirstField,o=Gb(e,zE),i=F.useMemo(function(){return r||mE.getFieldResolver(t)},[t,r]),s=F.useMemo(function(){return i.getFields()},[i]),l=n.useFormContext();return F.useEffect(function(){var e;a&&null!=(e=s[0])&&e.name&&l.setFocus(s[0].name)},[t,r,a]),/*#__PURE__*/F.createElement(yE,o,s.map(function(e){var t=e.name,n=e.type,r=Gb(e,HE);return"array"===n?/*#__PURE__*/F.createElement(LE,Zb({key:t,name:t},r),WE(i,t)):"object"===n?/*#__PURE__*/F.createElement(BE,Zb({key:t,name:t},r),WE(i,t)):/*#__PURE__*/F.createElement(lE,Zb({key:t,name:t,type:n},r))}))};t.__DEV__&&(UE.displayName="Fields");var $E=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],qE=F.forwardRef(function(e,t){var r=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=Gb(e,$E),u=n.useFormContext().formState;return F.createElement(nb,Zb({},l,{ref:t,variant:"primary",type:"submit",isLoading:u.isSubmitting||s,isDisabled:a&&!u.isDirty||o&&!u.isValid||i}),r)});qE.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(qE.displayName="SubmitButton");var YE=["schema","submitLabel","fieldResolver","children"],ZE=pa(function(e,t){var n=e.schema,r=e.submitLabel,a=void 0===r?"Submit":r,o=e.fieldResolver,i=e.children,s=Gb(e,YE);return F.createElement(mE,Zb({},s,{schema:n,ref:t}),/*#__PURE__*/F.createElement(yE,null,/*#__PURE__*/F.createElement(UE,{schema:n,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(qE,null,a),i))});t.__DEV__&&(ZE.displayName="AutoForm");var GE=["onChange"],XE=tn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],KE=["children"],JE=["getFormProps"];F.forwardRef(function(e,n){var r=e.children,a=Gb(e,KE),o=function(e){var t=Ab(Gb(e,GE)),n=t.activeStep,r=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[n];if(r)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){c(Zb({},s,{isCompleted:!0}))}).then(a));var l=function(e,n){try{var r=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return r&&r.then?r.then(void 0,function(){}):r}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,n,r]),u=F.useCallback(function(){var e=i[n];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,n]),c=F.useCallback(function(e){s(function(t){var n;return Zb({},t,((n={})[e.name]=e,n))})},[i]);return Zb({getFormProps:u,updateStep:c,steps:i},t)}(e),i=o.getFormProps,s=Gb(o,JE),l=F.useMemo(function(){return s},[s]);return F.createElement(Cb,{value:l},/*#__PURE__*/F.createElement(XE,{value:l},/*#__PURE__*/F.createElement(mE,Zb({ref:n},a,i()),t.runIfFn(r,o))))});var QE=function(e){return fE(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:QE(t),resolver:e.ajvResolver(t)}};
84
+ return F.createElement(fg,{value:i},/*#__PURE__*/F.createElement(hg,{value:s},l))};t.__DEV__&&(_g.displayName="PinInput");var wg=/*#__PURE__*/pa(function(e,n){var r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=yg().getInputProps,r=mg(),a=r.index;return n(lg({},e,{ref:en(r.register,t),index:a}))}(e,n);/*#__PURE__*/
85
+ return F.createElement(ba.input,lg({},r,{className:t.cx("chakra-pin-input",e.className)}))});function kg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return 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)}t.__DEV__&&(wg.displayName="PinInputField");var Cg=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],Og=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],Ag=tn({name:"RadioGroupContext",strict:!1}),Ng=Ag[0],Rg=Ag[1],Ig=/*#__PURE__*/pa(function(e,n){var r=e.colorScheme,a=e.size,o=e.variant,i=e.children,s=e.className,l=e.isDisabled,u=e.isFocusable,c=function(e){void 0===e&&(e={});var n=e.onChange,r=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,u=kg(e,Cg),c=F.useState(a||""),d=c[1],f=ln(r,c[0]),p=f[0],m=f[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.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()}}},[]),y=dn(void 0,"radio"),g=o||y,b=F.useCallback(function(e){var r=t.isInputEvent(e)?e.target.value:e;p||d(r),null==n||n(String(r))},[n,p]),E=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Sg({},e,{ref:en(t,v),role:"radiogroup"})},[]),x=F.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),Sg({},e,((n={ref:t,name:g})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,n.onChange=b,n["data-radiogroup"]=!0,n))},[l,g,b,m]);return{getRootProps:E,getRadioProps:x,name:g,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:u}}(kg(e,Og)),d=c.value,f=c.onChange,p=c.getRootProps,m=c.name,v=c.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:f,colorScheme:r,value:d,variant:o,isDisabled:l,isFocusable:u}},[m,a,f,r,d,o,l,u]),y=p(v,n),g=t.cx("chakra-radio-group",s);/*#__PURE__*/
86
+ return F.createElement(Ng,{value:h},/*#__PURE__*/F.createElement(ba.div,Sg({},y,{className:g}),i))});t.__DEV__&&(Ig.displayName="RadioGroup");var Pg=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function Tg(e){e.preventDefault(),e.stopPropagation()}var Lg=["spacing","children","isDisabled","isFocusable","inputProps"],Dg=/*#__PURE__*/pa(function(e,n){var r,a=Rg(),o=e.onChange,i=e.value,s=ya("Radio",Sg({},a,e)),l=oa(e),u=l.spacing,c=void 0===u?"0.5rem":u,d=l.children,f=l.isDisabled,p=void 0===f?null==a?void 0:a.isDisabled:f,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,y=kg(l,Lg),g=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(g=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var E=function(e){void 0===e&&(e={});var n=e.defaultChecked,r=e.isChecked,a=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=kg(e,Pg),h=dn(void 0,"radio"),y=dp(),g=Rg(),b=!y||g||p?h:y.id;b=null!=f?f:b;var E=null!=o?o:null==y?void 0:y.isDisabled,x=null!=i?i:null==y?void 0:y.isReadOnly,_=null!=s?s:null==y?void 0:y.isRequired,w=null!=u?u:null==y?void 0:y.isInvalid,k=F.useState(!1),S=k[0],C=k[1],O=sn(),A=O[0],N=O[1],R=sn(),I=R[0],P=R[1],T=sn(),L=T[0],D=T[1],M=F.useState(Boolean(n)),V=M[1],j=ln(r,M[0]),B=j[0],z=j[1];F.useEffect(function(){return Vp(C)},[]);var W=F.useCallback(function(e){x||E?e.preventDefault():(B||V(e.target.checked),null==l||l(e))},[B,E,x,l]),H=F.useCallback(function(e){" "===e.key&&D.on()},[D]),U=F.useCallback(function(e){" "===e.key&&D.off()},[D]),$=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sg({},e,{ref:n,"data-active":t.dataAttr(L),"data-hover":t.dataAttr(I),"data-disabled":t.dataAttr(E),"data-invalid":t.dataAttr(w),"data-checked":t.dataAttr(z),"data-focus":t.dataAttr(A),"data-focus-visible":t.dataAttr(A&&S),"data-readonly":t.dataAttr(x),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,D.on),onMouseUp:t.callAllHandlers(e.onMouseUp,D.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,P.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,P.off)})},[L,I,E,w,z,A,x,D.on,D.off,P.on,P.off,S]),q=null!=y?y:{},Y=q.onFocus,Z=q.onBlur,G=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=E&&!a;return Sg({},e,{id:b,ref:n,type:"radio",name:c,value:d,onChange:t.callAllHandlers(e.onChange,W),onBlur:t.callAllHandlers(Z,e.onBlur,N.off),onFocus:t.callAllHandlers(Y,e.onFocus,N.on),onKeyDown:t.callAllHandlers(e.onKeyDown,H),onKeyUp:t.callAllHandlers(e.onKeyUp,U),checked:z,disabled:r,readOnly:x,required:_,"aria-invalid":t.ariaAttr(w),"aria-disabled":t.ariaAttr(r),"aria-required":t.ariaAttr(_),"data-readonly":t.dataAttr(x),"aria-describedby":m,style:Ea})},[E,a,b,c,d,W,Z,N,Y,H,U,z,x,_,w,m]);return{state:{isInvalid:w,isFocused:A,isChecked:z,isActive:L,isHovered:I,isDisabled:E,isReadOnly:x,isRequired:_},getCheckboxProps:$,getInputProps:G,getLabelProps:function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Sg({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,Tg),onTouchStart:t.callAllHandlers(e.onTouchStart,Tg),"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(z),"data-invalid":t.dataAttr(w)})},getRootProps:function(e,n){return void 0===n&&(n=null),Sg({},e,{ref:n,"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(z),"data-invalid":t.dataAttr(w)})},htmlProps:v}}(Sg({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(r=null==e?void 0:e.name)?r:null==a?void 0:a.name})),x=E.getInputProps,_=E.getCheckboxProps,w=E.getLabelProps,k=E.getRootProps,S=t.split(E.htmlProps,Dr),C=S[0],O=_(S[1]),A=x(h,n),N=w(),R=Object.assign({},C,k()),I=Sg({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),P=Sg({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),T=Sg({userSelect:"none",marginStart:c},s.label);/*#__PURE__*/
87
+ return F.createElement(ba.label,Sg({className:"chakra-radio"},R,{__css:I}),/*#__PURE__*/F.createElement("input",Sg({className:"chakra-radio__input"},A)),/*#__PURE__*/F.createElement(ba.span,Sg({className:"chakra-radio__control"},O,{__css:P})),d&&/*#__PURE__*/F.createElement(ba.span,Sg({className:"chakra-radio__label"},N,{__css:T}),d))});function Mg(){return Mg=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},Mg.apply(this,arguments)}function Vg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Dg.displayName="Radio");var jg=["children","placeholder","className"],Bg=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Fg=["children"],zg=/*#__PURE__*/pa(function(e,n){var r=e.children,a=e.placeholder,o=e.className,i=Vg(e,jg);/*#__PURE__*/
88
+ return F.createElement(ba.select,Mg({},i,{ref:n,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),r)});t.__DEV__&&(zg.displayName="SelectField");var Wg=/*#__PURE__*/pa(function(e,n){var r=ya("Select",e),a=oa(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,u=a.height,c=a.h,d=a.minH,f=a.minHeight,p=a.iconColor,m=a.iconSize,v=Vg(a,Bg),h=t.split(v,Dr),y=h[0],g=hp(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},E=t.mergeWith({paddingEnd:"2rem"},r.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
89
+ return F.createElement(ba.div,Mg({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/F.createElement(zg,Mg({ref:n,height:null!=c?c:u,minH:null!=d?d:f,placeholder:i},g,{__css:E}),e.children),/*#__PURE__*/F.createElement($g,Mg({"data-disabled":t.dataAttr(g.disabled)},(p||l)&&{color:p||l},{__css:r.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Wg.displayName="Select");var Hg=function(e){/*#__PURE__*/
90
+ return F.createElement("svg",Mg({viewBox:"0 0 24 24"},e),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Ug=ba("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),$g=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/F.createElement(Hg,null):t,r=Vg(e,Fg),a=/*#__PURE__*/F.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
91
+ return F.createElement(Ug,Mg({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(n)?a: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)}t.__DEV__&&($g.displayName="SelectIcon");var Yg=["spacing","children"],Zg=/*#__PURE__*/pa(function(e,n){var r=ya("Switch",e),a=oa(e),o=a.spacing,i=void 0===o?"0.5rem":o,s=a.children,l=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,Yg),u=Zp(l),c=u.state,d=u.getInputProps,f=u.getCheckboxProps,p=u.getRootProps,m=u.getLabelProps,v=F.useMemo(function(){return qg({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)},[r.container]),h=F.useMemo(function(){return qg({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)},[r.track]),y=F.useMemo(function(){return qg({userSelect:"none",marginStart:i},r.label)},[i,r.label]);/*#__PURE__*/
92
+ return F.createElement(ba.label,qg({},p(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",qg({className:"chakra-switch__input"},d({},n))),/*#__PURE__*/F.createElement(ba.span,qg({},f(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(ba.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(c.isChecked),"data-hover":t.dataAttr(c.isHovered)})),s&&/*#__PURE__*/F.createElement(ba.span,qg({className:"chakra-switch__label"},m(),{__css:y}),s))});function Gg(){return Gg=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},Gg.apply(this,arguments)}t.__DEV__&&(Zg.displayName="Switch");var Xg=["className","rows"],Kg=["h","minH","height","minHeight"],Jg=/*#__PURE__*/pa(function(e,n){var r=ha("Textarea",e),a=oa(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,Xg),l=hp(s),u=i?t.omit(r,Kg):r;/*#__PURE__*/
93
+ return F.createElement(ba.textarea,Gg({ref:n,rows:i},l,{className:t.cx("chakra-textarea",o),__css:u}))});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)}t.__DEV__&&(Jg.displayName="Textarea");var eb=["hideStepper","incrementIcon","decrementIcon"],tb=pa(function(e,t){var n=e.hideStepper,r=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,eb);return F.createElement(ng,Qg({},o,{ref:t}),/*#__PURE__*/F.createElement(ag,null),!n&&/*#__PURE__*/F.createElement(rg,null,/*#__PURE__*/F.createElement(sg,{children:r}),/*#__PURE__*/F.createElement(ig,{children:a})))});function nb(){return nb=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},nb.apply(this,arguments)}tb.defaultProps={hideStepper:!1},t.__DEV__&&(tb.displayName="NumberInput");var rb=["as","viewBox","color","focusable","children","className","__css"],ab={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.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__*/F.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__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},ob=/*#__PURE__*/pa(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,u=e.children,c=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,rb),p={ref:n,focusable:l,className:t.cx("chakra-icon",c),__css:nb({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:ab.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
94
+ return F.createElement(ba.svg,nb({as:r},p,f));var v=null!=u?u:ab.path;/*#__PURE__*/
95
+ return F.createElement(ba.svg,nb({verticalAlign:"middle",viewBox:m},p,f),v)});function ib(e){var n=e.viewBox,r=void 0===n?"0 0 24 24":n,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),u=/*#__PURE__*/pa(function(e,t){/*#__PURE__*/
96
+ return F.createElement(ob,nb({ref:t,viewBox:r},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(u.displayName=o),u}t.__DEV__&&(ob.displayName="Icon"),ib({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"}),ib({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"}),ib({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"}),ib({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"}),ib({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var sb=ib({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"});ib({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.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"})}),ib({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"}),ib({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"}),ib({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"}),ib({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 lb=ib({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),ub=ib({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))});ib({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"}),ib({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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"}))}),ib({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.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__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),ib({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),ib({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var cb=ib({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});ib({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),ib({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),ib({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),ib({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),ib({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"}),ib({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),ib({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),ib({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),ib({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"}),ib({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"}),ib({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({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"}),ib({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"}),ib({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"}),ib({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"}),ib({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.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__*/F.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"}))}),ib({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"}),ib({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"}),ib({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),ib({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"}),ib({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.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"})}),ib({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"}),ib({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"}),ib({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"}),ib({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),ib({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"}),ib({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"}),ib({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"}),ib({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.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__*/F.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__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),ib({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"}),ib({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 db=ib({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),fb=ib({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function pb(){return pb=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},pb.apply(this,arguments)}ib({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"});var mb=["label","children"],vb=pa(function(e,t){var n=e.label,r=e.children,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,mb);return F.createElement(Kf,pb({ref:t},a),r||n)});function hb(){return hb=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},hb.apply(this,arguments)}t.__DEV__&&(vb.displayName="Button");var yb=pa(function(e,t){/*#__PURE__*/return F.createElement(Sm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(vb,hb({ref:t,height:"auto"},e)))});function gb(){return gb=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},gb.apply(this,arguments)}yb.id="InputRightElement",t.__DEV__&&(yb.displayName="InputRightButton");var bb=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],Eb=pa(function(e,t){var n,r=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=e.w,s=e.width,l=e.size,u=e.variant,c=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,bb),d=F.useState(!1),f=d[0],p=d[1],m=f?"Hide password":"Show password";return n=f?r||/*#__PURE__*/F.createElement(lb,null):a||/*#__PURE__*/F.createElement(ub,null),/*#__PURE__*/F.createElement(fm,{width:i||s,size:l,variant:u},/*#__PURE__*/F.createElement(sm,gb({},c,{ref:t,type:f?"text":"password",autoComplete:f?"off":o})),/*#__PURE__*/F.createElement(yb,{onClick:function(){return p(!f)},"aria-label":m,variant:"ghost"},n))});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 _b(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Eb.displayName="PasswordInput");var wb=["options","spacing","direction"],kb=["onBlur","onChange"],Sb=["value","label"],Cb=pa(function(e,t){var n=e.options,r=e.spacing,a=e.direction,o=_b(e,wb),i=o.onBlur,s=o.onChange,l=_b(o,kb);return F.createElement(Ig,xb({onChange:s},l),/*#__PURE__*/F.createElement(pv,{spacing:r,direction:a},n.map(function(e,n){var r=e.value,a=e.label,o=_b(e,Sb);return F.createElement(Dg,xb({key:n,onBlur:i,value:r,ref:t},o),a||r)})))});function Ob(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 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)}function Nb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Cb.displayName="RadioInput");var Rb=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Ib=["value","label"],Pb=pa(function(e,t){var n=ya("Input",e),r=n.field._focusVisible,a=Ab({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 F.createElement(Ay,Ab({as:Kf},e,{ref:t,sx:a}))});t.__DEV__&&(Pb.displayName="SelectButton");var Tb=pa(function(e,n){var r=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,u=e.placeholder,c=e.isDisabled,d=e.leftIcon,f=e.rightIcon,p=void 0===f?/*#__PURE__*/F.createElement(cb,null):f,m=e.multiple,v=e.size,h=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=oa(Nb(e,Rb)),x=F.useState(l||s),_=x[0],w=x[1],k=hp({name:r}),S={isDisabled:c,leftIcon:d,rightIcon:p,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,n=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 Ob(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)?Ob(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.")}(a);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[a]),O=_?(Array.isArray(_)?_:[_]).map(C):[];return F.createElement(Cy,Ab({},E,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Pb,Ab({ref:n},S),b(O)||u),/*#__PURE__*/F.createElement(Iy,Ab({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/F.createElement(My,{defaultValue:s||l,onChange:function(e){w(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var n=e.value,r=e.label,a=Nb(e,Ib);return F.createElement(Dy,Ab({key:t,value:n},a),r||n)}):o)),/*#__PURE__*/F.createElement(ba.input,Ab({},k,{name:r,type:"hidden",value:_,className:"saas-select__input"}))))});t.__DEV__&&(Tb.displayName="Select");var Lb=["options","children"],Db=pa(function(e,t){var n=e.options,r=e.children,a=Nb(e,Lb);return F.createElement(Wg,Ab({ref:t},a),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function Mb(){return Mb=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},Mb.apply(this,arguments)}function Vb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Db.displayName="NativeSelect");var jb=tn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Bb=jb[0],Fb=jb[1];function zb(e){var t=e.step,n=e.onChange,r=F.useState(-1),a=r[0],o=r[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),u=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?u(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==n||n(a)},[a,n]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:u,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var Wb=["orientation","children"],Hb=["children","orientation","step","onChange"],Ub=["children","orientation","stepComponent"],$b=["children","isOpen"],qb=["icon","isActive","isCompleted","className"],Yb=["name","title","icon","isActive","isCompleted"],Zb=["isActive"],Gb=aa("Stepper"),Xb=Gb[0],Kb=Gb[1],Jb=pa(function(e,t){var n=e.orientation,r=e.children,a=Vb(e,Wb);return F.createElement(Qb,Mb({ref:t,orientation:n},a),/*#__PURE__*/F.createElement(eE,{orientation:n},r))});t.__DEV__&&(Jb.displayName="Stepper");var Qb=pa(function(e,n){var r=e.children,a=e.orientation,o=void 0===a?"horizontal":a,i=Vb(e,Hb),s=ya("Stepper",Mb({},i,{orientation:o})),l=oa(i),u=zb(e),c=Mb({display:"flex",flexDirection:"column"},s.container);return F.createElement(Xb,{value:s},/*#__PURE__*/F.createElement(Bb,{value:u},/*#__PURE__*/F.createElement(ba.div,Mb({ref:n,__css:c},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(Qb.displayName="StepperContainer");var eE=function(e){var n,r,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,u=Vb(e,Ub),c=Kb(),d=Fb().activeIndex,f=Mb({display:"flex",flexDirection:"row",alignItems:"center"},c.steps),p="vertical"===s,m=l||rE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/F.createElement(m,Mb({key:n},t.props,{icon:t.props.icon||n+1,isActive:d===n,isCompleted:t.props.isCompleted||d>n}))),p&&e.push(/*#__PURE__*/F.createElement(tE,{key:"content-"+n,isOpen:d===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/F.createElement(aE,{key:"separator-"+n,isActive:n<d})),e},[]),y=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,iE),g=d>=v.length?y:p?null:/*#__PURE__*/F.createElement(tE,null,null==(n=v[d])||null==(r=n.props)?void 0:r.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(ba.div,Mb({__css:f},u,{className:t.cx("saas-stepper__steps",e.className)}),h),g)};t.__DEV__&&(eE.displayName="StepperSteps");var tE=function(e){var n=e.children,r=e.isOpen,a=void 0===r||r,o=Vb(e,$b),i=Kb();return F.createElement(ba.div,Mb({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement(ff,{in:a},n))};t.__DEV__&&(tE.displayName="StepperContent");var nE=function(e){var n,r=e.icon,a=e.isCompleted,o=e.className,i=Vb(e,qb),s=Mb({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Kb().icon);return n=a?/*#__PURE__*/F.createElement(ob,{as:db}):r,/*#__PURE__*/F.createElement(ba.div,Mb({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),n)};t.__DEV__&&(nE.displayName="StepperIcon");var rE=function(e){var n=e.title,r=e.icon,a=e.isActive,o=e.isCompleted,i=Vb(e,Yb),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,a=Fb(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=Mb({display:"flex",alignItems:"center",flexDirection:"row"},Kb().step);return F.createElement(ba.div,Mb({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(nE,{icon:r,isActive:a,isCompleted:o}),n&&/*#__PURE__*/F.createElement(oE,null,n))};t.__DEV__&&(rE.displayName="StepperStep");var aE=function(e){var n=e.isActive,r=Vb(e,Zb),a=Mb({flex:1,mx:2},Kb().separator);return F.createElement(ba.div,Mb({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(aE.displayName="StepperSeparator");var oE=function(e){var n=Kb();return F.createElement(ba.p,Mb({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(oE.displayName="StepperStepTitle");var iE=function(e){var n=Kb();return F.createElement(ba.div,Mb({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function sE(){return sE=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},sE.apply(this,arguments)}function lE(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(iE.displayName="StepperCompleted");var uE=["name","label","help","variant","hideLabel","children"],cE=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],dE=["name","rules"],fE=["ref"],pE=["name","rules"],mE=["ref"],vE=["type","leftAddon","rightAddon","size"],hE=["type"],yE=["label","type"],gE=["pinLength","pinType","spacing"],bE={},EE=function(e){var t=e.name,r=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=lE(e,uE),u=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return F.createElement(fp,sE({variant:o},l,{isInvalid:!!u}),r&&!i?/*#__PURE__*/F.createElement(kp,{variant:o},r):null,/*#__PURE__*/F.createElement(Lm,null,s,!a||null!=u&&u.message?null:/*#__PURE__*/F.createElement(pp,null,a),(null==u?void 0:u.message)&&/*#__PURE__*/F.createElement(xp,null,null==u?void 0:u.message)))};t.__DEV__&&(EE.displayName="BaseField");var xE=F.forwardRef(function(e,t){var n=e.type;return F.createElement(bE[void 0===n?"text":n]||bE.text,sE({ref:t},e))}),_E=function(e,t,r){var a;a=null!=r&&r.isControlled?function(e){return pa(function(t,r){var a=t.name,o=t.rules,i=lE(t,dE),s=n.useFormContext();return F.createElement(n.Controller,{name:a,control:s.control,rules:o,render:function(t){var n=t.field.ref,a=lE(t.field,fE);return F.createElement(e,sE({},a,i,{ref:vn(r,n)}))}})})}(t):function(e){return pa(function(t,r){var a=t.name,o=t.rules,i=lE(t,pE),s=(0,n.useFormContext().register)(a,o),l=s.ref,u=lE(s,mE);return F.createElement(e,sE({},u,i,{ref:vn(r,l)}))})}(t);var o=function(e,t){var n=t.displayName,r=t.hideLabel,a=t.BaseField,o=pa(function(t,n){var o=t.id,i=t.name,s=t.label,l=t.help,u=t.isDisabled,c=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.rules,m=t.variant,v=lE(t,cE),h=sE({required:f},p);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:r,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f,variant:m},/*#__PURE__*/F.createElement(e,sE({ref:n,id:o,name:i,label:r?s:void 0,rules:h},v)))});return o.displayName=n,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||EE});return bE[e]=o,o};_E("text",pa(function(e,t){var n=e.type,r=void 0===n?"text":n,a=e.leftAddon,o=e.rightAddon,i=e.size,s=lE(e,vE),l=/*#__PURE__*/F.createElement(sm,sE({type:r,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(fm,{size:i},a,l,o):l})),_E("number",tb,{isControlled:!0}),_E("password",pa(function(e,t){/*#__PURE__*/return F.createElement(Eb,sE({ref:t},e))})),_E("textarea",Jg),_E("switch",pa(function(e,t){var n=lE(e,hE);return F.createElement(Zg,sE({},n,{ref:t}))}),{isControlled:!0}),_E("select",Tb,{isControlled:!0}),_E("checkbox",pa(function(e,t){var n=e.label,r=lE(e,yE);return F.createElement(Qp,sE({ref:t},r),n)}),{hideLabel:!0}),_E("radio",Cb,{isControlled:!0}),_E("native-select",Db,{isControlled:!0}),_E("pin",pa(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,a=e.pinType,o=e.spacing,i=lE(e,gE),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/F.createElement(wg,{key:l,ref:t}));return F.createElement(mv,{spacing:o},/*#__PURE__*/F.createElement(_g,sE({},i,{type:a}),s))}),{isControlled:!0});var wE=["items","label","title"],kE=function(e){return e&&Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n.label,a=n.title;return sE({},lE(n,wE),{name:t,label:r||a})})},SE=function(e){return{getFields:function(){return kE(e)},getNestedFields:function(n){var r,a=t.get(e,n);return a?"object"===(null==(r=a.items)?void 0:r.type)?kE(a.items.properties):"object"===a.type?kE(a.properties):[a.items]:[]}}},CE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],OE=pa(function(e,r){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,u=e.shouldUnregister,c=e.shouldUseNativeValidation,d=e.criteriaMode,f=e.delayError,p=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,y=e.formRef,g=e.children,b=lE(e,CE),E={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:u,shouldUseNativeValidation:c,criteriaMode:d,delayError:f};p&&!i&&(E.resolver=null==OE.getResolver?void 0:OE.getResolver(p));var x=n.useForm(E),_=x.handleSubmit;return F.useImperativeHandle(r,function(){return x},[r,x]),/*#__PURE__*/F.createElement(n.FormProvider,x,/*#__PURE__*/F.createElement(ba.form,sE({ref:y,onSubmit:_(v,h)},b,{className:t.cx("saas-form",e.className)}),g))});OE.getFieldResolver=SE,t.__DEV__&&(OE.displayName="Form");var AE=["children"],NE=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(NE.displayName="FormLayoutItem");var RE=function(e){var n,r,a,o=e.children,i=lE(e,AE),s=sE({},null!=(n=null==(r=ra().components)||null==(a=r.FormLayout)?void 0:a.defaultProps)?n:{spacing:4},i);return F.createElement(lv,sE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(NE,null,e):e}))};t.__DEV__&&(RE.displayName="FormLayout");var IE=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,sE({},t.props,{name:e+"."+t.props.name})):t})},PE=tn({name:"ArrayFieldContext"}),TE=PE[0],LE=PE[1],DE=tn({name:"ArrayFieldRowContext"}),ME=DE[0],VE=DE[1],jE=["children","index"],BE=["children"],FE=["children"],zE=["name","defaultValue","keyName","min","max","children"],WE=function(e){var t=e.children,n=e.index,r=lE(e,jE);return F.createElement(UE,{index:n},/*#__PURE__*/F.createElement(HE,r,t),/*#__PURE__*/F.createElement($E,null))};t.__DEV__&&(WE.displayName="ArrayFieldRow");var HE=function(e){var t=e.children,n=lE(e,BE),r=VE().name;return F.createElement(RE,sE({flex:"1",mr:"2"},n),IE(r,t))};t.__DEV__&&(HE.displayName="ArrayFieldRowFields");var UE=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,a=LE(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){r(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){r(o),i(t)},[t])}}({index:e.index});return F.createElement(ME,{value:r},/*#__PURE__*/F.createElement(ba.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(UE.displayName="ArrayFieldRowContainer");var $E=function(e){/*#__PURE__*/return F.createElement(ep,sE({icon:/*#__PURE__*/F.createElement(fb,null),"aria-label":"Remove row"},function(){var e=VE(),t=e.isFirst,n=e.remove,r=LE(),a=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(a&&r.fields.length<=a)}}(),e))};t.__DEV__&&($E.displayName="ArrayFieldRemoveButton");var qE=function(e){/*#__PURE__*/return F.createElement(ep,sE({icon:/*#__PURE__*/F.createElement(sb,null),"aria-label":"Add row",float:"right"},function(){var e=LE(),t=e.append,n=e.defaultValue,r=e.max;return{onClick:function(){return t(n,{shouldFocus:!1})},isDisabled:!!(r&&e.fields.length>=r)}}(),e))};t.__DEV__&&(qE.displayName="ArrayFieldAddButton");var YE=pa(function(e,t){var n=e.children,r=lE(e,FE);return F.createElement(GE,sE({ref:t},r),/*#__PURE__*/F.createElement(ZE,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(WE,{key:e.id,index:t},n)}))}),/*#__PURE__*/F.createElement(qE,null))});t.__DEV__&&(YE.displayName="ArrayField");var ZE=function(e){return(0,e.children)(LE().fields)};t.__DEV__&&(ZE.displayName="ArrayFieldRows");var GE=F.forwardRef(function(e,t){var r=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,u=lE(e,zE),c=function(e){var t=e.name,r=e.defaultValue,a=void 0===r?{}:r,o=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return sE({},n.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:r,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return c},[t,c]),/*#__PURE__*/F.createElement(TE,{value:c},/*#__PURE__*/F.createElement(EE,sE({name:r},u),l))});t.__DEV__&&(GE.displayName="ArrayFieldContainer");var XE=["name","label","hideLabel","children","columns","spacing"],KE=function(e){var t=ha("FormLegend");return F.createElement(kp,sE({as:"legend",sx:t},e))},JE=function(e){var t=e.name,n=e.label,r=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=lE(e,XE);return F.createElement(fp,sE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(KE,{display:r?"none":"block"},n),/*#__PURE__*/F.createElement(RE,{columns:o,gridGap:i},IE(t,a)))};t.__DEV__&&(JE.displayName="ObjectField");var QE=["name","type"],ex=["schema","fieldResolver","focusFirstField"],tx=["name","type","defaultValue"],nx=function(e,t){var n;return null==(n=e.getNestedFields(t))?void 0:n.map(function(e,t){var n=e.name,r=e.type,a=lE(e,QE);return F.createElement(xE,sE({key:n||t,name:n,type:r},a))})},rx=function(e){var t=e.schema,r=e.fieldResolver,a=e.focusFirstField,o=lE(e,ex),i=F.useMemo(function(){return r||OE.getFieldResolver(t)},[t,r]),s=F.useMemo(function(){return i.getFields()},[i]),l=n.useFormContext();return F.useEffect(function(){var e;a&&null!=(e=s[0])&&e.name&&l.setFocus(s[0].name)},[t,r,a]),/*#__PURE__*/F.createElement(RE,o,s.map(function(e){var t=e.name,n=e.type,r=lE(e,tx);return"array"===n?/*#__PURE__*/F.createElement(YE,sE({key:t,name:t},r),nx(i,t)):"object"===n?/*#__PURE__*/F.createElement(JE,sE({key:t,name:t},r),nx(i,t)):/*#__PURE__*/F.createElement(xE,sE({key:t,name:t,type:n},r))}))};t.__DEV__&&(rx.displayName="Fields");var ax=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],ox=F.forwardRef(function(e,t){var r=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=lE(e,ax),u=n.useFormContext().formState;return F.createElement(vb,sE({},l,{ref:t,variant:"primary",type:"submit",isLoading:u.isSubmitting||s,isDisabled:a&&!u.isDirty||o&&!u.isValid||i}),r)});ox.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(ox.displayName="SubmitButton");var ix=["schema","submitLabel","fieldResolver","children"],sx=pa(function(e,t){var n=e.schema,r=e.submitLabel,a=void 0===r?"Submit":r,o=e.fieldResolver,i=e.children,s=lE(e,ix);return F.createElement(OE,sE({},s,{schema:n,ref:t}),/*#__PURE__*/F.createElement(RE,null,/*#__PURE__*/F.createElement(rx,{schema:n,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(ox,null,a),i))});t.__DEV__&&(sx.displayName="AutoForm");var lx=["onChange"],ux=tn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],cx=["children"],dx=["getFormProps"];F.forwardRef(function(e,n){var r=e.children,a=lE(e,cx),o=function(e){var t=zb(lE(e,lx)),n=t.activeStep,r=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){var s;return Promise.resolve(function(l,u){try{var d=function(){function l(e){return s?e:Promise.resolve(null==u.onSubmit?void 0:u.onSubmit(o,t)).then(function(){a()})}var u=i[n],d=function(){if(r)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o)).then(function(){var e=(c(sE({},u,{isCompleted:!0})),void a());return s=1,e})}();return d&&d.then?d.then(l):l(d)}()}catch(e){return}return d&&d.then?d.then(void 0,function(){}):d}())},[i,n,r]),u=F.useCallback(function(){var e=i[n];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,n]),c=F.useCallback(function(e){s(function(t){var n;return sE({},t,((n={})[e.name]=e,n))})},[i]);return sE({getFormProps:u,updateStep:c,steps:i},t)}(e),i=o.getFormProps,s=lE(o,dx),l=F.useMemo(function(){return s},[s]);return F.createElement(Bb,{value:l},/*#__PURE__*/F.createElement(ux,{value:l},/*#__PURE__*/F.createElement(OE,sE({ref:n},a,i()),t.runIfFn(r,o))))});var fx=function(e){return SE(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:fx(t),resolver:e.ajvResolver(t)}};
97
97
  //# sourceMappingURL=index.js.map