@saas-ui/forms 1.0.0-rc.1 → 1.0.0-rc.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +129 -0
- package/README.md +29 -0
- package/ajv/package.json +18 -0
- package/dist/ajv/ajv-resolver.d.ts +11 -0
- package/dist/ajv/ajv-resolver.d.ts.map +1 -0
- package/dist/ajv/index.d.ts +2 -0
- package/dist/ajv/index.d.ts.map +1 -0
- package/dist/ajv/index.js +104 -0
- package/dist/ajv/index.js.map +1 -0
- package/dist/ajv/index.modern.mjs +104 -0
- package/dist/ajv/index.modern.mjs.map +1 -0
- package/dist/array-field.d.ts +14 -3
- package/dist/array-field.d.ts.map +1 -1
- package/dist/auto-form.d.ts +13 -1
- package/dist/auto-form.d.ts.map +1 -1
- package/dist/field.d.ts +82 -27
- package/dist/field.d.ts.map +1 -1
- package/dist/form.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/layout.d.ts +0 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/step-form.d.ts +4 -4
- package/dist/step-form.d.ts.map +1 -1
- package/dist/submit-button.d.ts +2 -1
- package/dist/submit-button.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +7 -3
- package/dist/use-step-form.d.ts.map +1 -1
- package/dist/zod/index.js +1 -1
- package/dist/zod/index.js.map +1 -1
- package/dist/zod/index.modern.mjs +1 -1
- package/dist/zod/index.modern.mjs.map +1 -1
- package/dist/zod/zod-resolver.d.ts +2 -2
- package/dist/zod/zod-resolver.d.ts.map +1 -1
- package/package.json +32 -17
- package/src/array-field.tsx +21 -22
- package/src/auto-form.tsx +22 -3
- package/src/field-resolver.ts +2 -2
- package/src/field.tsx +184 -73
- package/src/form.tsx +0 -1
- package/src/object-field.tsx +3 -3
- package/src/step-form.tsx +27 -20
- package/src/submit-button.tsx +32 -24
- package/src/use-step-form.tsx +27 -12
- package/yup/package.json +2 -2
- package/zod/package.json +4 -4
@@ -0,0 +1,104 @@
|
|
1
|
+
var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),r=require("react-hook-form");function n(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),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"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function x(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}function E(){}function k(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}x.prototype.isReactComponent={},x.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")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=x.prototype;var _=k.prototype=new E;_.constructor=k,y(_,x.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,r){var n,a={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,n)&&!O.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===a[n]&&(a[n]=l[n]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g;function T(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 N(e,t,r,n,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=""===n?"."+T(l,0):n,w(a)?(r="",null!=e&&(r=e.replace(I,"$&/")+"/"),N(a,t,r,"",function(e){return e})):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(l=0,n=""===n?".":n+":",w(e))for(var c=0;c<e.length;c++){var u=n+T(s=e[c],c);l+=N(s,t,r,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,r,u=n+T(s,c++),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 P(e,t,r){if(null==e)return e;var n=[],a=0;return N(e,n,"","",function(e){return t.call(r,e,a++)}),n}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},j={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},V={Children:j,Component:x,Fragment:s,Profiler:c,PureComponent:k,StrictMode:l,Suspense:f,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},cloneElement:function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=y({},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(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:n,_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:u,_context:e},e.Consumer=e},createElement:R,createFactory:function(e){var t=R.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:p,render:e}},isValidElement:A,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,r){return D.current.useImperativeHandle(e,t,r)},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,r){return D.current.useReducer(e,t,r)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,r){return D.current.useSyncExternalStore(e,t,r)},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 r=Symbol.for("react.element"),n=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"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),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 g={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},E={},k=null;function _(e){k=e}E.setExtraStackFrame=function(e){k=e},E.getCurrentStack=null,E.getStackAddendum=function(){var e="";k&&(e+=k);var t=E.getCurrentStack;return t&&(e+=t()||""),e};var w={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:y,ReactCurrentOwner:x};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("warn",e,r)}function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var a=r.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}w.ReactDebugCurrentFrame=E,w.ReactCurrentActQueue=b;var R={};function A(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",a=n+"."+t;R[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,n),R[a]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){A(e,"replaceState")},enqueueSetState:function(e,t,r,n){A(e,"setState")}},T=Object.assign,N={};function P(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||I}Object.freeze(N),P.prototype.isReactComponent={},P.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")},P.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(P.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 j(){}function V(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||I}j.prototype=P.prototype;var B=V.prototype=new j;B.constructor=V,T(B,P.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 n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u: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 c:return function(e,t,r){var n=e.displayName;if(n)return n;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case f:var r=e._payload,m=e._init;try{return $(m(r))}catch(e){return null}}return null}var q,Y,G,Z=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(Z.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(Z.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 r=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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function ee(e,t){var r=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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=$(x.current.type);G[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),G[t]=!0)}}G={};var re=function(e,t,n,a,o,i,s){var l={$$typeof:r,type:e,key:t,ref:n,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 ne(e,t,r){var n,a={},o=null,i=null,s=null,l=null;if(null!=t)for(n 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)Z.call(t,n)&&!X.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(1===c)a.children=r;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),a.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===a[n]&&(a[n]=p[n])}if(o||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,f),i&&ee(a,f)}return re(e,o,i,s,l,x.current,a)}function ae(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,a,o=T({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(n in K(t)&&(s=t.ref,u=x.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)Z.call(t,n)&&!X.hasOwnProperty(n)&&(o[n]=void 0===t[n]&&void 0!==a?a[n]:t[n]);var d=arguments.length-2;if(1===d)o.children=r;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];o.children=p}return re(e.type,i,s,l,c,u,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),r={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function de(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case r:case n:d=!0}}if(d){var p=e,f=i(p),m=""===o?"."+ue(p,0):o;if(z(f)){var v="";null!=m&&(v=ce(m)+"/"),de(f,t,v,"",function(e){return e})}else null!=f&&(oe(f)&&(!f.key||p&&p.key===f.key||H(f.key),l=f,c=a+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=re(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var g=0,y=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)g+=de(u=e[b],t,a,y+ue(u,b),i);else{var x=h(e);if("function"==typeof x){var E=e;x===E.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var k,_=x.call(E),w=0;!(k=_.next()).done;)g+=de(u=k.value,t,a,y+ue(u,w++),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 g}function pe(e,t,r){if(null==e)return e;var n=[],a=0;return de(e,n,"","",function(e){return t.call(r,e,a++)}),n}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var r=e;r._status=1,r._result=t}},function(t){if(0===e._status||-1===e._status){var r=e;r._status=2,r._result=t}}),-1===e._status){var r=e;r._status=0,r._result=t}}if(1===e._status){var n=e._result;return void 0===n&&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?",n),"default"in n||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),n.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===o||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=g.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,ge,ye,be,xe,Ee,ke,_e=0;function we(){}we.__reactDisabledLog=!0;var Se,Ce=w.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===Se)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Se=n&&n[1]||""}return"\n"+Se+e}var Re,Ae=!1,Ie="function"==typeof WeakMap?WeakMap:Map;function Te(e,t){if(!e||Ae)return"";var r,n=Re.get(e);if(void 0!==n)return n;Ae=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===_e){he=console.log,ge=console.info,ye=console.warn,be=console.error,xe=console.group,Ee=console.groupCollapsed,ke=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_e++}();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){r=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){r=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Re.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,Ce.current=a,function(){if(0==--_e){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:he}),info:T({},e,{value:ge}),warn:T({},e,{value:ye}),error:T({},e,{value:be}),group:T({},e,{value:xe}),groupCollapsed:T({},e,{value:Ee}),groupEnd:T({},e,{value:ke})})}_e<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Re.set(e,f),f}function Ne(e,t,r){if(null==e)return"";if("function"==typeof e)return Te(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Te(e.render,!1);case p:return Ne(e.type,t,r);case f:var n=e._payload,a=e._init;try{return Ne(a(n),t,r)}catch(e){}}return""}Re=new Ie;var Pe,Le={},De=w.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,r=Ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(r)}else De.setExtraStackFrame(null)}function je(e){if(e){var t=e._owner;_(Ne(e.type,e._source,t?t.type:null))}else _(null)}function Ve(){if(x.current){var e=$(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Ve();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Fe[r]){Fe[r]=!0;var n="";e&&e._owner&&e._owner!==x.current&&(n=" It was passed a child from "+$(e._owner.type)+"."),je(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.',r,n),je(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var r=0;r<e.length;r++){var n=e[r];oe(n)&&ze(n,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,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=$(r);!function(e,t,r,n,a){var o=Function.call.bind(Z);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"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,n,r,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).",n||"React class",r,i,typeof s),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",r,s.message),Me(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.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),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){je(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),je(null);break}}null!==e.ref&&(je(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}function $e(e,t,n){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||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===r?(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 c=ne.apply(this,arguments);if(null==c)return c;if(o)for(var u=2;u<arguments.length;u++)We(arguments[u],e);return e===a?Ue(c):He(c),c}var qe=!1,Ye=!1,Ge=null,Ze=0,Xe=!1;function Ke(e){e!==Ze-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. "),Ze=e}function Je(t,r,n){var a=b.current;if(null!==a)try{et(a),function(o){if(null===Ge)try{var i=("require"+Math.random()).slice(0,7);Ge=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ge=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)}}Ge(function(){0===a.length?(b.current=null,r(t)):Je(t,r,n)})}()}catch(e){n(e)}else r(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{Qe=!1}}}var tt=$e,rt={map:pe,forEach:function(e,t,r){pe(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pe(e,function(){t++}),t},toArray:function(e){return pe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=rt,t.Component=P,t.Fragment=a,t.Profiler=i,t.PureComponent=V,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,t.cloneElement=function(e,t,r){for(var n=ae.apply(this,arguments),a=2;a<arguments.length;a++)We(arguments[a],n.type);return He(n),n},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 r=!1,n=!1,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return n||(n=!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 r||(r=!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===p?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,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=oe,t.lazy=function(e){var t,r,n={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{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(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},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."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},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 r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=y.transition;y.transition={};var n=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{y.transition=r,null===r&&n._updatedFibers&&(n._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."),n._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ze;Ze++,null===b.current&&(b.current=[]);var r,n=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,r=e(),!n&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r,i=!1,s={then:function(e,r){i=!0,o.then(function(n){Ke(t),0===Ze?Je(n,e,r):e(n)},function(e){Ke(t),r(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=r;if(Ke(t),0===Ze){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var r=e._context;r.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?"):r.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,r){return ve().useImperativeHandle(e,t,r)},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,r){return ve().useReducer(e,t,r)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,r){return ve().useSyncExternalStore(e,t,r)},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?V:B}),z=/*#__PURE__*/n({__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 r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&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||!r}if(this.isSpeedy){var n=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{n.insertRule(e,n.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 G(e){return e.trim()}function Z(e,t,r){return e.replace(t,r)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var re=1,ne=1,ae=0,oe=0,ie=0,se="";function le(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:re,column:ne,length:i,return:""}}function ce(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ue(){return ie=oe>0?K(se,--oe):0,ne--,10===ie&&(ne=1,re--),ie}function de(){return ie=oe<ae?K(se,oe++):0,ne++,10===ie&&(ne=1,re++),ie}function pe(){return K(se,oe)}function fe(){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 re=ne=1,ae=Q(se=e),oe=0,[]}function ge(e){return se="",e}function ye(e){return G(me(oe-1,Ee(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=pe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function xe(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,fe()+(t<6&&32==pe()&&32==de()))}function Ee(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&Ee(ie);break;case 40:41===e&&Ee(e);break;case 92:de()}return oe}function ke(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==pe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function _e(e){for(;!ve(pe());)de();return me(e,oe)}function we(e){return ge(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,r,n,a,o,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,v=1,h=1,g=1,y=0,b="",x=a,E=o,k=n,_=b;h;)switch(m=y,y=de()){case 40:if(108!=m&&58==_.charCodeAt(d-1)){-1!=X(_+=Z(ye(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=ye(y);break;case 9:case 10:case 13:case 32:_+=be(m);break;case 92:_+=xe(fe()-1,7);continue;case 47:switch(pe()){case 42:case 47:te(Oe(ke(de(),fe()),t,r),l);break;default:_+="/"}break;case 123*v:s[c++]=Q(_)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:f>0&&Q(_)-d&&te(f>32?Re(_+";",n,r,d-1):Re(Z(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(te(k=Ce(_,t,r,c,u,a,s,b,x=[],E=[],d),o),123===y)if(0===u)Se(_,t,k,k,x,o,d,s,E);else switch(p){case 100:case 109:case 115:Se(e,k,k,n&&te(Ce(e,k,k,0,0,a,s,b,a,x=[],d),E),a,E,d,s,n?x:E);break;default:Se(_,k,k,k,[""],E,0,s,E)}}c=u=f=0,v=g=1,b=_="",d=i;break;case 58:d=1+Q(_),f=m;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==ue())continue;switch(_+=q(y),y*v){case 38:g=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Q(_)-1)*g,g=1;break;case 64:45===pe()&&(_+=ye(de())),p=pe(),u=d=Q(b=_+=_e(fe())),y++;break;case 45:45===m&&2==Q(_)&&(v=0)}}return o}function Ce(e,t,r,n,a,o,i,s,l,c,u){for(var d=a-1,p=0===a?o:[""],f=ee(p),m=0,v=0,h=0;m<n;++m)for(var g=0,y=J(e,d+1,d=$(v=i[m])),b=e;g<f;++g)(b=G(v>0?p[g]+" "+y:Z(y,/&\f/g,p[g])))&&(l[h++]=b);return le(e,t,r,0===a?"rule":s,l,c,u)}function Oe(e,t,r){return le(e,t,r,"comm",q(ie),J(e,2,-2),0)}function Re(e,t,r,n){return le(e,t,r,"decl",J(e,0,n),J(e,n+1,-1),n)}function Ae(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+Z(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+H+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return U+e+H+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+H+Z(e,"shrink","negative")+e;case 5292:return U+e+H+Z(e,"basis","preferred-size")+e;case 6060:return U+"box-"+Z(e,"-grow","")+U+e+H+Z(e,"grow","positive")+e;case 4554:return U+Z(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return Z(Z(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 Z(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 Z(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ae(Z(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 Z(e,":",":"+U)+e;case 101:return Z(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+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+H+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+H+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+H+e+e}return e}function Ie(e,t){for(var r="",n=ee(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Te(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Ie(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return Q(r=Ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ne(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Pe=function(e,t,r){for(var n=0,a=0;n=a,a=pe(),38===n&&12===a&&(t[r]=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,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(r))&&!n){Le.set(e,!0);for(var a=[],o=function(e,t){return ge(function(e,t){var r=-1,n=44;do{switch(ve(n)){case 0:38===n&&12===pe()&&(t[r]=1),e[r]+=Pe(oe-1,t,r);break;case 2:e[r]+=ye(n);break;case 4:if(44===n){e[++r]=58===pe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=q(n)}}while(n=de());return e}(he(e),t))}(t,a),i=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+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="")}},je=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ve=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,r){je(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."),Ve(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!je(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ve(e)))},Fe=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ae(e.value,e.length);break;case"@keyframes":return Ie([ce(e,{value:Z(e.value,"@","@"+U)})],n);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 Ie([ce(e,{props:[Z(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ie([ce(e,{props:[Z(t,/:(plac\w+)/,":-webkit-input-$1")]}),ce(e,{props:[Z(t,/:(plac\w+)/,":-moz-$1")]}),ce(e,{props:[Z(t,/:(plac\w+)/,H+"input-$1")]})],n)}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 r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n=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(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)});var l=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,r,n){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!0!==e.compat){var i=r>0?n[r-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 f.compat}}),Be);var c,u,d=[Te,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=ee(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}(l.concat(n,d));o=function(e,t,r,n){c=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){r.insert(e+t.map)}}),Ie(we(e?e+"{"+t.styles+"}":t.styles),p),n&&(f.inserted[t.name]=!0)};var f={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 f.sheet.hydrate(s),f};function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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,Ge=He?Symbol.for("react.profiler"):60114,Ze=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,rt=He?Symbol.for("react.memo"):60115,nt=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 Ge:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case nt:case rt:case Ze:return e;default:return t}}case $e:return t}}}function ct(e){return lt(e)===Je}var ut={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ze,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:nt,Memo:rt,Portal:$e,Profiler:Ge,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ct(e)||lt(e)===Ke},isConcurrentMode:ct,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ze},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)===nt},isMemo:function(e){return lt(e)===rt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ge},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===Ge||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===nt||e.$$typeof===rt||e.$$typeof===Ze||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,r=e?Symbol.for("react.element"):60103,n=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,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var f=e.type;switch(f){case c:case u:case a:case i:case o:case p:return f;default:var h=f&&f.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case n:return t}}}var E=u,k=l,_=s,w=r,S=d,C=a,O=v,R=m,A=n,I=i,T=o,N=p,P=!1;function L(e){return x(e)===u}t.AsyncMode=c,t.ConcurrentMode=E,t.ContextConsumer=k,t.ContextProvider=_,t.Element=w,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=R,t.Portal=A,t.Profiler=I,t.StrictMode=T,t.Suspense=N,t.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===h)},t.typeOf=x}()});function pt(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}a(function(e){e.exports="production"===process.env.NODE_ENV?ut:dt});var ft=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},mt=function(e,t,r){ft(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",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",gt=/[A-Z]|^ms/g,yt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},xt=function(e){return null!=e&&"boolean"!=typeof e},Et=/* #__PURE__ */Ne(function(e){return bt(e)?e:e.replace(gt,"-$&").toLowerCase()}),kt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(yt,function(e,t,r){return Nt={name:t,styles:r,next:Nt},t})}return 1===vt[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var _t=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,wt=["normal","none","initial","inherit","unset"],St=kt,Ct=/^-ms-/,Ot=/-(.)/g,Rt={};kt=function(e,t){if("content"===e&&("string"!=typeof t||-1===wt.indexOf(t)&&!_t.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 r=St(e,t);return""===r||bt(e)||-1===e.indexOf("-")||void 0!==Rt[e]||(Rt[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()})+"?")),r}}var At="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function It(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(At);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Nt={name:r.name,styles:r.styles,next:Nt},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Nt={name:n.name,styles:n.styles,next:Nt},n=n.next;var a=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(a+=r.map),a}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=It(e,t,r[a])+";";else for(var o in r){var i=r[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=o+"{"+t[i]+"}":xt(i)&&(n+=Et(o)+":"+kt(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(At);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=It(e,t,i);switch(o){case"animation":case"animationName":n+=Et(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)."),n+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)xt(i[l])&&(n+=Et(o)+":"+kt(o,i[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var o=Nt,i=r(e);return Nt=o,It(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=r.replace(yt,function(e,t,r){var n="animation"+s.length;return s.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});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 r;var c=t[r];return void 0!==c?c:r}var Tt,Nt,Pt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Tt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Lt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";Nt=void 0;var o,i=e[0];null==i||void 0===i.raw?(n=!1,a+=It(r,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+=It(r,t,e[s]),n&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(ht),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(Tt,function(e){return o=e,""})),Pt.lastIndex=0;for(var l,c="";null!==(l=Pt.exec(a));)c+="-"+l[1];var u=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:Nt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:Nt}},Dt={}.hasOwnProperty,Mt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Mt.displayName="EmotionCacheContext");var jt=function(e){/*#__PURE__*/
|
2
|
+
return F.forwardRef(function(t,r){var n=F.useContext(Mt);return e(t,n,r)})},Vt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(Vt.displayName="EmotionThemeContext");var Bt=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function Ft(e){Bt(e)}var zt=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ft(t,r,n),Ft(function(){return mt(t,r,n)}),null},Wt=/* #__PURE__ */jt(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[n],i="";"string"==typeof e.className?i=pt(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Lt(o,void 0,F.useContext(Vt));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 c={};for(var u in e)!Dt.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=r,c.className=i,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(zt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,c))});"production"!==process.env.NODE_ENV&&(Wt.displayName="EmotionCssPropInternal");var Ht=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,Ut=!1,$t=/* #__PURE__ */jt(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 r=Lt([e.styles],void 0,F.useContext(Vt)),n=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+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),n.current=[a,o],function(){a.flush()}},[t]),Ht(function(){var e=n.current,a=e[0];e[1]?e[1]=!1:(void 0!==r.next&&mt(t,r.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",r,a,!1))},[t,r.name]),null});function qt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Lt(t)}"production"!==process.env.NODE_ENV&&($t.displayName="EmotionGlobal");var Yt=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_"}}},Gt=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];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,r){var n=[],a=pt(e,n,r);return n.length<2?r:a+t(n)}var Xt=function(e){var t=e.cache,r=e.serializedArr;return Ft(function(){for(var e=0;e<r.length;e++)mt(t,r[e],!1)}),null},Kt=/* #__PURE__ */jt(function(e,t){var r=!1,n=[],a=function(){if(r&&"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 n.push(i),ft(t,i,!1),t.key+"-"+i.name},o={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Zt(t.registered,a,Gt(n))},theme:F.useContext(Vt)},i=e.children(o);return r=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Xt,{cache:t,serializedArr:n}),i)});if("production"!==process.env.NODE_ENV&&(Kt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Jt="undefined"!=typeof globalThis?globalThis:window,Qt="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Jt[Qt]&&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."),Jt[Qt]=!0}function er(e,r){if(null!=e)if(t.isFunction(e))e(r);else try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}}function tr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach(function(t){return er(t,e)})}}function rr(e){void 0===e&&(e={});var t=e.strict,r=void 0===t||t,n=e.errorMessage,a=void 0===n?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":n,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&r){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},i]}function nr(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
|
3
|
+
return F.isValidElement(e)})}var ar=t.isBrowser?F.useLayoutEffect:F.useEffect;function or(e,t){void 0===t&&(t=[]);var r=F.useRef(e);return ar(function(){r.current=e}),F.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current.apply(r,t)},t)}function ir(e,r,n,a){var o=or(r);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(n))?i:document;if(r)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,n,a,o,r]),function(){var r;(null!=(r=t.runIfFn(n))?r:document).removeEventListener(e,o,a)}}function sr(e){void 0===e&&(e=!1);var t=F.useState(e),r=t[0],n=t[1],a=F.useMemo(function(){return{on:function(){return n(!0)},off:function(){return n(!1)},toggle:function(){return n(function(e){return!e})}}},[]);return[r,a]}function lr(e,t){var r=void 0!==e;return[r,r&&void 0!==e?e:t]}function cr(e){var r=e.value,n=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=or(e.onChange),s=or(o),l=F.useState(n),c=l[1],u=void 0!==r,d=u?r:l[0],p=F.useCallback(function(e){var r=t.runIfFn(e,d);s(d,r)&&(u||c(r),i(r))},[u,i,d,s]);return[d,p]}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}function dr(e,t){var r=F.useId();return F.useMemo(function(){return e||[t,r].filter(Boolean).join("-")},[e,t,r])}var pr=function(e,t){var r=F.useRef(!1),n=F.useRef(!1);F.useEffect(function(){if(r.current&&n.current)return e();n.current=!0},t),F.useEffect(function(){return r.current=!0,function(){r.current=!1}},[])};function fr(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function mr(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&mr(t,e)})}},t)}function hr(e,r){var n,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(n=r.current)&&n.contains(a))}var gr=/*#__PURE__*/F.createContext({});t.__DEV__&&(gr.displayName="ColorModeContext");var yr="undefined"!=typeof Element,br="function"==typeof Map,xr="function"==typeof Set,Er="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function kr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,a,o;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!kr(e[n],t[n]))return!1;return!0}if(br&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!kr(n.value[1],t.get(n.value[0])))return!1;return!0}if(xr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Er&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])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((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(yr&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==a[n]&&"__v"!==a[n]&&"__o"!==a[n]||!e.$$typeof)&&!kr(e[a[n]],t[a[n]]))return!1;return!0}return e!=e&&t!=t}var _r=function(e,t){try{return kr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sr=/* #__PURE__ */Ne(function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Cr=function(e){return"theme"!==e},Or=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Sr:Cr},Rr=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ar=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Ir="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",Tr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ft(t,r,n),Ar(function(){return mt(t,r,n)}),null},Nr=function e(t,r){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 n,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,a=r.target);var s=Rr(t,r,o),l=s||Or(i),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Ir),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(Ir),d.push(u[f],u[0][f])}var m=jt(function(e,t,r){var n=c&&e.as||i,o="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=F.useContext(Vt)}"string"==typeof e.className?o=pt(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var m=Lt(d.concat(u),t.registered,p);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=c&&void 0===s?Or(n):l,h={};for(var g in e)c&&"as"===g||v(g)&&(h[g]=e[g]);return h.className=o,h.ref=r,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Tr,{cache:t,serialized:m,isStringTag:"string"==typeof n}),/*#__PURE__*/F.createElement(n,h))});return m.displayName=void 0!==n?n:"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,n){return e(t,We({},r,n,{shouldForwardProp:Rr(m,n,!0)})).apply(void 0,d)},m}}.bind();function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pr.apply(this,arguments)}["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){Nr[e]=Nr(e)});var Lr,Dr,Mr=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},jr=function(e,r){return function(n){var a=String(r),o=function(e){return/!(important)?$/.test(e)}(a),i=Mr(a),s=e?e+"."+i:i,l=t.isObject(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:r;return l=Mr(l),o?l+" !important":l}};function Vr(e){var t=e.scale,r=e.transform,n=e.compose;return function(e,a){var o,i=jr(t,e)(a),s=null!=(o=null==r?void 0:r(i,a))?o:i;return n&&(s=n(s,a)),s}}function Br(e,t){return function(r){var n={property:r,scale:e};return n.transform=Vr({scale:e,transform:t}),n}}var Fr=["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))"],zr={"--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(" ")},Wr={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,/*!*/ /*!*/)"},Hr={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ur=((Lr={})["& > :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))"},Lr),$r=((Dr={})["& > :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))"},Dr);function qr(e,t){return qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qr(e,t)}function Yr(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&&qr(e,t)}function Gr(){Gr=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,a){var o=new RegExp(e,n);return t.set(o,a||t.get(e)),qr(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return Yr(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,r,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,r,a)},Gr.apply(this,arguments)}var Zr={"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"},Xr=new Set(Object.values(Zr)),Kr=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Jr=function(e){return e.trim()},Qr=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},en=function(e){return function(t){return e+"("+t+")"}},tn={filter:function(e){return"auto"!==e?e:zr},backdropFilter:function(e){return"auto"!==e?e:Wr},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(", ")}}(tn.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(Fr).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Fr).join(" "):e},px:function(e){if(null==e)return e;var r=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return r.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 r=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||r?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||Kr.has(e))return e;var a=null!=(r=null==(n=/*#__PURE__*/Gr(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(Jr).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Zr?Zr[c]:c);var d=u.map(function(e){if(Xr.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],a=n[0],o=n[1],i=Qr(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:en("blur"),opacity:en("opacity"),brightness:en("brightness"),contrast:en("contrast"),dropShadow:en("drop-shadow"),grayscale:en("grayscale"),hueRotate:en("hue-rotate"),invert:en("invert"),saturate:en("saturate"),sepia:en("sepia"),bgImage:function(e){return null==e||Qr(e)||Kr.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,r=null!=(t=Hr[e])?t:{},n=r.space,a=r.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},rn={borderWidths:Br("borderWidths"),borderStyles:Br("borderStyles"),colors:Br("colors"),borders:Br("borders"),radii:Br("radii",tn.px),space:Br("space",tn.px),spaceT:Br("space",tn.px),degreeT:function(e){return{property:e,transform:tn.degree}},prop:function(e,t,r){return Pr({property:e,scale:t},t&&{transform:Vr({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:Br("sizes",tn.px),sizesT:Br("sizes",tn.fraction),shadows:Br("shadows"),logical:function(e){var t,r,n,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:a?Vr({scale:a,compose:o}):o}},blur:Br("blur",tn.blur)},nn={background:rn.colors("background"),backgroundColor:rn.colors("backgroundColor"),backgroundImage:rn.propT("backgroundImage",tn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:tn.bgClip},bgSize:rn.prop("backgroundSize"),bgPosition:rn.prop("backgroundPosition"),bg:rn.colors("background"),bgColor:rn.colors("backgroundColor"),bgPos:rn.prop("backgroundPosition"),bgRepeat:rn.prop("backgroundRepeat"),bgAttachment:rn.prop("backgroundAttachment"),bgGradient:rn.propT("backgroundImage",tn.gradient),bgClip:{transform:tn.bgClip}};Object.assign(nn,{bgImage:nn.backgroundImage,bgImg:nn.backgroundImage});var an={border:rn.borders("border"),borderWidth:rn.borderWidths("borderWidth"),borderStyle:rn.borderStyles("borderStyle"),borderColor:rn.colors("borderColor"),borderRadius:rn.radii("borderRadius"),borderTop:rn.borders("borderTop"),borderBlockStart:rn.borders("borderBlockStart"),borderTopLeftRadius:rn.radii("borderTopLeftRadius"),borderStartStartRadius:rn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:rn.radii("borderTopRightRadius"),borderStartEndRadius:rn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:rn.borders("borderRight"),borderInlineEnd:rn.borders("borderInlineEnd"),borderBottom:rn.borders("borderBottom"),borderBlockEnd:rn.borders("borderBlockEnd"),borderBottomLeftRadius:rn.radii("borderBottomLeftRadius"),borderBottomRightRadius:rn.radii("borderBottomRightRadius"),borderLeft:rn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:rn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:rn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:rn.borders(["borderLeft","borderRight"]),borderInline:rn.borders("borderInline"),borderY:rn.borders(["borderTop","borderBottom"]),borderBlock:rn.borders("borderBlock"),borderTopWidth:rn.borderWidths("borderTopWidth"),borderBlockStartWidth:rn.borderWidths("borderBlockStartWidth"),borderTopColor:rn.colors("borderTopColor"),borderBlockStartColor:rn.colors("borderBlockStartColor"),borderTopStyle:rn.borderStyles("borderTopStyle"),borderBlockStartStyle:rn.borderStyles("borderBlockStartStyle"),borderBottomWidth:rn.borderWidths("borderBottomWidth"),borderBlockEndWidth:rn.borderWidths("borderBlockEndWidth"),borderBottomColor:rn.colors("borderBottomColor"),borderBlockEndColor:rn.colors("borderBlockEndColor"),borderBottomStyle:rn.borderStyles("borderBottomStyle"),borderBlockEndStyle:rn.borderStyles("borderBlockEndStyle"),borderLeftWidth:rn.borderWidths("borderLeftWidth"),borderInlineStartWidth:rn.borderWidths("borderInlineStartWidth"),borderLeftColor:rn.colors("borderLeftColor"),borderInlineStartColor:rn.colors("borderInlineStartColor"),borderLeftStyle:rn.borderStyles("borderLeftStyle"),borderInlineStartStyle:rn.borderStyles("borderInlineStartStyle"),borderRightWidth:rn.borderWidths("borderRightWidth"),borderInlineEndWidth:rn.borderWidths("borderInlineEndWidth"),borderRightColor:rn.colors("borderRightColor"),borderInlineEndColor:rn.colors("borderInlineEndColor"),borderRightStyle:rn.borderStyles("borderRightStyle"),borderInlineEndStyle:rn.borderStyles("borderInlineEndStyle"),borderTopRadius:rn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:rn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:rn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:rn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(an,{rounded:an.borderRadius,roundedTop:an.borderTopRadius,roundedTopLeft:an.borderTopLeftRadius,roundedTopRight:an.borderTopRightRadius,roundedTopStart:an.borderStartStartRadius,roundedTopEnd:an.borderStartEndRadius,roundedBottom:an.borderBottomRadius,roundedBottomLeft:an.borderBottomLeftRadius,roundedBottomRight:an.borderBottomRightRadius,roundedBottomStart:an.borderEndStartRadius,roundedBottomEnd:an.borderEndEndRadius,roundedLeft:an.borderLeftRadius,roundedRight:an.borderRightRadius,roundedStart:an.borderInlineStartRadius,roundedEnd:an.borderInlineEndRadius,borderStart:an.borderInlineStart,borderEnd:an.borderInlineEnd,borderTopStartRadius:an.borderStartStartRadius,borderTopEndRadius:an.borderStartEndRadius,borderBottomStartRadius:an.borderEndStartRadius,borderBottomEndRadius:an.borderEndEndRadius,borderStartRadius:an.borderInlineStartRadius,borderEndRadius:an.borderInlineEndRadius,borderStartWidth:an.borderInlineStartWidth,borderEndWidth:an.borderInlineEndWidth,borderStartColor:an.borderInlineStartColor,borderEndColor:an.borderInlineEndColor,borderStartStyle:an.borderInlineStartStyle,borderEndStyle:an.borderInlineEndStyle});var on={color:rn.colors("color"),textColor:rn.colors("color"),fill:rn.colors("fill"),stroke:rn.colors("stroke")},sn={boxShadow:rn.shadows("boxShadow"),mixBlendMode:!0,blendMode:rn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:rn.prop("backgroundBlendMode"),opacity:!0};Object.assign(sn,{shadow:sn.boxShadow});var ln={filter:{transform:tn.filter},blur:rn.blur("--chakra-blur"),brightness:rn.propT("--chakra-brightness",tn.brightness),contrast:rn.propT("--chakra-contrast",tn.contrast),hueRotate:rn.degreeT("--chakra-hue-rotate"),invert:rn.propT("--chakra-invert",tn.invert),saturate:rn.propT("--chakra-saturate",tn.saturate),dropShadow:rn.propT("--chakra-drop-shadow",tn.dropShadow),backdropFilter:{transform:tn.backdropFilter},backdropBlur:rn.blur("--chakra-backdrop-blur"),backdropBrightness:rn.propT("--chakra-backdrop-brightness",tn.brightness),backdropContrast:rn.propT("--chakra-backdrop-contrast",tn.contrast),backdropHueRotate:rn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:rn.propT("--chakra-backdrop-invert",tn.invert),backdropSaturate:rn.propT("--chakra-backdrop-saturate",tn.saturate)},cn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:tn.flexDirection},experimental_spaceX:{static:Ur,transform:Vr({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:$r,transform:Vr({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:rn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:rn.space("gap"),rowGap:rn.space("rowGap"),columnGap:rn.space("columnGap")};Object.assign(cn,{flexDir:cn.flexDirection});var un={gridGap:rn.space("gridGap"),gridColumnGap:rn.space("gridColumnGap"),gridRowGap:rn.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},dn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:tn.outline},outlineOffset:!0,outlineColor:rn.colors("outlineColor")},pn={width:rn.sizesT("width"),inlineSize:rn.sizesT("inlineSize"),height:rn.sizes("height"),blockSize:rn.sizes("blockSize"),boxSize:rn.sizes(["width","height"]),minWidth:rn.sizes("minWidth"),minInlineSize:rn.sizes("minInlineSize"),minHeight:rn.sizes("minHeight"),minBlockSize:rn.sizes("minBlockSize"),maxWidth:rn.sizes("maxWidth"),maxInlineSize:rn.sizes("maxInlineSize"),maxHeight:rn.sizes("maxHeight"),maxBlockSize:rn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:rn.propT("float",tn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pn,{w:pn.width,h:pn.height,minW:pn.minWidth,maxW:pn.maxWidth,minH:pn.minHeight,maxH:pn.maxHeight,overscroll:pn.overscrollBehavior,overscrollX:pn.overscrollBehaviorX,overscrollY:pn.overscrollBehaviorY});var fn={listStyleType:!0,listStylePosition:!0,listStylePos:rn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:rn.prop("listStyleImage")},mn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},hn=function(e,r,n){var a={},o=t.memoizedGet(e,r,{});for(var i in o)i in n&&null!=n[i]||(a[i]=o[i]);return a},gn={srOnly:{transform:function(e){return!0===e?mn:"focusable"===e?vn:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return hn(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return hn(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return hn(t,e,r)}}},yn={position:!0,pos:rn.prop("position"),zIndex:rn.prop("zIndex","zIndices"),inset:rn.spaceT("inset"),insetX:rn.spaceT(["left","right"]),insetInline:rn.spaceT("insetInline"),insetY:rn.spaceT(["top","bottom"]),insetBlock:rn.spaceT("insetBlock"),top:rn.spaceT("top"),insetBlockStart:rn.spaceT("insetBlockStart"),bottom:rn.spaceT("bottom"),insetBlockEnd:rn.spaceT("insetBlockEnd"),left:rn.spaceT("left"),insetInlineStart:rn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:rn.spaceT("right"),insetInlineEnd:rn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(yn,{insetStart:yn.insetInlineStart,insetEnd:yn.insetInlineEnd});var bn={ring:{transform:tn.ring},ringColor:rn.colors("--chakra-ring-color"),ringOffset:rn.prop("--chakra-ring-offset-width"),ringOffsetColor:rn.colors("--chakra-ring-offset-color"),ringInset:rn.prop("--chakra-ring-inset")},xn={margin:rn.spaceT("margin"),marginTop:rn.spaceT("marginTop"),marginBlockStart:rn.spaceT("marginBlockStart"),marginRight:rn.spaceT("marginRight"),marginInlineEnd:rn.spaceT("marginInlineEnd"),marginBottom:rn.spaceT("marginBottom"),marginBlockEnd:rn.spaceT("marginBlockEnd"),marginLeft:rn.spaceT("marginLeft"),marginInlineStart:rn.spaceT("marginInlineStart"),marginX:rn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:rn.spaceT("marginInline"),marginY:rn.spaceT(["marginTop","marginBottom"]),marginBlock:rn.spaceT("marginBlock"),padding:rn.space("padding"),paddingTop:rn.space("paddingTop"),paddingBlockStart:rn.space("paddingBlockStart"),paddingRight:rn.space("paddingRight"),paddingBottom:rn.space("paddingBottom"),paddingBlockEnd:rn.space("paddingBlockEnd"),paddingLeft:rn.space("paddingLeft"),paddingInlineStart:rn.space("paddingInlineStart"),paddingInlineEnd:rn.space("paddingInlineEnd"),paddingX:rn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:rn.space("paddingInline"),paddingY:rn.space(["paddingTop","paddingBottom"]),paddingBlock:rn.space("paddingBlock")};Object.assign(xn,{m:xn.margin,mt:xn.marginTop,mr:xn.marginRight,me:xn.marginInlineEnd,marginEnd:xn.marginInlineEnd,mb:xn.marginBottom,ml:xn.marginLeft,ms:xn.marginInlineStart,marginStart:xn.marginInlineStart,mx:xn.marginX,my:xn.marginY,p:xn.padding,pt:xn.paddingTop,py:xn.paddingY,px:xn.paddingX,pb:xn.paddingBottom,pl:xn.paddingLeft,ps:xn.paddingInlineStart,paddingStart:xn.paddingInlineStart,pr:xn.paddingRight,pe:xn.paddingInlineEnd,paddingEnd:xn.paddingInlineEnd});var En={textDecorationColor:rn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:rn.shadows("textShadow")},kn={clipPath:!0,transform:rn.propT("transform",tn.transform),transformOrigin:!0,translateX:rn.spaceT("--chakra-translate-x"),translateY:rn.spaceT("--chakra-translate-y"),skewX:rn.degreeT("--chakra-skew-x"),skewY:rn.degreeT("--chakra-skew-y"),scaleX:rn.prop("--chakra-scale-x"),scaleY:rn.prop("--chakra-scale-y"),scale:rn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:rn.degreeT("--chakra-rotate")},_n={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:rn.prop("transitionDuration","transition.duration"),transitionProperty:rn.prop("transitionProperty","transition.property"),transitionTimingFunction:rn.prop("transitionTimingFunction","transition.easing")},wn={fontFamily:rn.prop("fontFamily","fonts"),fontSize:rn.prop("fontSize","fontSizes",tn.px),fontWeight:rn.prop("fontWeight","fontWeights"),lineHeight:rn.prop("lineHeight","lineHeights"),letterSpacing:rn.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"}},Sn={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:rn.spaceT("scrollMargin"),scrollMarginTop:rn.spaceT("scrollMarginTop"),scrollMarginBottom:rn.spaceT("scrollMarginBottom"),scrollMarginLeft:rn.spaceT("scrollMarginLeft"),scrollMarginRight:rn.spaceT("scrollMarginRight"),scrollMarginX:rn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:rn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:rn.spaceT("scrollPadding"),scrollPaddingTop:rn.spaceT("scrollPaddingTop"),scrollPaddingBottom:rn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:rn.spaceT("scrollPaddingLeft"),scrollPaddingRight:rn.spaceT("scrollPaddingRight"),scrollPaddingX:rn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:rn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Cn(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var On=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(Cn).join(" "+e+" ").replace(/calc/g,"")},Rn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["+"].concat(t))+")"},An=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["-"].concat(t))+")"},In=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["*"].concat(t))+")"},Tn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+On.apply(void 0,["/"].concat(t))+")"},Nn=function(e){var t=Cn(e);return null==t||Number.isNaN(parseFloat(t))?In(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Pn=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(Rn.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(An.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(In.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn(Tn.apply(void 0,[e].concat(r)))},negate:function(){return Pn(Nn(e))},toString:function(){return e.toString()}}},{add:Rn,subtract:An,multiply:In,divide:Tn,negate:Nn}),Ln=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Dn=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Mn=function(e,t){return e+":focus-visible "+t},jn=function(e,t){return e+":focus-within "+t},Vn=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},Bn=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Fn=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},zn=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Wn=function(e){return Un(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Hn=function(e){return Un(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Un=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(e).join(", ")},$n={_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:Wn(Ln),_peerHover:Hn(Ln),_groupFocus:Wn(Dn),_peerFocus:Hn(Dn),_groupFocusVisible:Wn(Mn),_peerFocusVisible:Hn(Mn),_groupActive:Wn(Vn),_peerActive:Hn(Vn),_groupDisabled:Wn(Bn),_peerDisabled:Hn(Bn),_groupInvalid:Wn(Fn),_peerInvalid:Hn(Fn),_groupChecked:Wn(zn),_peerChecked:Hn(zn),_groupFocusWithin:Wn(jn),_peerFocusWithin:Hn(jn),_peerPlaceholderShown:Hn(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]"},qn=t.objectKeys($n);function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Zn=t.mergeWith({},nn,an,on,cn,pn,ln,bn,dn,un,gn,yn,sn,xn,Sn,wn,En,kn,fn,_n),Xn=Object.assign({},xn,pn,cn,un,yn),Kn=t.objectKeys(Xn),Jn=[].concat(t.objectKeys(Zn),qn),Qn=Pr({},Zn,$n),ea=function(e,r){return e.startsWith("--")&&t.isString(r)&&!t.isCssVar(r)},ta=function(e,t){var r,n;if(null==t)return t;var a=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.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!=(r=null!=(n=a(i[0]))?n:o(s))?r:o(t)};function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function na(){var e=F.useContext(Vt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}rr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var aa=function(e){return rr({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 r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var sa=new Set([].concat(Jn,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),la=new Set(["htmlWidth","htmlHeight","htmlSize"]),ca=function(e){return la.has(e)||!sa.has(e)},ua=["theme","css","__css","sx"],da=["baseStyle"];function pa(e,r){var n=null!=r?r:{},a=n.baseStyle,o=ia(n,da);o.shouldForwardProp||(o.shouldForwardProp=ca);var i=function(e){var r=e.baseStyle;return function(e){var n,a=e.css,o=e.__css,i=e.sx,s=ia(e,ua),l=t.objectFilter(s,function(e,t){return function(e){return e in Qn}(t)}),c=t.runIfFn(r,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(n=u,function(e){return function(e){var r=e.configs,n=void 0===r?{}:r,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=t.runIfFn(r,i),l=function(e){return function(r){if(!r.__breakpoints)return e;var n=r.__breakpoints,a=n.isResponsive,o=n.toArrayValue,i=n.media,s={};for(var l in e){var c=t.runIfFn(e[l],r);if(null!=c)if(c=t.isObject(c)&&a(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=c[d]&&(s[p][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,p,f,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),ea(u,h)&&(h=ta(i,h));var g=n[u];if(!0===g&&(g={property:u}),t.isObject(h)){var y;c[u]=null!=(y=c[u])?y:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(p=g)||null==p.transform?void 0:p.transform(h,i,s))?d:h;b=null!=(f=g)&&f.processResult?e(b,!0):b;var x=t.runIfFn(null==(m=g)?void 0:m.property,i);if(!a&&null!=(v=g)&&v.static){var E=t.runIfFn(g.static,i);c=t.mergeWith({},c,E)}if(x&&Array.isArray(x))for(var k,_=Gn(x);!(k=_()).done;)c[k.value]=b;else x?"&"===x&&t.isObject(b)?c=t.mergeWith({},c,b):c[x]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:$n,configs:Zn})(n)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Nr(e,o)(i)}function fa(e){/*#__PURE__*/
|
4
|
+
return F.forwardRef(e)}var ma=["styleConfig"];function va(e,r){var n;void 0===r&&(r={});var a,o=r.styleConfig,i=ia(r,ma),s=ra({},function(){var e=F.useContext(gr);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:na()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,p=t.mergeWith({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},t.filterUndefined(t.omit(i,["children"]))),f=F.useRef({});if(d){var m=(a=d,function(e){var r,n=e.variant,o=e.size,i=function(e){var r=e.__breakpoints;return function(e,n,a,o){if(r){var i={},s=function(e,r){return t.isArray(e)?e:t.isObject(e)?r(e):null!=e?[e]:void 0}(a,r.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,p=r.details[a],f=r.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,a)],m=t.toMediaQueryString(p.minW,null==f?void 0:f._minW),v=t.runIfFn(null==(l=e[n])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var r,n;t.mergeWith(i,((n={})[e]=c?v[e]:((r={})[m]=v[e],r),n))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(r=a.baseStyle)?r:{},e),i(a,"sizes",o,e),i(a,"variants",n,e))}),v=m(p);_r(f.current,v)||(f.current=v)}return f.current}function ha(e,t){return void 0===t&&(t={}),va(e,t)}function ga(e,t){return void 0===t&&(t={}),va(e,t)}var ya,ba=(ya=new Map,new Proxy(pa,{apply:function(e,t,r){return pa.apply(void 0,r)},get:function(e,t){return ya.has(t)||ya.set(t,pa(t)),ya.get(t)}})),xa=function(e,t){return xa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},xa(e,t)};function Ea(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}xa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ka=function(){return ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ka.apply(this,arguments)};function _a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function wa(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function Sa(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}var Ca="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Oa=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Ra={measureLayout:Oa(["layout","layoutId","drag"]),animation:Oa(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Oa(["exit"]),drag:Oa(["drag","dragControls"]),focus:Oa(["whileFocus"]),hover:Oa(["whileHover","onHoverStart","onHoverEnd"]),tap:Oa(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Oa(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Oa(["whileInView","onViewportEnter","onViewportLeave"])},Aa=function(){},Ia=function(){};"production"!==process.env.NODE_ENV&&(Aa=function(e,t){e||"undefined"==typeof console||console.warn(t)},Ia=function(e,t){if(!e)throw new Error(t)});var Ta=F.createContext({strict:!1}),Na=Object.keys(Ra),Pa=Na.length,La=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Da=F.createContext({}),Ma=F.createContext(null),ja="undefined"!=typeof document,Va=ja?F.useLayoutEffect:F.useEffect,Ba={current:null},Fa=!1;function za(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Wa(e){return Array.isArray(e)}function Ha(e){return"string"==typeof e||Wa(e)}function Ua(e,t,r,n,a){var o;return void 0===n&&(n={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,a)),t}function $a(e,t,r){var n=e.getProps();return Ua(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function qa(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ha(e.initial)||Ha(e.animate)||Ha(e.whileHover)||Ha(e.whileDrag)||Ha(e.whileTap)||Ha(e.whileFocus)||Ha(e.exit)}function Ya(e){return Boolean(qa(e)||e.variants)}function Ga(e){return Array.isArray(e)?e.join(" "):e}function Za(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const Xa="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Ka="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Xa()),16.666666666666668);let Ja=!0,Qa=!1,eo=!1;const to={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],no=ro.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,c=l?t:r;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&a&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;r<n;r++){const n=t[r];n(l),i.has(n)&&(s.schedule(n),e())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>Qa=!0),e),{}),ao=ro.reduce((e,t)=>{const r=no[t];return e[t]=(e,t=!1,n=!1)=>(Qa||co(),r.schedule(e,t,n)),e},{}),oo=ro.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),io=ro.reduce((e,t)=>(e[t]=()=>no[t].process(to),e),{}),so=e=>no[e].process(to),lo=e=>{Qa=!1,to.delta=Ja?16.666666666666668:Math.max(Math.min(e-to.timestamp,40),1),to.timestamp=e,eo=!0,ro.forEach(so),eo=!1,Qa&&(Ja=!1,Ka(lo))},co=()=>{Qa=!0,Ja=!0,eo||Ka(lo)},uo=()=>to,po=(e,t,r)=>Math.min(Math.max(r,e),t);function fo(e,t){return e*Math.sqrt(1-t*t)}const mo=["duration","bounce"],vo=["stiffness","damping","mass"];function ho(e,t){return t.some(t=>void 0!==e[t])}function go(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:a}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ho(e,vo)&&ho(e,mo)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,o;Aa(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=po(.05,1,i),e=po(.01,10,e/1e3),i<1?(a=t=>{const n=t*i,a=n*e;return.001-(n-r)/fo(t,i)*Math.exp(-a)},o=t=>{const n=t*i*e,o=n*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=fo(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*i*Math.sqrt(n*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),f=yo,m=yo;function v(){const e=u?-u/1e3:0,n=r-t,o=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===a&&(a=Math.min(Math.abs(r-t)/100,.4)),o<1){const t=fo(i,o);f=a=>{const s=Math.exp(-o*i*a);return r-s*((e+o*i*n)/t*Math.sin(t*a)+n*Math.cos(t*a))},m=r=>{const a=Math.exp(-o*i*r);return o*i*a*(Math.sin(t*r)*(e+o*i*n)/t+n*Math.cos(t*r))-a*(Math.cos(t*r)*(e+o*i*n)-t*n*Math.sin(t*r))}}else if(1===o)f=t=>r-Math.exp(-i*t)*(n+(e+i*n)*t);else{const t=i*Math.sqrt(o*o-1);f=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return r-s*((e+o*i*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return v(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const o=1e3*m(e),s=Math.abs(o)<=n,l=Math.abs(r-t)<=a;i.done=s&&l}return i.value=i.done?r:t,i},flipTarget:()=>{u=-u,[t,r]=[r,t],v()}}}go.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const yo=e=>0,bo=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},xo=(e,t,r)=>-r*e+r*t+e,Eo=(e,t)=>r=>Math.max(Math.min(r,t),e),ko=e=>e%1?Number(e.toFixed(5)):e,_o=/(-)?([\d]*\.?[\d])+/g,wo=/(#[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,So=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Co(e){return"string"==typeof e}const Oo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ro=Object.assign(Object.assign({},Oo),{transform:Eo(0,1)}),Ao=Object.assign(Object.assign({},Oo),{default:1}),Io=e=>({test:t=>Co(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),To=Io("deg"),No=Io("%"),Po=Io("px"),Lo=Io("vh"),Do=Io("vw"),Mo=Object.assign(Object.assign({},No),{parse:e=>No.parse(e)/100,transform:e=>No.transform(100*e)}),jo=(e,t)=>r=>Boolean(Co(r)&&So.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Vo=(e,t,r)=>n=>{if(!Co(n))return n;const[a,o,i,s]=n.match(_o);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Bo={test:jo("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+No.transform(ko(t))+", "+No.transform(ko(r))+", "+ko(Ro.transform(n))+")"},Fo=Eo(0,255),zo=Object.assign(Object.assign({},Oo),{transform:e=>Math.round(Fo(e))}),Wo={test:jo("rgb","red"),parse:Vo("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+zo.transform(e)+", "+zo.transform(t)+", "+zo.transform(r)+", "+ko(Ro.transform(n))+")"},Ho={test:jo("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),a=e.substr(4,1),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:Wo.transform},Uo={test:e=>Wo.test(e)||Ho.test(e)||Bo.test(e),parse:e=>Wo.test(e)?Wo.parse(e):Bo.test(e)?Bo.parse(e):Ho.parse(e),transform:e=>Co(e)?e:e.hasOwnProperty("red")?Wo.transform(e):Bo.transform(e)};function $o(e){"number"==typeof e&&(e=`${e}`);const t=[];let r=0;const n=e.match(wo);n&&(r=n.length,e=e.replace(wo,"${c}"),t.push(...n.map(Uo.parse)));const a=e.match(_o);return a&&(e=e.replace(_o,"${n}"),t.push(...a.map(Oo.parse))),{values:t,numColors:r,tokenised:e}}function qo(e){return $o(e).values}function Yo(e){const{values:t,numColors:r,tokenised:n}=$o(e),a=t.length;return e=>{let t=n;for(let n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?Uo.transform(e[n]):ko(e[n]));return t}}const Go=e=>"number"==typeof e?0:e,Zo={test:function(e){var t,r,n,a;return isNaN(e)&&Co(e)&&(null!==(r=null===(t=e.match(_o))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(a=null===(n=e.match(wo))||void 0===n?void 0:n.length)&&void 0!==a?a:0)>0},parse:qo,createTransformer:Yo,getAnimatableNone:function(e){const t=qo(e);return Yo(e)(t.map(Go))}},Xo=new Set(["brightness","contrast","saturate","opacity"]);function Ko(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(_o)||[];if(!n)return e;const a=r.replace(n,"");let o=Xo.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}const Jo=/([a-z-]*)\(.*?\)/g,Qo=Object.assign(Object.assign({},Zo),{getAnimatableNone:e=>{const t=e.match(Jo);return t?t.map(Ko).join(" "):e}});function ei(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ti({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let a=0,o=0,i=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;a=ei(s,n,e+1/3),o=ei(s,n,e),i=ei(s,n,e-1/3)}else a=o=i=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:n}}const ri=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},ni=[Ho,Wo,Bo],ai=e=>ni.find(t=>t.test(e)),oi=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ii=(e,t)=>{let r=ai(e),n=ai(t);Ia(!!r,oi(e)),Ia(!!n,oi(t));let a=r.parse(e),o=n.parse(t);r===Bo&&(a=ti(a),r=Wo),n===Bo&&(o=ti(o),n=Wo);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=ri(a[t],o[t],e));return i.alpha=xo(a.alpha,o.alpha,e),r.transform(i)}},si=e=>"number"==typeof e,li=(e,t)=>r=>t(e(r)),ci=(...e)=>e.reduce(li);function ui(e,t){return si(e)?r=>xo(e,t,r):Uo.test(e)?ii(e,t):mi(e,t)}const di=(e,t)=>{const r=[...e],n=r.length,a=e.map((e,r)=>ui(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=a[t](e);return r}},pi=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const a in r)void 0!==e[a]&&void 0!==t[a]&&(n[a]=ui(e[a],t[a]));return e=>{for(const t in n)r[t]=n[t](e);return r}};function fi(e){const t=Zo.parse(e),r=t.length;let n=0,a=0,o=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:n,numRGB:a,numHSL:o}}const mi=(e,t)=>{const r=Zo.createTransformer(t),n=fi(e),a=fi(t);return n.numHSL===a.numHSL&&n.numRGB===a.numRGB&&n.numNumbers>=a.numNumbers?ci(di(n.parsed,a.parsed),r):(Aa(!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.`),r=>`${r>0?t:e}`)},vi=(e,t)=>r=>xo(e,t,r);function hi(e,t,{clamp:r=!0,ease:n,mixer:a}={}){const o=e.length;Ia(o===t.length,"Both input and output ranges must be the same length"),Ia(!n||!Array.isArray(n)||n.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,r){const n=[],a=r||function(e){return"number"==typeof e?vi:"string"==typeof e?Uo.test(e)?ii:mi:Array.isArray(e)?di:"object"==typeof e?pi:void 0}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=a(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]:t;o=ci(e,o)}n.push(o)}return n}(t,n,a),s=2===o?function([e,t],[r]){return n=>r(bo(e,t,n))}(e,i):function(e,t){const r=e.length,n=r-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[n]&&(o=n-1,i=!0),!i){let t=1;for(;t<r&&!(e[t]>a||t===n);t++);o=t-1}const s=bo(e[o],e[o+1],a);return t[o](s)}}(e,i);return r?t=>s(po(e[0],e[o-1],t)):s}const gi=e=>t=>1-e(1-t),yi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bi=e=>t=>t*t*((e+1)*t-e),xi=e=>e,Ei=e=>Math.pow(e,2),ki=gi(Ei),_i=yi(Ei),wi=e=>1-Math.sin(Math.acos(e)),Si=gi(wi),Ci=yi(Si),Oi=bi(1.525),Ri=gi(Oi),Ai=yi(Oi),Ii=(e=>{const t=bi(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ti=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},Ni=gi(Ti);function Pi(e,t){return e.map(()=>t||_i).splice(0,e.length-1)}function Li({from:e=0,to:t=1,ease:r,offset:n,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)}(n&&n.length===i.length?n:function(e){const t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(i),a);function l(){return hi(s,i,{ease:Array.isArray(r)?r:Pi(i,r)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),c=l()}}}const Di={keyframes:Li,spring:go,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=r*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/n);return i.done=!(t>a||t<-a),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}};function Mi(e,t,r=0){return e-t-r}const ji=e=>{const t=({delta:t})=>e(t);return{start:()=>ao.update(t,!0),stop:()=>oo.update(t)}};function Vi(e){var t,r,{from:n,autoplay:a=!0,driver:o=ji,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,v=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,g,y,{to:b}=v,x=0,E=v.duration,k=!1,_=!0;const w=function(e){if(Array.isArray(e.to))return Li;if(Di[e.type])return Di[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Li:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?go:Li}(v);(null===(r=(t=w).needsInterpolation)||void 0===r?void 0:r.call(t,n,b))&&(y=hi([0,100],[n,b],{clamp:!1}),n=0,b=100);const S=w(Object.assign(Object.assign({},v),{from:n,to:b}));return a&&(null==u||u(),h=o(function(e){if(_||(e=-e),i+=e,!k){const e=S.next(Math.max(0,i));g=e.value,y&&(g=y(g)),k=_?e.done:i<=0}null==m||m(g),k&&(0===x&&(null!=E||(E=i)),x<s?function(e,t,r,n){return n?e>=t+r:e<=-r}(i,E,c,_)&&(x++,"reverse"===l?(_=x%2==0,i=function(e,t,r=0,n=!0){return n?Mi(t+-e,t,r):t-(e-t)+r}(i,E,c,_)):(i=Mi(i,E,c),"mirror"===l&&S.flipTarget()),k=!1,f&&f()):(h.stop(),p&&p()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function Bi(e,t){return t?e*(1e3/t):0}const Fi=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),zi=e=>Fi(e)&&e.hasOwnProperty("z"),Wi=(e,t)=>Math.abs(e-t);function Hi(e,t){if(si(e)&&si(t))return Wi(e,t);if(Fi(e)&&Fi(t)){const r=Wi(e.x,t.x),n=Wi(e.y,t.y),a=zi(e)&&zi(t)?Wi(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(a,2))}}const Ui=(e,t)=>1-3*t+3*e,$i=(e,t)=>3*t-6*e,qi=e=>3*e,Yi=(e,t,r)=>((Ui(t,r)*e+$i(t,r))*e+qi(t))*e,Gi=(e,t,r)=>3*Ui(t,r)*e*e+2*$i(t,r)*e+qi(t);function Zi(e,t){-1===e.indexOf(t)&&e.push(t)}function Xi(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var Ki=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Zi(this.subscriptions,e),function(){return Xi(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var a=0;a<n;a++){var o=this.subscriptions[a];o&&o(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ji=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ki,this.velocityUpdateSubscribers=new Ki,this.renderSubscribers=new Ki,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var n=uo(),a=n.timestamp;t.lastUpdated!==a&&(t.timeDelta=n.delta,t.lastUpdated=a,ao.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return ao.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?Bi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).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 Qi(e){return new Ji(e)}var es=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},ts=function(e){return 1e3*e},rs={linear:xi,easeIn:Ei,easeInOut:_i,easeOut:ki,circIn:wi,circInOut:Ci,circOut:Si,backIn:Oi,backInOut:Ai,backOut:Ri,anticipate:Ii,bounceIn:Ni,bounceInOut:e=>e<.5?.5*(1-Ti(1-2*e)):.5*Ti(2*e-1)+.5,bounceOut:Ti},ns=function(e){if(Array.isArray(e)){Ia(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=wa(e,4);return function(e,t,r,n){if(e===t&&r===n)return xi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=Yi(.1*t,e,r);return o=>0===o||1===o?o:Yi(function(t){let n=0,o=1;for(;10!==o&&a[o]<=t;++o)n+=.1;--o;const i=n+(t-a[o])/(a[o+1]-a[o])*.1,s=Gi(i,e,r);return s>=.001?function(e,t,r,n){for(let a=0;a<8;++a){const a=Gi(t,r,n);if(0===a)return t;t-=(Yi(t,r,n)-e)/a}return t}(t,i,e,r):0===s?i:function(e,t,r,n,a){let o,i,s=0;do{i=t+(r-t)/2,o=Yi(i,n,a)-e,o>0?r=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Ia(void 0!==rs[e],"Invalid easing type '".concat(e,"'")),rs[e]):e},as=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Zo.test(t)||t.startsWith("url(")))},os=function(e){return Array.isArray(e)},is=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ss=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ls=function(){return{type:"keyframes",ease:"linear",duration:.3}},cs=function(e){return{type:"keyframes",duration:.8,values:e}},us={x:is,y:is,z:is,rotate:is,rotateX:is,rotateY:is,rotateZ:is,scaleX:ss,scaleY:ss,scale:ss,opacity:ls,backgroundColor:ls,color:ls,default:ss},ds=ka(ka({},Oo),{transform:Math.round}),ps={borderWidth:Po,borderTopWidth:Po,borderRightWidth:Po,borderBottomWidth:Po,borderLeftWidth:Po,borderRadius:Po,radius:Po,borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomRightRadius:Po,borderBottomLeftRadius:Po,width:Po,maxWidth:Po,height:Po,maxHeight:Po,size:Po,top:Po,right:Po,bottom:Po,left:Po,padding:Po,paddingTop:Po,paddingRight:Po,paddingBottom:Po,paddingLeft:Po,margin:Po,marginTop:Po,marginRight:Po,marginBottom:Po,marginLeft:Po,rotate:To,rotateX:To,rotateY:To,rotateZ:To,scale:Ao,scaleX:Ao,scaleY:Ao,scaleZ:Ao,skew:To,skewX:To,skewY:To,distance:Po,translateX:Po,translateY:Po,translateZ:Po,x:Po,y:Po,z:Po,perspective:Po,transformPerspective:Po,opacity:Ro,originX:Mo,originY:Mo,originZ:Po,zIndex:ds,fillOpacity:Ro,strokeOpacity:Ro,numOctaves:ds},fs=ka(ka({},ps),{color:Uo,backgroundColor:Uo,outlineColor:Uo,fill:Uo,stroke:Uo,borderColor:Uo,borderTopColor:Uo,borderRightColor:Uo,borderBottomColor:Uo,borderLeftColor:Uo,filter:Qo,WebkitFilter:Qo}),ms=function(e){return fs[e]};function vs(e,t){var r,n=ms(e);return n!==Qo&&(n=Zo),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var hs=function(e){return os(e)?e[e.length-1]||0:e},gs=!1;function ys(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function bs(e){return"number"==typeof e?0:vs("",e)}function xs(e,t){return e[t]||e.default||e}function Es(e,t,r,n){return void 0===n&&(n={}),t.start(function(a){var o,i,s=function(e,t,r,n,a){var o,i=xs(n,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=as(e,r);"none"===s&&l&&"string"==typeof r?s=vs(e,r):ys(s)&&"string"==typeof r?s=bs(r):!Array.isArray(r)&&ys(r)&&"string"==typeof s&&(r=bs(s));var c=as(e,s);return Aa(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(r," via the `style` property.")),c&&l&&!1!==i.type?function(){var n={from:s,to:r,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:r,max:n,power:a=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function v(e){return void 0!==r&&e<r||void 0!==n&&e>n}function h(e){return void 0===r?n:void 0===n||Math.abs(r-e)<Math.abs(n-e)?r:n}function g(e){null==m||m.stop(),m=Vi(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:p,onStop:f}))}function y(e){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))y({from:e,velocity:t,to:h(e)});else{let n=a*t+e;void 0!==c&&(n=c(n));const i=h(n),s=i===r?-1:1;let u,d;const p=e=>{u=d,d=e,t=Bi(e-u,uo().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:c,onUpdate:v(n)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(ka(ka({},n),i)):Vi(ka(ka({},function(e,t,r){var n,a,o,i;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Sa([],wa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ka(ka({},e),(a=r,i=os(o=t.to)?cs:us[a]||us.default,ka({to:o},i(o))))),ka(ka({},t),function(e){var t=e.ease,r=e.times,n=e.yoyo,a=e.flip,o=e.loop,i=_a(e,["ease","times","yoyo","flip","loop"]),s=ka({},i);return r&&(s.offset=r),i.duration&&(s.duration=ts(i.duration)),i.repeatDelay&&(s.repeatDelay=ts(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ns):ns(t)),"tween"===i.type&&(s.type="keyframes"),(n||o||a)&&(Aa(!gs,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),gs=!0,n?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||n||a||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;n.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,n,o=hs(r);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(n=null==i?void 0:i.onComplete)||void 0===n||n.call(i),{stop:function(){}}}}(e,t,r,n,a),l=function(e,t){var r,n;return null!==(n=null!==(r=(xs(e,t)||{}).delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),c=function(){return i=s()};return l?o=window.setTimeout(c,ts(l)):c(),function(){clearTimeout(o),null==i||i.stop()}})}var ks=["TopLeft","TopRight","BottomLeft","BottomRight"],_s=ks.length,ws=function(e){return"string"==typeof e?parseFloat(e):e},Ss=function(e){return"number"==typeof e||Po.test(e)};function Cs(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var Os=As(0,.5,Si),Rs=As(.5,.95,xi);function As(e,t,r){return function(n){return n<e?0:n>t?1:r(bo(e,t,n))}}function Is(e,t){e.min=t.min,e.max=t.max}function Ts(e,t){Is(e.x,t.x),Is(e.y,t.y)}function Ns(e){return void 0===e||1===e}function Ps(e){var t=e.scaleX,r=e.scaleY;return!Ns(e.scale)||!Ns(t)||!Ns(r)}function Ls(e){return Ps(e)||Ds(e.x)||Ds(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Ds(e){return e&&"0%"!==e}function Ms(e,t,r){return r+t*(e-r)}function js(e,t,r,n,a){return void 0!==a&&(e=Ms(e,a,n)),Ms(e,r,n)+t}function Vs(e,t,r,n,a){void 0===t&&(t=0),void 0===r&&(r=1),e.min=js(e.min,t,r,n,a),e.max=js(e.max,t,r,n,a)}function Bs(e,t){var r=t.x,n=t.y;Vs(e.x,r.translate,r.scale,r.originPoint),Vs(e.y,n.translate,n.scale,n.originPoint)}function Fs(e,t){e.min=e.min+t,e.max=e.max+t}function zs(e,t,r){var n=wa(r,3),a=n[0],o=n[1],i=n[2],s=xo(e.min,e.max,void 0!==t[i]?t[i]:.5);Vs(e,t[a],t[o],s,t.scale)}var Ws=["x","scaleX","originX"],Hs=["y","scaleY","originY"];function Us(e,t){zs(e.x,t,Ws),zs(e.y,t,Hs)}function $s(e){return e.max-e.min}function qs(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Hi(e,t)<r}function Ys(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=xo(t.min,t.max,e.origin),e.scale=$s(r)/$s(t),(qs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=xo(r.min,r.max,e.origin)-e.originPoint,(qs(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Gs(e,t,r,n){Ys(e.x,t.x,r.x,null==n?void 0:n.originX),Ys(e.y,t.y,r.y,null==n?void 0:n.originY)}function Zs(e,t,r){e.min=r.min+t.min,e.max=e.min+$s(t)}function Xs(e,t,r){e.min=t.min-r.min,e.max=e.min+$s(t)}function Ks(e,t,r){Xs(e.x,t.x,r.x),Xs(e.y,t.y,r.y)}function Js(e,t,r,n,a){return e=Ms(e-=t,1/r,n),void 0!==a&&(e=Ms(e,1/a,n)),e}function Qs(e,t,r,n,a){var o=wa(r,3);!function(e,t,r,n,a,o,i){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===i&&(i=e),No.test(t)&&(t=parseFloat(t),t=xo(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=xo(o.min,o.max,n);e===o&&(s-=t),e.min=Js(e.min,t,r,s,a),e.max=Js(e.max,t,r,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,n,a)}var el=["x","scaleX","originX"],tl=["y","scaleY","originY"];function rl(e,t,r,n){Qs(e.x,t,el,null==r?void 0:r.x,null==n?void 0:n.x),Qs(e.y,t,tl,null==r?void 0:r.y,null==n?void 0:n.y)}function nl(e){return 0===e.translate&&1===e.scale}function al(e){return nl(e.x)&&nl(e.y)}function ol(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){Zi(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Xi(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,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var a=this.members[n];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,a,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(a=n.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}(),sl={};function ll(e,t,r){var n=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(n,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var o=r.rotate,i=r.rotateX,s=r.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 cl(e){return[e("x"),e("y")]}var ul=["","X","Y","Z"],dl=["transformPerspective","x","y","z"];function pl(e,t){return dl.indexOf(e)-dl.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ul.forEach(function(t){return dl.push(e+t)})});var fl=new Set(dl);function ml(e){return fl.has(e)}var vl=new Set(["originX","originY","originZ"]);function hl(e){return vl.has(e)}var gl=function(e,t){return e.depth-t.depth},yl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Zi(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Xi(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(gl),this.isDirty=!1,this.children.forEach(e)},e}();function bl(e){var t=es(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var xl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function El(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var a=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),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(Rl),a.nodes.forEach(Al)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?Sa(Sa([],wa(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.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 yl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ki),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,Sa([],wa(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,r){var n,a=this;if(void 0===r&&(r=!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===(n=this.parent)||void 0===n||n.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),xl.hasAnimatedSinceResize&&(xl.hasAnimatedSinceResize=!1,a.nodes.forEach(Ol))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,r,n,o,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var p=null!==(r=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==r?r:Dl,f=l.getProps(),m=f.onLayoutAnimationStart,v=f.onLayoutAnimationComplete,h=!a.targetLayout||!ol(a.targetLayout,d)||u,g=!c&&u;if((null===(n=a.resumeFrom)||void 0===n?void 0:n.instance)||g||c&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,g);var y=ka(ka({},xs(p,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(y.delay=0,y.type=!1),a.startAnimation(y)}else c||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,oo.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(Il))},e.prototype.willUpdate=function(e){var t,r,n;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(r=(t=this.options).onExitComplete)||void 0===r||r.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===(n=this.options.visualElement)||void 0===n?void 0:n.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(Sl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ml),this.potentialNodes.clear()),this.nodes.forEach(Cl),this.nodes.forEach(kl),this.nodes.forEach(_l),this.clearAllSnapshots(),io.update(),io.preRender(),io.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(wl),this.sharedNodes.forEach(Tl)},e.prototype.scheduleUpdateProjection=function(){ao.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;ao.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));Vl(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 r=this.measure();Vl(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},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==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=a(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!al(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==n?void 0:n(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(r||Ls(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(),r=this.root.scroll;return r&&(Fs(t.x,r.x),Fs(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ts(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],a=n.scroll;if(n!==this.root&&a&&n.options.layoutScroll){if(n.isScrollRoot){Ts(t,e);var o=this.root.scroll;o&&(Fs(t.x,-o.x),Fs(t.y,-o.y))}Fs(t.x,a.x),Fs(t.y,a.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r={x:{min:0,max:0},y:{min:0,max:0}};Ts(r,e);for(var n=0;n<this.path.length;n++){var a=this.path[n];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Us(r,{x:-a.scroll.x,y:-a.scroll.y}),Ls(a.latestValues)&&Us(r,a.latestValues)}return Ls(this.latestValues)&&Us(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r={x:{min:0,max:0},y:{min:0,max:0}};Ts(r,e);for(var n=0;n<this.path.length;n++){var a=this.path[n];if(a.instance&&Ls(a.latestValues)){Ps(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Ts(o,a.measure()),rl(r,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return Ls(this.latestValues)&&rl(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ka(ka(ka({},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,r,n,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}},Ks(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Ts(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)?(Zs((t=this.target).x,(r=this.relativeTarget).x,(n=this.relativeParent.target).x),Zs(t.y,r.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Ts(this.target,this.layout.actual),Bs(this.target,this.targetDelta)):Ts(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}},Ks(this.relativeTargetOrigin,this.target,this.relativeParent.target),Ts(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Ls(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,r=t.layout,n=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&&(r||n)){var a=this.getLead();Ts(this.layoutCorrected,this.layout.actual),function(e,t,r,n){var a,o;void 0===n&&(n=!1);var i=r.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=r[c]).projectionDelta,"contents"!==(null===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Us(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Bs(e,l)),n&&Ls(s.latestValues)&&Us(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;Gs(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=ll(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,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=ka({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==a?void 0:a.isShared,u=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Ll));this.animationProgress=0,this.mixTargetDelta=function(t){var r,a=t/1e3;Nl(s.x,e.x,a),Nl(s.y,e.y,a),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(r=n.relativeParent)||void 0===r?void 0:r.layout)&&(Ks(l,n.layout.actual,n.relativeParent.layout.actual),function(e,t,r,n){Pl(e.x,t.x,r.x,n),Pl(e.y,t.y,r.y,n)}(n.relativeTarget,n.relativeTargetOrigin,l,a)),c&&(n.animationValues=i,function(e,t,r,n,a,o){var i,s,l,c;a?(e.opacity=xo(0,null!==(i=r.opacity)&&void 0!==i?i:1,Os(n)),e.opacityExit=xo(null!==(s=t.opacity)&&void 0!==s?s:1,0,Rs(n))):o&&(e.opacity=xo(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var u=0;u<_s;u++){var d="border".concat(ks[u],"Radius"),p=Cs(t,d),f=Cs(r,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||Ss(p)===Ss(f)?(e[d]=Math.max(xo(ws(p),ws(f),n),0),(No.test(f)||No.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||r.rotate)&&(e.rotate=xo(t.rotate||0,r.rotate||0,n))}(i,o,n.latestValues,a,d,u)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(oo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ao.update(function(){xl.hasAnimatedSinceResize=!0,n.currentAnimation=function(e,t,r){void 0===r&&(r={});var n=es(0)?0:Qi(0);return Es("",n,1e3,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}(0,0,ka(ka({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}})),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.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,r=e.target,n=e.latestValues;t&&r&&e.layout&&(Ts(t,r),Us(t,n),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,t,n))},e.prototype.registerSharedNode=function(e,t){var r,n,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new il),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(a=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(n,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,r=t.needsReset,n=t.transition,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},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,r={},n=0;n<ul.length;n++)e.getStaticValue(a="rotate"+ul[n])&&(t=!0,r[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),r)e.setStaticValue(a,r[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,r,n,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=bl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,u.pointerEvents=bl(e.pointerEvents)||""),this.hasProjected&&!Ls(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=ll(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var v in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(a=null!==(n=d.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,sl)if(void 0!==d[v]){var h=sl[v],g=h.applyTo,y=(0,h.correct)(d[v],c);if(g)for(var b=g.length,x=0;x<b;x++)s[g[x]]=y;else s[v]=y}return this.options.layoutId&&(s.pointerEvents=c===this?bl(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(Sl),this.root.sharedNodes.clear()},e}()}function kl(e){e.updateLayout()}function _l(e){var t,r,n,a,o=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r: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?cl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=$s(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&cl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=$s(s[e]);t.max=t.min+r});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Gs(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Gs(u,e.applyTransform(l,!0),o.measured):Gs(u,s,o.layout);var d=!al(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,v=f.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};Ks(h,o.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Ks(g,s,v.actual),ol(h,g)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(a=(n=e.options).onExitComplete)||void 0===a||a.call(n));e.options.transition=void 0}function wl(e){e.clearSnapshot()}function Sl(e){e.clearMeasurements()}function Cl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ol(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Rl(e){e.resolveTargetDelta()}function Al(e){e.calcProjection()}function Il(e){e.resetRotation()}function Tl(e){e.removeLeadSnapshot()}function Nl(e,t,r){e.translate=xo(t.translate,0,r),e.scale=xo(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Pl(e,t,r,n){e.min=xo(t.min,r.min,n),e.max=xo(t.max,r.max,n)}function Ll(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Dl={duration:.45,ease:[.4,0,.1,1]};function Ml(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var a=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function jl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Vl(e){jl(e.x),jl(e.y)}var Bl=1,Fl=F.createContext({}),zl=F.createContext({}),Wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(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 Hl(e){function t(t,r){return void 0===r&&(r={}),function(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=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?Ra.projectionNodeConstructor=e[t]:Ra[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,r=e.layoutId,n=null===(t=F.useContext(Fl))||void 0===t?void 0:t.id;return n&&void 0!==r?n+"-"+r:r}(e);e=ka(ka({},e),{layoutId:l});var c=F.useContext(La),u=null,d=function(e){var t=function(e,t){if(qa(e)){var r=e.initial,n=e.animate;return{initial:!1===r||Ha(r)?r:void 0,animate:Ha(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(Da)),r=t.initial,n=t.animate;return F.useMemo(function(){return{initial:r,animate:n}},[Ga(r),Ga(n)])}(e),p=c.isStatic?void 0:Za(function(){if(xl.hasEverUpdated)return Bl++}),f=o(e,c.isStatic);return!c.isStatic&&ja&&(d.visualElement=function(e,t,r,n){var a,o,i=F.useContext(Ta),s=F.useContext(Da).visualElement,l=F.useContext(Ma),c=(!Fa&&function(){if(Fa=!0,ja)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ba.current=e.matches};e.addListener(t),t()}else Ba.current=!1}(),a=wa(F.useState(Ba.current),1)[0],"never"!==(o=F.useContext(La).reducedMotion)&&("always"===o||a)),u=F.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:s,props:r,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return Va(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Va(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,ka(ka({},c),e),r),function(e,t,r,n){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=F.useContext(zl);n&&r&&!(null==r?void 0:r.projection)&&(r.projection=new n(e,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&za(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,n||Ra.projectionNodeConstructor),u=function(e,t,r){var n=[],a=F.useContext(Ta);if(!t)return null;"production"!==Ca&&r&&a.strict&&Ia(!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<Pa;o++){var i=Na[o],s=Ra[i],l=s.Component;(0,s.isEnabled)(e)&&l&&n.push(F.createElement(l,ka({key:i},e,{visualElement:t})))}return n}(e,d.visualElement,t)),F.createElement(Wl,{visualElement:d.visualElement,props:ka(ka({},c),e)},u,F.createElement(Da.Provider,{value:d},a(i,e,p,function(e,t,r){return F.useCallback(function(n){var a;n&&(null===(a=e.mount)||void 0===a||a.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):za(r)&&(r.current=n))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,r))}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var Ul=["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 $l(e){return"string"==typeof e&&!e.includes("-")&&!!(Ul.indexOf(e)>-1||/[A-Z]/.test(e))}function ql(e,t){var r=t.layout,n=t.layoutId;return ml(e)||hl(e)||(r||void 0!==n)&&(!!sl[e]||"opacity"===e)}var Yl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Gl(e){return e.startsWith("--")}var Zl=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Xl(e,t,r,n){var a,o=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if(Gl(f))i[f]=m;else{var v=ps[f],h=Zl(m,v);if(ml(f)){if(u=!0,s[f]=h,l.push(f),!p)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(p=!1)}else hl(f)?(c[f]=h,d=!0):o[f]=h}}u?o.transform=function(e,t,r,n){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(pl);for(var d=!1,p=o.length,f=0;f<p;f++){var m=o[f];u+="".concat(Yl[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),n?u=n(a,r?"":u):c&&r&&(u="none"),u}(e,r,p,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,r=e.originY,n=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(n," ").concat(o)}(c))}function Kl(e,t,r){for(var n in t)es(t[n])||ql(n,r)||(e[n]=t[n])}function Jl(e,t,r){var n={},a=function(e,t,r){var n={};return Kl(n,e.style||{},e),Object.assign(n,function(e,t,r){var n=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Xl(e,t,{enableHardwareAcceleration:!r},n);var a=e.style;return ka(ka({},e.vars),a)},[t])}(e,t,r)),e.transformValues&&(n=e.transformValues(n)),n}(e,t,r);return Boolean(e.drag)&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),n.style=a,n}var Ql=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 ec(e){return Ql.has(e)}var tc,rc=function(e){return!ec(e)};try{(tc=require("@emotion/is-prop-valid").default)&&(rc=function(e){return e.startsWith("on")?!ec(e):tc(e)})}catch(e){}function nc(e,t,r){return"string"==typeof e?e:Po.transform(t+r*e)}var ac={offset:"stroke-dashoffset",array:"stroke-dasharray"},oc={offset:"strokeDashoffset",array:"strokeDasharray"};function ic(e,t,r,n){var a=t.attrX,o=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Xl(e,_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,v=e.dimensions;f.transform&&(v&&(m.transform=f.transform),delete f.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,r){var n=nc(t,e.x,e.width),a=nc(r,e.y,e.height);return"".concat(n," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(f.x=a),void 0!==o&&(f.y=o),void 0!==l&&function(e,t,r,n,a){void 0===r&&(r=1),void 0===n&&(n=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?ac:oc;e[o.offset]=Po.transform(-n);var i=Po.transform(t),s=Po.transform(r);e[o.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var sc=function(){return ka(ka({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function lc(e,t){var r=F.useMemo(function(){var r=sc();return ic(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),ka(ka({},r.attrs),{style:ka({},r.style)})},[t]);if(e.style){var n={};Kl(n,e.style,e),r.style=ka(ka({},n),r.style)}return r}function cc(e){return void 0===e&&(e=!1),function(t,r,n,a,o,i){var s=o.latestValues,l=($l(t)?lc:Jl)(r,s,i),c=function(e,t,r){var n={};for(var a in e)(rc(a)||!0===r&&ec(a)||!t&&!ec(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(r,"string"==typeof t,e),u=ka(ka(ka({},c),l),{ref:a});return n&&(u["data-projection-id"]=n),F.createElement(t,u)}}var uc=/([a-z])([A-Z])/g,dc=function(e){return e.replace(uc,"$1-$2").toLowerCase()};function pc(e,t,r,n){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,n&&n.getProjectionStyles(r)),o)e.style.setProperty(i,o[i])}var fc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function mc(e,t,r,n){for(var a in pc(e,t,void 0,n),t.attrs)e.setAttribute(fc.has(a)?a:dc(a),t.attrs[a])}function vc(e){var t=e.style,r={};for(var n in t)(es(t[n])||ql(n,e))&&(r[n]=t[n]);return r}function hc(e){var t=vc(e);for(var r in e)es(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function gc(e){return"object"==typeof e&&"function"==typeof e.start}function yc(e,t,r,n){var a=e.createRenderState,o=e.onMount,i={latestValues:xc(t,r,n,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var bc=function(e){return function(t,r){var n=F.useContext(Da),a=F.useContext(Ma);return r?yc(e,t,n,a):Za(function(){return yc(e,t,n,a)})}};function xc(e,t,r,n){var a={},o=!1===(null==r?void 0:r.initial),i=n(e);for(var s in i)a[s]=bl(i[s]);var l=e.initial,c=e.animate,u=qa(e),d=Ya(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=o||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!gc(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var r=Ua(e,t);if(r){var n=r.transitionEnd,o=_a(r,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in n)a[i]=n[i]}}),a}var Ec,kc={useVisualState:bc({scrapeMotionValuesFromProps:hc,createRenderState:sc,onMount:function(e,t,r){var n=r.renderState,a=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ic(n,a,{enableHardwareAcceleration:!1},e.transformTemplate),mc(t,n)}})},_c={useVisualState:bc({scrapeMotionValuesFromProps:vc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function wc(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function Sc(e,t,r,n){F.useEffect(function(){var a=e.current;if(r&&a)return wc(a,t,r,n)},[e,t,r,n])}function Cc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Oc(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"}(Ec||(Ec={}));var Rc={pageX:0,pageY:0};function Ac(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Rc;return{x:r[t+"X"],y:r[t+"Y"]}}function Ic(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Tc(e,t){return void 0===t&&(t="page"),{point:Oc(e)?Ac(e,t):Ic(e,t)}}var Nc=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,Tc(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Pc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Lc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dc(e){return ja&&null===window.onpointerdown?e:ja&&null===window.ontouchstart?Lc[e]:ja&&null===window.onmousedown?Pc[e]:e}function Mc(e,t,r,n){return wc(e,Dc(t),Nc(r,"pointerdown"===t),n)}function jc(e,t,r,n){return Sc(e,Dc(t),r&&Nc(r,"pointerdown"===t),n)}function Vc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Bc=Vc("dragHorizontal"),Fc=Vc("dragVertical");function zc(e){var t=!1;if("y"===e)t=Fc();else if("x"===e)t=Bc();else{var r=Bc(),n=Fc();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Wc(){var e=zc(!0);return!e||(e(),!1)}function Hc(e,t,r){return function(n,a){var o;Cc(n)&&!Wc()&&(null===(o=e.animationState)||void 0===o||o.setActive(Ec.Hover,t),null==r||r(n,a))}}var Uc=function(e,t){return!!t&&(e===t||Uc(e,t.parentElement))};function $c(e){return F.useEffect(function(){return function(){return e()}},[])}var qc=new Set;function Yc(e,t,r){e||qc.has(t)||(console.warn(t),r&&console.warn(r),qc.add(t))}var Gc=new WeakMap,Zc=new WeakMap,Xc=function(e){var t;null===(t=Gc.get(e.target))||void 0===t||t(e)},Kc=function(e){e.forEach(Xc)},Jc={some:0,all:1};function Qc(e,t,r,n){var a=n.root,o=n.margin,i=n.amount,s=void 0===i?"some":i,l=n.once;F.useEffect(function(){if(e){var n={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:Jc[s]};return function(e,n,a){var o=function(e){var t=e.root,r=_a(e,["root"]),n=t||document;Zc.has(n)||Zc.set(n,{});var a=Zc.get(n),o=JSON.stringify(r);return a[o]||(a[o]=new IntersectionObserver(Kc,ka({root:t},r))),a[o]}(n);return Gc.set(e,function(e){var n,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(Ec.InView,a);var o=r.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){Gc.delete(e),o.unobserve(e)}}(r.getInstance(),n)}},[e,a,o,s])}function eu(e,t,r,n){var a=n.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==Ca&&Yc(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(Ec.InView,!0)}))},[e])}var tu=function(e){return function(t){return e(t),null}},ru={inView:tu(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(r||n||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?eu:Qc)(l,s.current,t,i)}),tap:tu(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,a=e.visualElement,o=t||r||n||e.whileTap,i=F.useRef(!1),s=F.useRef(null),l={passive:!(r||t||n||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Ec.Tap,!1),!Wc()}function d(e,r){u()&&(Uc(a.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){u()&&(null==n||n(e,t))}function f(e,t){var n;c(),i.current||(i.current=!0,s.current=ci(Mc(window,"pointerup",d,l),Mc(window,"pointercancel",p,l)),null===(n=a.animationState)||void 0===n||n.setActive(Ec.Tap,!0),null==r||r(e,t))}jc(a,"pointerdown",o?f:void 0,l),$c(c)}),focus:tu(function(e){var t=e.whileFocus,r=e.visualElement;Sc(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ec.Focus,!0)}:void 0),Sc(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ec.Focus,!1)}:void 0)}),hover:tu(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,a=e.visualElement;jc(a,"pointerenter",t||n?Hc(a,!0,t):void 0,{passive:!t}),jc(a,"pointerleave",r||n?Hc(a,!1,r):void 0,{passive:!r})})},nu=0,au=function(){return nu++},ou=function(){return Za(au)};function iu(){var e=F.useContext(Ma);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,a=ou();return F.useEffect(function(){return n(a)},[]),!t&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function su(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var lu=function(e){return/^\-?\d*\.?\d+$/.test(e)},cu=function(e){return/^0[^.\s]+$/.test(e)},uu=function(e){return function(t){return t.test(e)}},du=[Oo,Po,No,To,Do,Lo,{test:function(e){return"auto"===e},parse:function(e){return e}}],pu=function(e){return du.find(uu(e))},fu=Sa(Sa([],wa(du),!1),[Uo,Zo],!1),mu=function(e){return fu.find(uu(e))};function vu(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qi(r))}function hu(e,t){if(t)return(t[e]||t.default||t).from}function gu(e,t,r){var n;void 0===r&&(r={});var a=$a(e,t,r.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;r.transitionOverride&&(i=r.transitionOverride);var s=a?function(){return yu(e,a,r)}:function(){return Promise.resolve()},l=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var a=i.delayChildren;return function(e,t,r,n,a,o){void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*n,l=1===a?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),s-e*n};return Array.from(e.variantChildren).sort(bu).forEach(function(e,n){i.push(gu(e,t,ka(ka({},o),{delay:r+l(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+n,i.staggerChildren,i.staggerDirection,r)}:function(){return Promise.resolve()},c=i.when;if(c){var u=wa("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(r.delay)])}function yu(e,t,r){var n,a=void 0===r?{}:r,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=_a(c,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[l]);for(var h in f){var g=e.getValue(h),y=f[h];if(!(!g||void 0===y||v&&xu(v,h))){var b=ka({delay:i},d);e.shouldReduceMotion&&ml(h)&&(b=ka(ka({},b),{type:!1,delay:0}));var x=Es(h,g,y,b);m.push(x)}}return Promise.all(m).then(function(){p&&function(e,t){var r=$a(e,t),n=r?e.makeTargetAnimatable(r,!1):{},a=n.transitionEnd,o=void 0===a?{}:a,i=_a(n,["transitionEnd","transition"]);for(var s in i=ka(ka({},i),o))vu(e,s,hs(i[s]))}(e,p)})}function bu(e,t){return e.sortNodePosition(t)}function xu(e,t){var r=e.needsAnimating,n=e.protectedKeys.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,n}var Eu=[Ec.Animate,Ec.InView,Ec.Focus,Ec.Hover,Ec.Tap,Ec.Drag,Ec.Exit],ku=Sa([],wa(Eu),!1).reverse(),_u=Eu.length;function wu(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Su={animation:tu(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map(function(t){return gu(e,t,r)});n=Promise.all(a)}else if("string"==typeof t)n=gu(e,t,r);else{var o="function"==typeof t?$a(e,t,r.custom):t;n=yu(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),n=((t={})[Ec.Animate]=wu(!0),t[Ec.InView]=wu(),t[Ec.Hover]=wu(),t[Ec.Tap]=wu(),t[Ec.Drag]=wu(),t[Ec.Focus]=wu(),t[Ec.Exit]=wu(),t),a={},o=!0,i=function(t,r){var n=$a(e,r);if(n){var a=n.transitionEnd,o=_a(n,["transition","transitionEnd"]);t=ka(ka(ka({},t),o),a)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,v=function(r){var a=ku[r],v=n[a],h=null!==(l=c[a])&&void 0!==l?l:u[a],g=Ha(h),y=a===s?v.isActive:null;!1===y&&(m=r);var b=h===u[a]&&h!==c[a]&&g;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=ka({},f),!v.isActive&&null===y||!h&&!v.prevProp||gc(h)||"boolean"==typeof h)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Wa(t)&&!su(t,e)}(v.prevProp,h),E=x||a===s&&v.isActive&&!b&&g||r>m&&g,k=Array.isArray(h)?h:[h],_=k.reduce(i,{});!1===y&&(_={});var w=v.prevResolvedValues,S=void 0===w?{}:w,C=ka(ka({},S),_),O=function(e){E=!0,p.delete(e),v.needsAnimating[e]=!0};for(var R in C){var A=_[R],I=S[R];f.hasOwnProperty(R)||(A!==I?os(A)&&os(I)?!su(A,I)||x?O(R):v.protectedKeys[R]=!0:void 0!==A?O(R):p.add(R):void 0!==A&&p.has(R)?O(R):v.protectedKeys[R]=!0)}v.prevProp=h,v.prevResolvedValues=_,v.isActive&&(f=ka(ka({},f),_)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Sa([],wa(k.map(function(e){return{animation:e,options:ka({type:a},t)}})),!1))},h=0;h<_u;h++)v(h);if(a=ka({},f),p.size){var g={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(g[t]=r)}),d.push({animation:g})}var y=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?r(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,r,a){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var i=s(a,t);for(var l in n)n[l].protectedKeys={};return i},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),gc(r)&&F.useEffect(function(){return r.subscribe(t)},[r])}),exit:tu(function(e){var t=e.custom,r=e.visualElement,n=wa(iu(),2),a=n[0],o=n[1],i=F.useContext(Ma);F.useEffect(function(){var e,n;r.isPresent=a;var s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(Ec.Exit,!a,{custom:null!==(n=null==i?void 0:i.custom)&&void 0!==n?n:t});!a&&(null==s||s.then(o))},[a])})},Cu=function(){function e(e,t,r){var n=this,a=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=Au(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=Hi(e.offset,{x:0,y:0})>=3;if(t||r){var a=e.point,o=uo().timestamp;n.history.push(ka(ka({},a),{timestamp:o}));var i=n.handlers,s=i.onStart,l=i.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),l&&l(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Ou(t,n.transformPagePoint),Cc(e)&&0===e.buttons?n.handlePointerUp(e,t):ao.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,a=r.onEnd,o=r.onSessionEnd,i=Au(Ou(t,n.transformPagePoint),n.history);n.startEvent&&a&&a(e,i),o&&o(e,i)},!(Oc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=Ou(Tc(e),this.transformPagePoint),i=o.point,s=uo().timestamp;this.history=[ka(ka({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Au(o,this.history)),this.removeListeners=ci(Mc(window,"pointermove",this.handlePointerMove),Mc(window,"pointerup",this.handlePointerUp),Mc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),oo.update(this.updatePoint)},e}();function Ou(e,t){return t?{point:t(e.point)}:e}function Ru(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Au(e,t){var r=e.point;return{point:r,delta:Ru(r,Tu(t)),offset:Ru(r,Iu(t)),velocity:Nu(t,.1)}}function Iu(e){return e[0]}function Tu(e){return e[e.length-1]}function Nu(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,a=Tu(e);r>=0&&!(a.timestamp-(n=e[r]).timestamp>ts(t));)r--;if(!n)return{x:0,y:0};var o=(a.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Pu(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Lu(e,t){var r,n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=wa([a,n],2))[0],a=r[1]),{min:n,max:a}}function Du(e,t,r){return{min:Mu(e,t),max:Mu(e,r)}}function Mu(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function ju(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Vu(e,t){return ju(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var Bu=new WeakMap,Fu=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 r=this,n=(void 0===t?{}:t).snapToCursor,a=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new Cu(e,{onSessionStart:function(e){r.stopAnimation(),a&&r.snapToCursor(Tc(e,"page").point)},onStart:function(e,t){var n,a=r.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=zc(o),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),cl(function(e){var t,n,a=r.getAxisMotionValue(e).get()||0;if(No.test(a)){var o=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];o&&(a=$s(o)*(parseFloat(a)/100))}r.originPoint[e]=a}),null==i||i(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(Ec.Drag,!0))},onMove:function(e,t){var n=r.getProps(),a=n.onDirectionLock,o=n.onDrag;if(n.dragPropagation||r.openGlobalLock){var i=t.offset;if(n.dragDirectionLock&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),void(null!==r.currentDirection&&(null==a||a(r.currentDirection)));r.updateAxis("x",t.point,i),r.updateAxis("y",t.point,i),r.visualElement.syncRender(),null==o||o(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){this.startAnimation(t.velocity);var n=this.getProps().onDragEnd;null==n||n(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(Ec.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&zu(e,n,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,t,r){var n=t.min,a=t.max;return void 0!==n&&e<n?e=r?xo(n,e,r.min):Math.max(e,n):void 0!==a&&e>a&&(e=r?xo(a,e,r.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(),r=t.dragConstraints,n=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;r&&za(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!a)&&function(e,t){var r=t.top,n=t.bottom;return{x:Pu(e.x,t.left,t.right),y:Pu(e.y,r,n)}}(a.actual,r),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Du(e,"left","right"),y:Du(e,"top","bottom")}}(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&cl(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!za(t))return!1;var n=t.current;Ia(null!==n,"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,r){var n=Vu(e,r),a=t.scroll;return a&&(Fs(n.x,a.x),Fs(n.y,a.y)),n}(n,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Lu(e.x,t.x),y:Lu(e.y,t.y)}}(a.layout.actual,o);if(r){var s=r(function(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=ju(s))}return i},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,a=r.dragMomentum,o=r.dragElastic,i=r.dragTransition,s=r.dragSnapToOrigin,l=r.onDragTransitionEnd,c=this.constraints||{},u=cl(function(r){var l;if(zu(r,n,t.currentDirection)){var u=null!==(l=null==c?void 0:c[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=ka(ka({type:"inertia",velocity:a?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(r,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Es(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;cl(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;cl(function(r){if(zu(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,a=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r];a.set(e[r]-xo(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,a=this.visualElement.projection;if(za(r.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};cl(function(e){var r,n,a,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();o[e]=(n=t.constraints[e],a=.5,i=$s(r={min:c,max:c}),(s=$s(n))>i?a=bo(n.min,n.max-i,r.min):i>s&&(a=bo(r.min,r.max-s,n.min)),po(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(),cl(function(e){if(zu(e,n,null)){var r=t.getAxisMotionValue(e),a=t.constraints[e];r.set(xo(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Bu.set(this.visualElement,this);var r=Mc(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.dragListener;r.drag&&(void 0===n||n)&&t.start(e)}),n=function(){za(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",n);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),n();var i=wc(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var r=e.delta;t.isDragging&&e.hasLayoutChanged&&(cl(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){i(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,a=void 0!==n&&n,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return ka(ka({},e),{drag:r,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function zu(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var Wu={pan:tu(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||r||n||a,s=F.useRef(null),l=F.useContext(La).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:t,onEnd:function(e,t){s.current=null,n&&n(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),jc(o,"pointerdown",i&&function(e){s.current=new Cu(e,c,{transformPagePoint:l})}),$c(function(){return s.current&&s.current.end()})}),drag:tu(function(e){var t=e.dragControls,r=e.visualElement,n=Za(function(){return new Fu(r)});F.useEffect(function(){return t&&t.subscribe(n)},[n,t]),F.useEffect(function(){return n.addListeners()},[n])})},Hu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Uu=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,a=e.getBaseTarget,o=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,x=!1,E=h.latestValues,k=h.renderState,_=function(){var e=Hu.map(function(){return new Ki}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){Hu.forEach(function(n){var a,o="on"+n,i=e[o];null===(a=t[n])||void 0===a||a.call(t),i&&(t[n]=r[o](i))})}};return e.forEach(function(e,t){r["on"+Hu[t]]=function(t){return e.add(t)},r["notify"+Hu[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,Sa([],wa(t),!1))}}),r}(),w=new Map,S=new Map,C={},O=ka({},E);function R(){y&&x&&(A(),s(y,k,f.style,j.projection))}function A(){n(j,k,E,t,f)}function I(){_.notifyUpdate(E)}function T(e,t){var r=t.onChange(function(t){E[e]=t,f.onUpdate&&ao.update(I,!1,!0)}),n=t.onRenderRequest(j.scheduleRender);S.set(e,function(){r(),n()})}var N=d(f);for(var P in N){var L=N[P];void 0!==E[P]&&es(L)&&L.set(E[P],!1)}var D=qa(f),M=Ya(f),j=ka(ka({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){x=!0,y=j.current=e,j.projection&&j.projection.mount(e),M&&p&&!D&&(b=null==p?void 0:p.addVariantChild(j)),w.forEach(function(e,t){return T(t,e)}),null==p||p.children.add(j),j.setProps(f)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),oo.update(I),oo.render(R),S.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(j),_.clearAllListeners(),y=void 0,x=!1},addVariantChild:function(e){var t,r=j.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&r===e.treeType?u(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?j:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(j,e,f,t)},measureViewportBox:function(){return i(y,f)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),w.set(e,t),E[e]=t.get(),T(e,t)},removeValue:function(e){var t;w.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete E[e],c(e,k)},hasValue:function(e){return w.has(e)},getValue:function(e,t){var r=w.get(e);return void 0===r&&void 0!==t&&(r=Qi(t),j.addValue(e,r)),r},forEachValue:function(e){return w.forEach(e)},readValue:function(e){var r;return null!==(r=E[e])&&void 0!==r?r:l(y,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(a){var t=a(f,e);if(void 0!==t&&!es(t))return t}return O[e]}},_),{build:function(){return A(),k},scheduleRender:function(){ao.render(R,!1,!0)},syncRender:R,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&j.scheduleRender(),f=e,_.updatePropListeners(e),C=function(e,t,r){var n;for(var a in t){var o=t[a],i=r[a];if(es(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&Yc("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(es(i))e.addValue(a,Qi(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,Qi(null!==(n=e.getStaticValue(a))&&void 0!==n?n:o))}for(var a in r)void 0===t[a]&&e.removeValue(a);return t}(j,d(f),C)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!D){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var r={},n=0;n<qu;n++){var a=$u[n],o=f[a];(Ha(o)||!1===o)&&(r[a]=o)}return r}});return j}},$u=Sa(["initial"],wa(Eu),!1),qu=$u.length;function Yu(e){return"string"==typeof e&&e.startsWith("var(--")}var Gu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zu(e,t,r){void 0===r&&(r=1),Ia(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=wa(function(e){var t=Gu.exec(e);if(!t)return[,];var r=wa(t,3);return[r[1],r[2]]}(e),2),a=n[0],o=n[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():Yu(o)?Zu(o,t,r+1):o}}var Xu,Ku=new Set(["width","height","top","left","right","bottom","x","y"]),Ju=function(e){return Ku.has(e)},Qu=function(e,t){e.set(t,!1),e.set(t)},ed=function(e){return e===Oo||e===Po};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Xu||(Xu={}));var td=function(e,t){return parseFloat(e.split(", ")[t])},rd=function(e,t){return function(r,n){var a=n.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return td(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?td(i[1],e):0}},nd=new Set(["x","y","z"]),ad=dl.filter(function(e){return!nd.has(e)}),od={width:function(e,t){var r=e.x,n=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(o)},height:function(e,t){var r=e.y,n=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(o)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:rd(4,13),y:rd(5,14)},id={treeType:"dom",readValueFromInstance:function(e,t){if(ml(t)){var r=ms(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Gl(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return Vu(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.style;delete t.vars[e],delete r[e]},makeTargetAnimatable:function(e,t,r,n){var a=r.transformValues;void 0===n&&(n=!0);var o=t.transition,i=t.transitionEnd,s=_a(t,["transition","transitionEnd"]),l=function(e,t,r){var n,a,o={};for(var i in e)o[i]=null!==(n=hu(i,t))&&void 0!==n?n:null===(a=r.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))),n){!function(e,t,r){var n,a,o,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(a=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==a?a:t[u]),null!=p&&("string"==typeof p&&(lu(p)||cu(p))?p=parseFloat(p):!mu(p)&&Zo.test(d)&&(p=vs(u,d)),e.addValue(u,Qi(p)),null!==(o=(i=r)[u])&&void 0!==o||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,r,n){var a=function(e,t,r){var n,a=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:r};for(var i in r&&(r=ka({},r)),e.forEachValue(function(e){var t=e.get();if(Yu(t)){var r=Zu(t,o);r&&e.set(r)}}),a){var s=a[i];if(Yu(s)){var l=Zu(s,o);l&&(a[i]=l,r&&(null!==(n=r[i])&&void 0!==n||(r[i]=s)))}}return{target:a,transitionEnd:r}}(e,t,n);return function(e,t,r,n){return function(e){return Object.keys(e).some(Ju)}(t)?function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=ka({},t),n=ka({},n);var a=Object.keys(t).filter(Ju),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var c,u=r[a],d=pu(u),p=t[a];if(os(p)){var f=p.length,m=null===p[0]?1:0;d=pu(u=p[m]);for(var v=m;v<f;v++)c?Ia(pu(p[v])===c,"All keyframes must be of the same type"):(c=pu(p[v]),Ia(c===d||ed(d)&&ed(c),"Keyframes must be of the same dimension as the current value"))}else c=pu(p);if(d!==c)if(ed(d)&&ed(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof p?t[a]=parseFloat(p):Array.isArray(p)&&c===Po&&(t[a]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[a]=d.transform(p):(i||(o=function(e){var t=[];return ad.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(a),n[a]=void 0!==n[a]?n[a]:t[a],Qu(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,r){var n=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){i[e]=od[e](n,o)}),t.syncRender();var s=t.measureViewportBox();return r.forEach(function(r){var n=t.getValue(r);Qu(n,i[r]),e[r]=od[r](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var r=wa(t,2),n=r[1];e.getValue(r[0]).set(n)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}return{target:t,transitionEnd:n}}(e,t,r,n):{target:t,transitionEnd:n}}(e,t=a.target,r,n=a.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return ka({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:vc,build:function(e,t,r,n,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xl(t,r,n,a.transformTemplate)},render:pc},sd=Uu(id),ld=Uu(ka(ka({},id),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return ml(t)?(null===(r=ms(t))||void 0===r?void 0:r.default)||0:(t=fc.has(t)?t:dc(t),e.getAttribute(t))},scrapeMotionValuesFromProps:hc,build:function(e,t,r,n,a){ic(t,r,n,a.transformTemplate)},render:mc})),cd=function(e,t){return $l(e)?ld(t,{enableHardwareAcceleration:!1}):sd(t,{enableHardwareAcceleration:!0})};function ud(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var dd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Po.test(e))return e;e=parseFloat(e)}var r=ud(e,t.target.x),n=ud(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},pd={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(Gu,function(e){return i.push(e),"_$css"}));var s=Zo.parse(e);if(s.length>5)return a;var l=Zo.createTransformer(e),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=d;var p=xo(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(o){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},fd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.layoutGroup,n=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(sl,md),o&&((null==r?void 0:r.group)&&r.group.add(o),(null==n?void 0:n.register)&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(ka(ka({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),xl.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,a=r.drag,o=r.isPresent,i=r.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==n||void 0===n?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ao.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,r=e.switchLayoutGroup,n=e.visualElement.projection;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(F.Component),md={borderRadius:ka(ka({},dd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:dd,borderTopRightRadius:dd,borderBottomLeftRadius:dd,borderBottomRightRadius:dd,boxShadow:pd},vd={measureLayout:function(e){var t=wa(iu(),2),r=t[0],n=t[1],a=F.useContext(Fl);return F.createElement(fd,ka({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(zl),isPresent:r,safeToRemove:n}))}},hd=El({attachResizeListener:function(e,t){return wc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),gd={current:void 0},yd=El({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!gd.current){var e=new hd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),bd=ka(ka(ka(ka({},Su),ru),Wu),vd),xd=/*@__PURE__*/Hl(function(e,t){return function(e,t,r,n,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=$l(e)?kc:_c;return ka(ka({},s),{preloadedFeatures:r,useRender:cc(i),createVisualElement:n,projectionNodeConstructor:a,Component:e})}(e,t,bd,cd,yd)});function Ed(){var e=F.useRef(!1);return Va(function(){return e.current=!0,function(){e.current=!1}},[]),e}var kd=function(e){var t=e.children,r=e.initial,n=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=Za(_d),l=ou(),c=F.useMemo(function(){return{id:l,initial:r,isPresent:n,custom:o,onExitComplete:function(e){var t,r;s.set(e,!0);try{for(var n=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),o=n.next();!o.done;o=n.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}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:[n]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[n]),F.useEffect(function(){!n&&!s.size&&(null==a||a())},[n]),F.createElement(Ma.Provider,{value:c},t)};function _d(){return new Map}var wd=function(e){return e.key||""},Sd=function(e){var t=e.children,r=e.custom,n=e.initial,a=void 0===n||n,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=wa(function(){var e=Ed(),t=wa(F.useState(0),2),r=t[0],n=t[1],a=F.useCallback(function(){e.current&&n(r+1)},[r]);return[F.useCallback(function(){return ao.postRender(a)},[a]),r]}(),1),u=c[0],d=F.useContext(Fl).forceRender;d&&(u=d);var p=Ed(),f=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=f,v=new Set,h=F.useRef(m),g=F.useRef(new Map).current,y=F.useRef(!0);if(Va(function(){y.current=!1,function(e,t){e.forEach(function(e){var r=wd(e);t.set(r,e)})}(f,g),h.current=m}),$c(function(){y.current=!0,g.clear(),v.clear()}),y.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(kd,{key:wd(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=Sa([],wa(m),!1);for(var b=h.current.map(wd),x=f.map(wd),E=b.length,k=0;k<E;k++){var _=b[k];-1===x.indexOf(_)&&v.add(_)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===x.indexOf(e)){var t=g.get(e);if(t){var n=b.indexOf(e);m.splice(n,0,F.createElement(kd,{key:wd(t),isPresent:!1,onExitComplete:function(){g.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=f,!1===p.current)return;u(),o&&o()}},custom:r,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(kd,{key:wd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Ca&&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 Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cd.apply(this,arguments)}var Od=["as","viewBox","color","focusable","children","className","__css"],Rd={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"},Ad=/*#__PURE__*/fa(function(e,r){var n=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,p=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Od),f={ref:r,focusable:l,className:t.cx("chakra-icon",u),__css:Cd({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Rd.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
|
5
|
+
return F.createElement(ba.svg,Cd({as:n},f,p));var v=null!=c?c:Rd.path;/*#__PURE__*/
|
6
|
+
return F.createElement(ba.svg,Cd({verticalAlign:"middle",viewBox:m},f,p),v)});t.__DEV__&&(Ad.displayName="Icon");var Id=Ad;function Td(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nd.apply(this,arguments)}var Pd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ld={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Dd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Md={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},jd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function Vd(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Dd;case"left":return Ld;case"bottom":return jd;case"top":return Md}}var Bd={enter:{duration:.2,ease:Pd.easeOut},exit:{duration:.1,ease:Pd.easeIn}},Fd=function(e,r){return Nd({},e,{delay:t.isNumber(r)?r:null==r?void 0:r.enter})},zd=function(e,r){return Nd({},e,{delay:t.isNumber(r)?r:null==r?void 0:r.exit})},Wd=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],Hd={exit:{height:{duration:.2,ease:Pd.ease},opacity:{duration:.3,ease:Pd.ease}},enter:{height:{duration:.3,ease:Pd.ease},opacity:{duration:.4,ease:Pd.ease}}},Ud={exit:function(e){var t,r,n=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return Nd({},e.animateOpacity&&{opacity:(r=n,null!=r&&parseInt(r.toString(),10)>0?1:0)},{height:n,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:zd(Hd.exit,i)})},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return Nd({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==n?void 0:n.enter,transition:null!=(t=null==r?void 0:r.enter)?t:Fd(Hd.enter,e.delay)})}},$d=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,c=e.endingHeight,u=void 0===c?"auto":c,d=e.style,p=e.className,f=e.transition,m=e.transitionEnd,v=Td(e,Wd),h=F.useState(!1),g=h[0],y=h[1];F.useEffect(function(){var e=setTimeout(function(){y(!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,x={startingHeight:l,endingHeight:u,animateOpacity:i,transition:g?f:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},E=n||a?"enter":"exit";/*#__PURE__*/
|
7
|
+
return F.createElement(Sd,{initial:!1,custom:x},(!a||n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r},v,{className:t.cx("chakra-collapse",p),style:Nd({overflow:"hidden",display:"block"},d),custom:x,variants:Ud,initial:!!a&&"exit",animate:E,exit:"exit"})))});t.__DEV__&&($d.displayName="Collapse");var qd=["unmountOnExit","in","className","transition","transitionEnd","delay"],Yd={enter:function(e){var t,r=void 0===e?{}:e,n=r.transition,a=r.transitionEnd;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Fd(Bd.enter,r.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,r=void 0===e?{}:e,n=r.transition,a=r.transitionEnd;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:zd(Bd.exit,r.delay),transitionEnd:null==a?void 0:a.exit}}},Gd={initial:"exit",animate:"enter",exit:"exit",variants:Yd},Zd=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,c=Td(e,qd),u=a||n?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
|
8
|
+
return F.createElement(Sd,{custom:d},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-fade",o),custom:d},Gd,{animate:u},c)))});t.__DEV__&&(Zd.displayName="Fade");var Xd=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],Kd={exit:function(e){var t,r=e.initialScale,n=e.transition,a=e.transitionEnd,o=e.delay;return Nd({opacity:0},e.reverse?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:Nd({scale:r},null==a?void 0:a.exit)},{transition:null!=(t=null==n?void 0:n.exit)?t:zd(Bd.exit,o)})},enter:function(e){var t,r=e.transitionEnd,n=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==n?void 0:n.enter)?t:Fd(Bd.enter,e.delay),transitionEnd:null==r?void 0:r.enter}}},Jd={initial:"exit",animate:"enter",exit:"exit",variants:Kd},Qd=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,c=e.className,u=e.transition,d=e.transitionEnd,p=e.delay,f=Td(e,Xd),m=a||n?"enter":"exit",v={initialScale:l,reverse:i,transition:u,transitionEnd:d,delay:p};/*#__PURE__*/
|
9
|
+
return F.createElement(Sd,{custom:v},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-offset-slide",c)},Jd,{animate:m,custom:v},f)))});t.__DEV__&&(Qd.displayName="ScaleFade");var ep=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],tp={exit:{duration:.15,ease:Pd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},rp={exit:function(e){var t,r=e.transition,n=e.transitionEnd,a=e.delay;return Nd({},Vd({direction:e.direction}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:zd(tp.exit,a),transitionEnd:null==n?void 0:n.exit})},enter:function(e){var t,r=e.transitionEnd,n=e.transition,a=e.delay;return Nd({},Vd({direction:e.direction}).enter,{transition:null!=(t=null==n?void 0:n.enter)?t:Fd(tp.enter,a),transitionEnd:null==r?void 0:r.enter})}},np=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.direction,a=void 0===n?"right":n,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,c=e.transition,u=e.transitionEnd,d=e.delay,p=Td(e,ep),f=Vd({direction:a}),m=Object.assign({position:"fixed"},f.position,o),v=s||i?"enter":"exit",h={transitionEnd:u,transition:c,direction:a,delay:d};/*#__PURE__*/
|
10
|
+
return F.createElement(Sd,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement(xd.div,Nd({},p,{ref:r,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:rp,style:m})))});t.__DEV__&&(np.displayName="Slide");var ap=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],op={initial:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==r?void 0:r.exit)?t:zd(Bd.exit,e.delay),transitionEnd:null==n?void 0:n.exit}},enter:function(e){var t,r=e.transition,n=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==r?void 0:r.enter)?t:Fd(Bd.enter,e.delay),transitionEnd:null==n?void 0:n.enter}},exit:function(e){var t,r=e.transition,n=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return Nd({opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:zd(Bd.exit,e.delay)},a?Nd({},o,{transitionEnd:null==n?void 0:n.exit}):{transitionEnd:Nd({},o,null==n?void 0:n.exit)})}},ip={initial:"initial",animate:"enter",exit:"exit",variants:op},sp=/*#__PURE__*/F.forwardRef(function(e,r){var n=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,c=void 0===l?0:l,u=e.offsetY,d=void 0===u?8:u,p=e.transition,f=e.transitionEnd,m=e.delay,v=Td(e,ap),h=a||n?"enter":"exit",g={offsetX:c,offsetY:d,reverse:i,transition:p,transitionEnd:f,delay:m};/*#__PURE__*/
|
11
|
+
return F.createElement(Sd,{custom:g},(!n||a&&n)&&/*#__PURE__*/F.createElement(xd.div,Nd({ref:r,className:t.cx("chakra-offset-slide",s),custom:g},ip,{animate:h},v)))});function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lp.apply(this,arguments)}function cp(e){return e.sort(function(e,t){var r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function up(e,t,r){var n=e+1;return r&&n>=t&&(n=0),n}function dp(e,t,r){var n=e-1;return r&&n<0&&(n=t),n}t.__DEV__&&(sp.displayName="SlideFade");var pp="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,fp=function(){var e=this;this.descendants=new Map,this.register=function(t){var r;if(null!=t)return"object"==typeof(r=t)&&"nodeType"in r&&r.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(r){e.registerNode(r,t)}},this.unregister=function(t){e.descendants.delete(t);var r=cp(Array.from(e.descendants.keys()));e.assignIndex(r)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var r=t.indexOf(e.node);e.index=r,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 r,n;return t&&null!=(r=null==(n=e.descendants.get(t))?void 0:n.index)?r:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,r){void 0===r&&(r=!0);var n=up(t,e.count(),r);return e.item(n)},this.nextEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var a=up(e.enabledIndexOf(n.node),e.enabledCount(),r);return e.enabledItem(a)}},this.prev=function(t,r){void 0===r&&(r=!0);var n=dp(t,e.count()-1,r);return e.item(n)},this.prevEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var a=dp(e.enabledIndexOf(n.node),e.enabledCount()-1,r);return e.enabledItem(a)}},this.registerNode=function(t,r){if(t&&!e.descendants.has(t)){var n=cp(Array.from(e.descendants.keys()).concat(t));null!=r&&r.disabled&&(r.disabled=!!r.disabled);var a=lp({node:t,index:-1},r);e.descendants.set(t,a),e.assignIndex(n)}}},mp=rr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),vp=mp[0],hp=mp[1];function gp(){return[vp,function(){return hp()},function(){return e=F.useRef(new fp),pp(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=hp(),r=F.useState(-1),n=r[0],a=r[1],o=F.useRef(null);pp(function(){return function(){o.current&&t.unregister(o.current)}},[]),pp(function(){if(o.current){var e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:tr(i,o)}}(e)}]}var yp={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},bp=ba("span",{baseStyle:yp});t.__DEV__&&(bp.displayName="VisuallyHidden");var xp=ba("input",{baseStyle:yp});function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ep.apply(this,arguments)}t.__DEV__&&(xp.displayName="VisuallyHiddenInput");var kp=["label","thickness","speed","emptyColor","className"],_p=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wp=/*#__PURE__*/fa(function(e,r){var n=ha("Spinner",e),a=oa(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,kp),v=t.cx("chakra-spinner",f),h=Ep({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:_p+" "+u+" linear infinite"},n);/*#__PURE__*/
|
12
|
+
return F.createElement(ba.div,Ep({ref:r,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(bp,null,i))});function Sp(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(this,arguments)}t.__DEV__&&(wp.displayName="Spinner");var Op=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Rp=rr({strict:!1,name:"ButtonGroupContext"}),Ap=Rp[0],Ip=Rp[1],Tp=/*#__PURE__*/fa(function(e,r){var n=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Sp(e,Op),p=t.cx("chakra-button__group",i),f=F.useMemo(function(){return{size:n,colorScheme:a,variant:o,isDisabled:u}},[n,a,o,u]),m={display:"inline-flex"};return m=Cp({},m,c?{"> *: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(Ap,{value:f},/*#__PURE__*/F.createElement(ba.div,Cp({ref:r,role:"group",__css:m,className:p,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Tp.displayName="ButtonGroup");var Np=["label","placement","spacing","children","className","__css"],Pp=function(e){var r=e.label,n=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(wp,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Sp(e,Np),d=t.cx("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",f=F.useMemo(function(){var e;return Cp(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[p]=r?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,r,p,o]);/*#__PURE__*/
|
13
|
+
return F.createElement(ba.div,Cp({className:d},u,{__css:f}),s)};t.__DEV__&&(Pp.displayName="ButtonSpinner");var Lp=["children","className"],Dp=function(e){var r=e.children,n=e.className,a=Sp(e,Lp),o=/*#__PURE__*/F.isValidElement(r)?/*#__PURE__*/F.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=t.cx("chakra-button__icon",n);/*#__PURE__*/
|
14
|
+
return F.createElement(ba.span,Cp({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Dp.displayName="ButtonIcon");var Mp=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],jp=/*#__PURE__*/fa(function(e,r){var n,a,o,i,s=Ip(),l=ha("Button",Cp({},s,e)),c=oa(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,p=c.isLoading,f=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,g=c.loadingText,y=c.iconSpacing,b=void 0===y?"0.5rem":y,x=c.type,E=c.spinner,k=c.spinnerPlacement,_=void 0===k?"start":k,w=c.className,S=c.as,C=Sp(c,Mp),O=F.useMemo(function(){var e,r=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Cp({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:r})},[l,s]),R=(a=(n=F.useState(!S))[0],o=n[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),A=R.type,I={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
|
15
|
+
return F.createElement(ba.button,Cp({disabled:d||p,ref:vr(r,R.ref),as:S,type:null!=x?x:A,"data-active":t.dataAttr(f),"data-loading":t.dataAttr(p),__css:O,className:t.cx("chakra-button",w)},C),p&&"start"===_&&/*#__PURE__*/F.createElement(Pp,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},E),p?g||/*#__PURE__*/F.createElement(ba.span,{opacity:0},/*#__PURE__*/F.createElement(Vp,I)):/*#__PURE__*/F.createElement(Vp,I),p&&"end"===_&&/*#__PURE__*/F.createElement(Pp,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},E))});function Vp(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,a=e.iconSpacing;/*#__PURE__*/
|
16
|
+
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Dp,{marginEnd:a},t),n,r&&/*#__PURE__*/F.createElement(Dp,{marginStart:a},r))}t.__DEV__&&(jp.displayName="Button");var Bp=["icon","children","isRound","aria-label"];function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fp.apply(this,arguments)}function zp(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=Sp(e,Bp),s=r||n,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
17
|
+
return F.createElement(jp,Cp({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)}).displayName="IconButton");var Wp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Hp=["getRootProps","htmlProps"],Up=aa("FormControl"),$p=Up[0],qp=Up[1],Yp=qp,Gp=rr({strict:!1,name:"FormControlContext"}),Zp=Gp[0],Xp=Gp[1],Kp=/*#__PURE__*/fa(function(e,r){var n=ga("Form",e),a=function(e){var r=e.id,n=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=zp(e,Wp),l=dr(),c=r||"field-"+l,u=c+"-label",d=c+"-feedback",p=c+"-helptext",f=F.useState(!1),m=f[0],v=f[1],h=F.useState(!1),g=h[0],y=h[1],b=sr(),x=b[0],E=b[1],k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({id:p},e,{ref:tr(t,function(e){e&&y(!0)})})},[p]),_=F.useCallback(function(e,r){var n,s;return void 0===e&&(e={}),void 0===r&&(r=null),Fp({},e,{ref:r,"data-focus":t.dataAttr(x),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(n=e.id)?n:u,htmlFor:null!=(s=e.htmlFor)?s:c})},[c,o,x,a,i,u]),w=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({id:d},e,{ref:tr(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),Fp({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Fp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!n,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:E.on,onBlur:E.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:g,setHasHelpText:y,id:c,labelId:u,feedbackId:d,helpTextId:p,htmlProps:s,getHelpTextProps:k,getErrorMessageProps:w,getRootProps:S,getLabelProps:_,getRequiredIndicatorProps:C}}(oa(e)),o=a.getRootProps,i=zp(a,Hp),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
|
18
|
+
return F.createElement(Zp,{value:i},/*#__PURE__*/F.createElement($p,{value:n},/*#__PURE__*/F.createElement(ba.div,Fp({},o({},r),{className:s,__css:n.container}))))});t.__DEV__&&(Kp.displayName="FormControl");var Jp=/*#__PURE__*/fa(function(e,r){var n=Xp(),a=qp(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
|
19
|
+
return F.createElement(ba.div,Fp({},null==n?void 0:n.getHelpTextProps(e,r),{__css:a.helperText,className:o}))});t.__DEV__&&(Jp.displayName="FormHelperText");var Qp=["isDisabled","isInvalid","isReadOnly","isRequired"],ef=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function tf(e){var r=rf(e),n=r.isDisabled,a=r.isInvalid,o=r.isReadOnly,i=r.isRequired;return Fp({},zp(r,Qp),{disabled:n,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function rf(e){var r,n,a,o=Xp(),i=e.id,s=e.disabled,l=e.readOnly,c=e.required,u=e.isRequired,d=e.isInvalid,p=e.isReadOnly,f=e.isDisabled,m=e.onFocus,v=e.onBlur,h=zp(e,ef),g=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&g.push(o.feedbackId),null!=o&&o.hasHelpText&&g.push(o.helpTextId),Fp({},h,{"aria-describedby":g.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(r=null!=s?s:f)?r:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:p)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=c?c:u)?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 nf=aa("FormError"),af=nf[0],of=nf[1],sf=/*#__PURE__*/fa(function(e,r){var n=ga("FormError",e),a=oa(e),o=Xp();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(af,{value:n},/*#__PURE__*/F.createElement(ba.div,Fp({},null==o?void 0:o.getErrorMessageProps(a,r),{className:t.cx("chakra-form__error-message",e.className),__css:Fp({display:"flex",alignItems:"center"},n.text)}))):null});t.__DEV__&&(sf.displayName="FormErrorMessage");var lf=/*#__PURE__*/fa(function(e,r){var n=of(),a=Xp();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
|
20
|
+
return F.createElement(Id,Fp({ref:r,"aria-hidden":!0},e,{__css:n.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__&&(lf.displayName="FormErrorIcon");var cf=["className","children","requiredIndicator","optionalIndicator"],uf=/*#__PURE__*/fa(function(e,r){var n,a=ha("FormLabel",e),o=oa(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(df,null):s,c=o.optionalIndicator,u=void 0===c?null:c,d=zp(o,cf),p=Xp(),f=null!=(n=null==p?void 0:p.getLabelProps(d,r))?n:Fp({ref:r},d);/*#__PURE__*/
|
21
|
+
return F.createElement(ba.label,Fp({},f,{className:t.cx("chakra-form__label",o.className),__css:Fp({display:"block",textAlign:"start"},a)}),i,null!=p&&p.isRequired?l:u)});t.__DEV__&&(uf.displayName="FormLabel");var df=/*#__PURE__*/fa(function(e,r){var n=Xp(),a=Yp();if(null==n||!n.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
|
22
|
+
return F.createElement(ba.span,Fp({},null==n?void 0:n.getRequiredIndicatorProps(e,r),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(df.displayName="RequiredIndicator");var pf=!1,ff=null,mf=!1,vf=/* @__PURE__ */new Set,hf="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function gf(e,t){vf.forEach(r=>r(e,t))}function yf(e){mf=!0,function(e){return!(e.metaKey||!hf&&e.altKey||e.ctrlKey)}(e)&&(ff="keyboard",gf("keyboard",e))}function bf(e){ff="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(mf=!0,gf("pointer",e))}function xf(e){e.target!==window&&e.target!==document&&(mf||(ff="keyboard",gf("keyboard",e)),mf=!1)}function Ef(){mf=!1}function kf(){return"pointer"!==ff}function _f(e){!function(){if("undefined"==typeof window||pf)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){mf=!0,e.apply(this,t)},document.addEventListener("keydown",yf,!0),document.addEventListener("keyup",yf,!0),window.addEventListener("focus",xf,!0),window.addEventListener("blur",Ef,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",bf,!0),document.addEventListener("pointermove",bf,!0),document.addEventListener("pointerup",bf,!0)):(document.addEventListener("mousedown",bf,!0),document.addEventListener("mousemove",bf,!0),document.addEventListener("mouseup",bf,!0)),pf=!0}(),e(kf());const t=()=>e(kf());return vf.add(t),()=>{vf.delete(t)}}function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(this,arguments)}var Sf=rr({name:"CheckboxGroupContext",strict:!1})[1];function Cf(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var Of=["isIndeterminate","isChecked"],Rf=function(e){var t=xd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.svg),Af=function(e){/*#__PURE__*/
|
23
|
+
return F.createElement(Rf,wf({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"}))},If=function(e){/*#__PURE__*/
|
24
|
+
return F.createElement(Rf,wf({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"}))},Tf=function(e){/*#__PURE__*/
|
25
|
+
return F.createElement(Sd,{initial:!1},e.open&&/*#__PURE__*/F.createElement(xd.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))},Nf=function(e){var t=e.isIndeterminate,r=e.isChecked,n=Cf(e,Of);/*#__PURE__*/
|
26
|
+
return F.createElement(Tf,{open:r||t},/*#__PURE__*/F.createElement(t?If:Af,n))},Pf=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function Lf(e){void 0===e&&(e={});var r=rf(e),n=r.isDisabled,a=r.isReadOnly,o=r.isRequired,i=r.isInvalid,s=r.id,l=r.onBlur,c=r.onFocus,u=r["aria-describedby"],d=e.defaultChecked,p=e.isChecked,f=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,g=e.value,y=e.tabIndex,b=void 0===y?void 0:y,x=e["aria-label"],E=e["aria-labelledby"],k=e["aria-invalid"],_=Cf(e,Pf),w=t.omit(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=or(m),C=or(l),O=or(c),R=F.useState(!1),A=R[0],I=R[1],T=sr(),N=T[0],P=T[1],L=sr(),D=L[0],M=L[1],j=sr(),V=j[0],B=j[1];F.useEffect(function(){return _f(I)},[]);var z=F.useRef(null),W=F.useState(!0),H=W[0],U=W[1],$=F.useState(!!d),q=$[1],Y=lr(p,$[0]),G=Y[0],Z=Y[1],X=F.useCallback(function(e){a||n?e.preventDefault():(G||q(Z?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,n,Z,G,v,S]);ar(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),pr(function(){n&&P.off()},[n,P]),ar(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=n&&!f,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);ar(function(){z.current&&z.current.checked!==Z&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:r,"data-active":t.dataAttr(V),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(Z),"data-focus":t.dataAttr(N),"data-focus-visible":t.dataAttr(N&&A),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(n),"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)})},[V,Z,n,N,A,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},w,e,{ref:tr(r,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(n),"data-checked":t.dataAttr(Z),"data-invalid":t.dataAttr(i)})},[w,n,Z,i,H]),re=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:tr(z,r),type:"checkbox",name:h,value:g,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,P.off),onFocus:t.callAllHandlers(e.onFocus,O,P.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:Z,disabled:K,readOnly:a,"aria-label":x,"aria-labelledby":E,"aria-invalid":k?Boolean(k):i,"aria-describedby":u,"aria-disabled":n,style:yp})},[h,g,s,X,P.off,P.on,C,O,J,Q,o,Z,K,a,x,E,k,i,u,n,b]),ne=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),wf({},e,{ref:r,onMouseDown:t.callAllHandlers(e.onMouseDown,Df),onTouchStart:t.callAllHandlers(e.onTouchStart,Df),"data-disabled":t.dataAttr(n),"data-checked":t.dataAttr(Z),"data-invalid":t.dataAttr(i)})},[Z,n,i]);return{state:{isInvalid:i,isFocused:N,isChecked:Z,isActive:V,isHovered:D,isIndeterminate:v,isDisabled:n,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:re,getLabelProps:ne,htmlProps:w}}function Df(e){e.preventDefault(),e.stopPropagation()}var Mf=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],jf=ba("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Vf=ba("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Bf=/*#__PURE__*/fa(function(e,r){var n=Sf(),a=ga("Checkbox",wf({},n,e)),o=oa(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,c=o.children,u=o.iconColor,d=o.iconSize,p=o.icon,f=void 0===p?/*#__PURE__*/F.createElement(Nf,null):p,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==n?void 0:n.isDisabled:v,g=o.onChange,y=o.inputProps,b=Cf(o,Mf),x=m;null!=n&&n.value&&o.value&&(x=n.value.includes(o.value));var E=g;null!=n&&n.onChange&&o.value&&(E=t.callAll(n.onChange,g));var k=Lf(wf({},b,{isDisabled:h,isChecked:x,onChange:E})),_=k.state,w=k.getInputProps,S=k.getCheckboxProps,C=k.getLabelProps,O=k.getRootProps,R=F.useMemo(function(){return wf({opacity:_.isChecked||_.isIndeterminate?1:0,transform:_.isChecked||_.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:u},a.icon)},[u,d,_.isChecked,_.isIndeterminate,a.icon]),A=/*#__PURE__*/F.cloneElement(f,{__css:R,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});/*#__PURE__*/
|
27
|
+
return F.createElement(Vf,wf({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",wf({className:"chakra-checkbox__input"},w(y,r))),/*#__PURE__*/F.createElement(jf,wf({__css:a.control,className:"chakra-checkbox__control"},S()),A),c&&/*#__PURE__*/F.createElement(ba.span,wf({className:"chakra-checkbox__label"},C(),{__css:wf({marginStart:s},a.label)}),c))});function Ff(e){void 0===e&&(e={});var r=e.precision,n=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,c=e.max,u=void 0===c?t.maxSafeInteger:c,d=e.keepWithinRange,p=void 0===d||d,f=or(e.onChange),m=F.useState(function(){var e;return null==n?"":null!=(e=Hf(n,i,r))?e:""}),v=m[1],h=lr(a,m[0]),g=h[0],y=h[1],b=Wf(zf(y),i),x=null!=r?r:b,E=F.useCallback(function(e){e!==y&&(g||v(e.toString()),null==f||f(e.toString(),zf(e)))},[f,g,y]),k=F.useCallback(function(e){var r=e;return p&&(r=t.clampValue(r,l,u)),t.toPrecision(r,x)},[x,p,u,l]),_=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===y?zf(e):zf(y)+e,t=k(t),E(t)},[k,i,E,y]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===y?zf(-e):zf(y)-e,t=k(t),E(t)},[k,i,E,y]),S=F.useCallback(function(){var e,t;e=null==n?"":null!=(t=Hf(n,i,r))?t:l,E(e)},[n,r,i,E,l]),C=F.useCallback(function(e){var t,r=null!=(t=Hf(e,i,x))?t:l;E(r)},[x,i,E,l]),O=zf(y);return{isOutOfRange:O>u||O<l,isAtMax:O===u,isAtMin:O===l,precision:x,value:y,valueAsNumber:O,update:E,reset:S,increment:_,decrement:w,clamp:k,cast:C,setValue:v}}function zf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Wf(e,r){return Math.max(t.countDecimalPlaces(r),t.countDecimalPlaces(e))}function Hf(e,r,n){var a=zf(e);if(!Number.isNaN(a)){var o=Wf(a,r);return t.toPrecision(a,null!=n?n:o)}}function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uf.apply(this,arguments)}function $f(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Bf.displayName="Checkbox");var qf=["htmlSize"],Yf=/*#__PURE__*/fa(function(e,r){var n=e.htmlSize,a=$f(e,qf),o=ga("Input",a),i=tf(oa(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
|
28
|
+
return F.createElement(ba.input,Uf({size:n},i,{__css:o.field,ref:r,className:s}))});t.__DEV__&&(Yf.displayName="Input"),Yf.id="Input";var Gf=["children","className"],Zf=aa("InputGroup"),Xf=Zf[0],Kf=Zf[1],Jf=/*#__PURE__*/fa(function(e,r){var n=ga("Input",e),a=oa(e),o=a.children,i=a.className,s=$f(a,Gf),l=t.cx("chakra-input__group",i),c={},u=nr(o),d=n.field;u.forEach(function(e){var t,r;n&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=d.height)?r:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});var p=u.map(function(r){var n,a,o=t.filterUndefined({size:(null==(n=r.props)?void 0:n.size)||e.size,variant:(null==(a=r.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
|
29
|
+
return F.cloneElement(r,"Input"!==r.type.id?o:Object.assign(o,c,r.props))});/*#__PURE__*/
|
30
|
+
return F.createElement(ba.div,Uf({className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(Xf,{value:n},p))});t.__DEV__&&(Jf.displayName="InputGroup");var Qf=["placement"],em={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},tm=ba("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),rm=/*#__PURE__*/fa(function(e,t){var r,n=e.placement,a=void 0===n?"left":n,o=$f(e,Qf),i=null!=(r=em[a])?r:{},s=Kf();/*#__PURE__*/
|
31
|
+
return F.createElement(tm,Uf({ref:t},o,{__css:Uf({},s.addon,i)}))});t.__DEV__&&(rm.displayName="InputAddon");var nm=/*#__PURE__*/fa(function(e,r){/*#__PURE__*/
|
32
|
+
return F.createElement(rm,Uf({ref:r,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(nm.displayName="InputLeftAddon"),nm.id="InputLeftAddon";var am=/*#__PURE__*/fa(function(e,r){/*#__PURE__*/
|
33
|
+
return F.createElement(rm,Uf({ref:r,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(am.displayName="InputRightAddon"),am.id="InputRightAddon";var om=["placement"],im=["className"],sm=["className"],lm=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),cm=/*#__PURE__*/fa(function(e,t){var r,n,a,o=e.placement,i=void 0===o?"left":o,s=$f(e,om),l=Kf(),c=l.field,u=Uf(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,a.height=null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,a.fontSize=null==c?void 0:c.fontSize,a),l.element);/*#__PURE__*/
|
34
|
+
return F.createElement(lm,Uf({ref:t,__css:u},s))});cm.id="InputElement",t.__DEV__&&(cm.displayName="InputElement");var um=/*#__PURE__*/fa(function(e,r){var n=e.className,a=$f(e,im),o=t.cx("chakra-input__left-element",n);/*#__PURE__*/
|
35
|
+
return F.createElement(cm,Uf({ref:r,placement:"left",className:o},a))});um.id="InputLeftElement",t.__DEV__&&(um.displayName="InputLeftElement");var dm=/*#__PURE__*/fa(function(e,r){var n=e.className,a=$f(e,sm),o=t.cx("chakra-input__right-element",n);/*#__PURE__*/
|
36
|
+
return F.createElement(cm,Uf({ref:r,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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pm.apply(this,arguments)}function fm(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}dm.id="InputRightElement",t.__DEV__&&(dm.displayName="InputRightElement");var mm=["ratio","children","className"],vm=/*#__PURE__*/fa(function(e,r){var n=e.ratio,a=void 0===n?4/3:n,o=e.children,i=e.className,s=fm(e,mm),l=F.Children.only(o),c=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
|
37
|
+
return F.createElement(ba.div,pm({ref:r,position:"relative",className:c,_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__&&(vm.displayName="AspectRatio");var hm=["className"],gm=/*#__PURE__*/fa(function(e,r){var n=ha("Badge",e),a=fm(oa(e),hm);/*#__PURE__*/
|
38
|
+
return F.createElement(ba.span,pm({ref:r,className:t.cx("chakra-badge",e.className)},a,{__css:pm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))});t.__DEV__&&(gm.displayName="Badge");var ym=["size","centerContent"],bm=["size"],xm=ba("div");t.__DEV__&&(xm.displayName="Box");var Em=/*#__PURE__*/fa(function(e,t){var r=e.size,n=e.centerContent,a=void 0===n||n,o=fm(e,ym);/*#__PURE__*/
|
39
|
+
return F.createElement(xm,pm({ref:t,boxSize:r,__css:pm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(Em.displayName="Square"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=e.size,n=fm(e,bm);/*#__PURE__*/
|
40
|
+
return F.createElement(Em,pm({size:r,ref:t,borderRadius:"9999px"},n))}).displayName="Circle");var km=ba("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(km.displayName="Center");var _m=["className"],wm=/*#__PURE__*/fa(function(e,r){var n=ha("Code",e),a=fm(oa(e),_m);/*#__PURE__*/
|
41
|
+
return F.createElement(ba.code,pm({ref:r,className:t.cx("chakra-code",e.className)},a,{__css:pm({display:"inline-block"},n)}))});t.__DEV__&&(wm.displayName="Code");var Sm=["className","centerContent"],Cm=/*#__PURE__*/fa(function(e,r){var n=oa(e),a=n.className,o=n.centerContent,i=fm(n,Sm),s=ha("Container",e);/*#__PURE__*/
|
42
|
+
return F.createElement(ba.div,pm({ref:r,className:t.cx("chakra-container",a)},i,{__css:pm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Cm.displayName="Container");var Om=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Rm=["className","orientation","__css"],Am=/*#__PURE__*/fa(function(e,r){var n=ha("Divider",e),a=n.borderLeftWidth,o=n.borderBottomWidth,i=n.borderTopWidth,s=n.borderRightWidth,l=n.borderWidth,c=n.borderStyle,u=n.borderColor,d=fm(n,Om),p=oa(e),f=p.className,m=p.orientation,v=void 0===m?"horizontal":m,h=p.__css,g=fm(p,Rm);/*#__PURE__*/
|
43
|
+
return F.createElement(ba.hr,pm({ref:r,"aria-orientation":v},g,{__css:pm({},d,{border:"0",borderColor:u,borderStyle:c},{vertical:{borderLeftWidth:a||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||l||"1px",width:"100%"}}[v],h),className:t.cx("chakra-divider",f)}))});t.__DEV__&&(Am.displayName="Divider");var Im=["direction","align","justify","wrap","basis","grow","shrink"],Tm=/*#__PURE__*/fa(function(e,t){var r=e.direction,n=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=fm(e,Im);/*#__PURE__*/
|
44
|
+
return F.createElement(ba.div,pm({ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},c))});t.__DEV__&&(Tm.displayName="Flex");var Nm=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Pm=/*#__PURE__*/fa(function(e,t){var r=e.templateAreas,n=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,u=e.templateRows,d=e.autoColumns,p=e.templateColumns,f=fm(e,Nm);/*#__PURE__*/
|
45
|
+
return F.createElement(ba.div,pm({ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p}},f))});t.__DEV__&&(Pm.displayName="Grid");var Lm=["className"],Dm=/*#__PURE__*/fa(function(e,r){var n=ha("Heading",e),a=fm(oa(e),Lm);/*#__PURE__*/
|
46
|
+
return F.createElement(ba.h2,pm({ref:r,className:t.cx("chakra-heading",e.className)},a,{__css:n}))});t.__DEV__&&(Dm.displayName="Heading");var Mm=["className"],jm=/*#__PURE__*/fa(function(e,r){var n=ha("Kbd",e),a=oa(e),o=a.className,i=fm(a,Mm);/*#__PURE__*/
|
47
|
+
return F.createElement(ba.kbd,pm({ref:r,className:t.cx("chakra-kbd",o)},i,{__css:pm({fontFamily:"mono"},n)}))});t.__DEV__&&(jm.displayName="Kbd");var Vm=["className","isExternal"],Bm=/*#__PURE__*/fa(function(e,r){var n=ha("Link",e),a=oa(e),o=a.className,i=a.isExternal,s=fm(a,Vm);/*#__PURE__*/
|
48
|
+
return F.createElement(ba.a,pm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:t.cx("chakra-link",o)},s,{__css:n}))});t.__DEV__&&(Bm.displayName="Link");var Fm=["children","styleType","stylePosition","spacing"],zm=["as"],Wm=["as"],Hm=aa("List"),Um=Hm[0],$m=Hm[1],qm=/*#__PURE__*/fa(function(e,t){var r,n=ga("List",e),a=oa(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,c=a.spacing,u=fm(a,Fm),d=nr(o),p=c?((r={})["& > *:not(style) ~ *:not(style)"]={mt:c},r):{};/*#__PURE__*/
|
49
|
+
return F.createElement(Um,{value:n},/*#__PURE__*/F.createElement(ba.ul,pm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:pm({},n.container,p)},u),d))});t.__DEV__&&(qm.displayName="List"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=fm(e,zm);/*#__PURE__*/
|
50
|
+
return F.createElement(qm,pm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},r))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=fm(e,Wm);/*#__PURE__*/
|
51
|
+
return F.createElement(qm,pm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},r))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=$m();/*#__PURE__*/
|
52
|
+
return F.createElement(ba.li,pm({ref:t},e,{__css:r.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){var r=$m();/*#__PURE__*/
|
53
|
+
return F.createElement(Ad,pm({ref:t,role:"presentation"},e,{__css:r.icon}))}).displayName="ListIcon");var Ym=["columns","spacingX","spacingY","spacing","minChildWidth"],Gm=/*#__PURE__*/fa(function(e,r){var n=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=fm(e,Ym),c=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(n,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
|
54
|
+
return F.createElement(Pm,pm({ref:r,gap:i,columnGap:a,rowGap:o,templateColumns:c},l))});t.__DEV__&&(Gm.displayName="SimpleGrid");var Zm=ba("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(Zm.displayName="Spacer");var Xm="& > *:not(style) ~ *:not(style)",Km=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Jm=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)}))},Qm=/*#__PURE__*/fa(function(e,r){var n,a=e.isInline,o=e.direction,i=e.align,s=e.justify,l=e.spacing,c=void 0===l?"0.5rem":l,u=e.wrap,d=e.children,p=e.divider,f=e.className,m=e.shouldWrapChildren,v=fm(e,Km),h=a?"row":null!=o?o:"column",g=F.useMemo(function(){return function(e){var r,n=e.spacing,a=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(r={flexDirection:a})[Xm]=t.mapResponsive(a,function(e){return o[e]}),r}({direction:h,spacing:c})},[h,c]),y=F.useMemo(function(){return function(e){var r=e.spacing,n={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return n[e]})}}({spacing:c,direction:h})},[c,h]),b=!!p,x=!m&&!b,E=nr(d),k=x?E:E.map(function(e,t){var r=void 0!==e.key?e.key:t,n=t+1===E.length,a=m?/*#__PURE__*/F.createElement(Jm,{key:r},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:r},a,n?null:/*#__PURE__*/F.cloneElement(p,{__css:y})):a}),_=t.cx("chakra-stack",f);/*#__PURE__*/
|
56
|
+
return F.createElement(ba.div,pm({ref:r,display:"flex",alignItems:i,justifyContent:s,flexDirection:g.flexDirection,flexWrap:u,className:_,__css:b?{}:(n={},n[Xm]=g[Xm],n)},v),k)});t.__DEV__&&(Qm.displayName="Stack");var ev=/*#__PURE__*/fa(function(e,t){/*#__PURE__*/
|
57
|
+
return F.createElement(Qm,pm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(ev.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/fa(function(e,t){/*#__PURE__*/
|
58
|
+
return F.createElement(Qm,pm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var tv=["className","align","decoration","casing"],rv=/*#__PURE__*/fa(function(e,r){var n=ha("Text",e),a=fm(oa(e),tv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
|
59
|
+
return F.createElement(ba.p,pm({ref:r,className:t.cx("chakra-text",e.className)},o,a,{__css:n}))});t.__DEV__&&(rv.displayName="Text");var nv=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],av=["className"];function ov(e){return"number"==typeof e?e+"px":e}var iv=/*#__PURE__*/fa(function(e,r){var n=e.spacing,a=void 0===n?"0.5rem":n,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,c=e.direction,u=e.align,d=e.className,p=e.shouldWrapChildren,f=fm(e,nv),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},r=e.spacingX,n=void 0===r?a:r,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(n,function(t){return ov(jr("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return ov(jr("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:u,flexDirection:c,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,u,c]),v=p?F.Children.map(s,function(e,t){/*#__PURE__*/
|
60
|
+
return F.createElement(sv,{key:t},e)}):s;/*#__PURE__*/
|
61
|
+
return F.createElement(ba.div,pm({ref:r,className:t.cx("chakra-wrap",d),overflow:"hidden"},f),/*#__PURE__*/F.createElement(ba.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(iv.displayName="Wrap");var sv=/*#__PURE__*/fa(function(e,r){var n=e.className,a=fm(e,av);/*#__PURE__*/
|
62
|
+
return F.createElement(ba.li,pm({ref:r,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",n)},a))});function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lv.apply(this,arguments)}t.__DEV__&&(sv.displayName="WrapItem");var cv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function uv(e){var t=e.target,r=t.tagName;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==t.isContentEditable}var dv="top",pv="bottom",fv="right",mv="left",vv=[dv,pv,fv,mv],hv=/*#__PURE__*/vv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),gv=/*#__PURE__*/[].concat(vv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),yv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bv(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 Ev(e){return e instanceof xv(e).Element||e instanceof Element}function kv(e){return e instanceof xv(e).HTMLElement||e instanceof HTMLElement}function _v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xv(e).ShadowRoot||e instanceof ShadowRoot)}function wv(e){return e.split("-")[0]}var Sv=Math.max,Cv=Math.min,Ov=Math.round;function Rv(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(kv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(n=Ov(r.width)/i||1),o>0&&(a=Ov(r.height)/o||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function Av(e){var t=Rv(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Iv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_v(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Tv(e){return xv(e).getComputedStyle(e)}function Nv(e){return["table","td","th"].indexOf(bv(e))>=0}function Pv(e){return((Ev(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lv(e){return"html"===bv(e)?e:e.assignedSlot||e.parentNode||(_v(e)?e.host:null)||Pv(e)}function Dv(e){return kv(e)&&"fixed"!==Tv(e).position?e.offsetParent:null}function Mv(e){for(var t=xv(e),r=Dv(e);r&&Nv(r)&&"static"===Tv(r).position;)r=Dv(r);return r&&("html"===bv(r)||"body"===bv(r)&&"static"===Tv(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&kv(e)&&"fixed"===Tv(e).position)return null;var r=Lv(e);for(_v(r)&&(r=r.host);kv(r)&&["html","body"].indexOf(bv(r))<0;){var n=Tv(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function jv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vv(e,t,r){return Sv(e,Cv(t,r))}function Bv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fv(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function zv(e){return e.split("-")[1]}var Wv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hv(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,v=void 0===m?0:m,h="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=h.x,v=h.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=mv,x=dv,E=window;if(c){var k=Mv(r),_="clientHeight",w="clientWidth";k===xv(r)&&"static"!==Tv(k=Pv(r)).position&&"absolute"===s&&(_="scrollHeight",w="scrollWidth"),(a===dv||(a===mv||a===fv)&&"end"===o)&&(x=pv,v-=(d&&k===E&&E.visualViewport?E.visualViewport.height:k[_])-n.height,v*=l?1:-1),a!==mv&&(a!==dv&&a!==pv||"end"!==o)||(b=fv,f-=(d&&k===E&&E.visualViewport?E.visualViewport.width:k[w])-n.width,f*=l?1:-1)}var S,C=Object.assign({position:s},c&&Wv),O=!0===u?function(e){var t=e.y,r=window.devicePixelRatio||1;return{x:Ov(e.x*r)/r||0,y:Ov(t*r)/r||0}}({x:f,y:v}):{x:f,y:v};return f=O.x,v=O.y,Object.assign({},C,l?((S={})[x]=y?"0":"",S[b]=g?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",S):((t={})[x]=y?v+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var Uv={passive:!0},$v={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=void 0===a||a,i=n.resize,s=void 0===i||i,l=xv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,Uv)}),s&&l.addEventListener("resize",r.update,Uv),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,Uv)}),s&&l.removeEventListener("resize",r.update,Uv)}},data:{}},qv={left:"right",right:"left",bottom:"top",top:"bottom"};function Yv(e){return e.replace(/left|right|bottom|top/g,function(e){return qv[e]})}var Gv={start:"end",end:"start"};function Zv(e){return e.replace(/start|end/g,function(e){return Gv[e]})}function Xv(e){var t=xv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kv(e){return Rv(Pv(e)).left+Xv(e).scrollLeft}function Jv(e){var t=Tv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Qv(e){return["html","body","#document"].indexOf(bv(e))>=0?e.ownerDocument.body:kv(e)&&Jv(e)?e:Qv(Lv(e))}function eh(e,t){var r;void 0===t&&(t=[]);var n=Qv(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),o=xv(n),i=a?[o].concat(o.visualViewport||[],Jv(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(eh(Lv(i)))}function th(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?th(function(e){var t=xv(e),r=Pv(e),n=t.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,s=0;return n&&(a=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,s=n.offsetTop)),{width:a,height:o,x:i+Kv(e),y:s}}(e)):Ev(t)?function(e){var t=Rv(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):th(function(e){var t,r=Pv(e),n=Xv(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Sv(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Sv(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+Kv(e),l=-n.scrollTop;return"rtl"===Tv(a||r).direction&&(s+=Sv(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(Pv(e)))}function nh(e){var t,r=e.reference,n=e.element,a=e.placement,o=a?wv(a):null,i=a?zv(a):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case dv:t={x:s,y:r.y-n.height};break;case pv:t={x:s,y:r.y+r.height};break;case fv:t={x:r.x+r.width,y:l};break;case mv:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?jv(o):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function ah(e,t){void 0===t&&(t={});var r=t.placement,n=void 0===r?e.placement:r,a=t.boundary,o=void 0===a?"clippingParents":a,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Bv("number"!=typeof f?f:Fv(f,vv)),v=e.rects.popper,h=e.elements[d?"popper"===c?"reference":"popper":c],g=function(e,t,r){var n="clippingParents"===t?function(e){var t=eh(Lv(e)),r=["absolute","fixed"].indexOf(Tv(e).position)>=0&&kv(e)?Mv(e):e;return Ev(r)?t.filter(function(e){return Ev(e)&&Iv(e,r)&&"body"!==bv(e)}):[]}(e):[].concat(t),a=[].concat(n,[r]),o=a.reduce(function(t,r){var n=rh(e,r);return t.top=Sv(n.top,t.top),t.right=Cv(n.right,t.right),t.bottom=Cv(n.bottom,t.bottom),t.left=Sv(n.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}(Ev(h)?h:h.contextElement||Pv(e.elements.popper),o,s),y=Rv(e.elements.reference),b=nh({reference:y,element:v,strategy:"absolute",placement:n}),x=th(Object.assign({},v,b)),E="popper"===c?x:y,k={top:g.top-E.top+m.top,bottom:E.bottom-g.bottom+m.bottom,left:g.left-E.left+m.left,right:E.right-g.right+m.right},_=e.modifiersData.offset;if("popper"===c&&_){var w=_[n];Object.keys(k).forEach(function(e){var t=[fv,pv].indexOf(e)>=0?1:-1,r=[dv,pv].indexOf(e)>=0?"y":"x";k[e]+=w[r]*t})}return k}function oh(e,t){void 0===t&&(t={});var r=t.boundary,n=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?gv:i,l=zv(t.placement),c=l?o?hv:hv.filter(function(e){return zv(e)===l}):vv,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,o){return t[o]=ah(e,{placement:o,boundary:r,rootBoundary:n,padding:a})[wv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var ih={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=void 0===a||a,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,v=r.allowedAutoPlacements,h=t.options.placement,g=wv(h),y=l||(g!==h&&m?function(e){if("auto"===wv(e))return[];var t=Yv(e);return[Zv(e),t,Zv(t)]}(h):[Yv(h)]),b=[h].concat(y).reduce(function(e,r){return e.concat("auto"===wv(r)?oh(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,E=t.rects.popper,k=new Map,_=!0,w=b[0],S=0;S<b.length;S++){var C=b[S],O=wv(C),R="start"===zv(C),A=[dv,pv].indexOf(O)>=0,I=A?"width":"height",T=ah(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=A?R?fv:mv:R?pv:dv;x[I]>E[I]&&(N=Yv(N));var P=Yv(N),L=[];if(o&&L.push(T[O]<=0),s&&L.push(T[N]<=0,T[P]<=0),L.every(function(e){return e})){w=C,_=!1;break}k.set(C,L)}if(_)for(var D=function(e){var t=b.find(function(t){var r=k.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sh(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function lh(e){return[dv,fv,pv,mv].some(function(t){return e[t]>=0})}var ch={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.name,n=e.options.offset,a=void 0===n?[0,0]:n,o=gv.reduce(function(e,r){return e[r]=function(e,t,r){var n=wv(e),a=[mv,dv].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[mv,fv].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,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[r]=o}},uh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=void 0===a||a,i=r.altAxis,s=void 0!==i&&i,l=r.tether,c=void 0===l||l,u=r.tetherOffset,d=void 0===u?0:u,p=ah(t,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),f=wv(t.placement),m=zv(t.placement),v=!m,h=jv(f),g="x"===h?"y":"x",y=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(y){if(o){var S,C="y"===h?dv:mv,O="y"===h?pv:fv,R="y"===h?"height":"width",A=y[h],I=A+p[C],T=A-p[O],N=c?-x[R]/2:0,P="start"===m?b[R]:x[R],L="start"===m?-x[R]:-b[R],D=t.elements.arrow,M=c&&D?Av(D):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=j[C],B=j[O],F=Vv(0,b[R],M[R]),z=v?b[R]/2-N-F-V-k.mainAxis:P-F-V-k.mainAxis,W=v?-b[R]/2+N+F+B+k.mainAxis:L+F+B+k.mainAxis,H=t.elements.arrow&&Mv(t.elements.arrow),U=null!=(S=null==_?void 0:_[h])?S:0,$=A+W-U,q=Vv(c?Cv(I,A+z-U-(H?"y"===h?H.clientTop||0:H.clientLeft||0:0)):I,A,c?Sv(T,$):T);y[h]=q,w[h]=q-A}if(s){var Y,G=y[g],Z="y"===g?"height":"width",X=G+p["x"===h?dv:mv],K=G-p["x"===h?pv:fv],J=-1!==[dv,mv].indexOf(f),Q=null!=(Y=null==_?void 0:_[g])?Y:0,ee=J?X:G-b[Z]-x[Z]-Q+k.altAxis,te=J?G+b[Z]+x[Z]-Q-k.altAxis:K,re=c&&J?function(e,t,r){var n=Vv(e,t,r);return n>r?r:n}(ee,G,te):Vv(c?ee:X,G,c?te:K);y[g]=re,w[g]=re-G}t.modifiersData[n]=w}},requiresIfExists:["offset"]};function dh(e,t,r){void 0===r&&(r=!1);var n=kv(t),a=kv(t)&&function(e){var t=e.getBoundingClientRect(),r=Ov(t.width)/e.offsetWidth||1,n=Ov(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=Pv(t),i=Rv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==bv(t)||Jv(o))&&(s=function(e){return e!==xv(e)&&kv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Xv(e);var t}(t)),kv(t)?((l=Rv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Kv(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,r=new Set,n=[];function a(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&a(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||a(e)}),n}function fh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(e,t){return e.replace(/%s/,t)},e)}var mh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',vh=["name","enabled","phase","fn","effect","requires","options"],hh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",gh={placement:"bottom",modifiers:[],strategy:"absolute"};function yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function bh(e){void 0===e&&(e={});var t=e.defaultModifiers,r=void 0===t?[]:t,n=e.defaultOptions,a=void 0===n?gh:n;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},gh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Ev(e)?eh(e):e.contextElement?eh(e.contextElement):[],popper:eh(t)};var i,c,p,f=function(e){var t=ph(e);return yv.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}(function(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),vh).filter(function(e,t,r){return r.indexOf(e)===t}).forEach(function(r){switch(r){case"name":"string"!=typeof t.name&&console.error(fh(mh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(fh(mh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":yv.indexOf(t.phase)<0&&console.error(fh(mh,t.name,'"phase"',"either "+yv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(fh(mh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(fh(mh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(fh(mh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fh(mh,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 '+vh.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(r){null==e.find(function(e){return e.name===r})&&console.error(fh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))})})})})(m),"auto"===wv(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=Tv(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,r=e.effect;if("function"==typeof r){var n=r({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(n||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(yh(t,r)){s.rects={reference:dh(t,Mv(r),"fixed"===s.options.strategy),popper:Av(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0,a=0;a<s.orderedModifiers.length;a++){if("production"!==process.env.NODE_ENV&&(n+=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:u})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(hh)}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),c=!0}};if(!yh(e,t))return"production"!==process.env.NODE_ENV&&console.error(hh),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var xh=/*#__PURE__*/bh({defaultModifiers:[$v,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=nh({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,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,o=r.adaptive,i=void 0===o||o,s=r.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Tv(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return c.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:wv(t.placement),variation:zv(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,Hv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},a=t.elements[e];kv(a)&&bv(a)&&(Object.assign(a.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});kv(n)&&bv(n)&&(Object.assign(n.style,o),Object.keys(a).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},ch,ih,uh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=wv(r.placement),l=jv(s),c=[mv,fv].indexOf(s)>=0?"height":"width";if(o&&i){var u=function(e,t){return Bv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fv(e,vv))}(a.padding,r),d=Av(o),p="y"===l?dv:mv,f="y"===l?pv:fv,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],v=i[l]-r.rects.reference[l],h=Mv(o),g=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,y=g/2-d[c]/2+(m/2-v/2),b=Vv(u[p],y,g-d[c]-u[f]);r.modifiersData[n]=((t={})[l]=b,t.centerOffset=b-y,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&("production"!==process.env.NODE_ENV&&(kv(n)||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,n)?t.elements.arrow=n:"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,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ah(t,{elementContext:"reference"}),s=ah(t,{altBoundary:!0}),l=sh(i,n),c=sh(s,a,o),u=lh(l),d=lh(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eh.apply(this,arguments)}var kh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},_h={arrowShadowColor:kh("--popper-arrow-shadow-color"),arrowSize:kh("--popper-arrow-size","8px"),arrowSizeHalf:kh("--popper-arrow-size-half"),arrowBg:kh("--popper-arrow-bg"),transformOrigin:kh("--popper-transform-origin"),arrowOffset:kh("--popper-arrow-offset")},wh={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"},Sh={scroll:!0,resize:!0},Ch={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"}}},Oh={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Rh(e.state)},effect:function(e){var t=e.state;return function(){Rh(t)}}},Rh=function(e){e.elements.popper.style.setProperty(_h.transformOrigin.var,wh[e.placement])},Ah={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ih(e.state)}},Ih=function(e){var t;if(e.placement){var r=Th(e.placement);if(null!=(t=e.elements)&&t.arrow&&r){var n,a;Object.assign(e.elements.arrow.style,((n={})[r.property]=r.value,n.width=_h.arrowSize.varRef,n.height=_h.arrowSize.varRef,n.zIndex=-1,n));var o=((a={})[_h.arrowSizeHalf.var]="calc("+_h.arrowSize.varRef+" / 2)",a[_h.arrowOffset.var]="calc("+_h.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},Th=function(e){return e.startsWith("top")?{property:"bottom",value:_h.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:_h.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:_h.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:_h.arrowOffset.varRef}:void 0},Nh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Ph(e.state)},effect:function(e){var t=e.state;return function(){Ph(t)}}},Ph=function(e){if(e.elements.arrow){var t,r=e.elements.arrow.querySelector("[data-popper-arrow-inner]");r&&Object.assign(r.style,{transform:"rotate(45deg)",background:_h.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)})}},Lh={"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"}},Dh={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},Mh=["size","shadowColor","bg","style"];function jh(e){var t=e.size,r=e.shadowColor,n=e.bg,a=Eh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(this,arguments)}function Bh(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}var Fh=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],zh=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Wh=["type","isChecked"],Hh=["children","type","value","defaultValue","onChange"],Uh=gp(),$h=Uh[0],qh=Uh[1],Yh=Uh[2],Gh=Uh[3],Zh=rr({strict:!1,name:"MenuContext"}),Xh=Zh[0],Kh=Zh[1];function Jh(e){var r;return t.isHTMLElement(e)&&!(null==(r=e.getAttribute("role"))||!r.startsWith("menuitem"))}function Qh(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=Bh(e,zh),p=Kh(),f=p.setFocusedIndex,m=p.focusedIndex,v=p.closeOnSelect,h=p.onClose,g=p.menuRef,y=p.isOpen,b=p.menuId,x=F.useRef(null),E=b+"-menuitem-"+dr(),k=Gh({disabled:s&&!l}),_=k.index,w=k.register,S=F.useCallback(function(e){null==n||n(e),s||f(_)},[f,_,s,n]),C=F.useCallback(function(e){null==a||a(e),x.current&&!t.isActiveElement(x.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||f(-1)},[f,s,o]),R=F.useCallback(function(e){null==i||i(e),Jh(e.currentTarget)&&(null!=c?c:v)&&h()},[h,i,v,c]),A=_===m,I=s&&!l;pr(function(){y&&(A&&!I&&x.current?t.focus(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):g.current&&!t.isActiveElement(g.current)&&t.focus(g.current,{preventScroll:!1}))},[A,I,g,y]);var T=function(e){void 0===e&&(e={});var r=e.ref,n=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,p=e.onKeyDown,f=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,g=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,cv),y=F.useState(!0),b=y[0],x=y[1],E=F.useState(!1),k=E[0],_=E[1],w=function(){var e=F.useRef(new Map),t=e.current,r=F.useCallback(function(t,r,n,a){e.current.set(n,{type:r,el:t,options:a}),t.addEventListener(r,n,a)},[]),n=F.useCallback(function(t,r,n,a){t.removeEventListener(r,n,a),e.current.delete(n)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){n(e.el,e.type,t,e.options)})}},[n,t]),{add:r,remove:n}}(),S=b?m:m||0,C=n&&!a,O=F.useCallback(function(e){if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[n,d]),R=F.useCallback(function(e){k&&uv(e)&&(e.preventDefault(),e.stopPropagation(),_(!1),w.remove(document,"keyup",R,!1))},[k,w]),A=F.useCallback(function(e){if(null==p||p(e),!(n||e.defaultPrevented||e.metaKey)&&uv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),_(!0)),t&&(e.preventDefault(),e.currentTarget.click()),w.add(document,"keyup",R,!1)}},[n,b,p,i,l,w,R]),I=F.useCallback(function(e){null==f||f(e),n||e.defaultPrevented||e.metaKey||uv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),_(!1),e.currentTarget.click())},[l,b,n,f]),T=F.useCallback(function(e){0===e.button&&(_(!1),w.remove(document,"mouseup",T,!1))},[w]),N=F.useCallback(function(e){if(!t.isRightClick(e)){if(n)return e.stopPropagation(),void e.preventDefault();b||_(!0),e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",T,!1),null==c||c(e)}},[n,b,c,w,T]),P=F.useCallback(function(e){t.isRightClick(e)||(b||_(!1),null==u||u(e))},[u,b]),L=F.useCallback(function(e){n?e.preventDefault():null==v||v(e)},[n,v]),D=F.useCallback(function(e){k&&(e.preventDefault(),_(!1)),null==h||h(e)},[k,h]),M=tr(r,function(e){e&&"BUTTON"!==e.tagName&&x(!1)});return lv({},g,b?{ref:M,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:O,onMouseDown:c,onMouseUp:u,onKeyUp:f,onKeyDown:p,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(k),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:N,onMouseUp:P,onKeyUp:I,onKeyDown:A,onMouseOver:L,onMouseLeave:D})}({onClick:R,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:tr(w,x,r),isDisabled:s,isFocusable:l});return Vh({},d,T,{type:null!=u?u:T.type,id:E,role:"menuitem",tabIndex:A?0:-1})}var eg=["descendants"],tg=["children","as"],rg=["rootProps"],ng=["type"],ag=["icon","iconSpacing","command","commandSpacing","children"],og=["icon","iconSpacing"],ig=["className","title"],sg=["title","children","className"],lg=["className","children"],cg=aa("Menu"),ug=cg[0],dg=cg[1],pg=function(e){var r=e.children,n=ga("Menu",e),a=function(e){void 0===e&&(e={});var r=e.id,n=e.closeOnSelect,a=void 0===n||n,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,c=e.isLazy,u=e.isOpen,d=e.defaultIsOpen,p=e.onClose,f=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,g=void 0===h?"unmount":h,y=e.direction,b=e.computePositionOnMount,x=void 0!==b&&b,E=Bh(e,Fh),k=F.useRef(null),_=F.useRef(null),w=Yh(),S=F.useCallback(function(){t.focus(k.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=w.firstEnabled();e&&z(e.index)});Y.current.add(e)},[w]),O=F.useCallback(function(){var e=setTimeout(function(){var e=w.lastEnabled();e&&z(e.index)});Y.current.add(e)},[w]),R=function(e){void 0===e&&(e={});var r=e.onClose,n=e.isOpen,a=e.id,o=or(e.onOpen),i=or(r),s=F.useState(e.defaultIsOpen||!1),l=s[1],c=lr(n,s[0]),u=c[0],d=c[1],p=dr(a,"disclosure"),f=F.useCallback(function(){u||l(!1),null==i||i()},[u,i]),m=F.useCallback(function(){u||l(!0),null==o||o()},[u,o]),v=F.useCallback(function(){(d?f:m)()},[d,m,f]);return{isOpen:!!d,onOpen:m,onClose:f,onToggle:v,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),ur({},e,{"aria-expanded":d,"aria-controls":p,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),ur({},e,{hidden:!d,id:p})}}}({isOpen:u,defaultIsOpen:d,onClose:p,onOpen:F.useCallback(function(){null==f||f(),l?C():S()},[l,C,S,f])}),A=R.isOpen,I=R.onOpen,T=R.onClose,N=R.onToggle;!function(e){var r=e.ref,n=e.handler,a=e.enabled,o=void 0===a||a,i=or(n),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){hr(e,r)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&n&&hr(e,r)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&hr(e,r)&&(s.isPointerDown=!1,i(e))},c=t.getOwnerDocument(r.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",a,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",l,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",a,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",l,!0)}}},[n,r,i,s,o])}({enabled:A&&i,ref:k,handler:function(e){var t;null!=(t=_.current)&&t.contains(e.target)||T()}});var P,L,D,M,j=function(e){void 0===e&&(e={});var t=e.enabled,r=void 0===t||t,n=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,c=void 0===l?8:l,u=e.eventListeners,d=void 0===u||u,p=e.offset,f=e.gutter,m=void 0===f?8:f,v=e.flip,h=void 0===v||v,g=e.boundary,y=void 0===g?"clippingParents":g,b=e.preventOverflow,x=void 0===b||b,E=e.matchWidth,k=e.direction,_=void 0===k?"ltr":k,w=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var r,n;void 0===t&&(t="ltr");var a=(null==(r=Lh[e])?void 0:r[t])||e;return"ltr"===t?a:null!=(n=Dh[e])?n:a}(o,_),R=F.useRef(function(){}),A=F.useCallback(function(){var e;r&&w.current&&S.current&&(null==R.current||R.current(),C.current=xh(w.current,S.current,{placement:O,modifiers:[Nh,Ah,Oh,Eh({},Ch,{enabled:!!E}),Eh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:Eh({},Sh,e)}:{enabled:e,options:Sh})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=p?p:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:y}}].concat(null!=n?n:[]),strategy:s}),C.current.forceUpdate(),R.current=C.current.destroy)},[O,r,n,E,d,c,p,m,h,x,y,s]);F.useEffect(function(){return function(){var e;w.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var I=F.useCallback(function(e){w.current=e,A()},[A]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},e,{ref:tr(I,t)})},[I]),N=F.useCallback(function(e){S.current=e,A()},[A]),P=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},e,{ref:tr(N,t),style:Eh({},e.style,{position:s,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"})})},[s,N,E]),L=F.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Mh);return Eh({},r,{ref:t,"data-popper-arrow":"",style:jh(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Eh({},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:_h.transformOrigin.varRef,referenceRef:I,popperRef:N,getPopperProps:P,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:T}}(Vh({},E,{enabled:A||x,placement:v,direction:y})),V=F.useState(-1),B=V[0],z=V[1];pr(function(){A||z(-1)},[A]),pr(function(){if(M&&!function(e){var r=e.current;if(!r)return!1;var n=t.getActiveElement(r);return!!n&&!t.contains(r,n)&&!!t.isTabbable(n)}(P)){var e=(null==D?void 0:D.current)||P.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:_,visible:A,shouldFocus:!0}).shouldFocus&&!L.visible,P=k,D=L.focusRef]);var W=function(e){var r=e.isOpen,n=e.ref,a=F.useState(r),o=a[0],i=a[1],s=F.useState(!1),l=s[0],c=s[1];return F.useEffect(function(){l||(i(r),c(!0))},[r,l,o]),ir("animationend",function(){i(r)},function(){return n.current}),{present:!(!r&&!o),onComplete:function(){var e,r=new(t.getOwnerWindow(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:A,ref:k}),H=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=dr(e);return F.useMemo(function(){return r.map(function(e){return e+"-"+a})},[a,r])}(r,"menu-button","menu-list"),U=H[0],$=H[1],q=F.useCallback(function(){I(),S()},[I,S]),Y=F.useRef(new Set([]));fr(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var G=F.useCallback(function(){I(),C()},[C,I]),Z=F.useCallback(function(){I(),O()},[I,O]),X=F.useCallback(function(){var e,r,n=t.getOwnerDocument(k.current),a=null==(e=k.current)?void 0:e.contains(n.activeElement);if(A&&!a){var o=null==(r=w.item(B))?void 0:r.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[A,B,w]);return{openAndFocusMenu:q,openAndFocusFirstItem:G,openAndFocusLastItem:Z,onTransitionEnd:X,unstable__animationState:W,descendants:w,popper:j,buttonId:U,menuId:$,forceUpdate:j.forceUpdate,orientation:"vertical",isOpen:A,onToggle:N,onOpen:I,onClose:T,menuRef:k,buttonRef:_,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:c,lazyBehavior:g}}(Vh({},oa(e),{direction:na().direction})),o=a.descendants,i=Bh(a,eg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
|
63
|
+
return F.createElement($h,{value:o},/*#__PURE__*/F.createElement(Xh,{value:s},/*#__PURE__*/F.createElement(ug,{value:n},t.runIfFn(r,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(pg.displayName="Menu");var fg=/*#__PURE__*/fa(function(e,t){var r=dg();/*#__PURE__*/
|
64
|
+
return F.createElement(ba.button,Vh({ref:t},e,{__css:Vh({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},r.button)}))}),mg=/*#__PURE__*/fa(function(e,r){var n=e.as,a=function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=Kh(),a=n.onToggle,o=n.popper,i=n.openAndFocusFirstItem,s=n.openAndFocusLastItem,l=F.useCallback(function(e){var r=t.normalizeEventKey(e),n={Enter:i,ArrowDown:i,ArrowUp:s}[r];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[i,s]);return Vh({},e,{ref:tr(n.buttonRef,r,o.referenceRef),id:n.buttonId,"data-active":t.dataAttr(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(Bh(e,tg),r);/*#__PURE__*/
|
65
|
+
return F.createElement(n||fg,Vh({},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__&&(mg.displayName="MenuButton");var vg={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"}}},hg=function(e){var t=xd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(ba.div),gg=/*#__PURE__*/fa(function(e,r){var n,a,o=e.rootProps,i=Bh(e,rg),s=Kh(),l=s.isOpen,c=s.onTransitionEnd,u=s.unstable__animationState,d=function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=Kh();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=n.focusedIndex,o=n.setFocusedIndex,i=n.menuRef,s=n.isOpen,l=n.onClose,c=n.menuId,u=n.isLazy,d=n.lazyBehavior,p=n.unstable__animationState,f=qh(),m=function(e){void 0===e&&(e={});var t=e.timeout,r=void 0===t?300:t,n=e.preventDefault,a=void 0===n?function(){return!0}:n,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),c=function(){l.current&&(clearTimeout(l.current),l.current=null)};return F.useEffect(function(){return c},[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(i);return n.pop(),void s(n)}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("")),c(),l.current=setTimeout(function(){s([]),l.current=null},r)}}}}({preventDefault:function(e){return" "!==e.key&&Jh(e.target)}}),v=F.useCallback(function(e){var r=t.normalizeEventKey(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=f.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=f.prevEnabled(a);e&&o(e.index)}},i=n[r];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var r=t.getNextItemFromSearch(f.values(),e,function(e){var t,r;return null!=(t=null==e||null==(r=e.node)?void 0:r.textContent)?t:""},f.item(a));if(r){var n=f.indexOf(r.node);o(n)}});Jh(e.target)&&s(e)},[f,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var g=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:u,lazyBehavior:d,isSelected:p.present});return Vh({},e,{ref:tr(i,r),children:g?e.children:null,tabIndex:-1,role:"menu",id:c,style:Vh({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,r),p=function(e){void 0===e&&(e={});var t=Kh();return t.popper.getPopperProps(Vh({},e,{style:Vh({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),f=dg();/*#__PURE__*/
|
66
|
+
return F.createElement(ba.div,Vh({},p,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(a=f.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(hg,Vh({},d,{onUpdate:c,onAnimationComplete:t.callAll(u.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:vg,initial:!1,animate:l?"enter":"exit",__css:Vh({outline:0},f.list)})))});t.__DEV__&&(gg.displayName="MenuList");var yg=/*#__PURE__*/fa(function(e,t){var r=e.type,n=Bh(e,ng),a=dg(),o=n.as||r?null!=r?r:void 0:"button",i=F.useMemo(function(){return Vh({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,Vh({ref:t,type:o},n,{__css:i}))}),bg=/*#__PURE__*/fa(function(e,r){var n=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,c=e.children,u=Qh(Bh(e,ag),r),d=n||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},c):c;/*#__PURE__*/
|
68
|
+
return F.createElement(yg,Vh({},u,{className:t.cx("chakra-menu__menuitem",u.className)}),n&&/*#__PURE__*/F.createElement(Sg,{fontSize:"0.8em",marginEnd:o},n),d,i&&/*#__PURE__*/F.createElement(wg,{marginStart:l},i))});t.__DEV__&&(bg.displayName="MenuItem");var xg=function(e){/*#__PURE__*/
|
69
|
+
return F.createElement("svg",Vh({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"}))},Eg=/*#__PURE__*/fa(function(e,r){var n=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=Bh(e,og),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e.type,n=void 0===r?"radio":r,a=e.isChecked;return Vh({},Qh(Bh(e,Wh),t),{role:"menuitem"+n,"aria-checked":a})}(i,r);/*#__PURE__*/
|
70
|
+
return F.createElement(yg,Vh({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==n&&/*#__PURE__*/F.createElement(Sg,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||/*#__PURE__*/F.createElement(xg,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});Eg.id="MenuItemOption",t.__DEV__&&(Eg.displayName="MenuItemOption");var kg=function(e){var r=e.className,n=e.title,a=function(e){void 0===e&&(e={});var r=e.children,n=e.type,a=void 0===n?"radio":n,o=e.value,i=e.defaultValue,s=e.onChange,l=Bh(e,Hh),c=cr({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),u=c[0],d=c[1],p=F.useCallback(function(e){if("radio"===a&&t.isString(u)&&d(e),"checkbox"===a&&t.isArray(u)){var r=u.includes(e)?t.removeItem(u,e):t.addItem(u,e);d(r)}},[u,d,a]);return Vh({},l,{children:nr(r).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===a?e.props.value===u:u.includes(e.props.value);/*#__PURE__*/
|
71
|
+
return F.cloneElement(e,{type:a,onClick:function(t){p(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Bh(e,ig));/*#__PURE__*/
|
72
|
+
return F.createElement(_g,Vh({title:n,className:t.cx("chakra-menu__option-group",r)},a))};t.__DEV__&&(kg.displayName="MenuOptionGroup");var _g=/*#__PURE__*/fa(function(e,r){var n=e.title,a=e.children,o=e.className,i=Bh(e,sg),s=t.cx("chakra-menu__group__title",o),l=dg();/*#__PURE__*/
|
73
|
+
return F.createElement("div",{ref:r,className:"chakra-menu__group",role:"group"},n&&/*#__PURE__*/F.createElement(ba.p,Vh({className:s},i,{__css:l.groupTitle}),n),a)});t.__DEV__&&(_g.displayName="MenuGroup");var wg=/*#__PURE__*/fa(function(e,t){var r=dg();/*#__PURE__*/
|
74
|
+
return F.createElement(ba.span,Vh({ref:t},e,{__css:r.command,className:"chakra-menu__command"}))});t.__DEV__&&(wg.displayName="MenuCommand");var Sg=function(e){var r=e.className,n=e.children,a=Bh(e,lg),o=F.Children.only(n),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",r);/*#__PURE__*/
|
75
|
+
return F.createElement(ba.span,Vh({className:s},a,{__css:{flexShrink:0}}),i)};function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function Og(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Sg.displayName="MenuIcon");var Rg=function(e){/*#__PURE__*/
|
76
|
+
return F.createElement(Ad,Cg({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"}))},Ag=function(e){/*#__PURE__*/
|
77
|
+
return F.createElement(Ad,Cg({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 Ig(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tg(e,r,n,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(r)?r:[r],s=new o.MutationObserver(function(e){for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ig(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&n(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ng=["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"],Pg=/^[Ee0-9+\-.]$/;function Lg(e){return Pg.test(e)}var Dg=["htmlProps"],Mg=aa("NumberInput"),jg=Mg[0],Vg=Mg[1],Bg=rr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Fg=Bg[0],zg=Bg[1],Wg=/*#__PURE__*/fa(function(e,r){var n=ga("NumberInput",e),a=function(e){void 0===e&&(e={});var r=e.focusInputOnChange,n=void 0===r||r,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,c=void 0===l?t.minSafeInteger:l,u=e.max,d=void 0===u?t.maxSafeInteger:u,p=e.step,f=void 0===p?1:p,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,g=e.isInvalid,y=e.pattern,b=void 0===y?"[0-9]*(.[0-9]+)?":y,x=e.inputMode,E=void 0===x?"decimal":x,k=e.allowMouseWheel,_=e.id,w=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],R=e.onFocus,A=e.onBlur,I=e.onInvalid,T=e.getAriaValueText,N=e.isValidCharacter,P=e.format,L=e.parse,D=Og(e,Ng),M=or(R),j=or(A),V=or(I),B=or(null!=N?N:Lg),z=or(T),W=Ff(e),H=W.update,U=W.increment,$=W.decrement,q=sr(),Y=q[0],G=q[1],Z=!(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]),re=F.useCallback(function(e){var t;return(null!=(t=null==P?void 0:P(e))?t:e).toString()},[P]);pr(function(){(W.valueAsNumber>d||W.valueAsNumber<c)&&(null==V||V("rangeOverflow",re(W.value),W.valueAsNumber))},[W.valueAsNumber,W.value,re,V]),ar(function(){if(X.current&&X.current.value!=W.value){var e=te(X.current.value);W.setValue(ee(e))}},[te,ee]);var ne=F.useCallback(function(e){void 0===e&&(e=f),Z&&U(e)},[U,Z,f]),ae=F.useCallback(function(e){void 0===e&&(e=f),Z&&$(e)},[$,Z,f]),oe=function(e,t){var r,n,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],c=s[1],u=F.useState(!0),d=u[0],p=u[1],f=F.useRef(null),m=function(){return clearTimeout(f.current)};r=o?50:null,n=or(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==r&&(e=window.setInterval(function(){return n()},r)),function(){e&&window.clearInterval(e)}},[r,n]);var v=F.useCallback(function(){d&&e(),f.current=setTimeout(function(){p(!1),i(!0),c("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),f.current=setTimeout(function(){p(!1),i(!0),c("decrement")},300)},[t,d]),g=F.useCallback(function(){p(!0),i(!1),m()},[]);return fr(m),{up:v,down:h,stop:g,isSpinning:o}}(ne,ae);Tg(J,"disabled",oe.stop,oe.isSpinning),Tg(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,r,n;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(r=e.currentTarget.value)?void 0:r.length,e.currentTarget.selectionEnd=null!=(n=K.current.end)?n: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 r=ce(e)*f,n={ArrowUp:function(){return ne(r)},ArrowDown:function(){return ae(r)},Home:function(){return H(c)},End:function(){return H(d)}}[t.normalizeEventKey(e)];n&&(e.preventDefault(),n(e))}},[B,f,ne,ae,H,c,d]),ce=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ue=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<c&&(e=c),W.valueAsNumber>d&&(e=d),W.cast(e))},[W,d,c]),pe=F.useCallback(function(){G.off(),o&&de()},[o,G,de]),fe=F.useCallback(function(){n&&t.focus(X.current,{nextTick:!0})},[n]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),fe()},[fe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),fe()},[fe,oe]);ir("wheel",function(e){var r=t.getOwnerDocument(X.current);if(k&&r.activeElement===X.current){e.preventDefault();var n=ce(e)*f,a=Math.sign(e.deltaY);-1===a?ne(n):1===a&&ae(n)}},X.current,{passive:!1});var he=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=v||s&&W.isAtMax;return Cg({},e,{ref:tr(r,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){n||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:n,"aria-disabled":t.ariaAttr(n)})},[W.isAtMax,s,me,oe.stop,v]),ge=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=v||s&&W.isAtMin;return Cg({},e,{ref:tr(r,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){n||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:n,"aria-disabled":t.ariaAttr(n)})},[W.isAtMin,s,ve,oe.stop,v]),ye=F.useCallback(function(e,r){var n,a,o,i;return void 0===e&&(e={}),void 0===r&&(r=null),Cg({name:w,inputMode:E,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:_,disabled:v},e,{readOnly:null!=(n=e.readOnly)?n: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:tr(X,r),value:re(W.value),role:"spinbutton","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":t.ariaAttr(null!=g?g:W.isOutOfRange),"aria-valuetext":ue,autoComplete:"off",autoCorrect:"off",onChange:t.callAllHandlers(e.onChange,ie),onKeyDown:t.callAllHandlers(e.onKeyDown,le),onFocus:t.callAllHandlers(e.onFocus,se,G.on),onBlur:t.callAllHandlers(e.onBlur,j,pe)})},[w,E,b,O,C,re,S,_,v,h,m,g,W.value,W.valueAsNumber,W.isOutOfRange,c,d,ue,ie,le,se,G.on,j,pe]);return{value:re(W.value),valueAsNumber:W.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ge,getInputProps:ye,htmlProps:D}}(rf(oa(e))),o=a.htmlProps,i=Og(a,Dg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
|
78
|
+
return F.createElement(Fg,{value:s},/*#__PURE__*/F.createElement(jg,{value:n},/*#__PURE__*/F.createElement(ba.div,Cg({},o,{ref:r,className:t.cx("chakra-numberinput",e.className),__css:Cg({position:"relative",zIndex:0},n.root)}))))});t.__DEV__&&(Wg.displayName="NumberInput");var Hg=/*#__PURE__*/fa(function(e,t){var r=Vg();/*#__PURE__*/
|
79
|
+
return F.createElement(ba.div,Cg({"aria-hidden":!0,ref:t},e,{__css:Cg({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},r.stepperGroup)}))});t.__DEV__&&(Hg.displayName="NumberInputStepper");var Ug=/*#__PURE__*/fa(function(e,r){var n=(0,zg().getInputProps)(e,r),a=Vg();/*#__PURE__*/
|
80
|
+
return F.createElement(ba.input,Cg({},n,{className:t.cx("chakra-numberinput__field",e.className),__css:Cg({width:"100%"},a.field)}))});t.__DEV__&&(Ug.displayName="NumberInputField");var $g=ba("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),qg=/*#__PURE__*/fa(function(e,t){var r,n=Vg(),a=(0,zg().getDecrementButtonProps)(e,t);/*#__PURE__*/
|
81
|
+
return F.createElement($g,Cg({},a,{__css:n.stepper}),null!=(r=e.children)?r:/*#__PURE__*/F.createElement(Rg,null))});t.__DEV__&&(qg.displayName="NumberDecrementStepper");var Yg=/*#__PURE__*/fa(function(e,t){var r,n=(0,zg().getIncrementButtonProps)(e,t),a=Vg();/*#__PURE__*/
|
82
|
+
return F.createElement($g,Cg({},n,{__css:a.stepper}),null!=(r=e.children)?r:/*#__PURE__*/F.createElement(Ag,null))});function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gg.apply(this,arguments)}function Zg(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Yg.displayName="NumberIncrementStepper");var Xg=["index"],Kg=gp(),Jg=Kg[0],Qg=Kg[2],ey=Kg[3],ty=rr({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),ry=ty[0],ny=ty[1],ay=function(e){return null==e?void 0:e.split("")};function oy(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var iy=["children"],sy=["descendants"],ly=function(e){var r=ha("PinInput",e),n=oa(e),a=n.children,o=function(e){void 0===e&&(e={});var r=e.autoFocus,n=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,c=e.manageFocus,u=void 0===c||c,d=e.otp,p=void 0!==d&&d,f=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,g=void 0===h?"number":h,y=e.mask,b=dr(),x=null!=f?f:"pin-input-"+b,E=Qg(),k=F.useState(!0),_=k[0],w=k[1],S=F.useState(-1),C=S[0],O=S[1],R=cr({defaultValue:ay(a)||[],value:ay(n),onChange:function(e){return null==o?void 0:o(e.join(""))}}),A=R[0],I=R[1];F.useEffect(function(){if(r){var e=E.first();e&&t.focus(e.node,{nextTick:!0})}},[E]);var T=F.useCallback(function(e){if(_&&u){var r=E.next(e,!1);r&&t.focus(r.node,{nextTick:!0})}},[E,_,u]),N=F.useCallback(function(e,t){var r=[].concat(A);r[t]=e,I(r),""!==e&&r.length===E.count()&&r.every(function(e){return null!=e&&""!==e})?null==i||i(r.join("")):T(t)},[A,I,T,i,E]),P=F.useCallback(function(){var e=Array(E.count()).fill("");I(e);var r=E.first();r&&t.focus(r.node)},[E,I]),L=F.useCallback(function(e,t){var r=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?r=t.charAt(1):e[0]===t.charAt(1)&&(r=t.charAt(0))),r},[]),D=F.useCallback(function(e){var r=e.index,n=Zg(e,Xg),a=C===r;return Gg({"aria-label":"Please enter your pin code",inputMode:"number"===g?"numeric":"text",type:y?"password":"number"===g?"tel":"text"},n,{id:x+"-"+r,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(n.onChange,function(e){var t=e.target.value,n=L(A[r],t);if(""!==n)if(t.length>2){if(oy(t,g)){var a=t.split("").filter(function(e,t){return t<E.count()});I(a),a.length===E.count()&&(null==i||i(a.join("")))}}else oy(n,g)&&N(n,r),w(!0);else N("",r)}),onKeyDown:t.callAllHandlers(n.onKeyDown,function(e){if("Backspace"===e.key&&u)if(""===e.target.value){var n=E.prev(r,!1);n&&(N("",r-1),t.focus(n.node),w(!0))}else w(!1)}),onFocus:t.callAllHandlers(n.onFocus,function(){O(r)}),onBlur:t.callAllHandlers(n.onBlur,function(){O(-1)}),value:A[r]||"",autoComplete:p?"one-time-code":"off",placeholder:a?"":l})},[E,C,L,x,m,y,v,u,i,p,l,N,I,g,A]);return{getInputProps:D,id:x,descendants:E,values:A,setValue:N,setValues:I,clear:P}}(Zg(n,iy)),i=o.descendants,s=Zg(o,sy),l=nr(a).map(function(e){/*#__PURE__*/
|
83
|
+
return F.cloneElement(e,{__css:r})});/*#__PURE__*/
|
84
|
+
return F.createElement(Jg,{value:i},/*#__PURE__*/F.createElement(ry,{value:s},l))};t.__DEV__&&(ly.displayName="PinInput");var cy=/*#__PURE__*/fa(function(e,r){var n=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=ny().getInputProps,n=ey(),a=n.index;return r(Gg({},e,{ref:tr(n.register,t),index:a}))}(e,r);/*#__PURE__*/
|
85
|
+
return F.createElement(ba.input,Gg({},n,{className:t.cx("chakra-pin-input",e.className)}))});function uy(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dy.apply(this,arguments)}t.__DEV__&&(cy.displayName="PinInputField");var py=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],fy=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],my=rr({name:"RadioGroupContext",strict:!1}),vy=my[0],hy=my[1],gy=/*#__PURE__*/fa(function(e,r){var n=e.colorScheme,a=e.size,o=e.variant,i=e.children,s=e.className,l=e.isDisabled,c=e.isFocusable,u=function(e){void 0===e&&(e={});var r=e.onChange,n=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,c=uy(e,py),u=F.useState(a||""),d=u[1],p=lr(n,u[0]),f=p[0],m=p[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.current;if(e){var t="input:not(:disabled):checked",r=e.querySelector(t);if(r)r.focus();else{var n=e.querySelector(t="input:not(:disabled)");null==n||n.focus()}}},[]),g=dr(void 0,"radio"),y=o||g,b=F.useCallback(function(e){var n=t.isInputEvent(e)?e.target.value:e;f||d(n),null==r||r(String(n))},[r,f]),x=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),dy({},e,{ref:tr(t,v),role:"radiogroup"})},[]),E=F.useCallback(function(e,t){var r;return void 0===e&&(e={}),void 0===t&&(t=null),dy({},e,((r={ref:t,name:y})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,r.onChange=b,r["data-radiogroup"]=!0,r))},[l,y,b,m]);return{getRootProps:x,getRadioProps:E,name:y,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:c}}(uy(e,fy)),d=u.value,p=u.onChange,f=u.getRootProps,m=u.name,v=u.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:p,colorScheme:n,value:d,variant:o,isDisabled:l,isFocusable:c}},[m,a,p,n,d,o,l,c]),g=f(v,r),y=t.cx("chakra-radio-group",s);/*#__PURE__*/
|
86
|
+
return F.createElement(vy,{value:h},/*#__PURE__*/F.createElement(ba.div,dy({},g,{className:y}),i))});t.__DEV__&&(gy.displayName="RadioGroup");var yy=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function by(e){e.preventDefault(),e.stopPropagation()}var xy=["spacing","children","isDisabled","isFocusable","inputProps"],Ey=/*#__PURE__*/fa(function(e,r){var n,a=hy(),o=e.onChange,i=e.value,s=ga("Radio",dy({},a,e)),l=oa(e),c=l.spacing,u=void 0===c?"0.5rem":c,d=l.children,p=l.isDisabled,f=void 0===p?null==a?void 0:a.isDisabled:p,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,g=uy(l,xy),y=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(y=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var x=function(e){void 0===e&&(e={});var r=e.defaultChecked,n=e.isChecked,a=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,c=e.isInvalid,u=e.name,d=e.value,p=e.id,f=e["data-radiogroup"],m=e["aria-describedby"],v=uy(e,yy),h=dr(void 0,"radio"),g=Xp(),y=hy(),b=!g||y||f?h:g.id;b=null!=p?p:b;var x=null!=o?o:null==g?void 0:g.isDisabled,E=null!=i?i:null==g?void 0:g.isReadOnly,k=null!=s?s:null==g?void 0:g.isRequired,_=null!=c?c:null==g?void 0:g.isInvalid,w=sr(),S=w[0],C=w[1],O=sr(),R=O[0],A=O[1],I=sr(),T=I[0],N=I[1],P=F.useState(Boolean(r)),L=P[1],D=lr(n,P[0]),M=D[0],j=D[1],V=F.useCallback(function(e){E||x?e.preventDefault():(M||L(e.target.checked),null==l||l(e))},[M,x,E,l]),B=F.useCallback(function(e){" "===e.key&&N.on()},[N]),z=F.useCallback(function(e){" "===e.key&&N.off()},[N]),W=F.useCallback(function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),dy({},e,{ref:r,"data-active":t.dataAttr(T),"data-hover":t.dataAttr(R),"data-disabled":t.dataAttr(x),"data-invalid":t.dataAttr(_),"data-checked":t.dataAttr(j),"data-focus":t.dataAttr(S),"data-readonly":t.dataAttr(E),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,N.on),onMouseUp:t.callAllHandlers(e.onMouseUp,N.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,A.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,A.off)})},[T,R,x,_,j,S,E,N.on,N.off,A.on,A.off]),H=null!=g?g:{},U=H.onFocus,$=H.onBlur,q=F.useCallback(function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=x&&!a;return dy({},e,{id:b,ref:r,type:"radio",name:u,value:d,onChange:t.callAllHandlers(e.onChange,V),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:j,disabled:n,readOnly:E,required:k,"aria-invalid":t.ariaAttr(_),"aria-disabled":t.ariaAttr(n),"aria-required":t.ariaAttr(k),"data-readonly":t.dataAttr(E),"aria-describedby":m,style:yp})},[x,a,b,u,d,V,$,C,U,B,z,j,E,k,_,m]);return{state:{isInvalid:_,isFocused:S,isChecked:j,isActive:T,isHovered:R,isDisabled:x,isReadOnly:E,isRequired:k},getCheckboxProps:W,getInputProps:q,getLabelProps:function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),dy({},e,{ref:r,onMouseDown:t.callAllHandlers(e.onMouseDown,by),onTouchStart:t.callAllHandlers(e.onTouchStart,by),"data-disabled":t.dataAttr(x),"data-checked":t.dataAttr(j),"data-invalid":t.dataAttr(_)})},getRootProps:function(e,r){return void 0===r&&(r=null),dy({},e,{ref:r,"data-disabled":t.dataAttr(x),"data-checked":t.dataAttr(j),"data-invalid":t.dataAttr(_)})},htmlProps:v}}(dy({},g,{isChecked:y,isFocusable:v,isDisabled:f,onChange:b,name:null!=(n=null==e?void 0:e.name)?n:null==a?void 0:a.name})),E=x.getInputProps,k=x.getCheckboxProps,_=x.getLabelProps,w=x.getRootProps,S=t.split(x.htmlProps,Kn),C=S[0],O=k(S[1]),R=E(h,r),A=_(),I=Object.assign({},C,w()),T=dy({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),N=dy({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),P=dy({userSelect:"none",marginStart:u},s.label);/*#__PURE__*/
|
87
|
+
return F.createElement(ba.label,dy({className:"chakra-radio"},I,{__css:T}),/*#__PURE__*/F.createElement("input",dy({className:"chakra-radio__input"},R)),/*#__PURE__*/F.createElement(ba.span,dy({className:"chakra-radio__control"},O,{__css:N})),d&&/*#__PURE__*/F.createElement(ba.span,dy({className:"chakra-radio__label"},A,{__css:P}),d))});function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ky.apply(this,arguments)}function _y(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Ey.displayName="Radio");var wy=["children","placeholder","className"],Sy=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Cy=["children"],Oy=/*#__PURE__*/fa(function(e,r){var n=e.children,a=e.placeholder,o=e.className,i=_y(e,wy);/*#__PURE__*/
|
88
|
+
return F.createElement(ba.select,ky({},i,{ref:r,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),n)});t.__DEV__&&(Oy.displayName="SelectField");var Ry=/*#__PURE__*/fa(function(e,r){var n=ga("Select",e),a=oa(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,c=a.height,u=a.h,d=a.minH,p=a.minHeight,f=a.iconColor,m=a.iconSize,v=_y(a,Sy),h=t.split(v,Kn),g=h[0],y=tf(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},x=t.mergeWith({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
|
89
|
+
return F.createElement(ba.div,ky({className:"chakra-select__wrapper",__css:b},g,o),/*#__PURE__*/F.createElement(Oy,ky({ref:r,height:null!=u?u:c,minH:null!=d?d:p,placeholder:i},y,{__css:x}),e.children),/*#__PURE__*/F.createElement(Ty,ky({"data-disabled":t.dataAttr(y.disabled)},(f||l)&&{color:f||l},{__css:n.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Ry.displayName="Select");var Ay=function(e){/*#__PURE__*/
|
90
|
+
return F.createElement("svg",ky({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"}))},Iy=ba("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Ty=function(e){var t=e.children,r=void 0===t?/*#__PURE__*/F.createElement(Ay,null):t,n=_y(e,Cy),a=/*#__PURE__*/F.cloneElement(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
|
91
|
+
return F.createElement(Iy,ky({},n,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(r)?a:null)};function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ny.apply(this,arguments)}t.__DEV__&&(Ty.displayName="SelectIcon");var Py=["spacing","children"],Ly=/*#__PURE__*/fa(function(e,r){var n=ga("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 r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,Py),c=Lf(l),u=c.state,d=c.getInputProps,p=c.getCheckboxProps,f=c.getRootProps,m=c.getLabelProps,v=F.useMemo(function(){return Ny({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},n.container)},[n.container]),h=F.useMemo(function(){return Ny({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)},[n.track]),g=F.useMemo(function(){return Ny({userSelect:"none",marginStart:i},n.label)},[i,n.label]);/*#__PURE__*/
|
92
|
+
return F.createElement(ba.label,Ny({},f(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",Ny({className:"chakra-switch__input"},d({},r))),/*#__PURE__*/F.createElement(ba.span,Ny({},p(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(ba.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(u.isChecked),"data-hover":t.dataAttr(u.isHovered)})),s&&/*#__PURE__*/F.createElement(ba.span,Ny({className:"chakra-switch__label"},m(),{__css:g}),s))});function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dy.apply(this,arguments)}t.__DEV__&&(Ly.displayName="Switch");var My=["className","rows"],jy=["h","minH","height","minHeight"],Vy=/*#__PURE__*/fa(function(e,r){var n=ha("Textarea",e),a=oa(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,My),l=tf(s),c=i?t.omit(n,jy):n;/*#__PURE__*/
|
93
|
+
return F.createElement(ba.textarea,Dy({ref:r,rows:i},l,{className:t.cx("chakra-textarea",o),__css:c}))});function By(){return By=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},By.apply(this,arguments)}t.__DEV__&&(Vy.displayName="Textarea");var Fy=["hideStepper","incrementIcon","decrementIcon"],zy=fa(function(e,t){var r=e.hideStepper,n=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Fy);return F.createElement(Wg,By({},o,{ref:t}),/*#__PURE__*/F.createElement(Ug,null),!r&&/*#__PURE__*/F.createElement(Hg,null,/*#__PURE__*/F.createElement(Yg,{children:n}),/*#__PURE__*/F.createElement(qg,{children:a})))});zy.defaultProps={hideStepper:!1},t.__DEV__&&(zy.displayName="NumberInput");var Wy=/*#__PURE__*/F.createContext({});function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}t.__DEV__&&(Wy.displayName="ColorModeContext");var Uy,$y,qy=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e};function Yy(e){var r=e.scale,n=e.transform,a=e.compose;return function(e,o){var i,s=function(e,r){return function(n){var a=String(r),o=function(e){return/!(important)?$/.test(e)}(a),i=qy(a),s=e?e+"."+i:i,l=t.isObject(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:r;return l=qy(l),o?l+" !important":l}}(r,e)(o),l=null!=(i=null==n?void 0:n(s,o))?i:s;return a&&(l=a(l,o)),l}}function Gy(e,t){return function(r){var n={property:r,scale:e};return n.transform=Yy({scale:e,transform:t}),n}}var Zy=["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))"],Xy={"--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(" ")},Ky={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,/*!*/ /*!*/)"},Jy={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Qy=((Uy={})["& > :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))"},Uy),eb=(($y={})["& > :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))"},$y);function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tb(e,t)}function rb(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&&tb(e,t)}function nb(){nb=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,a){var o=new RegExp(e,n);return t.set(o,a||t.get(e)),tb(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return rb(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,r,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,r,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,r,a)},nb.apply(this,arguments)}var ab={"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"},ob=new Set(Object.values(ab)),ib=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),sb=function(e){return e.trim()},lb=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},cb=function(e){return function(t){return e+"("+t+")"}},ub={filter:function(e){return"auto"!==e?e:Xy},backdropFilter:function(e){return"auto"!==e?e:Ky},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(", ")}}(ub.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(Zy).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Zy).join(" "):e},px:function(e){if(null==e)return e;var r=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return r.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 r=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||r?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||ib.has(e))return e;var a=null!=(r=null==(n=/*#__PURE__*/nb(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(sb).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in ab?ab[c]:c);var d=u.map(function(e){if(ob.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],a=n[0],o=n[1],i=lb(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:cb("blur"),opacity:cb("opacity"),brightness:cb("brightness"),contrast:cb("contrast"),dropShadow:cb("drop-shadow"),grayscale:cb("grayscale"),hueRotate:cb("hue-rotate"),invert:cb("invert"),saturate:cb("saturate"),sepia:cb("sepia"),bgImage:function(e){return null==e||lb(e)||ib.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,r=null!=(t=Jy[e])?t:{},n=r.space,a=r.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},db={borderWidths:Gy("borderWidths"),borderStyles:Gy("borderStyles"),colors:Gy("colors"),borders:Gy("borders"),radii:Gy("radii",ub.px),space:Gy("space",ub.px),spaceT:Gy("space",ub.px),degreeT:function(e){return{property:e,transform:ub.degree}},prop:function(e,t,r){return Hy({property:e,scale:t},t&&{transform:Yy({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:Gy("sizes",ub.px),sizesT:Gy("sizes",ub.fraction),shadows:Gy("shadows"),logical:function(e){var t,r,n,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,r=t.rtl,n=t.ltr,function(e){return"rtl"===e.direction?r:n}),transform:a?Yy({scale:a,compose:o}):o}},blur:Gy("blur",ub.blur)},pb={background:db.colors("background"),backgroundColor:db.colors("backgroundColor"),backgroundImage:db.propT("backgroundImage",ub.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ub.bgClip},bgSize:db.prop("backgroundSize"),bgPosition:db.prop("backgroundPosition"),bg:db.colors("background"),bgColor:db.colors("backgroundColor"),bgPos:db.prop("backgroundPosition"),bgRepeat:db.prop("backgroundRepeat"),bgAttachment:db.prop("backgroundAttachment"),bgGradient:db.propT("backgroundImage",ub.gradient),bgClip:{transform:ub.bgClip}};Object.assign(pb,{bgImage:pb.backgroundImage,bgImg:pb.backgroundImage});var fb={border:db.borders("border"),borderWidth:db.borderWidths("borderWidth"),borderStyle:db.borderStyles("borderStyle"),borderColor:db.colors("borderColor"),borderRadius:db.radii("borderRadius"),borderTop:db.borders("borderTop"),borderBlockStart:db.borders("borderBlockStart"),borderTopLeftRadius:db.radii("borderTopLeftRadius"),borderStartStartRadius:db.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:db.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:db.radii("borderTopRightRadius"),borderStartEndRadius:db.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:db.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:db.borders("borderRight"),borderInlineEnd:db.borders("borderInlineEnd"),borderBottom:db.borders("borderBottom"),borderBlockEnd:db.borders("borderBlockEnd"),borderBottomLeftRadius:db.radii("borderBottomLeftRadius"),borderBottomRightRadius:db.radii("borderBottomRightRadius"),borderLeft:db.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:db.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:db.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:db.borders(["borderLeft","borderRight"]),borderInline:db.borders("borderInline"),borderY:db.borders(["borderTop","borderBottom"]),borderBlock:db.borders("borderBlock"),borderTopWidth:db.borderWidths("borderTopWidth"),borderBlockStartWidth:db.borderWidths("borderBlockStartWidth"),borderTopColor:db.colors("borderTopColor"),borderBlockStartColor:db.colors("borderBlockStartColor"),borderTopStyle:db.borderStyles("borderTopStyle"),borderBlockStartStyle:db.borderStyles("borderBlockStartStyle"),borderBottomWidth:db.borderWidths("borderBottomWidth"),borderBlockEndWidth:db.borderWidths("borderBlockEndWidth"),borderBottomColor:db.colors("borderBottomColor"),borderBlockEndColor:db.colors("borderBlockEndColor"),borderBottomStyle:db.borderStyles("borderBottomStyle"),borderBlockEndStyle:db.borderStyles("borderBlockEndStyle"),borderLeftWidth:db.borderWidths("borderLeftWidth"),borderInlineStartWidth:db.borderWidths("borderInlineStartWidth"),borderLeftColor:db.colors("borderLeftColor"),borderInlineStartColor:db.colors("borderInlineStartColor"),borderLeftStyle:db.borderStyles("borderLeftStyle"),borderInlineStartStyle:db.borderStyles("borderInlineStartStyle"),borderRightWidth:db.borderWidths("borderRightWidth"),borderInlineEndWidth:db.borderWidths("borderInlineEndWidth"),borderRightColor:db.colors("borderRightColor"),borderInlineEndColor:db.colors("borderInlineEndColor"),borderRightStyle:db.borderStyles("borderRightStyle"),borderInlineEndStyle:db.borderStyles("borderInlineEndStyle"),borderTopRadius:db.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:db.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:db.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:db.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(fb,{rounded:fb.borderRadius,roundedTop:fb.borderTopRadius,roundedTopLeft:fb.borderTopLeftRadius,roundedTopRight:fb.borderTopRightRadius,roundedTopStart:fb.borderStartStartRadius,roundedTopEnd:fb.borderStartEndRadius,roundedBottom:fb.borderBottomRadius,roundedBottomLeft:fb.borderBottomLeftRadius,roundedBottomRight:fb.borderBottomRightRadius,roundedBottomStart:fb.borderEndStartRadius,roundedBottomEnd:fb.borderEndEndRadius,roundedLeft:fb.borderLeftRadius,roundedRight:fb.borderRightRadius,roundedStart:fb.borderInlineStartRadius,roundedEnd:fb.borderInlineEndRadius,borderStart:fb.borderInlineStart,borderEnd:fb.borderInlineEnd,borderTopStartRadius:fb.borderStartStartRadius,borderTopEndRadius:fb.borderStartEndRadius,borderBottomStartRadius:fb.borderEndStartRadius,borderBottomEndRadius:fb.borderEndEndRadius,borderStartRadius:fb.borderInlineStartRadius,borderEndRadius:fb.borderInlineEndRadius,borderStartWidth:fb.borderInlineStartWidth,borderEndWidth:fb.borderInlineEndWidth,borderStartColor:fb.borderInlineStartColor,borderEndColor:fb.borderInlineEndColor,borderStartStyle:fb.borderInlineStartStyle,borderEndStyle:fb.borderInlineEndStyle});var mb={color:db.colors("color"),textColor:db.colors("color"),fill:db.colors("fill"),stroke:db.colors("stroke")},vb={boxShadow:db.shadows("boxShadow"),mixBlendMode:!0,blendMode:db.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:db.prop("backgroundBlendMode"),opacity:!0};Object.assign(vb,{shadow:vb.boxShadow});var hb={filter:{transform:ub.filter},blur:db.blur("--chakra-blur"),brightness:db.propT("--chakra-brightness",ub.brightness),contrast:db.propT("--chakra-contrast",ub.contrast),hueRotate:db.degreeT("--chakra-hue-rotate"),invert:db.propT("--chakra-invert",ub.invert),saturate:db.propT("--chakra-saturate",ub.saturate),dropShadow:db.propT("--chakra-drop-shadow",ub.dropShadow),backdropFilter:{transform:ub.backdropFilter},backdropBlur:db.blur("--chakra-backdrop-blur"),backdropBrightness:db.propT("--chakra-backdrop-brightness",ub.brightness),backdropContrast:db.propT("--chakra-backdrop-contrast",ub.contrast),backdropHueRotate:db.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:db.propT("--chakra-backdrop-invert",ub.invert),backdropSaturate:db.propT("--chakra-backdrop-saturate",ub.saturate)},gb={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ub.flexDirection},experimental_spaceX:{static:Qy,transform:Yy({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:eb,transform:Yy({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:db.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:db.space("gap"),rowGap:db.space("rowGap"),columnGap:db.space("columnGap")};Object.assign(gb,{flexDir:gb.flexDirection});var yb={gridGap:db.space("gridGap"),gridColumnGap:db.space("gridColumnGap"),gridRowGap:db.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},bb={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ub.outline},outlineOffset:!0,outlineColor:db.colors("outlineColor")},xb={width:db.sizesT("width"),inlineSize:db.sizesT("inlineSize"),height:db.sizes("height"),blockSize:db.sizes("blockSize"),boxSize:db.sizes(["width","height"]),minWidth:db.sizes("minWidth"),minInlineSize:db.sizes("minInlineSize"),minHeight:db.sizes("minHeight"),minBlockSize:db.sizes("minBlockSize"),maxWidth:db.sizes("maxWidth"),maxInlineSize:db.sizes("maxInlineSize"),maxHeight:db.sizes("maxHeight"),maxBlockSize:db.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:db.propT("float",ub.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(xb,{w:xb.width,h:xb.height,minW:xb.minWidth,maxW:xb.maxWidth,minH:xb.minHeight,maxH:xb.maxHeight,overscroll:xb.overscrollBehavior,overscrollX:xb.overscrollBehaviorX,overscrollY:xb.overscrollBehaviorY});var Eb={listStyleType:!0,listStylePosition:!0,listStylePos:db.prop("listStylePosition"),listStyleImage:!0,listStyleImg:db.prop("listStyleImage")},kb={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},_b={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},wb=function(e,r,n){var a={},o=t.memoizedGet(e,r,{});for(var i in o)i in n&&null!=n[i]||(a[i]=o[i]);return a},Sb={srOnly:{transform:function(e){return!0===e?kb:"focusable"===e?_b:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return wb(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return wb(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return wb(t,e,r)}}},Cb={position:!0,pos:db.prop("position"),zIndex:db.prop("zIndex","zIndices"),inset:db.spaceT("inset"),insetX:db.spaceT(["left","right"]),insetInline:db.spaceT("insetInline"),insetY:db.spaceT(["top","bottom"]),insetBlock:db.spaceT("insetBlock"),top:db.spaceT("top"),insetBlockStart:db.spaceT("insetBlockStart"),bottom:db.spaceT("bottom"),insetBlockEnd:db.spaceT("insetBlockEnd"),left:db.spaceT("left"),insetInlineStart:db.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:db.spaceT("right"),insetInlineEnd:db.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Cb,{insetStart:Cb.insetInlineStart,insetEnd:Cb.insetInlineEnd});var Ob={ring:{transform:ub.ring},ringColor:db.colors("--chakra-ring-color"),ringOffset:db.prop("--chakra-ring-offset-width"),ringOffsetColor:db.colors("--chakra-ring-offset-color"),ringInset:db.prop("--chakra-ring-inset")},Rb={margin:db.spaceT("margin"),marginTop:db.spaceT("marginTop"),marginBlockStart:db.spaceT("marginBlockStart"),marginRight:db.spaceT("marginRight"),marginInlineEnd:db.spaceT("marginInlineEnd"),marginBottom:db.spaceT("marginBottom"),marginBlockEnd:db.spaceT("marginBlockEnd"),marginLeft:db.spaceT("marginLeft"),marginInlineStart:db.spaceT("marginInlineStart"),marginX:db.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:db.spaceT("marginInline"),marginY:db.spaceT(["marginTop","marginBottom"]),marginBlock:db.spaceT("marginBlock"),padding:db.space("padding"),paddingTop:db.space("paddingTop"),paddingBlockStart:db.space("paddingBlockStart"),paddingRight:db.space("paddingRight"),paddingBottom:db.space("paddingBottom"),paddingBlockEnd:db.space("paddingBlockEnd"),paddingLeft:db.space("paddingLeft"),paddingInlineStart:db.space("paddingInlineStart"),paddingInlineEnd:db.space("paddingInlineEnd"),paddingX:db.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:db.space("paddingInline"),paddingY:db.space(["paddingTop","paddingBottom"]),paddingBlock:db.space("paddingBlock")};Object.assign(Rb,{m:Rb.margin,mt:Rb.marginTop,mr:Rb.marginRight,me:Rb.marginInlineEnd,marginEnd:Rb.marginInlineEnd,mb:Rb.marginBottom,ml:Rb.marginLeft,ms:Rb.marginInlineStart,marginStart:Rb.marginInlineStart,mx:Rb.marginX,my:Rb.marginY,p:Rb.padding,pt:Rb.paddingTop,py:Rb.paddingY,px:Rb.paddingX,pb:Rb.paddingBottom,pl:Rb.paddingLeft,ps:Rb.paddingInlineStart,paddingStart:Rb.paddingInlineStart,pr:Rb.paddingRight,pe:Rb.paddingInlineEnd,paddingEnd:Rb.paddingInlineEnd});var Ab={textDecorationColor:db.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:db.shadows("textShadow")},Ib={clipPath:!0,transform:db.propT("transform",ub.transform),transformOrigin:!0,translateX:db.spaceT("--chakra-translate-x"),translateY:db.spaceT("--chakra-translate-y"),skewX:db.degreeT("--chakra-skew-x"),skewY:db.degreeT("--chakra-skew-y"),scaleX:db.prop("--chakra-scale-x"),scaleY:db.prop("--chakra-scale-y"),scale:db.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:db.degreeT("--chakra-rotate")},Tb={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:db.prop("transitionDuration","transition.duration"),transitionProperty:db.prop("transitionProperty","transition.property"),transitionTimingFunction:db.prop("transitionTimingFunction","transition.easing")},Nb={fontFamily:db.prop("fontFamily","fonts"),fontSize:db.prop("fontSize","fontSizes",ub.px),fontWeight:db.prop("fontWeight","fontWeights"),lineHeight:db.prop("lineHeight","lineHeights"),letterSpacing:db.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"}},Pb={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:db.spaceT("scrollMargin"),scrollMarginTop:db.spaceT("scrollMarginTop"),scrollMarginBottom:db.spaceT("scrollMarginBottom"),scrollMarginLeft:db.spaceT("scrollMarginLeft"),scrollMarginRight:db.spaceT("scrollMarginRight"),scrollMarginX:db.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:db.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:db.spaceT("scrollPadding"),scrollPaddingTop:db.spaceT("scrollPaddingTop"),scrollPaddingBottom:db.spaceT("scrollPaddingBottom"),scrollPaddingLeft:db.spaceT("scrollPaddingLeft"),scrollPaddingRight:db.spaceT("scrollPaddingRight"),scrollPaddingX:db.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:db.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Lb(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var Db=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(Lb).join(" "+e+" ").replace(/calc/g,"")},Mb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["+"].concat(t))+")"},jb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["-"].concat(t))+")"},Vb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["*"].concat(t))+")"},Bb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+Db.apply(void 0,["/"].concat(t))+")"},Fb=function(e){var t=Lb(e);return null==t||Number.isNaN(parseFloat(t))?Vb(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},zb=Object.assign(function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Mb.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(jb.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Vb.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zb(Bb.apply(void 0,[e].concat(r)))},negate:function(){return zb(Fb(e))},toString:function(){return e.toString()}}},{add:Mb,subtract:jb,multiply:Vb,divide:Bb,negate:Fb}),Wb=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Hb=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},Ub=function(e,t){return e+":focus-visible "+t},$b=function(e,t){return e+":focus-within "+t},qb=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},Yb=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Gb=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Zb=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Xb=function(e){return Jb(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Kb=function(e){return Jb(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Jb=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(e).join(", ")},Qb={_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:Xb(Wb),_peerHover:Kb(Wb),_groupFocus:Xb(Hb),_peerFocus:Kb(Hb),_groupFocusVisible:Xb(Ub),_peerFocusVisible:Kb(Ub),_groupActive:Xb(qb),_peerActive:Kb(qb),_groupDisabled:Xb(Yb),_peerDisabled:Kb(Yb),_groupInvalid:Xb(Gb),_peerInvalid:Kb(Gb),_groupChecked:Xb(Zb),_peerChecked:Kb(Zb),_groupFocusWithin:Xb($b),_peerFocusWithin:Kb($b),_peerPlaceholderShown:Kb(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]"},ex=t.objectKeys(Qb);function tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rx(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tx(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 nx=t.mergeWith({},pb,fb,mb,gb,xb,hb,Ob,bb,yb,Sb,Cb,vb,Rb,Pb,Nb,Ab,Ib,Eb,Tb),ax=Object.assign({},Rb,xb,gb,yb,Cb);t.objectKeys(ax);var ox=[].concat(t.objectKeys(nx),ex),ix=Hy({},nx,Qb),sx=function(e){return e in ix},lx=function(e,r){return e.startsWith("--")&&t.isString(r)&&!t.isCssVar(r)},cx=function(e,t){var r,n;if(null==t)return t;var a=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.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!=(r=null!=(n=a(i[0]))?n:o(s))?r:o(t)};function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ux.apply(this,arguments)}function dx(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function px(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}rr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var fx=new Set([].concat(ox,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),mx=new Set(["htmlWidth","htmlHeight","htmlSize"]),vx=function(e){return mx.has(e)||!fx.has(e)},hx=["theme","css","__css","sx"],gx=["baseStyle"];function yx(e,r){var n=null!=r?r:{},a=n.baseStyle,o=px(n,gx);o.shouldForwardProp||(o.shouldForwardProp=vx);var i=function(e){var r=e.baseStyle;return function(e){var n,a=e.css,o=e.__css,i=e.sx,s=px(e,hx),l=t.objectFilter(s,function(e,t){return sx(t)}),c=t.runIfFn(r,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(n=u,function(e){return function(e){var r=e.configs,n=void 0===r?{}:r,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=t.runIfFn(r,i),l=function(e){return function(r){if(!r.__breakpoints)return e;var n=r.__breakpoints,a=n.isResponsive,o=n.toArrayValue,i=n.media,s={};for(var l in e){var c=t.runIfFn(e[l],r);if(null!=c)if(c=t.isObject(c)&&a(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=c[d]&&(s[p][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,p,f,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),lx(u,h)&&(h=cx(i,h));var g=n[u];if(!0===g&&(g={property:u}),t.isObject(h)){var y;c[u]=null!=(y=c[u])?y:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(p=g)||null==p.transform?void 0:p.transform(h,i,s))?d:h;b=null!=(f=g)&&f.processResult?e(b,!0):b;var x=t.runIfFn(null==(m=g)?void 0:m.property,i);if(!a&&null!=(v=g)&&v.static){var E=t.runIfFn(g.static,i);c=t.mergeWith({},c,E)}if(x&&Array.isArray(x))for(var k,_=rx(x);!(k=_()).done;)c[k.value]=b;else x?"&"===x&&t.isObject(b)?c=t.mergeWith({},c,b):c[x]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:Qb,configs:nx})(n)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return Nr(e,o)(i)}function bx(e){/*#__PURE__*/
|
94
|
+
return F.forwardRef(e)}var xx=["styleConfig"];function Ex(e,r){var n;void 0===r&&(r={});var a,o=r.styleConfig,i=px(r,xx),s=ux({},function(){var e=F.useContext(Wy);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:function(){var e=F.useContext(Vt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,p=t.mergeWith({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},t.filterUndefined(t.omit(i,["children"]))),f=F.useRef({});if(d){var m=(a=d,function(e){var r,n=e.variant,o=e.size,i=function(e){var r=e.__breakpoints;return function(e,n,a,o){if(r){var i={},s=function(e,r){return t.isArray(e)?e:t.isObject(e)?r(e):null!=e?[e]:void 0}(a,r.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,p=r.details[a],f=r.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,a)],m=t.toMediaQueryString(p.minW,null==f?void 0:f._minW),v=t.runIfFn(null==(l=e[n])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var r,n;t.mergeWith(i,((n={})[e]=c?v[e]:((r={})[m]=v[e],r),n))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(r=a.baseStyle)?r:{},e),i(a,"sizes",o,e),i(a,"variants",n,e))}),v=m(p);_r(f.current,v)||(f.current=v)}return f.current}function kx(e,t){return void 0===t&&(t={}),Ex(e,t)}var _x=function(){var e=new Map;return new Proxy(yx,{apply:function(e,t,r){return yx.apply(void 0,r)},get:function(t,r){return e.has(r)||e.set(r,yx(r)),e.get(r)}})}();function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wx.apply(this,arguments)}var Sx=["as","viewBox","color","focusable","children","className","__css"],Cx={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"},Ox=/*#__PURE__*/bx(function(e,r){var n=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,p=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Sx),f={ref:r,focusable:l,className:t.cx("chakra-icon",u),__css:wx({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Cx.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
|
95
|
+
return F.createElement(_x.svg,wx({as:n},f,p));var v=null!=c?c:Cx.path;/*#__PURE__*/
|
96
|
+
return F.createElement(_x.svg,wx({verticalAlign:"middle",viewBox:m},f,p),v)});function Rx(e){var r=e.viewBox,n=void 0===r?"0 0 24 24":r,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),c=/*#__PURE__*/bx(function(e,t){/*#__PURE__*/
|
97
|
+
return F.createElement(Ox,wx({ref:t,viewBox:n},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(Ox.displayName="Icon"),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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 Ax=Rx({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"});Rx({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"})}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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 Ix=Rx({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"}))}),Tx=Rx({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"}))});Rx({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"}),Rx({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"}))}),Rx({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"}))}),Rx({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"}))}),Rx({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"}))}),Rx({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Rx({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Nx=Rx({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Rx({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Rx({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Rx({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Rx({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Rx({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"}),Rx({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Rx({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"}))}),Rx({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"}))}),Rx({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"}))}),Rx({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"}),Rx({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"}),Rx({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"}))}),Rx({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"}))}),Rx({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"}))}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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"}))}),Rx({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"}),Rx({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"}),Rx({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"})))}),Rx({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"}),Rx({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"})}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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"}))}),Rx({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"}),Rx({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"}),Rx({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"}),Rx({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"}))}),Rx({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"}),Rx({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 Px=Rx({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"}))}),Lx=Rx({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});Rx({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 Dx={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Mx=_x("span",{baseStyle:Dx});t.__DEV__&&(Mx.displayName="VisuallyHidden");var jx=_x("input",{baseStyle:Dx});function Vx(){return Vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vx.apply(this,arguments)}t.__DEV__&&(jx.displayName="VisuallyHiddenInput");var Bx=["label","thickness","speed","emptyColor","className"],Fx=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),zx=/*#__PURE__*/bx(function(e,r){var n=kx("Spinner",e),a=dx(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,Bx),v=t.cx("chakra-spinner",f),h=Vx({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:Fx+" "+u+" linear infinite"},n);/*#__PURE__*/
|
98
|
+
return F.createElement(_x.div,Vx({ref:r,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(Mx,null,i))});function Wx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hx.apply(this,arguments)}t.__DEV__&&(zx.displayName="Spinner");var Ux=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],$x=rr({strict:!1,name:"ButtonGroupContext"}),qx=$x[0],Yx=$x[1],Gx=/*#__PURE__*/bx(function(e,r){var n=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Wx(e,Ux),p=t.cx("chakra-button__group",i),f=F.useMemo(function(){return{size:n,colorScheme:a,variant:o,isDisabled:u}},[n,a,o,u]),m={display:"inline-flex"};return m=Hx({},m,c?{"> *: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(qx,{value:f},/*#__PURE__*/F.createElement(_x.div,Hx({ref:r,role:"group",__css:m,className:p,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Gx.displayName="ButtonGroup");var Zx=["label","placement","spacing","children","className","__css"],Xx=function(e){var r=e.label,n=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(zx,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Wx(e,Zx),d=t.cx("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",f=F.useMemo(function(){var e;return Hx(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[p]=r?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,r,p,o]);/*#__PURE__*/
|
99
|
+
return F.createElement(_x.div,Hx({className:d},u,{__css:f}),s)};t.__DEV__&&(Xx.displayName="ButtonSpinner");var Kx=["children","className"],Jx=function(e){var r=e.children,n=e.className,a=Wx(e,Kx),o=/*#__PURE__*/F.isValidElement(r)?/*#__PURE__*/F.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=t.cx("chakra-button__icon",n);/*#__PURE__*/
|
100
|
+
return F.createElement(_x.span,Hx({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Jx.displayName="ButtonIcon");var Qx=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],eE=/*#__PURE__*/bx(function(e,r){var n,a,o,i,s=Yx(),l=kx("Button",Hx({},s,e)),c=dx(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,p=c.isLoading,f=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,g=c.loadingText,y=c.iconSpacing,b=void 0===y?"0.5rem":y,x=c.type,E=c.spinner,k=c.spinnerPlacement,_=void 0===k?"start":k,w=c.className,S=c.as,C=Wx(c,Qx),O=F.useMemo(function(){var e,r=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Hx({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:r})},[l,s]),R=(a=(n=F.useState(!S))[0],o=n[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),A=R.type,I={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
|
101
|
+
return F.createElement(_x.button,Hx({disabled:d||p,ref:vr(r,R.ref),as:S,type:null!=x?x:A,"data-active":t.dataAttr(f),"data-loading":t.dataAttr(p),__css:O,className:t.cx("chakra-button",w)},C),p&&"start"===_&&/*#__PURE__*/F.createElement(Xx,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},E),p?g||/*#__PURE__*/F.createElement(_x.span,{opacity:0},/*#__PURE__*/F.createElement(tE,I)):/*#__PURE__*/F.createElement(tE,I),p&&"end"===_&&/*#__PURE__*/F.createElement(Xx,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},E))});function tE(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,a=e.iconSpacing;/*#__PURE__*/
|
102
|
+
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Jx,{marginEnd:a},t),n,r&&/*#__PURE__*/F.createElement(Jx,{marginStart:a},r))}t.__DEV__&&(eE.displayName="Button");var rE=["icon","children","isRound","aria-label"],nE=/*#__PURE__*/bx(function(e,t){var r=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=Wx(e,rE),s=r||n,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
103
|
+
return F.createElement(eE,Hx({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function aE(){return aE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aE.apply(this,arguments)}t.__DEV__&&(nE.displayName="IconButton");var oE=["label","children"],iE=bx(function(e,t){var r=e.label,n=e.children,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,oE);return F.createElement(eE,aE({ref:t},a),n||r)});function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sE.apply(this,arguments)}t.__DEV__&&(iE.displayName="Button");var lE=fa(function(e,t){/*#__PURE__*/return F.createElement(dm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(iE,sE({ref:t,height:"auto"},e)))});function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cE.apply(this,arguments)}lE.id="InputRightElement",t.__DEV__&&(lE.displayName="InputRightButton");var uE=["viewIcon","viewOffIcon","autoComplete"],dE=fa(function(e,t){var r,n=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,uE),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return r=l?n||/*#__PURE__*/F.createElement(Ix,null):a||/*#__PURE__*/F.createElement(Tx,null),/*#__PURE__*/F.createElement(Jf,null,/*#__PURE__*/F.createElement(Yf,cE({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(lE,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},r))});function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pE.apply(this,arguments)}function fE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(dE.displayName="PasswordInput");var mE=["options","spacing","direction"],vE=["onBlur","onChange"],hE=["value","label"],gE=fa(function(e,t){var r=e.options,n=e.spacing,a=e.direction,o=fE(e,mE),i=o.onBlur,s=o.onChange,l=fE(o,vE);return F.createElement(gy,pE({onChange:s},l),/*#__PURE__*/F.createElement(Qm,{spacing:n,direction:a},r.map(function(e,r){var n=e.value,a=e.label,o=fE(e,hE);return F.createElement(Ey,pE({key:r,onBlur:i,value:n,ref:t},o),a||n)})))});function yE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bE.apply(this,arguments)}function xE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(gE.displayName="RadioInput");var EE=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],kE=["value","label"],_E=fa(function(e,t){var r=ga("Input",e),n=bE({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:r.field.h||r.field.height},r.field,{h:"auto"});return F.createElement(mg,bE({as:jp},e,{ref:t,sx:n}))});t.__DEV__&&(_E.displayName="SelectButton");var wE=fa(function(e,r){var n=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/F.createElement(Nx,null):p,m=e.multiple,v=e.size,h=e.variant,g=e.menuListProps,y=e.renderValue,b=void 0===y?function(e){return null==e?void 0:e.join(", ")}:y,x=oa(xE(e,EE)),E=F.useState(l||s),k=E[0],_=E[1],w=tf({name:n}),S={isDisabled:u,leftIcon:d,rightIcon:f,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return yE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yE(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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=r()).done;){var n=t.value;if(n.label&&n.value===e)return n.label}return e},[a]),O=k?(Array.isArray(k)?k:[k]).map(C):[];return F.createElement(pg,bE({},x,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(_E,bE({ref:r},S),b(O)||c),/*#__PURE__*/F.createElement(gg,bE({maxH:"60vh",overflowY:"auto"},g),/*#__PURE__*/F.createElement(kg,{defaultValue:s||l,onChange:function(e){_(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var r=e.value,n=e.label,a=xE(e,kE);return F.createElement(Eg,bE({key:t,value:r},a),n||r)}):o)),/*#__PURE__*/F.createElement(ba.input,bE({},w,{name:n,type:"hidden",value:k,className:"saas-select__input"}))))});t.__DEV__&&(wE.displayName="Select");var SE=["options","children"],CE=fa(function(e,t){var r=e.options,n=e.children,a=xE(e,SE);return F.createElement(Ry,bE({ref:t},a),n||(null==r?void 0:r.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function OE(){return OE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OE.apply(this,arguments)}function RE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(CE.displayName="NativeSelect");var AE=rr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),IE=AE[0],TE=AE[1];function NE(e){var t=e.step,r=e.onChange,n=F.useState(-1),a=n[0],o=n[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]),c=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==r||r(a)},[a,r]),{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:c,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 PE=["orientation","children"],LE=["children","orientation","step","onChange"],DE=["children","orientation","stepComponent"],ME=["children","isOpen"],jE=["icon","isActive","isCompleted","className"],VE=["name","title","icon","isActive","isCompleted"],BE=["isActive"],FE=rr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),zE=FE[0],WE=FE[1],HE=bx(function(e,t){var r=e.orientation,n=e.children,a=RE(e,PE);return F.createElement(UE,OE({ref:t,orientation:r},a),/*#__PURE__*/F.createElement($E,{orientation:r},n))});t.__DEV__&&(HE.displayName="Stepper");var UE=bx(function(e,r){var n,a=e.children,o=e.orientation,i=void 0===o?"horizontal":o,s=RE(e,LE),l=(void 0===(n=OE({},s,{orientation:i}))&&(n={}),Ex("Stepper",n)),c=dx(s),u=NE(e),d=OE({display:"flex",flexDirection:"column"},l.container);return F.createElement(zE,{value:l},/*#__PURE__*/F.createElement(IE,{value:u},/*#__PURE__*/F.createElement(_x.div,OE({ref:r,__css:d},c,{className:t.cx("saas-stepper",e.className)}),a)))});t.__DEV__&&(UE.displayName="StepperContainer");var $E=function(e){var r,n,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=RE(e,DE),u=WE(),d=TE().activeIndex,p=OE({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),f="vertical"===s,m=l||GE,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,r,n){return e.push(/*#__PURE__*/F.createElement(m,OE({key:r},t.props,{icon:t.props.icon||r+1,isActive:d===r,isCompleted:t.props.isCompleted||d>r}))),f&&e.push(/*#__PURE__*/F.createElement(qE,{key:"content-"+r,isOpen:d===r},t.props.children)),r<n.length-1&&e.push(/*#__PURE__*/F.createElement(ZE,{key:"separator-"+r,isActive:r<d})),e},[]),g=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,KE),y=d>=v.length?g:f?null:/*#__PURE__*/F.createElement(qE,null,null==(r=v[d])||null==(n=r.props)?void 0:n.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(_x.div,OE({__css:p},c,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&($E.displayName="StepperSteps");var qE=function(e){var r=e.children,n=e.isOpen,a=void 0===n||n,o=RE(e,ME),i=WE();return F.createElement(_x.div,OE({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement($d,{in:a},r))};t.__DEV__&&(qE.displayName="StepperContent");var YE=function(e){var r,n=e.icon,a=e.isCompleted,o=e.className,i=RE(e,jE),s=OE({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},WE().icon);return r=a?/*#__PURE__*/F.createElement(Ox,{as:Px}):n,/*#__PURE__*/F.createElement(_x.div,OE({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),r)};t.__DEV__&&(YE.displayName="StepperIcon");var GE=function(e){var r=e.title,n=e.icon,a=e.isActive,o=e.isCompleted,i=RE(e,VE),s=function(e){var t=e.name,r=e.isActive,n=e.isCompleted,a=TE(),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:r,isCompleted:n}}(e),l=OE({display:"flex",alignItems:"center",flexDirection:"row"},WE().step);return F.createElement(_x.div,OE({},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(YE,{icon:n,isActive:a,isCompleted:o}),r&&/*#__PURE__*/F.createElement(XE,null,r))};t.__DEV__&&(GE.displayName="StepperStep");var ZE=function(e){var r=e.isActive,n=RE(e,BE),a=OE({flex:1,mx:2},WE().separator);return F.createElement(_x.div,OE({},n,{"data-active":t.dataAttr(r),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(ZE.displayName="StepperSeparator");var XE=function(e){var r=WE();return F.createElement(_x.p,OE({},e,{__css:r.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(XE.displayName="StepperStepTitle");var KE=function(e){var r=WE();return F.createElement(_x.div,OE({__css:r.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JE.apply(this,arguments)}function QE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(KE.displayName="StepperCompleted");var ek=["name","label","help","variant","hideLabel","children"],tk=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],rk=["name","rules"],nk=["ref"],ak=["name","rules"],ok=["ref"],ik=["type","leftAddon","rightAddon","size"],sk=["type"],lk=["label","type"],ck=["pinLength","pinType","spacing"],uk={},dk=function(e){var t=e.name,n=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=QE(e,ek),c=function(e,t){return r.get(t.errors,e)}(t,r.useFormContext().formState);return F.createElement(Kp,JE({variant:o},l,{isInvalid:!!c}),n&&!i?/*#__PURE__*/F.createElement(uf,{variant:o},n):null,/*#__PURE__*/F.createElement(xm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(Jp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(sf,null,null==c?void 0:c.message)))};t.__DEV__&&(dk.displayName="BaseField");var pk=F.forwardRef(function(e,t){var r=e.type;return F.createElement(uk[void 0===r?"text":r]||uk.text,JE({ref:t},e))}),fk=function(e,t,n){var a;a=null!=n&&n.isControlled?function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,rk),s=r.useFormContext();return F.createElement(r.Controller,{name:a,control:s.control,rules:o,render:function(t){var r=t.field.ref,a=QE(t.field,nk);return F.createElement(e,JE({},a,i,{ref:vr(n,r)}))}})})}(t):function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,ak),s=(0,r.useFormContext().register)(a,o),l=s.ref,c=QE(s,ok);return F.createElement(e,JE({},c,i,{ref:vr(n,l)}))})}(t);var o=function(e,t){var r=t.displayName,n=t.hideLabel,a=t.BaseField,o=fa(function(t,r){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=t.variant,v=QE(t,tk),h=JE({required:p},f);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,variant:m},/*#__PURE__*/F.createElement(e,JE({ref:r,id:o,name:i,label:n?s:void 0,rules:h},v)))});return o.displayName=r,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||dk});return uk[e]=o,o};fk("text",fa(function(e,t){var r=e.type,n=void 0===r?"text":r,a=e.leftAddon,o=e.rightAddon,i=e.size,s=QE(e,ik),l=/*#__PURE__*/F.createElement(Yf,JE({type:n,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Jf,{size:i},a,l,o):l})),fk("number",zy,{isControlled:!0}),fk("password",fa(function(e,t){/*#__PURE__*/return F.createElement(dE,JE({ref:t},e))})),fk("textarea",Vy),fk("switch",fa(function(e,t){var r=QE(e,sk);return F.createElement(Ly,JE({},r,{ref:t}))}),{isControlled:!0}),fk("select",wE,{isControlled:!0}),fk("checkbox",fa(function(e,t){var r=e.label,n=QE(e,lk);return F.createElement(Bf,JE({ref:t},n),r)}),{hideLabel:!0}),fk("radio",gE,{isControlled:!0}),fk("native-select",CE,{isControlled:!0}),fk("pin",fa(function(e,t){for(var r=e.pinLength,n=void 0===r?4:r,a=e.pinType,o=e.spacing,i=QE(e,ck),s=[],l=0;l<n;l++)s.push(/*#__PURE__*/F.createElement(cy,{key:l,ref:t}));return F.createElement(ev,{spacing:o},/*#__PURE__*/F.createElement(ly,JE({},i,{type:a}),s))}),{isControlled:!0});var mk=["items"],vk=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return JE({},QE(e[1],mk),{name:t})})},hk=function(e){return{getFields:function(){return vk(e)},getNestedFields:function(r){var n,a=t.get(e,r);return a?"object"===(null==(n=a.items)?void 0:n.type)?vk(a.items.properties):"object"===a.type?vk(a.properties):[a.items]:[]}}},gk=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],yk=fa(function(e,n){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,g=e.formRef,y=e.children,b=QE(e,gk),x={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==yk.getResolver?void 0:yk.getResolver(f));var E=r.useForm(x),k=E.handleSubmit;return F.useImperativeHandle(n,function(){return E},[n,E]),/*#__PURE__*/F.createElement(r.FormProvider,E,/*#__PURE__*/F.createElement(ba.form,JE({ref:g,onSubmit:k(v,h)},b,{className:t.cx("saas-form",e.className)}),y))});yk.getFieldResolver=hk,t.__DEV__&&(yk.displayName="Form");var bk=["children"],xk=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(xk.displayName="FormLayoutItem");var Ek=function(e){var r,n,a,o=e.children,i=QE(e,bk),s=JE({},null!=(r=null==(n=na().components)||null==(a=n.FormLayout)?void 0:a.defaultProps)?r:{spacing:4},i);return F.createElement(Gm,JE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(xk,null,e):e}))};t.__DEV__&&(Ek.displayName="FormLayout");var kk=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,JE({},t.props,{name:e+"."+t.props.name})):t})},_k=rr({name:"ArrayFieldContext"}),wk=_k[0],Sk=_k[1],Ck=rr({name:"ArrayFieldRowContext"}),Ok=Ck[0],Rk=Ck[1],Ak=["children","index"],Ik=["children"],Tk=["children"],Nk=["name","defaultValue","keyName","min","max","children"],Pk=function(e){var t=e.children,r=e.index,n=QE(e,Ak);return F.createElement(Dk,{index:r},/*#__PURE__*/F.createElement(Lk,n,t),/*#__PURE__*/F.createElement(Mk,null))};t.__DEV__&&(Pk.displayName="ArrayFieldRow");var Lk=function(e){var t=e.children,r=QE(e,Ik),n=Rk().name;return F.createElement(Ek,JE({flex:"1",mr:"2"},r),kk(n,t))};t.__DEV__&&(Lk.displayName="ArrayFieldRowFields");var Dk=function(e){var t=e.children,n=function(e){var t=e.index,n=r.useFormContext().clearErrors,a=Sk(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){n(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){n(o),i(t)},[t])}}({index:e.index});return F.createElement(Ok,{value:n},/*#__PURE__*/F.createElement(_x.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(Dk.displayName="ArrayFieldRowContainer");var Mk=function(e){/*#__PURE__*/return F.createElement(nE,JE({icon:/*#__PURE__*/F.createElement(Lx,null),"aria-label":"Remove row"},function(){var e=Rk(),t=e.isFirst,r=e.remove,n=Sk(),a=n.min;return{onClick:function(){return r()},isDisabled:t&&!!(a&&n.fields.length<=a)}}(),e))};t.__DEV__&&(Mk.displayName="ArrayFieldRemoveButton");var jk=function(e){/*#__PURE__*/return F.createElement(nE,JE({icon:/*#__PURE__*/F.createElement(Ax,null),"aria-label":"Add row",float:"right"},function(){var e=Sk(),t=e.append,r=e.defaultValue,n=e.max;return{onClick:function(){return t(r,{shouldFocus:!1})},isDisabled:!!(n&&e.fields.length>=n)}}(),e))};t.__DEV__&&(jk.displayName="ArrayFieldAddButton");var Vk=bx(function(e,t){var r=e.children,n=QE(e,Tk);return F.createElement(Fk,JE({ref:t},n),/*#__PURE__*/F.createElement(Bk,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(Pk,{key:e.id,index:t},r)}))}),/*#__PURE__*/F.createElement(jk,null))});t.__DEV__&&(Vk.displayName="ArrayField");var Bk=function(e){return(0,e.children)(Sk().fields)};t.__DEV__&&(Bk.displayName="ArrayFieldRows");var Fk=F.forwardRef(function(e,t){var n=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=QE(e,Nk),u=function(e){var t=e.name,n=e.defaultValue,a=void 0===n?{}:n,o=e.keyName,i=e.min,s=e.max,l=r.useFormContext();return JE({},r.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:n,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(wk,{value:u},/*#__PURE__*/F.createElement(dk,JE({name:n},c),l))});t.__DEV__&&(Fk.displayName="ArrayFieldContainer");var zk=["name","label","hideLabel","children","columns","spacing"],Wk=function(e){var t=ha("FormLegend");return F.createElement(uf,JE({as:"legend",sx:t},e))},Hk=function(e){var t=e.name,r=e.label,n=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=QE(e,zk);return F.createElement(Kp,JE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(Wk,{display:n?"none":"block"},r),/*#__PURE__*/F.createElement(Ek,{columns:o,gridGap:i},kk(t,a)))};t.__DEV__&&(Hk.displayName="ObjectField");var Uk=["name","type"],$k=["schema","fieldResolver"],qk=["name","type","defaultValue"],Yk=function(e,t){var r;return null==(r=e.getNestedFields(t))?void 0:r.map(function(e,t){var r=e.name,n=e.type,a=QE(e,Uk);return F.createElement(pk,JE({key:r||t,name:r,type:n},a))})},Gk=function(e){var t=e.schema,r=e.fieldResolver,n=QE(e,$k),a=F.useMemo(function(){return r||yk.getFieldResolver(t)},[t,r]);return F.createElement(Ek,n,a.getFields().map(function(e){var t=e.name,r=e.type,n=QE(e,qk);return"array"===r?/*#__PURE__*/F.createElement(Vk,JE({key:t,name:t},n),Yk(a,t)):"object"===r?/*#__PURE__*/F.createElement(Hk,JE({key:t,name:t},n),Yk(a,t)):/*#__PURE__*/F.createElement(pk,JE({key:t,name:t,type:r},n))}))};t.__DEV__&&(Gk.displayName="Fields");var Zk=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Xk=F.forwardRef(function(e,t){var n=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=QE(e,Zk),c=r.useFormContext().formState;return F.createElement(iE,JE({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:a&&!c.isDirty||o&&!c.isValid||i}),n)});Xk.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(Xk.displayName="SubmitButton");var Kk=["schema","submitLabel","fieldResolver","children"],Jk=fa(function(e,t){var r=e.schema,n=e.submitLabel,a=void 0===n?"Submit":n,o=e.fieldResolver,i=e.children,s=QE(e,Kk);return F.createElement(yk,JE({},s,{schema:r,ref:t}),/*#__PURE__*/F.createElement(Ek,null,/*#__PURE__*/F.createElement(Gk,{schema:r,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(Xk,null,a),i))});t.__DEV__&&(Jk.displayName="AutoForm");var Qk=["onChange"],e_=rr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],t_=["children"],r_=["getFormProps"];F.forwardRef(function(e,r){var n=e.children,a=QE(e,t_),o=function(e){var t=NE(QE(e,Qk)),r=t.activeStep,n=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[r];if(n)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){u(JE({},s,{isCompleted:!0}))}).then(a));var l=function(e,r){try{var n=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return n&&n.then?n.then(void 0,function(){}):n}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,r,n]),c=F.useCallback(function(){var e=i[r];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,r]),u=F.useCallback(function(e){s(function(t){var r;return JE({},t,((r={})[e.name]=e,r))})},[i]);return JE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=QE(o,r_),l=F.useMemo(function(){return s},[s]);return F.createElement(IE,{value:l},/*#__PURE__*/F.createElement(e_,{value:l},/*#__PURE__*/F.createElement(yk,JE({ref:r},a,i()),t.runIfFn(n,o))))});var n_=function(e){return hk(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:n_(t),resolver:e.ajvResolver(t)}};
|
104
|
+
//# sourceMappingURL=index.js.map
|