@saas-ui/forms 1.0.0-rc.6 → 1.0.0-rc.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +37 -0
- package/README.md +29 -0
- package/dist/ajv/index.js +95 -95
- package/dist/ajv/index.js.map +1 -1
- package/dist/ajv/index.modern.mjs +94 -94
- package/dist/ajv/index.modern.mjs.map +1 -1
- package/dist/array-field.d.ts +14 -3
- package/dist/array-field.d.ts.map +1 -1
- package/dist/field.d.ts +81 -26
- 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/step-form.d.ts +1 -2
- package/dist/step-form.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +2 -1
- package/dist/use-step-form.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/array-field.tsx +21 -22
- package/src/field.tsx +185 -70
- package/src/form.tsx +0 -1
- package/src/step-form.tsx +7 -3
- package/src/submit-button.tsx +1 -1
- package/src/use-step-form.tsx +2 -4
package/dist/ajv/index.js
CHANGED
@@ -1,97 +1,97 @@
|
|
1
|
-
var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),n=require("react-hook-form");function r(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var w=_.prototype=new x;w.constructor=_,g(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+I(l,0):r,k(a)?(n="",null!=e&&(n=e.replace(R,"$&/")+"/"),P(a,t,n,"",function(e){return e})):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",k(e))for(var u=0;u<e.length;u++){var c=r+I(s=e[u],u);l+=P(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=P(s=s.value,t,n,c=r+I(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},V={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j={Children:V,Component:E,Fragment:s,Profiler:u,PureComponent:_,StrictMode:l,Suspense:p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!O.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},createElement:A,createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:f,render:e}},isValidElement:N,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.1.0"},B=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},E={current:null},x={},_=null;function w(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("warn",e,n)}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("error",e,n)}function O(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=x,k.ReactCurrentActQueue=b;var A={};function N(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;A[a]||(C("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),A[a]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){N(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){N(e,"replaceState")},enqueueSetState:function(e,t,n,r){N(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function V(){}function j(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}V.prototype=T.prototype;var B=j.prototype=new V;B.constructor=j,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function H(e){return""+e}function W(e){if(function(e){try{return H(e),!1}catch(e){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),H(e)}function U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return U(e)+".Consumer";case s:return U(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return $(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&E.current&&e.__self&&E.current.stateNode!==e.__self){var t=$(E.current.type);Z[t]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,a,o,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,a={},o=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(W(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),a.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,p),i&&ee(a,p)}return ne(e,o,i,s,l,E.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=I({},e.props),i=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,c=E.current),J(t)&&(W(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==a?a[r]:t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,s,l,u,c,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ue(e){return e.replace(le,"$&/")}function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(W(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),m=""===o?"."+ce(f,0):o;if(z(p)){var v="";null!=m&&(v=ue(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||W(p.key),l=p,u=a+(!p.key||f&&f.key===p.key?"":ue(""+p.key)+"/")+m,p=ne(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(c=e[b],t,a,g+ce(c,b),i);else{var E=h(e);if("function"==typeof E){var x=e;E===x.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var _,w=E.call(x),k=0;!(_=w.next()).done;)y+=de(c=_.value,t,a,g+ce(c,k++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],a=0;return de(e,r,"","",function(e){return t.call(n,e,a++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===o||e===c||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&C("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,Ee,xe,_e,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,Ce=k.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ae,Ne=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ne)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ne=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===we){he=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ae.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ne=!1,Ce.current=a,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:_e})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Oe(f):"";return"function"==typeof e&&Ae.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case c:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,a=e._init;try{return Pe(a(r),t,n)}catch(e){}}return""}Ae=new Re;var Te,Le={},De=k.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function Ve(e){if(e){var t=e._owner;w(Pe(e.type,e._source,t?t.type:null))}else w(null)}function je(){if(E.current){var e=$(E.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=je();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==E.current&&(r=" It was passed a child from "+$(e._owner.type)+"."),Ve(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ve(null)}}}function He(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&ze(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function We(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=$(n);!function(e,t,n,r,a){var o=Function.call.bind(G);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Me(a),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ve(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ve(null);break}}null!==e.ref&&(Ve(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}function $e(e,t,r){var o=me(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||je(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var u=re.apply(this,arguments);if(null==u)return u;if(o)for(var c=2;c<arguments.length;c++)He(arguments[c],e);return e===a?Ue(u):We(u),u}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var a=b.current;if(null!==a)try{et(a),function(o){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&C("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===a.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=$e,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=a,t.Profiler=i,t.PureComponent=j,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)He(arguments[a],r.type);return We(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=oe,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){C("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&S("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,s={then:function(e,n){i=!0,o.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,C("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var u=b.current;return null!==u&&(et(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.1.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?j:B}),z=/*#__PURE__*/r({__proto__:null,default:F},[F]),H=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),W="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function Z(e){return e.trim()}function G(e,t,n){return e.replace(t,n)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,ae=0,oe=0,ie=0,se="";function le(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ne,column:re,length:i,return:""}}function ue(e,t){return Y(le("",null,null,"",null,null,0),e,{length:-e.length},t)}function ce(){return ie=oe>0?K(se,--oe):0,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=oe<ae?K(se,oe++):0,re++,10===ie&&(re=1,ne++),ie}function fe(){return K(se,oe)}function pe(){return oe}function me(e,t){return J(se,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function he(e){return ne=re=1,ae=Q(se=e),oe=0,[]}function ye(e){return se="",e}function ge(e){return Z(me(oe-1,xe(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=fe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function Ee(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,pe()+(t<6&&32==fe()&&32==de()))}function xe(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&xe(ie);break;case 40:41===e&&xe(e);break;case 92:de()}return oe}function _e(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==fe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function we(e){for(;!ve(fe());)de();return me(e,oe)}function ke(e){return ye(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,n,r,a,o,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",E=a,x=o,_=r,w=b;h;)switch(m=g,g=de()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=X(w+=G(ge(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:w+=ge(g);break;case 9:case 10:case 13:case 32:w+=be(m);break;case 92:w+=Ee(pe()-1,7);continue;case 47:switch(fe()){case 42:case 47:te(Oe(_e(de(),pe()),t,n),l);break;default:w+="/"}break;case 123*v:s[u++]=Q(w)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+c:p>0&&Q(w)-d&&te(p>32?Ae(w+";",r,n,d-1):Ae(G(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(te(_=Ce(w,t,n,u,c,a,s,b,E=[],x=[],d),o),123===g)if(0===c)Se(w,t,_,_,E,o,d,s,x);else switch(f){case 100:case 109:case 115:Se(e,_,_,r&&te(Ce(e,_,_,0,0,a,s,b,a,E=[],d),x),a,x,d,s,r?E:x);break;default:Se(w,_,_,_,[""],x,0,s,x)}}u=c=p=0,v=y=1,b=w="",d=i;break;case 58:d=1+Q(w),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==ce())continue;switch(w+=q(g),g*v){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(Q(w)-1)*y,y=1;break;case 64:45===fe()&&(w+=ge(de())),f=fe(),c=d=Q(b=w+=we(pe())),g++;break;case 45:45===m&&2==Q(w)&&(v=0)}}return o}function Ce(e,t,n,r,a,o,i,s,l,u,c){for(var d=a-1,f=0===a?o:[""],p=ee(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=J(e,d+1,d=$(v=i[m])),b=e;y<p;++y)(b=Z(v>0?f[y]+" "+g:G(g,/&\f/g,f[y])))&&(l[h++]=b);return le(e,t,n,0===a?"rule":s,l,u,c)}function Oe(e,t,n){return le(e,t,n,"comm",q(ie),J(e,2,-2),0)}function Ae(e,t,n,r){return le(e,t,n,"decl",J(e,0,r),J(e,r+1,-1),r)}function Ne(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+W+e+e;case 6828:case 4268:return U+e+W+e+e;case 6165:return U+e+W+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+W+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+W+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+W+G(e,"shrink","negative")+e;case 5292:return U+e+W+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+W+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ne(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+W+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+W+e+e}return e}function Re(e,t){for(var n="",r=ee(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Ie(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Re(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Q(n=Re(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Te=function(e,t,n){for(var r=0,a=0;r=a,a=fe(),38===r&&12===a&&(t[n]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var a=[],o=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ve(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Te(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=de());return e}(he(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}},Me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ve=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},je=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,n){Ve(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),je(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ve(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),je(e)))},Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ne(e.value,e.length);break;case"@keyframes":return Re([ue(e,{value:G(e.value,"@","@"+U)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Re([ue(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Re([ue(e,{props:[G(t,/:(plac\w+)/,":-webkit-input-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[G(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""})}}],ze=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||Fe;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,o,i={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((a=i.children).length?a[a.length-1]:null))return;o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Be);var u,c,d=[Ie,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=ee(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}(l.concat(r,d));o=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),Re(ke(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new H({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},He.apply(this,arguments)}var We="function"==typeof Symbol&&Symbol.for,Ue=We?Symbol.for("react.element"):60103,$e=We?Symbol.for("react.portal"):60106,qe=We?Symbol.for("react.fragment"):60107,Ye=We?Symbol.for("react.strict_mode"):60108,Ze=We?Symbol.for("react.profiler"):60114,Ge=We?Symbol.for("react.provider"):60109,Xe=We?Symbol.for("react.context"):60110,Ke=We?Symbol.for("react.async_mode"):60111,Je=We?Symbol.for("react.concurrent_mode"):60111,Qe=We?Symbol.for("react.forward_ref"):60112,et=We?Symbol.for("react.suspense"):60113,tt=We?Symbol.for("react.suspense_list"):60120,nt=We?Symbol.for("react.memo"):60115,rt=We?Symbol.for("react.lazy"):60116,at=We?Symbol.for("react.block"):60121,ot=We?Symbol.for("react.fundamental"):60117,it=We?Symbol.for("react.responder"):60118,st=We?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ze:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case rt:case nt:case Ge:return e;default:return t}}case $e:return t}}}function ut(e){return lt(e)===Je}var ct={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ge,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:rt,Memo:nt,Portal:$e,Profiler:Ze,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ut(e)||lt(e)===Ke},isConcurrentMode:ut,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ge},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===rt},isMemo:function(e){return lt(e)===nt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ze},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ze||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===Ge||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case a:case i:case o:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var x=c,_=l,w=s,k=n,S=d,C=a,O=v,A=m,N=r,R=i,I=o,P=f,T=!1;function L(e){return E(e)===c}t.AsyncMode=u,t.ConcurrentMode=x,t.ContextConsumer=_,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=A,t.Portal=N,t.Profiler=R,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||E(e)===u},t.isConcurrentMode=L,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=E}()});function ft(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}a(function(e){e.exports="production"===process.env.NODE_ENV?ct:dt});var pt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},mt=function(e,t,n){pt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},vt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ht="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",yt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},Et=function(e){return null!=e&&"boolean"!=typeof e},xt=/* #__PURE__ */Pe(function(e){return bt(e)?e:e.replace(yt,"-$&").toLowerCase()}),_t=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gt,function(e,t,n){return It={name:t,styles:n,next:It},t})}return 1===vt[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var wt=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,kt=["normal","none","initial","inherit","unset"],St=_t,Ct=/^-ms-/,Ot=/-(.)/g,At={};_t=function(e,t){if("content"===e&&("string"!=typeof t||-1===kt.indexOf(t)&&!wt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=St(e,t);return""===n||bt(e)||-1===e.indexOf("-")||void 0!==At[e]||(At[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ct,"ms-").replace(Ot,function(e,t){return t.toUpperCase()})+"?")),n}}function Nt(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return It={name:n.name,styles:n.styles,next:It},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)It={name:r.name,styles:r.styles,next:It},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Nt(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Et(i)&&(r+=xt(o)+":"+_t(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Nt(e,t,i);switch(o){case"animation":case"animationName":r+=xt(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Et(i[l])&&(r+=xt(o)+":"+_t(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=It,i=n(e);return It=o,Nt(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(gt,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var Rt,It,Pt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Rt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Tt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";It=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=Nt(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(ht),a+=i[0]);for(var s=1;s<e.length;s++)a+=Nt(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(ht),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(Rt,function(e){return o=e,""})),Pt.lastIndex=0;for(var l,u="";null!==(l=Pt.exec(a));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:a,map:o,next:It,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:a,next:It}},Lt={}.hasOwnProperty,Dt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Dt.displayName="EmotionCacheContext");var Mt=function(e){/*#__PURE__*/
|
2
|
-
return F.forwardRef(function(t,n){var r=F.useContext(
|
3
|
-
return F.isValidElement(e)})}var nn=t.isBrowser?F.useLayoutEffect:F.useEffect;function rn(e,t){void 0===t&&(t=[]);var n=F.useRef(e);return nn(function(){n.current=e}),F.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function an(e,n,r,a){var o=rn(n);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(r))?i:document;if(n)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,r,a,o,n]),function(){var n;(null!=(n=t.runIfFn(r))?n:document).removeEventListener(e,o,a)}}function on(e){void 0===e&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],a=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,a]}function sn(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function ln(e){var n=e.value,r=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=rn(e.onChange),s=rn(o),l=F.useState(r),u=l[1],c=void 0!==n,d=c?n:l[0],f=F.useCallback(function(e){var n=t.runIfFn(e,d);s(d,n)&&(c||u(n),i(n))},[c,i,d,s]);return[d,f]}function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un.apply(this,arguments)}function cn(e,t){var n=F.useId();return F.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var dn=function(e,t){var n=F.useRef(!1),r=F.useRef(!1);F.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),F.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function fn(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function pn(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function mn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&pn(t,e)})}},t)}function vn(e,n){var r,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(r=n.current)&&r.contains(a))}var hn=/*#__PURE__*/F.createContext({});function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yn.apply(this,arguments)}t.__DEV__&&(hn.displayName="ColorModeContext");var gn,bn,En=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},xn=function(e,n){return function(r){var a=String(n),o=function(e){return/!(important)?$/.test(e)}(a),i=En(a),s=e?e+"."+i:i,l=t.isObject(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:n;return l=En(l),o?l+" !important":l}};function _n(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,a){var o,i=xn(t,e)(a),s=null!=(o=null==n?void 0:n(i,a))?o:i;return r&&(s=r(s,a)),s}}function wn(e,t){return function(n){var r={property:n,scale:e};return r.transform=_n({scale:e,transform:t}),r}}var kn=["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))"],Sn={"--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(" ")},Cn={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,/*!*/ /*!*/)"},On={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},An=((gn={})["& > :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))"},gn),Nn=((bn={})["& > :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))"},bn);function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function In(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&&Rn(e,t)}function Pn(){Pn=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),Rn(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return In(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Pn.apply(this,arguments)}var Tn={"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"},Ln=new Set(Object.values(Tn)),Dn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Mn=function(e){return e.trim()},Vn=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},jn=function(e){return function(t){return e+"("+t+")"}},Bn={filter:function(e){return"auto"!==e?e:Sn},backdropFilter:function(e){return"auto"!==e?e:Cn},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(", ")}}(Bn.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(kn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(kn).join(" "):e},px:function(e){if(null==e)return e;var n=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return n.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var n=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||n?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Dn.has(e))return e;var a=null!=(n=null==(r=/*#__PURE__*/Pn(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(Mn).filter(Boolean),u=l[0],c=l.slice(1);if(0===(null==c?void 0:c.length))return e;c.unshift(u in Tn?Tn[u]:u);var d=c.map(function(e){if(Ln.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=r[0],o=r[1],i=Vn(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:jn("blur"),opacity:jn("opacity"),brightness:jn("brightness"),contrast:jn("contrast"),dropShadow:jn("drop-shadow"),grayscale:jn("grayscale"),hueRotate:jn("hue-rotate"),invert:jn("invert"),saturate:jn("saturate"),sepia:jn("sepia"),bgImage:function(e){return null==e||Vn(e)||Dn.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=On[e])?t:{},r=n.space,a=n.divide,o={flexDirection:e};return r&&(o[r]=1),a&&(o[a]=1),o}},Fn={borderWidths:wn("borderWidths"),borderStyles:wn("borderStyles"),colors:wn("colors"),borders:wn("borders"),radii:wn("radii",Bn.px),space:wn("space",Bn.px),spaceT:wn("space",Bn.px),degreeT:function(e){return{property:e,transform:Bn.degree}},prop:function(e,t,n){return yn({property:e,scale:t},t&&{transform:_n({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:wn("sizes",Bn.px),sizesT:wn("sizes",Bn.fraction),shadows:wn("shadows"),logical:function(e){var t,n,r,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:a?_n({scale:a,compose:o}):o}},blur:wn("blur",Bn.blur)},zn={background:Fn.colors("background"),backgroundColor:Fn.colors("backgroundColor"),backgroundImage:Fn.propT("backgroundImage",Bn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Bn.bgClip},bgSize:Fn.prop("backgroundSize"),bgPosition:Fn.prop("backgroundPosition"),bg:Fn.colors("background"),bgColor:Fn.colors("backgroundColor"),bgPos:Fn.prop("backgroundPosition"),bgRepeat:Fn.prop("backgroundRepeat"),bgAttachment:Fn.prop("backgroundAttachment"),bgGradient:Fn.propT("backgroundImage",Bn.gradient),bgClip:{transform:Bn.bgClip}};Object.assign(zn,{bgImage:zn.backgroundImage,bgImg:zn.backgroundImage});var Hn={border:Fn.borders("border"),borderWidth:Fn.borderWidths("borderWidth"),borderStyle:Fn.borderStyles("borderStyle"),borderColor:Fn.colors("borderColor"),borderRadius:Fn.radii("borderRadius"),borderTop:Fn.borders("borderTop"),borderBlockStart:Fn.borders("borderBlockStart"),borderTopLeftRadius:Fn.radii("borderTopLeftRadius"),borderStartStartRadius:Fn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Fn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Fn.radii("borderTopRightRadius"),borderStartEndRadius:Fn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Fn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Fn.borders("borderRight"),borderInlineEnd:Fn.borders("borderInlineEnd"),borderBottom:Fn.borders("borderBottom"),borderBlockEnd:Fn.borders("borderBlockEnd"),borderBottomLeftRadius:Fn.radii("borderBottomLeftRadius"),borderBottomRightRadius:Fn.radii("borderBottomRightRadius"),borderLeft:Fn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Fn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Fn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Fn.borders(["borderLeft","borderRight"]),borderInline:Fn.borders("borderInline"),borderY:Fn.borders(["borderTop","borderBottom"]),borderBlock:Fn.borders("borderBlock"),borderTopWidth:Fn.borderWidths("borderTopWidth"),borderBlockStartWidth:Fn.borderWidths("borderBlockStartWidth"),borderTopColor:Fn.colors("borderTopColor"),borderBlockStartColor:Fn.colors("borderBlockStartColor"),borderTopStyle:Fn.borderStyles("borderTopStyle"),borderBlockStartStyle:Fn.borderStyles("borderBlockStartStyle"),borderBottomWidth:Fn.borderWidths("borderBottomWidth"),borderBlockEndWidth:Fn.borderWidths("borderBlockEndWidth"),borderBottomColor:Fn.colors("borderBottomColor"),borderBlockEndColor:Fn.colors("borderBlockEndColor"),borderBottomStyle:Fn.borderStyles("borderBottomStyle"),borderBlockEndStyle:Fn.borderStyles("borderBlockEndStyle"),borderLeftWidth:Fn.borderWidths("borderLeftWidth"),borderInlineStartWidth:Fn.borderWidths("borderInlineStartWidth"),borderLeftColor:Fn.colors("borderLeftColor"),borderInlineStartColor:Fn.colors("borderInlineStartColor"),borderLeftStyle:Fn.borderStyles("borderLeftStyle"),borderInlineStartStyle:Fn.borderStyles("borderInlineStartStyle"),borderRightWidth:Fn.borderWidths("borderRightWidth"),borderInlineEndWidth:Fn.borderWidths("borderInlineEndWidth"),borderRightColor:Fn.colors("borderRightColor"),borderInlineEndColor:Fn.colors("borderInlineEndColor"),borderRightStyle:Fn.borderStyles("borderRightStyle"),borderInlineEndStyle:Fn.borderStyles("borderInlineEndStyle"),borderTopRadius:Fn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Fn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Fn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Fn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Hn,{rounded:Hn.borderRadius,roundedTop:Hn.borderTopRadius,roundedTopLeft:Hn.borderTopLeftRadius,roundedTopRight:Hn.borderTopRightRadius,roundedTopStart:Hn.borderStartStartRadius,roundedTopEnd:Hn.borderStartEndRadius,roundedBottom:Hn.borderBottomRadius,roundedBottomLeft:Hn.borderBottomLeftRadius,roundedBottomRight:Hn.borderBottomRightRadius,roundedBottomStart:Hn.borderEndStartRadius,roundedBottomEnd:Hn.borderEndEndRadius,roundedLeft:Hn.borderLeftRadius,roundedRight:Hn.borderRightRadius,roundedStart:Hn.borderInlineStartRadius,roundedEnd:Hn.borderInlineEndRadius,borderStart:Hn.borderInlineStart,borderEnd:Hn.borderInlineEnd,borderTopStartRadius:Hn.borderStartStartRadius,borderTopEndRadius:Hn.borderStartEndRadius,borderBottomStartRadius:Hn.borderEndStartRadius,borderBottomEndRadius:Hn.borderEndEndRadius,borderStartRadius:Hn.borderInlineStartRadius,borderEndRadius:Hn.borderInlineEndRadius,borderStartWidth:Hn.borderInlineStartWidth,borderEndWidth:Hn.borderInlineEndWidth,borderStartColor:Hn.borderInlineStartColor,borderEndColor:Hn.borderInlineEndColor,borderStartStyle:Hn.borderInlineStartStyle,borderEndStyle:Hn.borderInlineEndStyle});var Wn={color:Fn.colors("color"),textColor:Fn.colors("color"),fill:Fn.colors("fill"),stroke:Fn.colors("stroke")},Un={boxShadow:Fn.shadows("boxShadow"),mixBlendMode:!0,blendMode:Fn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Fn.prop("backgroundBlendMode"),opacity:!0};Object.assign(Un,{shadow:Un.boxShadow});var $n={filter:{transform:Bn.filter},blur:Fn.blur("--chakra-blur"),brightness:Fn.propT("--chakra-brightness",Bn.brightness),contrast:Fn.propT("--chakra-contrast",Bn.contrast),hueRotate:Fn.degreeT("--chakra-hue-rotate"),invert:Fn.propT("--chakra-invert",Bn.invert),saturate:Fn.propT("--chakra-saturate",Bn.saturate),dropShadow:Fn.propT("--chakra-drop-shadow",Bn.dropShadow),backdropFilter:{transform:Bn.backdropFilter},backdropBlur:Fn.blur("--chakra-backdrop-blur"),backdropBrightness:Fn.propT("--chakra-backdrop-brightness",Bn.brightness),backdropContrast:Fn.propT("--chakra-backdrop-contrast",Bn.contrast),backdropHueRotate:Fn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Fn.propT("--chakra-backdrop-invert",Bn.invert),backdropSaturate:Fn.propT("--chakra-backdrop-saturate",Bn.saturate)},qn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Bn.flexDirection},experimental_spaceX:{static:An,transform:_n({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Nn,transform:_n({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Fn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Fn.space("gap"),rowGap:Fn.space("rowGap"),columnGap:Fn.space("columnGap")};Object.assign(qn,{flexDir:qn.flexDirection});var Yn={gridGap:Fn.space("gridGap"),gridColumnGap:Fn.space("gridColumnGap"),gridRowGap:Fn.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},Zn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Bn.outline},outlineOffset:!0,outlineColor:Fn.colors("outlineColor")},Gn={width:Fn.sizesT("width"),inlineSize:Fn.sizesT("inlineSize"),height:Fn.sizes("height"),blockSize:Fn.sizes("blockSize"),boxSize:Fn.sizes(["width","height"]),minWidth:Fn.sizes("minWidth"),minInlineSize:Fn.sizes("minInlineSize"),minHeight:Fn.sizes("minHeight"),minBlockSize:Fn.sizes("minBlockSize"),maxWidth:Fn.sizes("maxWidth"),maxInlineSize:Fn.sizes("maxInlineSize"),maxHeight:Fn.sizes("maxHeight"),maxBlockSize:Fn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Fn.propT("float",Bn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Gn,{w:Gn.width,h:Gn.height,minW:Gn.minWidth,maxW:Gn.maxWidth,minH:Gn.minHeight,maxH:Gn.maxHeight,overscroll:Gn.overscrollBehavior,overscrollX:Gn.overscrollBehaviorX,overscrollY:Gn.overscrollBehaviorY});var Xn={listStyleType:!0,listStylePosition:!0,listStylePos:Fn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Fn.prop("listStyleImage")},Kn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Jn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Qn=function(e,n,r){var a={},o=t.memoizedGet(e,n,{});for(var i in o)i in r&&null!=r[i]||(a[i]=o[i]);return a},er={srOnly:{transform:function(e){return!0===e?Kn:"focusable"===e?Jn:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return Qn(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return Qn(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return Qn(t,e,n)}}},tr={position:!0,pos:Fn.prop("position"),zIndex:Fn.prop("zIndex","zIndices"),inset:Fn.spaceT("inset"),insetX:Fn.spaceT(["left","right"]),insetInline:Fn.spaceT("insetInline"),insetY:Fn.spaceT(["top","bottom"]),insetBlock:Fn.spaceT("insetBlock"),top:Fn.spaceT("top"),insetBlockStart:Fn.spaceT("insetBlockStart"),bottom:Fn.spaceT("bottom"),insetBlockEnd:Fn.spaceT("insetBlockEnd"),left:Fn.spaceT("left"),insetInlineStart:Fn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Fn.spaceT("right"),insetInlineEnd:Fn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(tr,{insetStart:tr.insetInlineStart,insetEnd:tr.insetInlineEnd});var nr={ring:{transform:Bn.ring},ringColor:Fn.colors("--chakra-ring-color"),ringOffset:Fn.prop("--chakra-ring-offset-width"),ringOffsetColor:Fn.colors("--chakra-ring-offset-color"),ringInset:Fn.prop("--chakra-ring-inset")},rr={margin:Fn.spaceT("margin"),marginTop:Fn.spaceT("marginTop"),marginBlockStart:Fn.spaceT("marginBlockStart"),marginRight:Fn.spaceT("marginRight"),marginInlineEnd:Fn.spaceT("marginInlineEnd"),marginBottom:Fn.spaceT("marginBottom"),marginBlockEnd:Fn.spaceT("marginBlockEnd"),marginLeft:Fn.spaceT("marginLeft"),marginInlineStart:Fn.spaceT("marginInlineStart"),marginX:Fn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Fn.spaceT("marginInline"),marginY:Fn.spaceT(["marginTop","marginBottom"]),marginBlock:Fn.spaceT("marginBlock"),padding:Fn.space("padding"),paddingTop:Fn.space("paddingTop"),paddingBlockStart:Fn.space("paddingBlockStart"),paddingRight:Fn.space("paddingRight"),paddingBottom:Fn.space("paddingBottom"),paddingBlockEnd:Fn.space("paddingBlockEnd"),paddingLeft:Fn.space("paddingLeft"),paddingInlineStart:Fn.space("paddingInlineStart"),paddingInlineEnd:Fn.space("paddingInlineEnd"),paddingX:Fn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Fn.space("paddingInline"),paddingY:Fn.space(["paddingTop","paddingBottom"]),paddingBlock:Fn.space("paddingBlock")};Object.assign(rr,{m:rr.margin,mt:rr.marginTop,mr:rr.marginRight,me:rr.marginInlineEnd,marginEnd:rr.marginInlineEnd,mb:rr.marginBottom,ml:rr.marginLeft,ms:rr.marginInlineStart,marginStart:rr.marginInlineStart,mx:rr.marginX,my:rr.marginY,p:rr.padding,pt:rr.paddingTop,py:rr.paddingY,px:rr.paddingX,pb:rr.paddingBottom,pl:rr.paddingLeft,ps:rr.paddingInlineStart,paddingStart:rr.paddingInlineStart,pr:rr.paddingRight,pe:rr.paddingInlineEnd,paddingEnd:rr.paddingInlineEnd});var ar={textDecorationColor:Fn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Fn.shadows("textShadow")},or={clipPath:!0,transform:Fn.propT("transform",Bn.transform),transformOrigin:!0,translateX:Fn.spaceT("--chakra-translate-x"),translateY:Fn.spaceT("--chakra-translate-y"),skewX:Fn.degreeT("--chakra-skew-x"),skewY:Fn.degreeT("--chakra-skew-y"),scaleX:Fn.prop("--chakra-scale-x"),scaleY:Fn.prop("--chakra-scale-y"),scale:Fn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Fn.degreeT("--chakra-rotate")},ir={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Fn.prop("transitionDuration","transition.duration"),transitionProperty:Fn.prop("transitionProperty","transition.property"),transitionTimingFunction:Fn.prop("transitionTimingFunction","transition.easing")},sr={fontFamily:Fn.prop("fontFamily","fonts"),fontSize:Fn.prop("fontSize","fontSizes",Bn.px),fontWeight:Fn.prop("fontWeight","fontWeights"),lineHeight:Fn.prop("lineHeight","lineHeights"),letterSpacing:Fn.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"}},lr={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Fn.spaceT("scrollMargin"),scrollMarginTop:Fn.spaceT("scrollMarginTop"),scrollMarginBottom:Fn.spaceT("scrollMarginBottom"),scrollMarginLeft:Fn.spaceT("scrollMarginLeft"),scrollMarginRight:Fn.spaceT("scrollMarginRight"),scrollMarginX:Fn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Fn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Fn.spaceT("scrollPadding"),scrollPaddingTop:Fn.spaceT("scrollPaddingTop"),scrollPaddingBottom:Fn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Fn.spaceT("scrollPaddingLeft"),scrollPaddingRight:Fn.spaceT("scrollPaddingRight"),scrollPaddingX:Fn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Fn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function ur(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var cr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(ur).join(" "+e+" ").replace(/calc/g,"")},dr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+cr.apply(void 0,["+"].concat(t))+")"},fr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+cr.apply(void 0,["-"].concat(t))+")"},pr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+cr.apply(void 0,["*"].concat(t))+")"},mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+cr.apply(void 0,["/"].concat(t))+")"},vr=function(e){var t=ur(e);return null==t||Number.isNaN(parseFloat(t))?pr(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},hr=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hr(dr.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hr(fr.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hr(pr.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hr(mr.apply(void 0,[e].concat(n)))},negate:function(){return hr(vr(e))},toString:function(){return e.toString()}}},{add:dr,subtract:fr,multiply:pr,divide:mr,negate:vr}),yr=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},gr=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},br=function(e,t){return e+":focus-visible "+t},Er=function(e,t){return e+":focus-within "+t},xr=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},_r=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},wr=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},kr=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Sr=function(e){return Or(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Cr=function(e){return Or(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Or=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Ar={_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:Sr(yr),_peerHover:Cr(yr),_groupFocus:Sr(gr),_peerFocus:Cr(gr),_groupFocusVisible:Sr(br),_peerFocusVisible:Cr(br),_groupActive:Sr(xr),_peerActive:Cr(xr),_groupDisabled:Sr(_r),_peerDisabled:Cr(_r),_groupInvalid:Sr(wr),_peerInvalid:Cr(wr),_groupChecked:Sr(kr),_peerChecked:Cr(kr),_groupFocusWithin:Sr(Er),_peerFocusWithin:Cr(Er),_peerPlaceholderShown:Cr(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]"},Nr=t.objectKeys(Ar);function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ir(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Pr=t.mergeWith({},zn,Hn,Wn,qn,Gn,$n,nr,Zn,Yn,er,tr,Un,rr,lr,sr,ar,or,Xn,ir),Tr=Object.assign({},rr,Gn,qn,Yn,tr),Lr=t.objectKeys(Tr),Dr=[].concat(t.objectKeys(Pr),Nr),Mr=yn({},Pr,Ar),Vr=function(e){return e in Mr},jr=function(e,n){return e.startsWith("--")&&t.isString(n)&&!t.isCssVar(n)},Br=function(e,t){var n,r;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=a(i[0]))?r:o(s))?n:o(t)},Fr="undefined"!=typeof Element,zr="function"==typeof Map,Hr="function"==typeof Set,Wr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Ur(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,a,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Ur(e[r],t[r]))return!1;return!0}if(zr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ur(r.value[1],t.get(r.value[0])))return!1;return!0}if(Hr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Wr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Fr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!Ur(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var $r=function(e,t){try{return Ur(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},qr=/^((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)-.*))$/,Yr=/* #__PURE__ */Pe(function(e){return qr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Zr=function(e){return"theme"!==e},Gr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Yr:Zr},Xr=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Kr=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Jr="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",Qr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),Kr(function(){return mt(t,n,r)}),null},ea=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=Xr(t,n,o),l=s||Gr(i),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{"production"!==process.env.NODE_ENV&&void 0===c[0][0]&&console.error(Jr),d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===c[0][p]&&console.error(Jr),d.push(c[p],c[0][p])}var m=Mt(function(e,t,n){var r=u&&e.as||i,o="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(Vt)}"string"==typeof e.className?o=ft(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var m=Tt(d.concat(c),t.registered,f);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=u&&void 0===s?Gr(r):l,h={};for(var y in e)u&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=o,h.ref=n,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Qr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/F.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,r){return e(t,He({},n,r,{shouldForwardProp:Xr(m,r,!0)})).apply(void 0,d)},m}}.bind();function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.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}["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){ea[e]=ea(e)}),en({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ra=function(e){return en({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function aa(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function oa(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var ia=new Set([].concat(Dr,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),sa=new Set(["htmlWidth","htmlHeight","htmlSize"]),la=function(e){return sa.has(e)||!ia.has(e)},ua=["theme","css","__css","sx"],ca=["baseStyle"];function da(e,n){var r=null!=n?n:{},a=r.baseStyle,o=oa(r,ca);o.shouldForwardProp||(o.shouldForwardProp=la);var i=function(e){var n=e.baseStyle;return function(e){var r,a=e.css,o=e.__css,i=e.sx,s=oa(e,ua),l=t.objectFilter(s,function(e,t){return Vr(t)}),u=t.runIfFn(n,e),c=Object.assign({},o,u,t.filterUndefined(l),i),d=(r=c,function(e){return function(e){var n=e.configs,r=void 0===n?{}:n,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(n,a){void 0===a&&(a=!1);var s=t.runIfFn(n,i),l=function(e){return function(n){if(!n.__breakpoints)return e;var r=n.__breakpoints,a=r.isResponsive,o=r.toArrayValue,i=r.media,s={};for(var l in e){var u=t.runIfFn(e[l],n);if(null!=u)if(u=t.isObject(u)&&a(u)?o(u):u,Array.isArray(u))for(var c=u.slice(0,i.length).length,d=0;d<c;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=u[d]&&(s[f][l]=u[d])):s[l]=u[d]}else s[l]=u}return s}}(s)(i),u={};for(var c in l){var d,f,p,m,v,h=t.runIfFn(l[c],i);c in o&&(c=o[c]),jr(c,h)&&(h=Br(i,h));var y=r[c];if(!0===y&&(y={property:c}),t.isObject(h)){var g;u[c]=null!=(g=u[c])?g:{},u[c]=t.mergeWith({},u[c],e(h,!0))}else{var b=null!=(d=null==(f=y)||null==f.transform?void 0:f.transform(h,i,s))?d:h;b=null!=(p=y)&&p.processResult?e(b,!0):b;var E=t.runIfFn(null==(m=y)?void 0:m.property,i);if(!a&&null!=(v=y)&&v.static){var x=t.runIfFn(y.static,i);u=t.mergeWith({},u,x)}if(E&&Array.isArray(E))for(var _,w=Ir(E);!(_=w()).done;)u[_.value]=b;else E?"&"===E&&t.isObject(b)?u=t.mergeWith({},u,b):u[E]=b:t.isObject(b)?u=t.mergeWith({},u,b):u[c]=b}}return u}}({theme:e,pseudos:Ar,configs:Pr})(r)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return ea(e,o)(i)}function fa(e){/*#__PURE__*/
|
4
|
-
return F.forwardRef(e)}var
|
5
|
-
return F.createElement(
|
6
|
-
return F.createElement(
|
7
|
-
return F.createElement(ga.svg,Ca({verticalAlign:"middle",viewBox:m},p,f),v)});t.__DEV__&&(Na.displayName="Icon");var Ra=Na,Ia=function(e,t){return Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ia(e,t)};function Pa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ia(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ta=function(){return Ta=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ta.apply(this,arguments)};function La(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function Da(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Ma(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Va="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",ja=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Ba={measureLayout:ja(["layout","layoutId","drag"]),animation:ja(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ja(["exit"]),drag:ja(["drag","dragControls"]),focus:ja(["whileFocus"]),hover:ja(["whileHover","onHoverStart","onHoverEnd"]),tap:ja(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ja(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ja(["whileInView","onViewportEnter","onViewportLeave"])},Fa=function(){},za=function(){};"production"!==process.env.NODE_ENV&&(Fa=function(e,t){e||"undefined"==typeof console||console.warn(t)},za=function(e,t){if(!e)throw new Error(t)});var Ha=F.createContext({strict:!1}),Wa=Object.keys(Ba),Ua=Wa.length,$a=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),qa=F.createContext({}),Ya=F.createContext(null),Za="undefined"!=typeof document,Ga=Za?F.useLayoutEffect:F.useEffect,Xa={current:null},Ka=!1;function Ja(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Qa(e){return Array.isArray(e)}function eo(e){return"string"==typeof e||Qa(e)}function to(e,t,n,r,a){var o;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function no(e,t,n){var r=e.getProps();return to(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ro(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||eo(e.initial)||eo(e.animate)||eo(e.whileHover)||eo(e.whileDrag)||eo(e.whileTap)||eo(e.whileFocus)||eo(e.exit)}function ao(e){return Boolean(ro(e)||e.variants)}function oo(e){return Array.isArray(e)?e.join(" "):e}function io(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const so="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),lo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(so()),16.666666666666668);let uo=!0,co=!1,fo=!1;const po={delta:0,timestamp:0},mo=["read","update","preRender","render","postRender"],vo=mo.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,u=l?t:n;return o&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>co=!0),e),{}),ho=mo.reduce((e,t)=>{const n=vo[t];return e[t]=(e,t=!1,r=!1)=>(co||xo(),n.schedule(e,t,r)),e},{}),yo=mo.reduce((e,t)=>(e[t]=vo[t].cancel,e),{}),go=mo.reduce((e,t)=>(e[t]=()=>vo[t].process(po),e),{}),bo=e=>vo[e].process(po),Eo=e=>{co=!1,po.delta=uo?16.666666666666668:Math.max(Math.min(e-po.timestamp,40),1),po.timestamp=e,fo=!0,mo.forEach(bo),fo=!1,co&&(uo=!1,lo(Eo))},xo=()=>{co=!0,uo=!0,fo||lo(Eo)},_o=()=>po,wo=(e,t,n)=>Math.min(Math.max(n,e),t);function ko(e,t){return e*Math.sqrt(1-t*t)}const So=["duration","bounce"],Co=["stiffness","damping","mass"];function Oo(e,t){return t.some(t=>void 0!==e[t])}function Ao(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:a}=e,o=La(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Oo(e,Co)&&Oo(e,So)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,o;Fa(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=wo(.05,1,i),e=wo(.01,10,e/1e3),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/ko(t,i)*Math.exp(-a)},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=ko(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/u}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=No,m=No;function v(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=ko(i,o);p=a=>{const s=Math.exp(-o*i*a);return n-s*((e+o*i*r)/t*Math.sin(t*a)+r*Math.cos(t*a))},m=n=>{const a=Math.exp(-o*i*n);return o*i*a*(Math.sin(t*n)*(e+o*i*r)/t+r*Math.cos(t*n))-a*(Math.cos(t*n)*(e+o*i*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(o*o-1);p=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return n-s*((e+o*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const o=1e3*m(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=a;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}Ao.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const No=e=>0,Ro=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Io=(e,t,n)=>-n*e+n*t+e,Po=(e,t)=>n=>Math.max(Math.min(n,t),e),To=e=>e%1?Number(e.toFixed(5)):e,Lo=/(-)?([\d]*\.?[\d])+/g,Do=/(#[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,Mo=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Vo(e){return"string"==typeof e}const jo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Bo=Object.assign(Object.assign({},jo),{transform:Po(0,1)}),Fo=Object.assign(Object.assign({},jo),{default:1}),zo=e=>({test:t=>Vo(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ho=zo("deg"),Wo=zo("%"),Uo=zo("px"),$o=zo("vh"),qo=zo("vw"),Yo=Object.assign(Object.assign({},Wo),{parse:e=>Wo.parse(e)/100,transform:e=>Wo.transform(100*e)}),Zo=(e,t)=>n=>Boolean(Vo(n)&&Mo.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Go=(e,t,n)=>r=>{if(!Vo(r))return r;const[a,o,i,s]=r.match(Lo);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Xo={test:Zo("hsl","hue"),parse:Go("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wo.transform(To(t))+", "+Wo.transform(To(n))+", "+To(Bo.transform(r))+")"},Ko=Po(0,255),Jo=Object.assign(Object.assign({},jo),{transform:e=>Math.round(Ko(e))}),Qo={test:Zo("rgb","red"),parse:Go("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jo.transform(e)+", "+Jo.transform(t)+", "+Jo.transform(n)+", "+To(Bo.transform(r))+")"},ei={test:Zo("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:Qo.transform},ti={test:e=>Qo.test(e)||ei.test(e)||Xo.test(e),parse:e=>Qo.test(e)?Qo.parse(e):Xo.test(e)?Xo.parse(e):ei.parse(e),transform:e=>Vo(e)?e:e.hasOwnProperty("red")?Qo.transform(e):Xo.transform(e)};function ni(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Do);r&&(n=r.length,e=e.replace(Do,"${c}"),t.push(...r.map(ti.parse)));const a=e.match(Lo);return a&&(e=e.replace(Lo,"${n}"),t.push(...a.map(jo.parse))),{values:t,numColors:n,tokenised:e}}function ri(e){return ni(e).values}function ai(e){const{values:t,numColors:n,tokenised:r}=ni(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=t.replace(r<n?"${c}":"${n}",r<n?ti.transform(e[r]):To(e[r]));return t}}const oi=e=>"number"==typeof e?0:e,ii={test:function(e){var t,n,r,a;return isNaN(e)&&Vo(e)&&(null!==(n=null===(t=e.match(Lo))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(Do))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:ri,createTransformer:ai,getAnimatableNone:function(e){const t=ri(e);return ai(e)(t.map(oi))}},si=new Set(["brightness","contrast","saturate","opacity"]);function li(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Lo)||[];if(!r)return e;const a=n.replace(r,"");let o=si.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const ui=/([a-z-]*)\(.*?\)/g,ci=Object.assign(Object.assign({},ii),{getAnimatableNone:e=>{const t=e.match(ui);return t?t.map(li).join(" "):e}});function di(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=di(s,r,e+1/3),o=di(s,r,e),i=di(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}const pi=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},mi=[ei,Qo,Xo],vi=e=>mi.find(t=>t.test(e)),hi=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,yi=(e,t)=>{let n=vi(e),r=vi(t);za(!!n,hi(e)),za(!!r,hi(t));let a=n.parse(e),o=r.parse(t);n===Xo&&(a=fi(a),n=Qo),r===Xo&&(o=fi(o),r=Qo);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=pi(a[t],o[t],e));return i.alpha=Io(a.alpha,o.alpha,e),n.transform(i)}},gi=e=>"number"==typeof e,bi=(e,t)=>n=>t(e(n)),Ei=(...e)=>e.reduce(bi);function xi(e,t){return gi(e)?n=>Io(e,t,n):ti.test(e)?yi(e,t):Si(e,t)}const _i=(e,t)=>{const n=[...e],r=n.length,a=e.map((e,n)=>xi(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},wi=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=xi(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function ki(e){const t=ii.parse(e),n=t.length;let r=0,a=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:o}}const Si=(e,t)=>{const n=ii.createTransformer(t),r=ki(e),a=ki(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?Ei(_i(r.parsed,a.parsed),n):(Fa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},Ci=(e,t)=>n=>Io(e,t,n);function Oi(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;za(o===t.length,"Both input and output ranges must be the same length"),za(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],a=n||function(e){return"number"==typeof e?Ci:"string"==typeof e?ti.test(e)?yi:Si:Array.isArray(e)?_i:"object"==typeof e?wi:void 0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=Ei(e,o)}r.push(o)}return r}(t,r,a),s=2===o?function([e,t],[n]){return r=>n(Ro(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[r]&&(o=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>a||t===r);t++);o=t-1}const s=Ro(e[o],e[o+1],a);return t[o](s)}}(e,i);return n?t=>s(wo(e[0],e[o-1],t)):s}const Ai=e=>t=>1-e(1-t),Ni=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ri=e=>t=>t*t*((e+1)*t-e),Ii=e=>e,Pi=e=>Math.pow(e,2),Ti=Ai(Pi),Li=Ni(Pi),Di=e=>1-Math.sin(Math.acos(e)),Mi=Ai(Di),Vi=Ni(Mi),ji=Ri(1.525),Bi=Ai(ji),Fi=Ni(ji),zi=(e=>{const t=Ri(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Hi=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Wi=Ai(Hi);function Ui(e,t){return e.map(()=>t||Li).splice(0,e.length-1)}function $i({from:e=0,to:t=1,ease:n,offset:r,duration:a=300}){const o={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),a);function l(){return Oi(s,i,{ease:Array.isArray(n)?n:Ui(i,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),u=l()}}}const qi={keyframes:$i,spring:Ao,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>a||t<-a),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}};function Yi(e,t,n=0){return e-t-n}const Zi=e=>{const t=({delta:t})=>e(t);return{start:()=>ho.update(t,!0),stop:()=>yo.update(t)}};function Gi(e){var t,n,{from:r,autoplay:a=!0,driver:o=Zi,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=La(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,E=0,x=v.duration,_=!1,w=!0;const k=function(e){if(Array.isArray(e.to))return $i;if(qi[e.type])return qi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?$i:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ao:$i}(v);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Oi([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},v),{from:r,to:b}));return a&&(null==c||c(),h=o(function(e){if(w||(e=-e),i+=e,!_){const e=S.next(Math.max(0,i));y=e.value,g&&(y=g(y)),_=w?e.done:i<=0}null==m||m(y),_&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,w)&&(E++,"reverse"===l?(w=E%2==0,i=function(e,t,n=0,r=!0){return r?Yi(t+-e,t,n):t-(e-t)+n}(i,x,u,w)):(i=Yi(i,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function Xi(e,t){return t?e*(1e3/t):0}const Ki=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ji=e=>Ki(e)&&e.hasOwnProperty("z"),Qi=(e,t)=>Math.abs(e-t);function es(e,t){if(gi(e)&&gi(t))return Qi(e,t);if(Ki(e)&&Ki(t)){const n=Qi(e.x,t.x),r=Qi(e.y,t.y),a=Ji(e)&&Ji(t)?Qi(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}const ts=(e,t)=>1-3*t+3*e,ns=(e,t)=>3*t-6*e,rs=e=>3*e,as=(e,t,n)=>((ts(t,n)*e+ns(t,n))*e+rs(t))*e,os=(e,t,n)=>3*ts(t,n)*e*e+2*ns(t,n)*e+rs(t);function is(e,t){-1===e.indexOf(t)&&e.push(t)}function ss(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ls=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return is(this.subscriptions,e),function(){return ss(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var a=0;a<r;a++){var o=this.subscriptions[a];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),us=function(){function e(e){var t=this;this.version="6.3.10",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ls,this.velocityUpdateSubscribers=new ls,this.renderSubscribers=new ls,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=_o(),a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=r.delta,t.lastUpdated=a,ho.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return ho.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?Xi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function cs(e){return new us(e)}var ds=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},fs=function(e){return 1e3*e},ps={linear:Ii,easeIn:Pi,easeInOut:Li,easeOut:Ti,circIn:Di,circInOut:Vi,circOut:Mi,backIn:ji,backInOut:Fi,backOut:Bi,anticipate:zi,bounceIn:Wi,bounceInOut:e=>e<.5?.5*(1-Hi(1-2*e)):.5*Hi(2*e-1)+.5,bounceOut:Hi},ms=function(e){if(Array.isArray(e)){za(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Da(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ii;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=as(.1*t,e,n);return o=>0===o||1===o?o:as(function(t){let r=0,o=1;for(;10!==o&&a[o]<=t;++o)r+=.1;--o;const i=r+(t-a[o])/(a[o+1]-a[o])*.1,s=os(i,e,n);return s>=.001?function(e,t,n,r){for(let a=0;a<8;++a){const a=os(t,n,r);if(0===a)return t;t-=(as(t,n,r)-e)/a}return t}(t,i,e,n):0===s?i:function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=as(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(o),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(za(void 0!==ps[e],"Invalid easing type '".concat(e,"'")),ps[e]):e},vs=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ii.test(t)||t.startsWith("url(")))},hs=function(e){return Array.isArray(e)},ys=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},gs=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},bs=function(){return{type:"keyframes",ease:"linear",duration:.3}},Es=function(e){return{type:"keyframes",duration:.8,values:e}},xs={x:ys,y:ys,z:ys,rotate:ys,rotateX:ys,rotateY:ys,rotateZ:ys,scaleX:gs,scaleY:gs,scale:gs,opacity:bs,backgroundColor:bs,color:bs,default:gs},_s=Ta(Ta({},jo),{transform:Math.round}),ws={borderWidth:Uo,borderTopWidth:Uo,borderRightWidth:Uo,borderBottomWidth:Uo,borderLeftWidth:Uo,borderRadius:Uo,radius:Uo,borderTopLeftRadius:Uo,borderTopRightRadius:Uo,borderBottomRightRadius:Uo,borderBottomLeftRadius:Uo,width:Uo,maxWidth:Uo,height:Uo,maxHeight:Uo,size:Uo,top:Uo,right:Uo,bottom:Uo,left:Uo,padding:Uo,paddingTop:Uo,paddingRight:Uo,paddingBottom:Uo,paddingLeft:Uo,margin:Uo,marginTop:Uo,marginRight:Uo,marginBottom:Uo,marginLeft:Uo,rotate:Ho,rotateX:Ho,rotateY:Ho,rotateZ:Ho,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:Ho,skewX:Ho,skewY:Ho,distance:Uo,translateX:Uo,translateY:Uo,translateZ:Uo,x:Uo,y:Uo,z:Uo,perspective:Uo,transformPerspective:Uo,opacity:Bo,originX:Yo,originY:Yo,originZ:Uo,zIndex:_s,fillOpacity:Bo,strokeOpacity:Bo,numOctaves:_s},ks=Ta(Ta({},ws),{color:ti,backgroundColor:ti,outlineColor:ti,fill:ti,stroke:ti,borderColor:ti,borderTopColor:ti,borderRightColor:ti,borderBottomColor:ti,borderLeftColor:ti,filter:ci,WebkitFilter:ci}),Ss=function(e){return ks[e]};function Cs(e,t){var n,r=Ss(e);return r!==ci&&(r=ii),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Os=function(e){return hs(e)?e[e.length-1]||0:e},As=!1;function Ns(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Rs(e){return"number"==typeof e?0:Cs("",e)}function Is(e,t){return e[t]||e.default||e}function Ps(e,t,n,r){return void 0===r&&(r={}),t.start(function(a){var o,i,s=function(e,t,n,r,a){var o,i=Is(r,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=vs(e,n);"none"===s&&l&&"string"==typeof n?s=Cs(e,n):Ns(s)&&"string"==typeof n?s=Rs(n):!Array.isArray(n)&&Ns(n)&&"string"==typeof s&&(n=Rs(s));var u=vs(e,s);return Fa(u===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:a=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=Gi(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=a*t+e;void 0!==u&&(r=u(r));const i=h(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=Xi(e-c,_o().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:u,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Ta(Ta({},r),i)):Gi(Ta(Ta({},function(e,t,n){var r,a,o,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ma([],Da(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=La(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ta(Ta({},e),(a=n,i=hs(o=t.to)?Es:xs[a]||xs.default,Ta({to:o},i(o))))),Ta(Ta({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,o=e.loop,i=La(e,["ease","times","yoyo","flip","loop"]),s=Ta({},i);return n&&(s.offset=n),i.duration&&(s.duration=fs(i.duration)),i.repeatDelay&&(s.repeatDelay=fs(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ms):ms(t)),"tween"===i.type&&(s.type="keyframes"),(r||o||a)&&(Fa(!As,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),As=!0,r?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||r||a||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,o=Os(n);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,a),l=function(e,t){var n,r;return null!==(r=null!==(n=(Is(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?o=window.setTimeout(u,fs(l)):u(),function(){clearTimeout(o),null==i||i.stop()}})}var Ts=["TopLeft","TopRight","BottomLeft","BottomRight"],Ls=Ts.length,Ds=function(e){return"string"==typeof e?parseFloat(e):e},Ms=function(e){return"number"==typeof e||Uo.test(e)};function Vs(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var js=Fs(0,.5,Mi),Bs=Fs(.5,.95,Ii);function Fs(e,t,n){return function(r){return r<e?0:r>t?1:n(Ro(e,t,r))}}function zs(e,t){e.min=t.min,e.max=t.max}function Hs(e,t){zs(e.x,t.x),zs(e.y,t.y)}function Ws(e){return void 0===e||1===e}function Us(e){var t=e.scaleX,n=e.scaleY;return!Ws(e.scale)||!Ws(t)||!Ws(n)}function $s(e){return Us(e)||qs(e.x)||qs(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function qs(e){return e&&"0%"!==e}function Ys(e,t,n){return n+t*(e-n)}function Zs(e,t,n,r,a){return void 0!==a&&(e=Ys(e,a,r)),Ys(e,n,r)+t}function Gs(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Zs(e.min,t,n,r,a),e.max=Zs(e.max,t,n,r,a)}function Xs(e,t){var n=t.x,r=t.y;Gs(e.x,n.translate,n.scale,n.originPoint),Gs(e.y,r.translate,r.scale,r.originPoint)}function Ks(e,t){e.min=e.min+t,e.max=e.max+t}function Js(e,t,n){var r=Da(n,3),a=r[0],o=r[1],i=r[2],s=Io(e.min,e.max,void 0!==t[i]?t[i]:.5);Gs(e,t[a],t[o],s,t.scale)}var Qs=["x","scaleX","originX"],el=["y","scaleY","originY"];function tl(e,t){Js(e.x,t,Qs),Js(e.y,t,el)}function nl(e){return e.max-e.min}function rl(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),es(e,t)<n}function al(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Io(t.min,t.max,e.origin),e.scale=nl(n)/nl(t),(rl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Io(n.min,n.max,e.origin)-e.originPoint,(rl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,n,r){al(e.x,t.x,n.x,null==r?void 0:r.originX),al(e.y,t.y,n.y,null==r?void 0:r.originY)}function il(e,t,n){e.min=n.min+t.min,e.max=e.min+nl(t)}function sl(e,t,n){e.min=t.min-n.min,e.max=e.min+nl(t)}function ll(e,t,n){sl(e.x,t.x,n.x),sl(e.y,t.y,n.y)}function ul(e,t,n,r,a){return e=Ys(e-=t,1/n,r),void 0!==a&&(e=Ys(e,1/a,r)),e}function cl(e,t,n,r,a){var o=Da(n,3);!function(e,t,n,r,a,o,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===i&&(i=e),Wo.test(t)&&(t=parseFloat(t),t=Io(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=Io(o.min,o.max,r);e===o&&(s-=t),e.min=ul(e.min,t,n,s,a),e.max=ul(e.max,t,n,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,r,a)}var dl=["x","scaleX","originX"],fl=["y","scaleY","originY"];function pl(e,t,n,r){cl(e.x,t,dl,null==n?void 0:n.x,null==r?void 0:r.x),cl(e.y,t,fl,null==n?void 0:n.y,null==r?void 0:r.y)}function ml(e){return 0===e.translate&&1===e.scale}function vl(e){return ml(e.x)&&ml(e.y)}function hl(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 yl=function(){function e(){this.members=[]}return e.prototype.add=function(e){is(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(ss(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var a=this.members[r];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),gl={};function bl(e,t,n){var r=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(n){var o=n.rotate,i=n.rotateX,s=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":a}function El(e){return[e("x"),e("y")]}var xl=["","X","Y","Z"],_l=["transformPerspective","x","y","z"];function wl(e,t){return _l.indexOf(e)-_l.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return xl.forEach(function(t){return _l.push(e+t)})});var kl=new Set(_l);function Sl(e){return kl.has(e)}var Cl=new Set(["originX","originY","originZ"]);function Ol(e){return Cl.has(e)}var Al=function(e,t){return e.depth-t.depth},Nl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){is(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ss(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Al),this.isDirty=!1,this.children.forEach(e)},e}();function Rl(e){var t=ds(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Il={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pl(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.resetTransform;return function(){function e(e,t,r){var a=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(Bl),a.nodes.forEach(Fl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ma(Ma([],Da(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ls),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ma([],Da(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var u,c=function(){return a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Il.hasAnimatedSinceResize&&(Il.hasAnimatedSinceResize=!1,a.nodes.forEach(jl))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var f=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:ql,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!a.targetLayout||!hl(a.targetLayout,d)||c,y=!u&&c;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=Ta(Ta({},Is(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}else u||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(i=(o=a.options).onExitComplete)||void 0===i||i.call(o));a.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,yo.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(zl))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ml);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Yl),this.potentialNodes.clear()),this.nodes.forEach(Vl),this.nodes.forEach(Tl),this.nodes.forEach(Ll),this.clearAllSnapshots(),go.update(),go.preRender(),go.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Dl),this.sharedNodes.forEach(Hl)},e.prototype.scheduleUpdateProjection=function(){ho.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;ho.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));Gl(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();Gl(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!vl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||$s(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ks(t.x,n.x),Ks(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Hs(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll;r!==this.root&&a&&r.options.layoutScroll&&(Ks(t.x,a.x),Ks(t.y,a.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Hs(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&tl(n,{x:-a.scroll.x,y:-a.scroll.y}),$s(a.latestValues)&&tl(n,a.latestValues)}return $s(this.latestValues)&&tl(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Hs(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&$s(a.latestValues)){Us(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Hs(o,a.measure()),pl(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return $s(this.latestValues)&&pl(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ta(Ta(Ta({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,a=this.options;this.layout&&(a.layout||a.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ll(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Hs(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)?(il((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),il(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Hs(this.target,this.layout.actual),Xs(this.target,this.targetDelta)):Hs(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}},ll(this.relativeTargetOrigin,this.target,this.relativeParent.target),Hs(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!$s(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var a=this.getLead();Hs(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,o;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&tl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Xs(e,l)),r&&$s(s.latestValues)&&tl(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;ol(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=bl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=Ta({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==a?void 0:a.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some($l));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;Wl(s.x,e.x,a),Wl(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ll(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Ul(e.x,t.x,n.x,r),Ul(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,a)),u&&(r.animationValues=i,function(e,t,n,r,a,o){var i,s,l,u;a?(e.opacity=Io(0,null!==(i=n.opacity)&&void 0!==i?i:1,js(r)),e.opacityExit=Io(null!==(s=t.opacity)&&void 0!==s?s:1,0,Bs(r))):o&&(e.opacity=Io(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ls;c++){var d="border".concat(Ts[c],"Radius"),f=Vs(t,d),p=Vs(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Ms(f)===Ms(p)?(e[d]=Math.max(Io(Ds(f),Ds(p),r),0),(Wo.test(p)||Wo.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Io(t.rotate||0,n.rotate||0,r))}(i,o,r.latestValues,a,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(yo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ho.update(function(){Il.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ds(0)?0:cs(0);return Ps("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ta(Ta({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(Hs(t,n),tl(t,r),ol(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new yl),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<xl.length;r++)e.getStaticValue(a="rotate"+xl[r])&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,o,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Rl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Rl(e.pointerEvents)||""),this.hasProjected&&!$s(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=bl(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=u.animationValues?u===this?null!==(a=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,gl)if(void 0!==d[v]){var h=gl[v],y=h.applyTo,g=(0,h.correct)(d[v],u);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=u===this?Rl(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(Ml),this.root.sharedNodes.clear()},e}()}function Tl(e){e.updateLayout()}function Ll(e){var t,n,r,a,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?El(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=nl(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&El(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=nl(s[e]);t.max=t.min+n});var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ol(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?ol(c,e.applyTransform(l,!0),o.measured):ol(c,s,o.layout);var d=!vl(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};ll(h,o.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};ll(y,s,v.actual),hl(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function Dl(e){e.clearSnapshot()}function Ml(e){e.clearMeasurements()}function Vl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function jl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Bl(e){e.resolveTargetDelta()}function Fl(e){e.calcProjection()}function zl(e){e.resetRotation()}function Hl(e){e.removeLeadSnapshot()}function Wl(e,t,n){e.translate=Io(t.translate,0,n),e.scale=Io(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ul(e,t,n,r){e.min=Io(t.min,n.min,r),e.max=Io(t.max,n.max,r)}function $l(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var ql={duration:.45,ease:[.4,0,.1,1]};function Yl(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function Zl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Gl(e){Zl(e.x),Zl(e.y)}var Xl=1,Kl=F.createContext({}),Jl=F.createContext({}),Ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pa(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 eu(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Ba.projectionNodeConstructor=e[t]:Ba[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=F.useContext(Kl))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Ta(Ta({},e),{layoutId:l});var u=F.useContext($a),c=null,d=function(e){var t=function(e,t){if(ro(e)){var n=e.initial,r=e.animate;return{initial:!1===n||eo(n)?n:void 0,animate:eo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(qa)),n=t.initial,r=t.animate;return F.useMemo(function(){return{initial:n,animate:r}},[oo(n),oo(r)])}(e),f=u.isStatic?void 0:io(function(){if(Il.hasEverUpdated)return Xl++}),p=o(e,u.isStatic);return!u.isStatic&&Za&&(d.visualElement=function(e,t,n,r){var a,o,i=F.useContext(Ha),s=F.useContext(qa).visualElement,l=F.useContext(Ya),u=(!Ka&&function(){if(Ka=!0,Za)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Xa.current=e.matches};e.addListener(t),t()}else Xa.current=!1}(),a=Da(F.useState(Xa.current),1)[0],"never"!==(o=F.useContext($a).reducedMotion)&&("always"===o||a)),c=F.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:u}));var d=c.current;return Ga(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Ga(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,Ta(Ta({},u),e),n),function(e,t,n,r){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=F.useContext(Jl);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Ja(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:c,layoutScroll:u}))}(f,e,d.visualElement,r||Ba.projectionNodeConstructor),c=function(e,t,n){var r=[],a=F.useContext(Ha);if(!t)return null;"production"!==Va&&n&&a.strict&&za(!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<Ua;o++){var i=Wa[o],s=Ba[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(F.createElement(l,Ta({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),F.createElement(Ql,{visualElement:d.visualElement,props:Ta(Ta({},u),e)},c,F.createElement(qa.Provider,{value:d},a(i,e,f,function(e,t,n){return F.useCallback(function(r){var a;r&&(null===(a=e.mount)||void 0===a||a.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ja(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,u.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var tu=["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 nu(e){return"string"==typeof e&&!e.includes("-")&&!!(tu.indexOf(e)>-1||/[A-Z]/.test(e))}function ru(e,t){var n=t.layout,r=t.layoutId;return Sl(e)||Ol(e)||(n||void 0!==r)&&(!!gl[e]||"opacity"===e)}var au={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ou(e){return e.startsWith("--")}var iu=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function su(e,t,n,r){var a,o=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(ou(p))i[p]=m;else{var v=ws[p],h=iu(m,v);if(Sl(p)){if(c=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(f=!1)}else Ol(p)?(u[p]=h,d=!0):o[p]=h}}c?o.transform=function(e,t,n,r){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(wl);for(var d=!1,f=o.length,p=0;p<f;p++){var m=o[p];c+="".concat(au[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(a,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(o)}(u))}function lu(e,t,n){for(var r in t)ds(t[r])||ru(r,n)||(e[r]=t[r])}function uu(e,t,n){var r={},a=function(e,t,n){var r={};return lu(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};su(e,t,{enableHardwareAcceleration:!n},r);var a=e.style;return Ta(Ta({},e.vars),a)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var cu=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 du(e){return cu.has(e)}var fu,pu=function(e){return!du(e)};try{(fu=require("@emotion/is-prop-valid").default)&&(pu=function(e){return e.startsWith("on")?!du(e):fu(e)})}catch(e){}function mu(e,t,n){return"string"==typeof e?e:Uo.transform(t+n*e)}var vu={offset:"stroke-dashoffset",array:"stroke-dasharray"},hu={offset:"strokeDashoffset",array:"strokeDasharray"};function yu(e,t,n,r){var a=t.attrX,o=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;su(e,La(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=mu(t,e.x,e.width),a=mu(n,e.y,e.height);return"".concat(r," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?vu:hu;e[o.offset]=Uo.transform(-r);var i=Uo.transform(t),s=Uo.transform(n);e[o.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var gu=function(){return Ta(Ta({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function bu(e,t){var n=F.useMemo(function(){var n=gu();return yu(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Ta(Ta({},n.attrs),{style:Ta({},n.style)})},[t]);if(e.style){var r={};lu(r,e.style,e),n.style=Ta(Ta({},r),n.style)}return n}function Eu(e){return void 0===e&&(e=!1),function(t,n,r,a,o,i){var s=o.latestValues,l=(nu(t)?bu:uu)(n,s,i),u=function(e,t,n){var r={};for(var a in e)(pu(a)||!0===n&&du(a)||!t&&!du(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),c=Ta(Ta(Ta({},u),l),{ref:a});return r&&(c["data-projection-id"]=r),F.createElement(t,c)}}var xu=/([a-z])([A-Z])/g,_u=function(e){return e.replace(xu,"$1-$2").toLowerCase()};function wu(e,t,n,r){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),o)e.style.setProperty(i,o[i])}var ku=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Su(e,t,n,r){for(var a in wu(e,t,void 0,r),t.attrs)e.setAttribute(ku.has(a)?a:_u(a),t.attrs[a])}function Cu(e){var t=e.style,n={};for(var r in t)(ds(t[r])||ru(r,e))&&(n[r]=t[r]);return n}function Ou(e){var t=Cu(e);for(var n in e)ds(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Au(e){return"object"==typeof e&&"function"==typeof e.start}function Nu(e,t,n,r){var a=e.createRenderState,o=e.onMount,i={latestValues:Iu(t,n,r,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var Ru=function(e){return function(t,n){var r=F.useContext(qa),a=F.useContext(Ya);return n?Nu(e,t,r,a):io(function(){return Nu(e,t,r,a)})}};function Iu(e,t,n,r){var a={},o=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)a[s]=Rl(i[s]);var l=e.initial,u=e.animate,c=ro(e),d=ao(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=o||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Au(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=to(e,t);if(n){var r=n.transitionEnd,o=La(n,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in r)a[i]=r[i]}}),a}var Pu,Tu={useVisualState:Ru({scrapeMotionValuesFromProps:Ou,createRenderState:gu,onMount:function(e,t,n){var r=n.renderState,a=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}yu(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),Su(t,r)}})},Lu={useVisualState:Ru({scrapeMotionValuesFromProps:Cu,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Du(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Mu(e,t,n,r){F.useEffect(function(){var a=e.current;if(n&&a)return Du(a,t,n,r)},[e,t,n,r])}function Vu(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function ju(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Pu||(Pu={}));var Bu={pageX:0,pageY:0};function Fu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Bu;return{x:n[t+"X"],y:n[t+"Y"]}}function zu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Hu(e,t){return void 0===t&&(t="page"),{point:ju(e)?Fu(e,t):zu(e,t)}}var Wu=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Hu(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Uu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},$u={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function qu(e){return Za&&null===window.onpointerdown?e:Za&&null===window.ontouchstart?$u[e]:Za&&null===window.onmousedown?Uu[e]:e}function Yu(e,t,n,r){return Du(e,qu(t),Wu(n,"pointerdown"===t),r)}function Zu(e,t,n,r){return Mu(e,qu(t),n&&Wu(n,"pointerdown"===t),r)}function Gu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Xu=Gu("dragHorizontal"),Ku=Gu("dragVertical");function Ju(e){var t=!1;if("y"===e)t=Ku();else if("x"===e)t=Xu();else{var n=Xu(),r=Ku();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Qu(){var e=Ju(!0);return!e||(e(),!1)}function ec(e,t,n){return function(r,a){var o;Vu(r)&&!Qu()&&(null===(o=e.animationState)||void 0===o||o.setActive(Pu.Hover,t),null==n||n(r,a))}}var tc=function(e,t){return!!t&&(e===t||tc(e,t.parentElement))};function nc(e){return F.useEffect(function(){return function(){return e()}},[])}var rc=new Set;function ac(e,t,n){e||rc.has(t)||(console.warn(t),n&&console.warn(n),rc.add(t))}var oc=new WeakMap,ic=new WeakMap,sc=function(e){var t;null===(t=oc.get(e.target))||void 0===t||t(e)},lc=function(e){e.forEach(sc)},uc={some:0,all:1};function cc(e,t,n,r){var a=r.root,o=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;F.useEffect(function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:uc[s]};return function(e,r,a){var o=function(e){var t=e.root,n=La(e,["root"]),r=t||document;ic.has(r)||ic.set(r,{});var a=ic.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(lc,Ta({root:t},n))),a[o]}(r);return oc.set(e,function(e){var r,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Pu.InView,a);var o=n.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){oc.delete(e),o.unobserve(e)}}(n.getInstance(),r)}},[e,a,o,s])}function dc(e,t,n,r){var a=r.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==Va&&ac(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Pu.InView,!0)}))},[e])}var fc=function(e){return function(t){return e(t),null}},pc={inView:fc(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?dc:cc)(l,s.current,t,i)}),tap:fc(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.visualElement,o=t||n||r||e.whileTap,i=F.useRef(!1),s=F.useRef(null),l={passive:!(n||t||r||p)};function u(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function c(){var e;return u(),i.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Pu.Tap,!1),!Qu()}function d(e,n){c()&&(tc(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){c()&&(null==r||r(e,t))}function p(e,t){var r;u(),i.current||(i.current=!0,s.current=Ei(Yu(window,"pointerup",d,l),Yu(window,"pointercancel",f,l)),null===(r=a.animationState)||void 0===r||r.setActive(Pu.Tap,!0),null==n||n(e,t))}Zu(a,"pointerdown",o?p:void 0,l),nc(u)}),focus:fc(function(e){var t=e.whileFocus,n=e.visualElement;Mu(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Pu.Focus,!0)}:void 0),Mu(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Pu.Focus,!1)}:void 0)}),hover:fc(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;Zu(a,"pointerenter",t||r?ec(a,!0,t):void 0,{passive:!t}),Zu(a,"pointerleave",n||r?ec(a,!1,n):void 0,{passive:!n})})},mc=0,vc=function(){return mc++},hc=function(){return io(vc)};function yc(){var e=F.useContext(Ya);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=hc();return F.useEffect(function(){return r(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function gc(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var bc=function(e){return/^\-?\d*\.?\d+$/.test(e)},Ec=function(e){return/^0[^.\s]+$/.test(e)},xc=function(e){return function(t){return t.test(e)}},_c=[jo,Uo,Wo,Ho,qo,$o,{test:function(e){return"auto"===e},parse:function(e){return e}}],wc=function(e){return _c.find(xc(e))},kc=Ma(Ma([],Da(_c),!1),[ti,ii],!1),Sc=function(e){return kc.find(xc(e))};function Cc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,cs(n))}function Oc(e,t){if(t)return(t[e]||t.default||t).from}function Ac(e,t,n){var r;void 0===n&&(n={});var a=no(e,t,n.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);var s=a?function(){return Nc(e,a,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var a=i.delayChildren;return function(e,t,n,r,a,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===a?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Rc).forEach(function(e,r){i.push(Ac(e,t,Ta(Ta({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Da("beforeChildren"===u?[s,l]:[l,s],2),d=c[1];return(0,c[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Nc(e,t,n){var r,a=void 0===n?{}:n,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=La(u,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Ic(v,h))){var b=Ta({delay:i},d);e.shouldReduceMotion&&Sl(h)&&(b=Ta(Ta({},b),{type:!1,delay:0}));var E=Ps(h,y,g,b);m.push(E)}}return Promise.all(m).then(function(){f&&function(e,t){var n=no(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,o=void 0===a?{}:a,i=La(r,["transitionEnd","transition"]);for(var s in i=Ta(Ta({},i),o))Cc(e,s,Os(i[s]))}(e,f)})}function Rc(e,t){return e.sortNodePosition(t)}function Ic(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var Pc=[Pu.Animate,Pu.InView,Pu.Focus,Pu.Hover,Pu.Tap,Pu.Drag,Pu.Exit],Tc=Ma([],Da(Pc),!1).reverse(),Lc=Pc.length;function Dc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Mc={animation:fc(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map(function(t){return Ac(e,t,n)});r=Promise.all(a)}else if("string"==typeof t)r=Ac(e,t,n);else{var o="function"==typeof t?no(e,t,n.custom):t;r=Nc(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[Pu.Animate]=Dc(!0),t[Pu.InView]=Dc(),t[Pu.Hover]=Dc(),t[Pu.Tap]=Dc(),t[Pu.Drag]=Dc(),t[Pu.Focus]=Dc(),t[Pu.Exit]=Dc(),t),a={},o=!0,i=function(t,n){var r=no(e,n);if(r){var a=r.transitionEnd,o=La(r,["transition","transitionEnd"]);t=Ta(Ta(Ta({},t),o),a)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var a=Tc[n],v=r[a],h=null!==(l=u[a])&&void 0!==l?l:c[a],y=eo(h),g=a===s?v.isActive:null;!1===g&&(m=n);var b=h===c[a]&&h!==u[a]&&y;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=Ta({},p),!v.isActive&&null===g||!h&&!v.prevProp||Au(h)||"boolean"==typeof h)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!Qa(t)&&!gc(t,e)}(v.prevProp,h),x=E||a===s&&v.isActive&&!b&&y||n>m&&y,_=Array.isArray(h)?h:[h],w=_.reduce(i,{});!1===g&&(w={});var k=v.prevResolvedValues,S=void 0===k?{}:k,C=Ta(Ta({},S),w),O=function(e){x=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in C){var N=w[A],R=S[A];p.hasOwnProperty(A)||(N!==R?hs(N)&&hs(R)?!gc(N,R)||E?O(A):v.protectedKeys[A]=!0:void 0!==N?O(A):f.add(A):void 0!==N&&f.has(A)?O(A):v.protectedKeys[A]=!0)}v.prevProp=h,v.prevResolvedValues=w,v.isActive&&(p=Ta(Ta({},p),w)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Ma([],Da(_.map(function(e){return{animation:e,options:Ta({type:a},t)}})),!1))},h=0;h<Lc;h++)v(h);if(a=Ta({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(a,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Au(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:fc(function(e){var t=e.custom,n=e.visualElement,r=Da(yc(),2),a=r[0],o=r[1],i=F.useContext(Ya);F.useEffect(function(){var e,r;n.isPresent=a;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Pu.Exit,!a,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!a&&(null==s||s.then(o))},[a])})},Vc=function(){function e(e,t,n){var r=this,a=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Fc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=es(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,o=_o().timestamp;r.history.push(Ta(Ta({},a),{timestamp:o}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=jc(t,r.transformPagePoint),Vu(e)&&0===e.buttons?r.handlePointerUp(e,t):ho.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,o=n.onSessionEnd,i=Fc(jc(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,i),o&&o(e,i)},!(ju(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=jc(Hu(e),this.transformPagePoint),i=o.point,s=_o().timestamp;this.history=[Ta(Ta({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Fc(o,this.history)),this.removeListeners=Ei(Yu(window,"pointermove",this.handlePointerMove),Yu(window,"pointerup",this.handlePointerUp),Yu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),yo.update(this.updatePoint)},e}();function jc(e,t){return t?{point:t(e.point)}:e}function Bc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fc(e,t){var n=e.point;return{point:n,delta:Bc(n,Hc(t)),offset:Bc(n,zc(t)),velocity:Wc(t,.1)}}function zc(e){return e[0]}function Hc(e){return e[e.length-1]}function Wc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=Hc(e);n>=0&&!(a.timestamp-(r=e[n]).timestamp>fs(t));)n--;if(!r)return{x:0,y:0};var o=(a.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Uc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function $c(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Da([a,r],2))[0],a=n[1]),{min:r,max:a}}function qc(e,t,n){return{min:Yc(e,t),max:Yc(e,n)}}function Yc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Zc(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Gc(e,t){return Zc(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Xc=new WeakMap,Kc=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Vc(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(Hu(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ju(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),El(function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(Wo.test(a)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(a=nl(o)*(parseFloat(a)/100))}n.originPoint[e]=a}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Pu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.onDirectionLock,o=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==o||o(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Pu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Jc(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?Io(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Io(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Ja(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.bottom;return{x:Uc(e.x,t.left,t.right),y:Uc(e.y,n,r)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:qc(e,"left","right"),y:qc(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&El(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ja(t))return!1;var r=t.current;za(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=Gc(e,n),a=t.scroll;return a&&(Ks(r.x,a.x),Ks(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:$c(e.x,t.x),y:$c(e.y,t.y)}}(a.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=Zc(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=El(function(n){var l;if(Jc(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=Ta(Ta({type:"inertia",velocity:a?e[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,d)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Ps(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;El(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;El(function(n){if(Jc(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n];a.set(e[n]-Io(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=this.visualElement.projection;if(Ja(n.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};El(function(e){var n,r,a,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();o[e]=(r=t.constraints[e],a=.5,i=nl(n={min:u,max:u}),(s=nl(r))>i?a=Ro(r.min,r.max-i,n.min):i>s&&(a=Ro(n.min,n.max-s,r.min)),wo(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(),El(function(e){if(Jc(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e];n.set(Io(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Xc.set(this.visualElement,this);var n=Yu(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Ja(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=Du(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(El(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?.35:u,d=e.dragMomentum,f=void 0===d||d;return Ta(Ta({},e),{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Jc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Qc={pan:fc(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||n||r||a,s=F.useRef(null),l=F.useContext($a).transformPagePoint,u={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),Zu(o,"pointerdown",i&&function(e){s.current=new Vc(e,u,{transformPagePoint:l})}),nc(function(){return s.current&&s.current.end()})}),drag:fc(function(e){var t=e.dragControls,n=e.visualElement,r=io(function(){return new Kc(n)});F.useEffect(function(){return t&&t.subscribe(r)},[r,t]),F.useEffect(function(){return r.addListeners()},[r])})},ed=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],td=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,o=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=h.latestValues,_=h.renderState,w=function(){var e=ed.map(function(){return new ls}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){ed.forEach(function(r){var a,o="on"+r,i=e[o];null===(a=t[r])||void 0===a||a.call(t),i&&(t[r]=n[o](i))})}};return e.forEach(function(e,t){n["on"+ed[t]]=function(t){return e.add(t)},n["notify"+ed[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ma([],Da(t),!1))}}),n}(),k=new Map,S=new Map,C={},O=Ta({},x);function A(){g&&E&&(N(),s(g,_,p.style,V.projection))}function N(){r(V,_,x,t,p)}function R(){w.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&ho.update(R,!1,!0)}),r=t.onRenderRequest(V.scheduleRender);S.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==x[T]&&ds(L)&&L.set(x[T],!1)}var D=ro(p),M=ao(p),V=Ta(Ta({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=V.current=e,V.projection&&V.projection.mount(e),M&&f&&!D&&(b=null==f?void 0:f.addVariantChild(V)),k.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(V),V.setProps(p)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),yo.update(R),yo.render(A),S.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(V),w.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=V.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?V:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(V,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),k.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],u(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=cs(t),V.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(a){var t=a(p,e);if(void 0!==t&&!ds(t))return t}return O[e]}},w),{build:function(){return N(),_},scheduleRender:function(){ho.render(A,!1,!0)},syncRender:A,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&V.scheduleRender(),p=e,w.updatePropListeners(e),C=function(e,t,n){var r;for(var a in t){var o=t[a],i=n[a];if(ds(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&ac("6.3.10"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.10 may not work as expected."));else if(ds(i))e.addValue(a,cs(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,cs(null!==(r=e.getStaticValue(a))&&void 0!==r?r:o))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(V,d(p),C)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<rd;r++){var a=nd[r],o=p[a];(eo(o)||!1===o)&&(n[a]=o)}return n}});return V}},nd=Ma(["initial"],Da(Pc),!1),rd=nd.length;function ad(e){return"string"==typeof e&&e.startsWith("var(--")}var od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function id(e,t,n){void 0===n&&(n=1),za(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Da(function(e){var t=od.exec(e);if(!t)return[,];var n=Da(t,3);return[n[1],n[2]]}(e),2),a=r[0],o=r[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():ad(o)?id(o,t,n+1):o}}var sd,ld=new Set(["width","height","top","left","right","bottom","x","y"]),ud=function(e){return ld.has(e)},cd=function(e,t){e.set(t,!1),e.set(t)},dd=function(e){return e===jo||e===Uo};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(sd||(sd={}));var fd=function(e,t){return parseFloat(e.split(", ")[t])},pd=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return fd(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?fd(i[1],e):0}},md=new Set(["x","y","z"]),vd=_l.filter(function(e){return!md.has(e)}),hd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:pd(4,13),y:pd(5,14)},yd={treeType:"dom",readValueFromInstance:function(e,t){if(Sl(t)){var n=Ss(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(ou(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Gc(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var a=n.transformValues;void 0===r&&(r=!0);var o=t.transition,i=t.transitionEnd,s=La(t,["transition","transitionEnd"]),l=function(e,t,n){var r,a,o={};for(var i in e)o[i]=null!==(r=Oc(i,t))&&void 0!==r?r:null===(a=n.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),r){!function(e,t,n){var r,a,o,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(a=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==a?a:t[c]),null!=f&&("string"==typeof f&&(bc(f)||Ec(f))?f=parseFloat(f):!Sc(f)&&ii.test(d)&&(f=Cs(c,d)),e.addValue(c,cs(f)),null!==(o=(i=n)[c])&&void 0!==o||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var a=function(e,t,n){var r,a=La(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:n};for(var i in n&&(n=Ta({},n)),e.forEachValue(function(e){var t=e.get();if(ad(t)){var n=id(t,o);n&&e.set(n)}}),a){var s=a[i];if(ad(s)){var l=id(s,o);l&&(a[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(ud)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ta({},t),r=Ta({},r);var a=Object.keys(t).filter(ud),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var u,c=n[a],d=wc(c),f=t[a];if(hs(f)){var p=f.length,m=null===f[0]?1:0;d=wc(c=f[m]);for(var v=m;v<p;v++)u?za(wc(f[v])===u,"All keyframes must be of the same type"):(u=wc(f[v]),za(u===d||dd(d)&&dd(u),"Keyframes must be of the same dimension as the current value"))}else u=wc(f);if(d!==u)if(dd(d)&&dd(u)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[a]=parseFloat(f):Array.isArray(f)&&u===Uo&&(t[a]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[a]=d.transform(f):(i||(o=function(e){var t=[];return vd.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(a),r[a]=void 0!==r[a]?r[a]:t[a],cd(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=hd[e](r,o)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);cd(r,i[n]),e[n]=hd[n](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=Da(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=a.target,n,r=a.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return Ta({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:Cu,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),su(t,n,r,a.transformTemplate)},render:wu},gd=td(yd),bd=td(Ta(Ta({},yd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Sl(t)?(null===(n=Ss(t))||void 0===n?void 0:n.default)||0:(t=ku.has(t)?t:_u(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ou,build:function(e,t,n,r,a){yu(t,n,r,a.transformTemplate)},render:Su})),Ed=function(e,t){return nu(e)?bd(t,{enableHardwareAcceleration:!1}):gd(t,{enableHardwareAcceleration:!0})};function xd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var _d={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Uo.test(e))return e;e=parseFloat(e)}var n=xd(e,t.target.x),r=xd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},wd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(od,function(e){return i.push(e),"_$css"}));var s=ii.parse(e);if(s.length>5)return a;var l=ii.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=Io(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(o){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pa(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(gl,Sd),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==r?void 0:r.register)&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(Ta(Ta({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),Il.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.drag,o=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ho.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(F.Component),Sd={borderRadius:Ta(Ta({},_d),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:_d,borderTopRightRadius:_d,borderBottomLeftRadius:_d,borderBottomRightRadius:_d,boxShadow:wd},Cd={measureLayout:function(e){var t=Da(yc(),2),n=t[0],r=t[1],a=F.useContext(Kl);return F.createElement(kd,Ta({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(Jl),isPresent:n,safeToRemove:r}))}},Od=Pl({attachResizeListener:function(e,t){return Du(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Ad={current:void 0},Nd=Pl({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Ad.current){var e=new Od(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ad.current=e}return Ad.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Rd=Ta(Ta(Ta(Ta({},Mc),pc),Qc),Cd),Id=/*@__PURE__*/eu(function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=nu(e)?Tu:Lu;return Ta(Ta({},s),{preloadedFeatures:n,useRender:Eu(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,Rd,Ed,Nd)});function Pd(){var e=F.useRef(!1);return Ga(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Td=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=io(Ld),l=hc(),u=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:o,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),F.useEffect(function(){!r&&!s.size&&(null==a||a())},[r]),F.createElement(Ya.Provider,{value:u},t)};function Ld(){return new Map}var Dd=function(e){return e.key||""},Md=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,u=Da(function(){var e=Pd(),t=Da(F.useState(0),2),n=t[0],r=t[1],a=F.useCallback(function(){e.current&&r(n+1)},[n]);return[F.useCallback(function(){return ho.postRender(a)},[a]),n]}(),1),c=u[0],d=F.useContext(Kl).forceRender;d&&(c=d);var f=Pd(),p=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=F.useRef(m),y=F.useRef(new Map).current,g=F.useRef(!0);if(Ga(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Dd(e);t.set(n,e)})}(p,y),h.current=m}),nc(function(){g.current=!0,y.clear(),v.clear()}),g.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(Td,{key:Dd(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=Ma([],Da(m),!1);for(var b=h.current.map(Dd),E=p.map(Dd),x=b.length,_=0;_<x;_++){var w=b[_];-1===E.indexOf(w)&&v.add(w)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,F.createElement(Td,{key:Dd(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;c(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(Td,{key:Dd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==Va&&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 Vd(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(this,arguments)}var Bd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Fd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},zd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Hd={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Wd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function Ud(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return zd;case"left":return Fd;case"bottom":return Wd;case"top":return Hd}}var $d={enter:{duration:.2,ease:Bd.easeOut},exit:{duration:.1,ease:Bd.easeIn}},qd=function(e,n){return jd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},Yd=function(e,n){return jd({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},Zd=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],Gd={exit:{height:{duration:.2,ease:Bd.ease},opacity:{duration:.3,ease:Bd.ease}},enter:{height:{duration:.3,ease:Bd.ease},opacity:{duration:.4,ease:Bd.ease}}},Xd={exit:function(e){var t,n,r=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return jd({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:Yd(Gd.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return jd({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:qd(Gd.enter,e.delay)})}},Kd=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,u=e.endingHeight,c=void 0===u?"auto":u,d=e.style,f=e.className,p=e.transition,m=e.transitionEnd,v=Vd(e,Zd),h=F.useState(!1),y=h[0],g=h[1];F.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,E={startingHeight:l,endingHeight:c,animateOpacity:i,transition:y?p:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},x=r||a?"enter":"exit";/*#__PURE__*/
|
8
|
-
return F.createElement(
|
9
|
-
return F.createElement(
|
10
|
-
return F.createElement(
|
11
|
-
return F.createElement(
|
12
|
-
return F.createElement(
|
13
|
-
return F.createElement(
|
14
|
-
return F.createElement(
|
15
|
-
return F.createElement(
|
16
|
-
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(
|
17
|
-
return F.createElement(
|
18
|
-
return F.createElement(
|
19
|
-
return F.createElement(
|
20
|
-
return F.createElement(
|
21
|
-
return F.createElement(
|
22
|
-
return F.createElement(
|
23
|
-
return F.createElement(
|
24
|
-
return F.createElement(
|
25
|
-
return F.createElement(
|
26
|
-
return F.createElement(
|
27
|
-
return F.createElement(
|
28
|
-
return F.createElement(
|
29
|
-
return F.cloneElement(n,"Input"!==n.type.id?o:Object.assign(o,
|
30
|
-
return F.createElement(
|
31
|
-
return F.createElement(
|
32
|
-
return F.createElement(
|
33
|
-
return F.createElement(
|
34
|
-
return F.createElement(
|
35
|
-
return F.createElement(
|
36
|
-
return F.createElement(
|
37
|
-
return F.createElement(
|
38
|
-
return F.createElement(
|
39
|
-
return F.createElement(
|
40
|
-
return F.createElement(
|
41
|
-
return F.createElement(
|
42
|
-
return F.createElement(
|
43
|
-
return F.createElement(
|
44
|
-
return F.createElement(
|
45
|
-
return F.createElement(
|
46
|
-
return F.createElement(
|
47
|
-
return F.createElement(
|
48
|
-
return F.createElement(
|
49
|
-
return F.createElement(
|
50
|
-
return F.createElement(
|
51
|
-
return F.createElement(
|
52
|
-
return F.createElement(
|
53
|
-
return F.createElement(
|
54
|
-
return F.createElement(
|
55
|
-
return F.createElement(
|
56
|
-
return F.createElement(
|
57
|
-
return F.createElement(
|
58
|
-
return F.createElement(
|
59
|
-
return F.createElement(
|
60
|
-
return F.createElement(
|
61
|
-
return F.createElement(
|
62
|
-
return F.createElement(ga.li,fm({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",r)},a))});function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lv.apply(this,arguments)}t.__DEV__&&(sv.displayName="WrapItem");var uv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function cv(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var dv="top",fv="bottom",pv="right",mv="left",vv=[dv,fv,pv,mv],hv=/*#__PURE__*/vv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),yv=/*#__PURE__*/[].concat(vv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),gv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bv(e){return e?(e.nodeName||"").toLowerCase():null}function Ev(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xv(e){return e instanceof Ev(e).Element||e instanceof Element}function _v(e){return e instanceof Ev(e).HTMLElement||e instanceof HTMLElement}function wv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ev(e).ShadowRoot||e instanceof ShadowRoot)}function kv(e){return e.split("-")[0]}var Sv=Math.max,Cv=Math.min,Ov=Math.round;function Av(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(_v(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Ov(n.width)/i||1),o>0&&(a=Ov(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Nv(e){var t=Av(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Iv(e){return Ev(e).getComputedStyle(e)}function Pv(e){return["table","td","th"].indexOf(bv(e))>=0}function Tv(e){return((xv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lv(e){return"html"===bv(e)?e:e.assignedSlot||e.parentNode||(wv(e)?e.host:null)||Tv(e)}function Dv(e){return _v(e)&&"fixed"!==Iv(e).position?e.offsetParent:null}function Mv(e){for(var t=Ev(e),n=Dv(e);n&&Pv(n)&&"static"===Iv(n).position;)n=Dv(n);return n&&("html"===bv(n)||"body"===bv(n)&&"static"===Iv(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_v(e)&&"fixed"===Iv(e).position)return null;var n=Lv(e);for(wv(n)&&(n=n.host);_v(n)&&["html","body"].indexOf(bv(n))<0;){var r=Iv(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Vv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jv(e,t,n){return Sv(e,Cv(t,n))}function Bv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fv(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function zv(e){return e.split("-")[1]}var Hv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof c?c({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=mv,E=dv,x=window;if(u){var _=Mv(n),w="clientHeight",k="clientWidth";_===Ev(n)&&"static"!==Iv(_=Tv(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth"),(a===dv||(a===mv||a===pv)&&"end"===o)&&(E=fv,v-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[w])-r.height,v*=l?1:-1),a!==mv&&(a!==dv&&a!==fv||"end"!==o)||(b=pv,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-r.width,p*=l?1:-1)}var S,C=Object.assign({position:s},u&&Hv),O=!0===c?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Ov(e.x*n)/n||0,y:Ov(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=O.x,v=O.y,Object.assign({},C,l?((S={})[E]=g?"0":"",S[b]=y?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",S):((t={})[E]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Uv={passive:!0},$v={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=Ev(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,Uv)}),s&&l.addEventListener("resize",n.update,Uv),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Uv)}),s&&l.removeEventListener("resize",n.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 Zv={start:"end",end:"start"};function Gv(e){return e.replace(/start|end/g,function(e){return Zv[e]})}function Xv(e){var t=Ev(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kv(e){return Av(Tv(e)).left+Xv(e).scrollLeft}function Jv(e){var t=Iv(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:_v(e)&&Jv(e)?e:Qv(Lv(e))}function eh(e,t){var n;void 0===t&&(t=[]);var r=Qv(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Ev(r),i=a?[o].concat(o.visualViewport||[],Jv(r)?r:[]):r,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 nh(e,t){return"viewport"===t?th(function(e){var t=Ev(e),n=Tv(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+Kv(e),y:s}}(e)):xv(t)?function(e){var t=Av(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,n=Tv(e),r=Xv(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Sv(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Sv(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+Kv(e),l=-r.scrollTop;return"rtl"===Iv(a||n).direction&&(s+=Sv(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(Tv(e)))}function rh(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?kv(a):null,i=a?zv(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case dv:t={x:s,y:n.y-r.height};break;case fv:t={x:s,y:n.y+n.height};break;case pv:t={x:n.x+n.width,y:l};break;case mv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Vv(o):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ah(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.boundary,o=void 0===a?"clippingParents":a,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,u=void 0===l?"popper":l,c=t.altBoundary,d=void 0!==c&&c,f=t.padding,p=void 0===f?0:f,m=Bv("number"!=typeof p?p:Fv(p,vv)),v=e.rects.popper,h=e.elements[d?"popper"===u?"reference":"popper":u],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=eh(Lv(e)),n=["absolute","fixed"].indexOf(Iv(e).position)>=0&&_v(e)?Mv(e):e;return xv(n)?t.filter(function(e){return xv(e)&&Rv(e,n)&&"body"!==bv(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a.reduce(function(t,n){var r=nh(e,n);return t.top=Sv(r.top,t.top),t.right=Cv(r.right,t.right),t.bottom=Cv(r.bottom,t.bottom),t.left=Sv(r.left,t.left),t},nh(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}(xv(h)?h:h.contextElement||Tv(e.elements.popper),o,s),g=Av(e.elements.reference),b=rh({reference:g,element:v,strategy:"absolute",placement:r}),E=th(Object.assign({},v,b)),x="popper"===u?E:g,_={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},w=e.modifiersData.offset;if("popper"===u&&w){var k=w[r];Object.keys(_).forEach(function(e){var t=[pv,fv].indexOf(e)>=0?1:-1,n=[dv,fv].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t})}return _}function oh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?yv:i,l=zv(t.placement),u=l?o?hv:hv.filter(function(e){return zv(e)===l}):vv,c=u.filter(function(e){return s.indexOf(e)>=0});0===c.length&&(c=u,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=c.reduce(function(t,o){return t[o]=ah(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[kv(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,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=kv(h),g=l||(y!==h&&m?function(e){if("auto"===kv(e))return[];var t=Yv(e);return[Gv(e),t,Gv(t)]}(h):[Yv(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===kv(n)?oh(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],O=kv(C),A="start"===zv(C),N=[dv,fv].indexOf(O)>=0,R=N?"width":"height",I=ah(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),P=N?A?pv:mv:A?fv:dv;E[R]>x[R]&&(P=Yv(P));var T=Yv(P),L=[];if(o&&L.push(I[O]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){k=C,w=!1;break}_.set(C,L)}if(w)for(var D=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lh(e){return[dv,pv,fv,mv].some(function(t){return e[t]>=0})}var uh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=yv.reduce(function(e,n){return e[n]=function(e,t,n){var r=kv(e),a=[mv,dv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[mv,pv].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=o}},ch={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.tether,u=void 0===l||l,c=n.tetherOffset,d=void 0===c?0:c,f=ah(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=kv(t.placement),m=zv(t.placement),v=!m,h=Vv(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,_="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(g){if(o){var S,C="y"===h?dv:mv,O="y"===h?fv:pv,A="y"===h?"height":"width",N=g[h],R=N+f[C],I=N-f[O],P=u?-E[A]/2:0,T="start"===m?b[A]:E[A],L="start"===m?-E[A]:-b[A],D=t.elements.arrow,M=u&&D?Nv(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[C],B=V[O],F=jv(0,b[A],M[A]),z=v?b[A]/2-P-F-j-_.mainAxis:T-F-j-_.mainAxis,H=v?-b[A]/2+P+F+B+_.mainAxis:L+F+B+_.mainAxis,W=t.elements.arrow&&Mv(t.elements.arrow),U=null!=(S=null==w?void 0:w[h])?S:0,$=N+H-U,q=jv(u?Cv(R,N+z-U-(W?"y"===h?W.clientTop||0:W.clientLeft||0:0)):R,N,u?Sv(I,$):I);g[h]=q,k[h]=q-N}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?dv:mv],K=Z-f["x"===h?fv:pv],J=-1!==[dv,mv].indexOf(p),Q=null!=(Y=null==w?void 0:w[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+_.altAxis,te=J?Z+b[G]+E[G]-Q-_.altAxis:K,ne=u&&J?function(e,t,n){var r=jv(e,t,n);return r>n?n:r}(ee,Z,te):jv(u?ee:X,Z,u?te:K);g[y]=ne,k[y]=ne-Z}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function dh(e,t,n){void 0===n&&(n=!1);var r=_v(t),a=_v(t)&&function(e){var t=e.getBoundingClientRect(),n=Ov(t.width)/e.offsetWidth||1,r=Ov(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Tv(t),i=Av(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==bv(t)||Jv(o))&&(s=function(e){return e!==Ev(e)&&_v(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Xv(e);var t}(t)),_v(t)?((l=Av(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 fh(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||a(e)}),r}function ph(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var 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.",yh={placement:"bottom",modifiers:[],strategy:"absolute"};function gh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function bh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?yh:r;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:xv(e)?eh(e):e.contextElement?eh(e.contextElement):[],popper:eh(t)};var i,u,f,p=function(e){var t=fh(e);return gv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),u=function(e){return e.name},f=new Set,i.filter(function(e){var t=u(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),vh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(ph(mh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(ph(mh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":gv.indexOf(t.phase)<0&&console.error(ph(mh,t.name,'"phase"',"either "+gv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(ph(mh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(ph(mh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(ph(mh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(ph(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 "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(ph('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===kv(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=Iv(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:c,options:void 0===t?{}:t});l.push(r||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(gh(t,n)){s.rects={reference:dh(t,Mv(n),"fixed"===s.options.strategy),popper:Nv(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,a=0;a<s.orderedModifiers.length;a++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:c})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(hh)}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),u=!0}};if(!gh(e,t))return"production"!==process.env.NODE_ENV&&console.error(hh),c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var Eh=/*#__PURE__*/bh({defaultModifiers:[$v,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=rh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var u=Iv(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return u.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:kv(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,Wv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];_v(a)&&bv(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});_v(r)&&bv(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},uh,ih,ch,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=kv(n.placement),l=Vv(s),u=[mv,pv].indexOf(s)>=0?"height":"width";if(o&&i){var c=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,n),d=Nv(o),f="y"===l?dv:mv,p="y"===l?fv:pv,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],h=Mv(o),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[u]/2+(m/2-v/2),b=jv(c[f],g,y-d[u]-c[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(_v(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Rv(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ah(t,{elementContext:"reference"}),s=ah(t,{altBoundary:!0}),l=sh(i,r),u=sh(s,a,o),c=lh(l),d=lh(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}var _h=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},wh={arrowShadowColor:_h("--popper-arrow-shadow-color"),arrowSize:_h("--popper-arrow-size","8px"),arrowSizeHalf:_h("--popper-arrow-size-half"),arrowBg:_h("--popper-arrow-bg"),transformOrigin:_h("--popper-transform-origin"),arrowOffset:_h("--popper-arrow-offset")},kh={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){Ah(e.state)},effect:function(e){var t=e.state;return function(){Ah(t)}}},Ah=function(e){e.elements.popper.style.setProperty(wh.transformOrigin.var,kh[e.placement])},Nh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Rh(e.state)}},Rh=function(e){var t;if(e.placement){var n=Ih(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,a;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=wh.arrowSize.varRef,r.height=wh.arrowSize.varRef,r.zIndex=-1,r));var o=((a={})[wh.arrowSizeHalf.var]="calc("+wh.arrowSize.varRef+" / 2)",a[wh.arrowOffset.var]="calc("+wh.arrowSizeHalf.varRef+" * -1)",a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},Ih=function(e){return e.startsWith("top")?{property:"bottom",value:wh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:wh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:wh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:wh.arrowOffset.varRef}:void 0},Ph={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Th(e.state)},effect:function(e){var t=e.state;return function(){Th(t)}}},Th=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:wh.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 Vh(e){var t=e.size,n=e.shadowColor,r=e.bg,a=xh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jh.apply(this,arguments)}function Bh(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Fh=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],zh=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],Hh=["type","isChecked"],Wh=["children","type","value","defaultValue","onChange"],Uh=kf(),$h=Uh[0],qh=Uh[1],Yh=Uh[2],Zh=Uh[3],Gh=en({strict:!1,name:"MenuContext"}),Xh=Gh[0],Kh=Gh[1];function Jh(e){var n;return t.isHTMLElement(e)&&!(null==(n=e.getAttribute("role"))||!n.startsWith("menuitem"))}function Qh(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,u=e.closeOnSelect,c=e.type,d=Bh(e,zh),f=Kh(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,E=F.useRef(null),x=b+"-menuitem-"+cn(),_=Zh({disabled:s&&!l}),w=_.index,k=_.register,S=F.useCallback(function(e){null==r||r(e),s||p(w)},[p,w,s,r]),C=F.useCallback(function(e){null==a||a(e),E.current&&!t.isActiveElement(E.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),A=F.useCallback(function(e){null==i||i(e),Jh(e.currentTarget)&&(null!=u?u:v)&&h()},[h,i,v,u]),N=w===m,R=s&&!l;dn(function(){g&&(N&&!R&&E.current?t.focus(E.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!t.isActiveElement(y.current)&&t.focus(y.current,{preventScroll:!1}))},[N,R,y,g]);var I=function(e){void 0===e&&(e={});var n=e.ref,r=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,u=e.onMouseDown,c=e.onMouseUp,d=e.onClick,f=e.onKeyDown,p=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,y=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,uv),g=F.useState(!0),b=g[0],E=g[1],x=F.useState(!1),_=x[0],w=x[1],k=function(){var e=F.useRef(new Map),t=e.current,n=F.useCallback(function(t,n,r,a){e.current.set(r,{type:n,el:t,options:a}),t.addEventListener(n,r,a)},[]),r=F.useCallback(function(t,n,r,a){t.removeEventListener(n,r,a),e.current.delete(r)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=b?m:m||0,C=r&&!a,O=F.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[r,d]),A=F.useCallback(function(e){_&&cv(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))},[_,k]),N=F.useCallback(function(e){if(null==f||f(e),!(r||e.defaultPrevented||e.metaKey)&&cv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",A,!1)}},[r,b,f,i,l,k,A]),R=F.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||cv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[l,b,r,p]),I=F.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=F.useCallback(function(e){if(!t.isRightClick(e)){if(r)return e.stopPropagation(),void e.preventDefault();b||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==u||u(e)}},[r,b,u,k,I]),T=F.useCallback(function(e){t.isRightClick(e)||(b||w(!1),null==c||c(e))},[c,b]),L=F.useCallback(function(e){r?e.preventDefault():null==v||v(e)},[r,v]),D=F.useCallback(function(e){_&&(e.preventDefault(),w(!1)),null==h||h(e)},[_,h]),M=Qt(n,function(e){e&&"BUTTON"!==e.tagName&&E(!1)});return lv({},y,b?{ref:M,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:u,onMouseUp:c,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(_),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:P,onMouseUp:T,onKeyUp:R,onKeyDown:N,onMouseOver:L,onMouseLeave:D})}({onClick:A,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:Qt(k,E,n),isDisabled:s,isFocusable:l});return jh({},d,I,{type:null!=c?c:I.type,id:x,role:"menuitem",tabIndex:N?0:-1})}var ey=["descendants"],ty=["children","as"],ny=["rootProps"],ry=["type"],ay=["icon","iconSpacing","command","commandSpacing","children"],oy=["icon","iconSpacing"],iy=["className","title"],sy=["title","children","className"],ly=["className","children"],uy=ra("Menu"),cy=uy[0],dy=uy[1],fy=function(e){var n=e.children,r=ha("Menu",e),a=function(e){void 0===e&&(e={});var n=e.id,r=e.closeOnSelect,a=void 0===r||r,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,u=e.isLazy,c=e.isOpen,d=e.defaultIsOpen,f=e.onClose,p=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,y=void 0===h?"unmount":h,g=e.direction,b=e.computePositionOnMount,E=void 0!==b&&b,x=Bh(e,Fh),_=F.useRef(null),w=F.useRef(null),k=Yh(),S=F.useCallback(function(){t.focus(_.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=k.firstEnabled();e&&z(e.index)});Y.current.add(e)},[k]),O=F.useCallback(function(){var e=setTimeout(function(){var e=k.lastEnabled();e&&z(e.index)});Y.current.add(e)},[k]),A=function(e){void 0===e&&(e={});var n=e.onClose,r=e.isOpen,a=e.id,o=rn(e.onOpen),i=rn(n),s=F.useState(e.defaultIsOpen||!1),l=s[1],u=sn(r,s[0]),c=u[0],d=u[1],f=cn(a,"disclosure"),p=F.useCallback(function(){c||l(!1),null==i||i()},[c,i]),m=F.useCallback(function(){c||l(!0),null==o||o()},[c,o]),v=F.useCallback(function(){(d?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:c,getButtonProps:function(e){return void 0===e&&(e={}),un({},e,{"aria-expanded":d,"aria-controls":f,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),un({},e,{hidden:!d,id:f})}}}({isOpen:c,defaultIsOpen:d,onClose:f,onOpen:F.useCallback(function(){null==p||p(),l?C():S()},[l,C,S,p])}),N=A.isOpen,R=A.onOpen,I=A.onClose,P=A.onToggle;!function(e){var n=e.ref,r=e.handler,a=e.enabled,o=void 0===a||a,i=rn(r),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){vn(e,n)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&r&&vn(e,n)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&vn(e,n)&&(s.isPointerDown=!1,i(e))},u=t.getOwnerDocument(n.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",a,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",l,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",a,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",l,!0)}}},[r,n,i,s,o])}({enabled:N&&i,ref:_,handler:function(e){var t;null!=(t=w.current)&&t.contains(e.target)||I()}});var T,L,D,M,V=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,u=void 0===l?8:l,c=e.eventListeners,d=void 0===c||c,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,E=void 0===b||b,x=e.matchWidth,_=e.direction,w=void 0===_?"ltr":_,k=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var a=(null==(n=Lh[e])?void 0:n[t])||e;return"ltr"===t?a:null!=(r=Dh[e])?r:a}(o,w),A=F.useRef(function(){}),N=F.useCallback(function(){var e;n&&k.current&&S.current&&(null==A.current||A.current(),C.current=Eh(k.current,S.current,{placement:O,modifiers:[Ph,Nh,Oh,xh({},Ch,{enabled:!!x}),xh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:xh({},Sh,e)}:{enabled:e,options:Sh})),{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!E,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),C.current.forceUpdate(),A.current=C.current.destroy)},[O,n,r,x,d,u,f,m,h,E,g,s]);F.useEffect(function(){return function(){var e;k.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var R=F.useCallback(function(e){k.current=e,N()},[N]),I=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xh({},e,{ref:Qt(R,t)})},[R]),P=F.useCallback(function(e){S.current=e,N()},[N]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xh({},e,{ref:Qt(P,t),style:xh({},e.style,{position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,x]),L=F.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Mh);return xh({},n,{ref:t,"data-popper-arrow":"",style:Vh(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xh({},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:wh.transformOrigin.varRef,referenceRef:R,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:I}}(jh({},x,{enabled:N||E,placement:v,direction:g})),j=F.useState(-1),B=j[0],z=j[1];dn(function(){N||z(-1)},[N]),dn(function(){if(M&&!function(e){var n=e.current;if(!n)return!1;var r=t.getActiveElement(n);return!!r&&!t.contains(n,r)&&!!t.isTabbable(r)}(T)){var e=(null==D?void 0:D.current)||T.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:w,visible:N,shouldFocus:!0}).shouldFocus&&!L.visible,T=_,D=L.focusRef]);var H=function(e){var n=e.isOpen,r=e.ref,a=F.useState(n),o=a[0],i=a[1],s=F.useState(!1),l=s[0],u=s[1];return F.useEffect(function(){l||(i(n),u(!0))},[n,l,o]),an("animationend",function(){i(n)},function(){return r.current}),{present:!(!n&&!o),onComplete:function(){var e,n=new(t.getOwnerWindow(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:N,ref:_}),W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=cn(e);return F.useMemo(function(){return n.map(function(e){return e+"-"+a})},[a,n])}(n,"menu-button","menu-list"),U=W[0],$=W[1],q=F.useCallback(function(){R(),S()},[R,S]),Y=F.useRef(new Set([]));fn(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var Z=F.useCallback(function(){R(),C()},[C,R]),G=F.useCallback(function(){R(),O()},[R,O]),X=F.useCallback(function(){var e,n,r=t.getOwnerDocument(_.current),a=null==(e=_.current)?void 0:e.contains(r.activeElement);if(N&&!a){var o=null==(n=k.item(B))?void 0:n.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[N,B,k]);return{openAndFocusMenu:q,openAndFocusFirstItem:Z,openAndFocusLastItem:G,onTransitionEnd:X,unstable__animationState:H,descendants:k,popper:V,buttonId:U,menuId:$,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:N,onToggle:P,onOpen:R,onClose:I,menuRef:_,buttonRef:w,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:u,lazyBehavior:y}}(jh({},aa(e),{direction:na().direction})),o=a.descendants,i=Bh(a,ey),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
|
63
|
-
return F.createElement(
|
64
|
-
return F.createElement(
|
65
|
-
return F.createElement(r||
|
66
|
-
return F.createElement(
|
67
|
-
return F.createElement(
|
68
|
-
return F.createElement(
|
69
|
-
return F.createElement("svg",
|
70
|
-
return F.createElement(
|
71
|
-
return F.cloneElement(e,{type:a,onClick:function(t){f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(
|
72
|
-
return F.createElement(
|
73
|
-
return F.createElement("div",{ref:n,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/F.createElement(
|
74
|
-
return F.createElement(
|
75
|
-
return F.createElement(
|
76
|
-
return F.createElement(
|
77
|
-
return F.createElement(
|
78
|
-
return F.createElement(
|
79
|
-
return F.createElement(
|
80
|
-
return F.createElement(
|
81
|
-
return F.createElement(
|
82
|
-
return F.createElement(
|
1
|
+
var e=require("@hookform/resolvers/ajv"),t=require("@chakra-ui/utils"),n=require("react-hook-form");function r(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var w=_.prototype=new x;w.constructor=_,g(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+I(l,0):r,k(a)?(n="",null!=e&&(n=e.replace(R,"$&/")+"/"),P(a,t,n,"",function(e){return e})):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",k(e))for(var c=0;c<e.length;c++){var u=r+I(s=e[c],c);l+=P(s,t,n,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+=P(s=s.value,t,n,u=r+I(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 T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},V={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j={Children:V,Component:E,Fragment:s,Profiler:c,PureComponent:_,StrictMode:l,Suspense:p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:o,type:e.type,key:a,ref:i,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},createElement:A,createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:f,render:e}},isValidElement:N,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:L}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.1.0"},B=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},E={current:null},x={},_=null;function w(e){_=e}x.setExtraStackFrame=function(e){_=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";_&&(e+=_);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var k={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("warn",e,n)}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];O("error",e,n)}function O(e,t,n){var r=k.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}k.ReactDebugCurrentFrame=x,k.ReactCurrentActQueue=b;var A={};function N(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;A[a]||(C("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),A[a]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){N(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){N(e,"replaceState")},enqueueSetState:function(e,t,n,r){N(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in L)L.hasOwnProperty(M)&&D(M,L[M]);function V(){}function j(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||R}V.prototype=T.prototype;var B=j.prototype=new V;B.constructor=j,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function H(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function U(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case 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,n){var r=e.displayName;if(r)return r;var a=t.displayName||t.name||"";return""!==a?"ForwardRef("+a+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return $(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&E.current&&e.__self&&E.current.stateNode!==e.__self){var t=$(E.current.type);Z[t]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,a,o,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,a={},o=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(H(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=t[r]);var c=arguments.length-2;if(1===c)a.children=n;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),a.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===a[r]&&(a[r]=f[r])}if(o||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&Q(a,p),i&&ee(a,p)}return ne(e,o,i,s,l,E.current,a)}function ae(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,a,o=I({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,u=E.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==a?a[r]:t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ne(e.type,i,s,l,c,u,o)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),m=""===o?"."+ue(f,0):o;if(z(p)){var v="";null!=m&&(v=ce(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(oe(p)&&(!p.key||f&&f.key===p.key||H(p.key),l=p,c=a+(!p.key||f&&f.key===p.key?"":ce(""+p.key)+"/")+m,p=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===o?".":o+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,a,g+ue(u,b),i);else{var E=h(e);if("function"==typeof E){var x=e;E===x.entries&&(se||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var _,w=E.call(x),k=0;!(_=w.next()).done;)y+=de(u=_.value,t,a,g+ue(u,k++),i)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],a=0;return de(e,r,"","",function(e){return t.call(n,e,a++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===o||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&C("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,Ee,xe,_e,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,Ce=k.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ae,Ne=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ne)return"";var n,r=Ae.get(e);if(void 0!==r)return r;Ne=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Ce.current,Ce.current=null,function(){if(0===we){he=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),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&&Ae.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ne=!1,Ce.current=a,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:_e})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?Oe(f):"";return"function"==typeof e&&Ae.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,a=e._init;try{return Pe(a(r),t,n)}catch(e){}}return""}Ae=new Re;var Te,Le={},De=k.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function Ve(e){if(e){var t=e._owner;w(Pe(e.type,e._source,t?t.type:null))}else w(null)}function je(){if(E.current){var e=$(E.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=je();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==E.current&&(r=" It was passed a child from "+$(e._owner.type)+"."),Ve(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ve(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&ze(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var a=h(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)oe(o.value)&&ze(o.value,t)}}function He(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=$(n);!function(e,t,n,r,a){var o=Function.call.bind(G);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Me(a),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),Me(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,Me(a),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ve(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ve(null);break}}null!==e.ref&&(Ve(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}function $e(e,t,r){var o=me(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||je(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=re.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,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var a=b.current;if(null!==a)try{et(a),function(o){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&C("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===a.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=$e,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!oe(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=a,t.Profiler=i,t.PureComponent=j,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){for(var r=ae.apply(this,arguments),a=2;a<arguments.length;a++)We(arguments[a],r.type);return He(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,a=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=$e.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=oe,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){C("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&S("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var a=b.current;null!==a&&(b.didScheduleLegacyUpdate=!1,et(a))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,i=!1,s={then:function(e,n){i=!0,o.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,C("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var 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 n=e._context;n.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.1.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),F=a(function(e){e.exports="production"===process.env.NODE_ENV?j:B}),z=/*#__PURE__*/r({__proto__:null,default:F},[F]),W=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),H="-ms-",U="-webkit-",$=Math.abs,q=String.fromCharCode,Y=Object.assign;function Z(e){return e.trim()}function G(e,t,n){return e.replace(t,n)}function X(e,t){return e.indexOf(t)}function K(e,t){return 0|e.charCodeAt(t)}function J(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,ae=0,oe=0,ie=0,se="";function le(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ne,column:re,length:i,return:""}}function 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,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=oe<ae?K(se,oe++):0,re++,10===ie&&(re=1,ne++),ie}function fe(){return K(se,oe)}function pe(){return oe}function me(e,t){return J(se,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function he(e){return ne=re=1,ae=Q(se=e),oe=0,[]}function ye(e){return se="",e}function ge(e){return Z(me(oe-1,xe(91===e?e+2:40===e?e+1:e)))}function be(e){for(;(ie=fe())&&ie<33;)de();return ve(e)>2||ve(ie)>3?"":" "}function Ee(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return me(e,pe()+(t<6&&32==fe()&&32==de()))}function xe(e){for(;de();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&xe(ie);break;case 40:41===e&&xe(e);break;case 92:de()}return oe}function _e(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==fe()););return"/*"+me(t,oe-1)+"*"+q(47===e?e:de())}function we(e){for(;!ve(fe());)de();return me(e,oe)}function ke(e){return ye(Se("",null,null,null,[""],e=he(e),0,[0],e))}function Se(e,t,n,r,a,o,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",E=a,x=o,_=r,w=b;h;)switch(m=g,g=de()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=X(w+=G(ge(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:w+=ge(g);break;case 9:case 10:case 13:case 32:w+=be(m);break;case 92:w+=Ee(pe()-1,7);continue;case 47:switch(fe()){case 42:case 47:te(Oe(_e(de(),pe()),t,n),l);break;default:w+="/"}break;case 123*v:s[c++]=Q(w)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+u:p>0&&Q(w)-d&&te(p>32?Ae(w+";",r,n,d-1):Ae(G(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(te(_=Ce(w,t,n,c,u,a,s,b,E=[],x=[],d),o),123===g)if(0===u)Se(w,t,_,_,E,o,d,s,x);else switch(f){case 100:case 109:case 115:Se(e,_,_,r&&te(Ce(e,_,_,0,0,a,s,b,a,E=[],d),x),a,x,d,s,r?E:x);break;default:Se(w,_,_,_,[""],x,0,s,x)}}c=u=p=0,v=y=1,b=w="",d=i;break;case 58:d=1+Q(w),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==ue())continue;switch(w+=q(g),g*v){case 38:y=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Q(w)-1)*y,y=1;break;case 64:45===fe()&&(w+=ge(de())),f=fe(),u=d=Q(b=w+=we(pe())),g++;break;case 45:45===m&&2==Q(w)&&(v=0)}}return o}function Ce(e,t,n,r,a,o,i,s,l,c,u){for(var d=a-1,f=0===a?o:[""],p=ee(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=J(e,d+1,d=$(v=i[m])),b=e;y<p;++y)(b=Z(v>0?f[y]+" "+g:G(g,/&\f/g,f[y])))&&(l[h++]=b);return le(e,t,n,0===a?"rule":s,l,c,u)}function Oe(e,t,n){return le(e,t,n,"comm",q(ie),J(e,2,-2),0)}function Ae(e,t,n,r){return le(e,t,n,"decl",J(e,0,r),J(e,r+1,-1),r)}function Ne(e,t){switch(function(e,t){return(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3)}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+"-moz-"+e+H+e+e;case 6828:case 4268:return U+e+H+e+e;case 6165:return U+e+H+"flex-"+e+e;case 5187:return U+e+G(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+H+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return U+e+H+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+H+G(e,"shrink","negative")+e;case 5292:return U+e+H+G(e,"basis","preferred-size")+e;case 6060:return U+"box-"+G(e,"-grow","")+U+e+H+G(e,"grow","positive")+e;case 4554:return U+G(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(K(e,t+1)){case 109:if(45!==K(e,t+4))break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==K(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Ne(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==K(e,t+1))break;case 6444:switch(K(e,Q(e)-3-(~X(e,"!important")&&10))){case 107:return G(e,":",":"+U)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===K(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+H+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+H+e+e}return e}function Re(e,t){for(var n="",r=ee(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Ie(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Re(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Q(n=Re(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Te=function(e,t,n){for(var r=0,a=0;r=a,a=fe(),38===r&&12===a&&(t[n]=1),!ve(a);)de();return me(e,oe)},Le=/* #__PURE__ */new WeakMap,De=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var a=[],o=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ve(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Te(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=de());return e}(he(e),t))}(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var 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="")}},Ve=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},je=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Be=function(e,t,n){Ve(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),je(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Ve(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),je(e)))},Fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ne(e.value,e.length);break;case"@keyframes":return Re([ce(e,{value:G(e.value,"@","@"+U)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Re([ce(e,{props:[G(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Re([ce(e,{props:[G(t,/:(plac\w+)/,":-webkit-input-$1")]}),ce(e,{props:[G(t,/:(plac\w+)/,":-moz-$1")]}),ce(e,{props:[G(t,/:(plac\w+)/,H+"input-$1")]})],r)}return""})}}],ze=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||Fe;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,o,i={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[De,Me];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var a,o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((a=i.children).length?a[a.length-1]:null))return;o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Be);var c,u,d=[Ie,"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)})],f=function(e){var t=ee(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}(l.concat(r,d));o=function(e,t,n,r){c=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),Re(ke(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new W({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},We.apply(this,arguments)}var He="function"==typeof Symbol&&Symbol.for,Ue=He?Symbol.for("react.element"):60103,$e=He?Symbol.for("react.portal"):60106,qe=He?Symbol.for("react.fragment"):60107,Ye=He?Symbol.for("react.strict_mode"):60108,Ze=He?Symbol.for("react.profiler"):60114,Ge=He?Symbol.for("react.provider"):60109,Xe=He?Symbol.for("react.context"):60110,Ke=He?Symbol.for("react.async_mode"):60111,Je=He?Symbol.for("react.concurrent_mode"):60111,Qe=He?Symbol.for("react.forward_ref"):60112,et=He?Symbol.for("react.suspense"):60113,tt=He?Symbol.for("react.suspense_list"):60120,nt=He?Symbol.for("react.memo"):60115,rt=He?Symbol.for("react.lazy"):60116,at=He?Symbol.for("react.block"):60121,ot=He?Symbol.for("react.fundamental"):60117,it=He?Symbol.for("react.responder"):60118,st=He?Symbol.for("react.scope"):60119;function lt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ue:switch(e=e.type){case Ke:case Je:case qe:case Ze:case Ye:case et:return e;default:switch(e=e&&e.$$typeof){case Xe:case Qe:case rt:case nt:case Ge:return e;default:return t}}case $e:return t}}}function ct(e){return lt(e)===Je}var ut={AsyncMode:Ke,ConcurrentMode:Je,ContextConsumer:Xe,ContextProvider:Ge,Element:Ue,ForwardRef:Qe,Fragment:qe,Lazy:rt,Memo:nt,Portal:$e,Profiler:Ze,StrictMode:Ye,Suspense:et,isAsyncMode:function(e){return ct(e)||lt(e)===Ke},isConcurrentMode:ct,isContextConsumer:function(e){return lt(e)===Xe},isContextProvider:function(e){return lt(e)===Ge},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ue},isForwardRef:function(e){return lt(e)===Qe},isFragment:function(e){return lt(e)===qe},isLazy:function(e){return lt(e)===rt},isMemo:function(e){return lt(e)===nt},isPortal:function(e){return lt(e)===$e},isProfiler:function(e){return lt(e)===Ze},isStrictMode:function(e){return lt(e)===Ye},isSuspense:function(e){return lt(e)===et},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===qe||e===Je||e===Ze||e===Ye||e===et||e===tt||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===Ge||e.$$typeof===Xe||e.$$typeof===Qe||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===at)},typeOf:lt},dt=a(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case a:case i:case o:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var x=u,_=l,w=s,k=n,S=d,C=a,O=v,A=m,N=r,R=i,I=o,P=f,T=!1;function L(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=_,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=C,t.Lazy=O,t.Memo=A,t.Portal=N,t.Profiler=R,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||E(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=E}()});function ft(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}a(function(e){e.exports="production"===process.env.NODE_ENV?ut:dt});var pt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},mt=function(e,t,n){pt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}};function vt(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var ht={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},yt="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,bt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Et=function(e){return 45===e.charCodeAt(1)},xt=function(e){return null!=e&&"boolean"!=typeof e},_t=/* #__PURE__ */Pe(function(e){return Et(e)?e:e.replace(gt,"-$&").toLowerCase()}),wt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bt,function(e,t,n){return Tt={name:t,styles:n,next:Tt},t})}return 1===ht[e]||Et(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var kt=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,St=["normal","none","initial","inherit","unset"],Ct=wt,Ot=/^-ms-/,At=/-(.)/g,Nt={};wt=function(e,t){if("content"===e&&("string"!=typeof t||-1===St.indexOf(t)&&!kt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ct(e,t);return""===n||Et(e)||-1===e.indexOf("-")||void 0!==Nt[e]||(Nt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ot,"ms-").replace(At,function(e,t){return t.toUpperCase()})+"?")),n}}var Rt="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,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Rt);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Tt={name:n.name,styles:n.styles,next:Tt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Tt={name:r.name,styles:r.styles,next:Tt},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=It(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":xt(i)&&(r+=_t(o)+":"+wt(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Rt);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":r+=_t(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)xt(i[l])&&(r+=_t(o)+":"+wt(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Tt,i=n(e);return Tt=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=n.replace(bt,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Pt,Tt,Lt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Pt=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Dt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Tt=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=It(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(yt),a+=i[0]);for(var s=1;s<e.length;s++)a+=It(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(yt),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(Pt,function(e){return o=e,""})),Lt.lastIndex=0;for(var l,c="";null!==(l=Lt.exec(a));)c+="-"+l[1];var u=vt(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:Tt,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:Tt}},Mt={}.hasOwnProperty,Vt=/* #__PURE__ */F.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */ze({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Vt.displayName="EmotionCacheContext");var jt=function(e){/*#__PURE__*/
|
2
|
+
return F.forwardRef(function(t,n){var r=F.useContext(Vt);return e(t,r,n)})},Bt=/* #__PURE__ */F.createContext({});"production"!==process.env.NODE_ENV&&(Bt.displayName="EmotionThemeContext");var Ft=z.useInsertionEffect?z.useInsertionEffect:function(e){e()};function zt(e){Ft(e)}var Wt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),zt(function(){return mt(t,n,r)}),null},Ht=/* #__PURE__ */jt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,o=[r],i="";"string"==typeof e.className?i=ft(t.registered,o,e.className):null!=e.className&&(i=e.className+" ");var s=Dt(o,void 0,F.useContext(Bt));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=Dt([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!Mt.call(e,u)||"css"===u||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===u||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===u||(c[u]=e[u]);return c.ref=n,c.className=i,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Wt,{cache:t,serialized:s,isStringTag:"string"==typeof a}),/*#__PURE__*/F.createElement(a,c))});"production"!==process.env.NODE_ENV&&(Ht.displayName="EmotionCssPropInternal");var Ut=z.useInsertionEffect?z.useInsertionEffect:F.useLayoutEffect,$t=!1,qt=/* #__PURE__ */jt(function(e,t){"production"===process.env.NODE_ENV||$t||!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?"),$t=!0);var n=Dt([e.styles],void 0,F.useContext(Bt)),r=F.useRef();return Ut(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),a.hydrate([i])),r.current=[a,o],function(){a.flush()}},[t]),Ut(function(){var e=r.current,a=e[0];e[1]?e[1]=!1:(void 0!==n.next&&mt(t,n.next,!0),a.tags.length&&(a.before=a.tags[a.tags.length-1].nextElementSibling,a.flush()),t.insert("",n,a,!1))},[t,n.name]),null});function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dt(t)}"production"!==process.env.NODE_ENV&&(qt.displayName="EmotionGlobal");var Zt=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function Gt(e,t,n){var r=[],a=ft(e,r,n);return r.length<2?n:a+t(r)}var Xt=function(e){var t=e.cache,n=e.serializedArr;return zt(function(){for(var e=0;e<n.length;e++)mt(t,n[e],!1)}),null},Kt=/* #__PURE__ */jt(function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];var i=Dt(a,t.registered);return r.push(i),pt(t,i,!1),t.key+"-"+i.name},o={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Gt(t.registered,a,Zt(r))},theme:F.useContext(Bt)},i=e.children(o);return n=!0,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Xt,{cache:t,serializedArr:r}),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 en(e,n){if(null!=e)if(t.isFunction(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){return en(t,e)})}}function nn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,a=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,o=e.name,i=/*#__PURE__*/F.createContext(void 0);return i.displayName=o,[i.Provider,function e(){var t=F.useContext(i);if(!t&&n){var r=new Error(a);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function rn(e){return F.Children.toArray(e).filter(function(e){/*#__PURE__*/
|
3
|
+
return F.isValidElement(e)})}var an=t.isBrowser?F.useLayoutEffect:F.useEffect;function on(e,t){void 0===t&&(t=[]);var n=F.useRef(e);return an(function(){n.current=e}),F.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function sn(e,n,r,a){var o=on(n);return F.useEffect(function(){var i,s=null!=(i=t.runIfFn(r))?i:document;if(n)return s.addEventListener(e,o,a),function(){s.removeEventListener(e,o,a)}},[e,r,a,o,n]),function(){var n;(null!=(n=t.runIfFn(r))?n:document).removeEventListener(e,o,a)}}function ln(e){void 0===e&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],a=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,a]}function cn(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function un(e){var n=e.value,r=e.defaultValue,a=e.shouldUpdate,o=void 0===a?function(e,t){return e!==t}:a,i=on(e.onChange),s=on(o),l=F.useState(r),c=l[1],u=void 0!==n,d=u?n:l[0],f=F.useCallback(function(e){var n=t.runIfFn(e,d);s(d,n)&&(u||c(n),i(n))},[u,i,d,s]);return[d,f]}function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}function fn(e,t){var n=F.useId();return F.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var pn=function(e,t){var n=F.useRef(!1),r=F.useRef(!1);F.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),F.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function mn(e,t){return void 0===t&&(t=[]),F.useEffect(function(){return function(){return e()}},t)}function vn(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&vn(t,e)})}},t)}function yn(e,n){var r,a=e.target;return!(e.button>0||a&&!t.getOwnerDocument(a).contains(a)||null!=(r=n.current)&&r.contains(a))}var gn=/*#__PURE__*/F.createContext({});function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}t.__DEV__&&(gn.displayName="ColorModeContext");var En,xn,_n=function(e){return t.isString(e)?e.replace(/!(important)?$/,"").trim():e},wn=function(e,n){return function(r){var a=String(n),o=function(e){return/!(important)?$/.test(e)}(a),i=_n(a),s=e?e+"."+i:i,l=t.isObject(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:n;return l=_n(l),o?l+" !important":l}};function kn(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,a){var o,i=wn(t,e)(a),s=null!=(o=null==n?void 0:n(i,a))?o:i;return r&&(s=r(s,a)),s}}function Sn(e,t){return function(n){var r={property:n,scale:e};return r.transform=kn({scale:e,transform:t}),r}}var Cn=["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))"],On={"--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(" ")},An={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,/*!*/ /*!*/)"},Nn={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Rn=((En={})["& > :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))"},En),In=((xn={})["& > :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))"},xn);function Pn(e,t){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pn(e,t)}function Tn(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&&Pn(e,t)}function Ln(){Ln=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),Pn(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Tn(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Ln.apply(this,arguments)}var Dn={"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"},Mn=new Set(Object.values(Dn)),Vn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),jn=function(e){return e.trim()},Bn=function(e){return t.isString(e)&&e.includes("(")&&e.includes(")")},Fn=function(e){return function(t){return e+"("+t+")"}},zn={filter:function(e){return"auto"!==e?e:On},backdropFilter:function(e){return"auto"!==e?e:An},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(", ")}}(zn.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(Cn).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Cn).join(" "):e},px:function(e){if(null==e)return e;var n=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return n.unitless||t.isNumber(e)?e+"px":e},fraction:function(e){return!t.isNumber(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(t.isCssVar(e)||null==e)return e;var n=t.isString(e)&&!e.endsWith("deg");return t.isNumber(e)||n?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Vn.has(e))return e;var a=null!=(n=null==(r=/*#__PURE__*/Ln(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=a.type,i=a.values;if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",l=i.split(",").map(jn).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Dn?Dn[c]:c);var d=u.map(function(e){if(Mn.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=r[0],o=r[1],i=Bn(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:Fn("blur"),opacity:Fn("opacity"),brightness:Fn("brightness"),contrast:Fn("contrast"),dropShadow:Fn("drop-shadow"),grayscale:Fn("grayscale"),hueRotate:Fn("hue-rotate"),invert:Fn("invert"),saturate:Fn("saturate"),sepia:Fn("sepia"),bgImage:function(e){return null==e||Bn(e)||Vn.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=Nn[e])?t:{},r=n.space,a=n.divide,o={flexDirection:e};return r&&(o[r]=1),a&&(o[a]=1),o}},Wn={borderWidths:Sn("borderWidths"),borderStyles:Sn("borderStyles"),colors:Sn("colors"),borders:Sn("borders"),radii:Sn("radii",zn.px),space:Sn("space",zn.px),spaceT:Sn("space",zn.px),degreeT:function(e){return{property:e,transform:zn.degree}},prop:function(e,t,n){return bn({property:e,scale:t},t&&{transform:kn({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:Sn("sizes",zn.px),sizesT:Sn("sizes",zn.fraction),shadows:Sn("shadows"),logical:function(e){var t,n,r,a=e.scale,o=e.transform;return{scale:a,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:a?kn({scale:a,compose:o}):o}},blur:Sn("blur",zn.blur)},Hn={background:Wn.colors("background"),backgroundColor:Wn.colors("backgroundColor"),backgroundImage:Wn.propT("backgroundImage",zn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:zn.bgClip},bgSize:Wn.prop("backgroundSize"),bgPosition:Wn.prop("backgroundPosition"),bg:Wn.colors("background"),bgColor:Wn.colors("backgroundColor"),bgPos:Wn.prop("backgroundPosition"),bgRepeat:Wn.prop("backgroundRepeat"),bgAttachment:Wn.prop("backgroundAttachment"),bgGradient:Wn.propT("backgroundImage",zn.gradient),bgClip:{transform:zn.bgClip}};Object.assign(Hn,{bgImage:Hn.backgroundImage,bgImg:Hn.backgroundImage});var Un={border:Wn.borders("border"),borderWidth:Wn.borderWidths("borderWidth"),borderStyle:Wn.borderStyles("borderStyle"),borderColor:Wn.colors("borderColor"),borderRadius:Wn.radii("borderRadius"),borderTop:Wn.borders("borderTop"),borderBlockStart:Wn.borders("borderBlockStart"),borderTopLeftRadius:Wn.radii("borderTopLeftRadius"),borderStartStartRadius:Wn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Wn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Wn.radii("borderTopRightRadius"),borderStartEndRadius:Wn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Wn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Wn.borders("borderRight"),borderInlineEnd:Wn.borders("borderInlineEnd"),borderBottom:Wn.borders("borderBottom"),borderBlockEnd:Wn.borders("borderBlockEnd"),borderBottomLeftRadius:Wn.radii("borderBottomLeftRadius"),borderBottomRightRadius:Wn.radii("borderBottomRightRadius"),borderLeft:Wn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Wn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Wn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Wn.borders(["borderLeft","borderRight"]),borderInline:Wn.borders("borderInline"),borderY:Wn.borders(["borderTop","borderBottom"]),borderBlock:Wn.borders("borderBlock"),borderTopWidth:Wn.borderWidths("borderTopWidth"),borderBlockStartWidth:Wn.borderWidths("borderBlockStartWidth"),borderTopColor:Wn.colors("borderTopColor"),borderBlockStartColor:Wn.colors("borderBlockStartColor"),borderTopStyle:Wn.borderStyles("borderTopStyle"),borderBlockStartStyle:Wn.borderStyles("borderBlockStartStyle"),borderBottomWidth:Wn.borderWidths("borderBottomWidth"),borderBlockEndWidth:Wn.borderWidths("borderBlockEndWidth"),borderBottomColor:Wn.colors("borderBottomColor"),borderBlockEndColor:Wn.colors("borderBlockEndColor"),borderBottomStyle:Wn.borderStyles("borderBottomStyle"),borderBlockEndStyle:Wn.borderStyles("borderBlockEndStyle"),borderLeftWidth:Wn.borderWidths("borderLeftWidth"),borderInlineStartWidth:Wn.borderWidths("borderInlineStartWidth"),borderLeftColor:Wn.colors("borderLeftColor"),borderInlineStartColor:Wn.colors("borderInlineStartColor"),borderLeftStyle:Wn.borderStyles("borderLeftStyle"),borderInlineStartStyle:Wn.borderStyles("borderInlineStartStyle"),borderRightWidth:Wn.borderWidths("borderRightWidth"),borderInlineEndWidth:Wn.borderWidths("borderInlineEndWidth"),borderRightColor:Wn.colors("borderRightColor"),borderInlineEndColor:Wn.colors("borderInlineEndColor"),borderRightStyle:Wn.borderStyles("borderRightStyle"),borderInlineEndStyle:Wn.borderStyles("borderInlineEndStyle"),borderTopRadius:Wn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Wn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Wn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Wn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Un,{rounded:Un.borderRadius,roundedTop:Un.borderTopRadius,roundedTopLeft:Un.borderTopLeftRadius,roundedTopRight:Un.borderTopRightRadius,roundedTopStart:Un.borderStartStartRadius,roundedTopEnd:Un.borderStartEndRadius,roundedBottom:Un.borderBottomRadius,roundedBottomLeft:Un.borderBottomLeftRadius,roundedBottomRight:Un.borderBottomRightRadius,roundedBottomStart:Un.borderEndStartRadius,roundedBottomEnd:Un.borderEndEndRadius,roundedLeft:Un.borderLeftRadius,roundedRight:Un.borderRightRadius,roundedStart:Un.borderInlineStartRadius,roundedEnd:Un.borderInlineEndRadius,borderStart:Un.borderInlineStart,borderEnd:Un.borderInlineEnd,borderTopStartRadius:Un.borderStartStartRadius,borderTopEndRadius:Un.borderStartEndRadius,borderBottomStartRadius:Un.borderEndStartRadius,borderBottomEndRadius:Un.borderEndEndRadius,borderStartRadius:Un.borderInlineStartRadius,borderEndRadius:Un.borderInlineEndRadius,borderStartWidth:Un.borderInlineStartWidth,borderEndWidth:Un.borderInlineEndWidth,borderStartColor:Un.borderInlineStartColor,borderEndColor:Un.borderInlineEndColor,borderStartStyle:Un.borderInlineStartStyle,borderEndStyle:Un.borderInlineEndStyle});var $n={color:Wn.colors("color"),textColor:Wn.colors("color"),fill:Wn.colors("fill"),stroke:Wn.colors("stroke")},qn={boxShadow:Wn.shadows("boxShadow"),mixBlendMode:!0,blendMode:Wn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Wn.prop("backgroundBlendMode"),opacity:!0};Object.assign(qn,{shadow:qn.boxShadow});var Yn={filter:{transform:zn.filter},blur:Wn.blur("--chakra-blur"),brightness:Wn.propT("--chakra-brightness",zn.brightness),contrast:Wn.propT("--chakra-contrast",zn.contrast),hueRotate:Wn.degreeT("--chakra-hue-rotate"),invert:Wn.propT("--chakra-invert",zn.invert),saturate:Wn.propT("--chakra-saturate",zn.saturate),dropShadow:Wn.propT("--chakra-drop-shadow",zn.dropShadow),backdropFilter:{transform:zn.backdropFilter},backdropBlur:Wn.blur("--chakra-backdrop-blur"),backdropBrightness:Wn.propT("--chakra-backdrop-brightness",zn.brightness),backdropContrast:Wn.propT("--chakra-backdrop-contrast",zn.contrast),backdropHueRotate:Wn.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Wn.propT("--chakra-backdrop-invert",zn.invert),backdropSaturate:Wn.propT("--chakra-backdrop-saturate",zn.saturate)},Zn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:zn.flexDirection},experimental_spaceX:{static:Rn,transform:kn({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:In,transform:kn({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Wn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Wn.space("gap"),rowGap:Wn.space("rowGap"),columnGap:Wn.space("columnGap")};Object.assign(Zn,{flexDir:Zn.flexDirection});var Gn={gridGap:Wn.space("gridGap"),gridColumnGap:Wn.space("gridColumnGap"),gridRowGap:Wn.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},Xn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:zn.outline},outlineOffset:!0,outlineColor:Wn.colors("outlineColor")},Kn={width:Wn.sizesT("width"),inlineSize:Wn.sizesT("inlineSize"),height:Wn.sizes("height"),blockSize:Wn.sizes("blockSize"),boxSize:Wn.sizes(["width","height"]),minWidth:Wn.sizes("minWidth"),minInlineSize:Wn.sizes("minInlineSize"),minHeight:Wn.sizes("minHeight"),minBlockSize:Wn.sizes("minBlockSize"),maxWidth:Wn.sizes("maxWidth"),maxInlineSize:Wn.sizes("maxInlineSize"),maxHeight:Wn.sizes("maxHeight"),maxBlockSize:Wn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Wn.propT("float",zn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Kn,{w:Kn.width,h:Kn.height,minW:Kn.minWidth,maxW:Kn.maxWidth,minH:Kn.minHeight,maxH:Kn.maxHeight,overscroll:Kn.overscrollBehavior,overscrollX:Kn.overscrollBehaviorX,overscrollY:Kn.overscrollBehaviorY});var Jn={listStyleType:!0,listStylePosition:!0,listStylePos:Wn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Wn.prop("listStyleImage")},Qn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},er={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},tr=function(e,n,r){var a={},o=t.memoizedGet(e,n,{});for(var i in o)i in r&&null!=r[i]||(a[i]=o[i]);return a},nr={srOnly:{transform:function(e){return!0===e?Qn:"focusable"===e?er:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return tr(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return tr(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return tr(t,e,n)}}},rr={position:!0,pos:Wn.prop("position"),zIndex:Wn.prop("zIndex","zIndices"),inset:Wn.spaceT("inset"),insetX:Wn.spaceT(["left","right"]),insetInline:Wn.spaceT("insetInline"),insetY:Wn.spaceT(["top","bottom"]),insetBlock:Wn.spaceT("insetBlock"),top:Wn.spaceT("top"),insetBlockStart:Wn.spaceT("insetBlockStart"),bottom:Wn.spaceT("bottom"),insetBlockEnd:Wn.spaceT("insetBlockEnd"),left:Wn.spaceT("left"),insetInlineStart:Wn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Wn.spaceT("right"),insetInlineEnd:Wn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(rr,{insetStart:rr.insetInlineStart,insetEnd:rr.insetInlineEnd});var ar={ring:{transform:zn.ring},ringColor:Wn.colors("--chakra-ring-color"),ringOffset:Wn.prop("--chakra-ring-offset-width"),ringOffsetColor:Wn.colors("--chakra-ring-offset-color"),ringInset:Wn.prop("--chakra-ring-inset")},or={margin:Wn.spaceT("margin"),marginTop:Wn.spaceT("marginTop"),marginBlockStart:Wn.spaceT("marginBlockStart"),marginRight:Wn.spaceT("marginRight"),marginInlineEnd:Wn.spaceT("marginInlineEnd"),marginBottom:Wn.spaceT("marginBottom"),marginBlockEnd:Wn.spaceT("marginBlockEnd"),marginLeft:Wn.spaceT("marginLeft"),marginInlineStart:Wn.spaceT("marginInlineStart"),marginX:Wn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Wn.spaceT("marginInline"),marginY:Wn.spaceT(["marginTop","marginBottom"]),marginBlock:Wn.spaceT("marginBlock"),padding:Wn.space("padding"),paddingTop:Wn.space("paddingTop"),paddingBlockStart:Wn.space("paddingBlockStart"),paddingRight:Wn.space("paddingRight"),paddingBottom:Wn.space("paddingBottom"),paddingBlockEnd:Wn.space("paddingBlockEnd"),paddingLeft:Wn.space("paddingLeft"),paddingInlineStart:Wn.space("paddingInlineStart"),paddingInlineEnd:Wn.space("paddingInlineEnd"),paddingX:Wn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Wn.space("paddingInline"),paddingY:Wn.space(["paddingTop","paddingBottom"]),paddingBlock:Wn.space("paddingBlock")};Object.assign(or,{m:or.margin,mt:or.marginTop,mr:or.marginRight,me:or.marginInlineEnd,marginEnd:or.marginInlineEnd,mb:or.marginBottom,ml:or.marginLeft,ms:or.marginInlineStart,marginStart:or.marginInlineStart,mx:or.marginX,my:or.marginY,p:or.padding,pt:or.paddingTop,py:or.paddingY,px:or.paddingX,pb:or.paddingBottom,pl:or.paddingLeft,ps:or.paddingInlineStart,paddingStart:or.paddingInlineStart,pr:or.paddingRight,pe:or.paddingInlineEnd,paddingEnd:or.paddingInlineEnd});var ir={textDecorationColor:Wn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Wn.shadows("textShadow")},sr={clipPath:!0,transform:Wn.propT("transform",zn.transform),transformOrigin:!0,translateX:Wn.spaceT("--chakra-translate-x"),translateY:Wn.spaceT("--chakra-translate-y"),skewX:Wn.degreeT("--chakra-skew-x"),skewY:Wn.degreeT("--chakra-skew-y"),scaleX:Wn.prop("--chakra-scale-x"),scaleY:Wn.prop("--chakra-scale-y"),scale:Wn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Wn.degreeT("--chakra-rotate")},lr={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Wn.prop("transitionDuration","transition.duration"),transitionProperty:Wn.prop("transitionProperty","transition.property"),transitionTimingFunction:Wn.prop("transitionTimingFunction","transition.easing")},cr={fontFamily:Wn.prop("fontFamily","fonts"),fontSize:Wn.prop("fontSize","fontSizes",zn.px),fontWeight:Wn.prop("fontWeight","fontWeights"),lineHeight:Wn.prop("lineHeight","lineHeights"),letterSpacing:Wn.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ur={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Wn.spaceT("scrollMargin"),scrollMarginTop:Wn.spaceT("scrollMarginTop"),scrollMarginBottom:Wn.spaceT("scrollMarginBottom"),scrollMarginLeft:Wn.spaceT("scrollMarginLeft"),scrollMarginRight:Wn.spaceT("scrollMarginRight"),scrollMarginX:Wn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Wn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Wn.spaceT("scrollPadding"),scrollPaddingTop:Wn.spaceT("scrollPaddingTop"),scrollPaddingBottom:Wn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Wn.spaceT("scrollPaddingLeft"),scrollPaddingRight:Wn.spaceT("scrollPaddingRight"),scrollPaddingX:Wn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Wn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function dr(e){return t.isObject(e)&&e.reference?e.reference:String(e)}var fr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(dr).join(" "+e+" ").replace(/calc/g,"")},pr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["+"].concat(t))+")"},mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["-"].concat(t))+")"},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["*"].concat(t))+")"},hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+fr.apply(void 0,["/"].concat(t))+")"},yr=function(e){var t=dr(e);return null==t||Number.isNaN(parseFloat(t))?vr(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},gr=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(pr.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(mr.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(vr.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gr(hr.apply(void 0,[e].concat(n)))},negate:function(){return gr(yr(e))},toString:function(){return e.toString()}}},{add:pr,subtract:mr,multiply:vr,divide:hr,negate:yr}),br=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},Er=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},xr=function(e,t){return e+":focus-visible "+t},_r=function(e,t){return e+":focus-within "+t},wr=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},kr=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Sr=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},Cr=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},Or=function(e){return Nr(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},Ar=function(e){return Nr(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Nr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Rr={_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:Or(br),_peerHover:Ar(br),_groupFocus:Or(Er),_peerFocus:Ar(Er),_groupFocusVisible:Or(xr),_peerFocusVisible:Ar(xr),_groupActive:Or(wr),_peerActive:Ar(wr),_groupDisabled:Or(kr),_peerDisabled:Ar(kr),_groupInvalid:Or(Sr),_peerInvalid:Ar(Sr),_groupChecked:Or(Cr),_peerChecked:Ar(Cr),_groupFocusWithin:Or(_r),_peerFocusWithin:Ar(_r),_peerPlaceholderShown:Ar(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]"},Ir=t.objectKeys(Rr);function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Lr=t.mergeWith({},Hn,Un,$n,Zn,Kn,Yn,ar,Xn,Gn,nr,rr,qn,or,ur,cr,ir,sr,Jn,lr),Dr=Object.assign({},or,Kn,Zn,Gn,rr),Mr=t.objectKeys(Dr),Vr=[].concat(t.objectKeys(Lr),Ir),jr=bn({},Lr,Rr),Br=function(e){return e in jr},Fr=function(e,n){return e.startsWith("--")&&t.isString(n)&&!t.isCssVar(n)},zr=function(e,t){var n,r;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=a(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=a(i[0]))?r:o(s))?n:o(t)},Wr="undefined"!=typeof Element,Hr="function"==typeof Map,Ur="function"==typeof Set,$r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function qr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,a,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!qr(e[r],t[r]))return!1;return!0}if(Hr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!qr(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ur&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Wr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!qr(e[a[r]],t[a[r]]))return!1;return!0}return e!=e&&t!=t}var Yr=function(e,t){try{return qr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Zr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gr=/* #__PURE__ */Pe(function(e){return Zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Xr="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",Kr=/[A-Z]|^ms/g,Jr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qr=function(e){return 45===e.charCodeAt(1)},ea=function(e){return null!=e&&"boolean"!=typeof e},ta=/* #__PURE__ */Pe(function(e){return Qr(e)?e:e.replace(Kr,"-$&").toLowerCase()}),na=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jr,function(e,t,n){return fa={name:t,styles:n,next:fa},t})}return 1===ht[e]||Qr(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ra=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,aa=["normal","none","initial","inherit","unset"],oa=na,ia=/^-ms-/,sa=/-(.)/g,la={};na=function(e,t){if("content"===e&&("string"!=typeof t||-1===aa.indexOf(t)&&!ra.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=oa(e,t);return""===n||Qr(e)||-1===e.indexOf("-")||void 0!==la[e]||(la[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(ia,"ms-").replace(sa,function(e,t){return t.toUpperCase()})+"?")),n}}var ca="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ua(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(ca);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return fa={name:n.name,styles:n.styles,next:fa},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)fa={name:r.name,styles:r.styles,next:fa},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=ua(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":ea(i)&&(r+=ta(o)+":"+na(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(ca);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ua(e,t,i);switch(o){case"animation":case"animationName":r+=ta(o)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)ea(i[l])&&(r+=ta(o)+":"+na(o,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=fa,i=n(e);return fa=o,ua(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(Jr,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var da,fa,pa=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(da=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ma=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";fa=void 0;var o,i=e[0];null==i||void 0===i.raw?(r=!1,a+=ua(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(Xr),a+=i[0]);for(var s=1;s<e.length;s++)a+=ua(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(Xr),a+=i[s]);"production"!==process.env.NODE_ENV&&(a=a.replace(da,function(e){return o=e,""})),pa.lastIndex=0;for(var l,c="";null!==(l=pa.exec(a));)c+="-"+l[1];var u=vt(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:o,next:fa,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:fa}},va=Gr,ha=function(e){return"theme"!==e},ya=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?va:ha},ga=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ba=z.useInsertionEffect?z.useInsertionEffect:function(e){e()},Ea="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",xa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pt(t,n,r),ba(function(){return mt(t,n,r)}),null},_a=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=ga(t,n,o),l=s||ya(i),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Ea),d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===u[0][p]&&console.error(Ea),d.push(u[p],u[0][p])}var m=jt(function(e,t,n){var r=c&&e.as||i,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(Bt)}"string"==typeof e.className?o=ft(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var m=ma(d.concat(u),t.registered,f);o+=t.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=c&&void 0===s?ya(r):l,h={};for(var y in e)c&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=o,h.ref=n,/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(xa,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/F.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,r){return e(t,We({},n,r,{shouldForwardProp:ga(m,r,!0)})).apply(void 0,d)},m}}.bind();function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wa.apply(this,arguments)}function ka(){var e=F.useContext(Bt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}["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){_a[e]=_a(e)}),nn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var Sa=function(e){return nn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function Ca(e){return t.omit(e,["styleConfig","size","variant","colorScheme"])}function Oa(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Aa=new Set([].concat(Vr,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),Na=new Set(["htmlWidth","htmlHeight","htmlSize"]),Ra=function(e){return Na.has(e)||!Aa.has(e)},Ia=["theme","css","__css","sx"],Pa=["baseStyle"];function Ta(e,n){var r=null!=n?n:{},a=r.baseStyle,o=Oa(r,Pa);o.shouldForwardProp||(o.shouldForwardProp=Ra);var i=function(e){var n=e.baseStyle;return function(e){var r,a=e.css,o=e.__css,i=e.sx,s=Oa(e,Ia),l=t.objectFilter(s,function(e,t){return Br(t)}),c=t.runIfFn(n,e),u=Object.assign({},o,c,t.filterUndefined(l),i),d=(r=u,function(e){return function(e){var n=e.configs,r=void 0===n?{}:n,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(n,a){void 0===a&&(a=!1);var s=t.runIfFn(n,i),l=function(e){return function(n){if(!n.__breakpoints)return e;var r=n.__breakpoints,a=r.isResponsive,o=r.toArrayValue,i=r.media,s={};for(var l in e){var c=t.runIfFn(e[l],n);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 f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,f,p,m,v,h=t.runIfFn(l[u],i);u in o&&(u=o[u]),Fr(u,h)&&(h=zr(i,h));var y=r[u];if(!0===y&&(y={property:u}),t.isObject(h)){var g;c[u]=null!=(g=c[u])?g:{},c[u]=t.mergeWith({},c[u],e(h,!0))}else{var b=null!=(d=null==(f=y)||null==f.transform?void 0:f.transform(h,i,s))?d:h;b=null!=(p=y)&&p.processResult?e(b,!0):b;var E=t.runIfFn(null==(m=y)?void 0:m.property,i);if(!a&&null!=(v=y)&&v.static){var x=t.runIfFn(y.static,i);c=t.mergeWith({},c,x)}if(E&&Array.isArray(E))for(var _,w=Tr(E);!(_=w()).done;)c[_.value]=b;else E?"&"===E&&t.isObject(b)?c=t.mergeWith({},c,b):c[E]=b:t.isObject(b)?c=t.mergeWith({},c,b):c[u]=b}}return c}}({theme:e,pseudos:Rr,configs:Lr})(r)})(e.theme);return a?[d,a]:d}}({baseStyle:a});return _a(e,o)(i)}function La(e){/*#__PURE__*/
|
4
|
+
return F.forwardRef(e)}var Da=["styleConfig"];function Ma(e,n){var r;void 0===n&&(n={});var a,o=n.styleConfig,i=Oa(n,Da),s=wa({},function(){var e=F.useContext(gn);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:ka()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,f=t.mergeWith({theme:l,colorMode:c},null!=(r=null==d?void 0:d.defaultProps)?r:{},t.filterUndefined(t.omit(i,["children"]))),p=F.useRef({});if(d){var m=(a=d,function(e){var n,r=e.variant,o=e.size,i=function(e){var n=e.__breakpoints;return function(e,r,a,o){if(n){var i={},s=function(e,n){return t.isArray(e)?e:t.isObject(e)?n(e):null!=e?[e]:void 0}(a,n.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,f=n.details[a],p=n.details[function(e,t){for(var n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}(s,a)],m=t.toMediaQueryString(f.minW,null==p?void 0:p._minW),v=t.runIfFn(null==(l=e[r])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var n,r;t.mergeWith(i,((r={})[e]=c?v[e]:((n={})[m]=v[e],n),r))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},f=0;f<l;f++)d(f);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(n=a.baseStyle)?n:{},e),i(a,"sizes",o,e),i(a,"variants",r,e))}),v=m(f);Yr(p.current,v)||(p.current=v)}return p.current}function Va(e,t){return void 0===t&&(t={}),Ma(e,t)}function ja(e,t){return void 0===t&&(t={}),Ma(e,t)}var Ba,Fa=(Ba=new Map,new Proxy(Ta,{apply:function(e,t,n){return Ta.apply(void 0,n)},get:function(e,t){return Ba.has(t)||Ba.set(t,Ta(t)),Ba.get(t)}})),za={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Wa=Fa("span",{baseStyle:za});t.__DEV__&&(Wa.displayName="VisuallyHidden");var Ha=Fa("input",{baseStyle:za});function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ua.apply(this,arguments)}t.__DEV__&&(Ha.displayName="VisuallyHiddenInput");var $a=["label","thickness","speed","emptyColor","className"],qa=function(){var e=Yt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ya=/*#__PURE__*/La(function(e,n){var r=Va("Spinner",e),a=Ca(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,f=void 0===d?"transparent":d,p=a.className,m=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,$a),v=t.cx("chakra-spinner",p),h=Ua({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:f,borderLeftColor:f,animation:qa+" "+u+" linear infinite"},r);/*#__PURE__*/
|
5
|
+
return F.createElement(Fa.div,Ua({ref:n,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(Wa,null,i))});function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}t.__DEV__&&(Ya.displayName="Spinner");var Ga=["as","viewBox","color","focusable","children","className","__css"],Xa={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"},Ka=/*#__PURE__*/La(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Ga),p={ref:n,focusable:l,className:t.cx("chakra-icon",u),__css:Za({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Xa.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
|
6
|
+
return F.createElement(Fa.svg,Za({as:r},p,f));var v=null!=c?c:Xa.path;/*#__PURE__*/
|
7
|
+
return F.createElement(Fa.svg,Za({verticalAlign:"middle",viewBox:m},p,f),v)});t.__DEV__&&(Ka.displayName="Icon");var Ja=Ka,Qa=function(e,t){return Qa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Qa(e,t)};function eo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Qa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var to=function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},to.apply(this,arguments)};function no(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function ro(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function ao(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var oo="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",io=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},so={measureLayout:io(["layout","layoutId","drag"]),animation:io(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:io(["exit"]),drag:io(["drag","dragControls"]),focus:io(["whileFocus"]),hover:io(["whileHover","onHoverStart","onHoverEnd"]),tap:io(["whileTap","onTap","onTapStart","onTapCancel"]),pan:io(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:io(["whileInView","onViewportEnter","onViewportLeave"])},lo=function(){},co=function(){};"production"!==process.env.NODE_ENV&&(lo=function(e,t){e||"undefined"==typeof console||console.warn(t)},co=function(e,t){if(!e)throw new Error(t)});var uo=F.createContext({strict:!1}),fo=Object.keys(so),po=fo.length,mo=F.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),vo=F.createContext({}),ho=F.createContext(null),yo="undefined"!=typeof document,go=yo?F.useLayoutEffect:F.useEffect,bo={current:null},Eo=!1;function xo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _o(e){return Array.isArray(e)}function wo(e){return"string"==typeof e||_o(e)}function ko(e,t,n,r,a){var o;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function So(e,t,n){var r=e.getProps();return ko(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function Co(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||wo(e.initial)||wo(e.animate)||wo(e.whileHover)||wo(e.whileDrag)||wo(e.whileTap)||wo(e.whileFocus)||wo(e.exit)}function Oo(e){return Boolean(Co(e)||e.variants)}function Ao(e){return Array.isArray(e)?e.join(" "):e}function No(e){var t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const Ro="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Io="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Ro()),16.666666666666668);let Po=!0,To=!1,Lo=!1;const Do={delta:0,timestamp:0},Mo=["read","update","preRender","render","postRender"],Vo=Mo.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,a=!1,o=!1;const i=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&a,c=l?t:n;return o&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&a&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(a)o=!0;else{if(a=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}a=!1,o&&(o=!1,s.process(l))}}};return s}(()=>To=!0),e),{}),jo=Mo.reduce((e,t)=>{const n=Vo[t];return e[t]=(e,t=!1,r=!1)=>(To||Ho(),n.schedule(e,t,r)),e},{}),Bo=Mo.reduce((e,t)=>(e[t]=Vo[t].cancel,e),{}),Fo=Mo.reduce((e,t)=>(e[t]=()=>Vo[t].process(Do),e),{}),zo=e=>Vo[e].process(Do),Wo=e=>{To=!1,Do.delta=Po?16.666666666666668:Math.max(Math.min(e-Do.timestamp,40),1),Do.timestamp=e,Lo=!0,Mo.forEach(zo),Lo=!1,To&&(Po=!1,Io(Wo))},Ho=()=>{To=!0,Po=!0,Lo||Io(Wo)},Uo=()=>Do,$o=(e,t,n)=>Math.min(Math.max(n,e),t);function qo(e,t){return e*Math.sqrt(1-t*t)}const Yo=["duration","bounce"],Zo=["stiffness","damping","mass"];function Go(e,t){return t.some(t=>void 0!==e[t])}function Xo(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:a}=e,o=no(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Go(e,Zo)&&Go(e,Yo)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,o;lo(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=$o(.05,1,i),e=$o(.01,10,e/1e3),i<1?(a=t=>{const r=t*i,a=r*e;return.001-(r-n)/qo(t,i)*Math.exp(-a)},o=t=>{const r=t*i*e,o=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=qo(Math.pow(t,2),i);return(.001-a(t)>0?-1:1)*((o-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=Ko,m=Ko;function v(){const e=u?-u/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===a&&(a=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=qo(i,o);p=a=>{const s=Math.exp(-o*i*a);return n-s*((e+o*i*r)/t*Math.sin(t*a)+r*Math.cos(t*a))},m=n=>{const a=Math.exp(-o*i*n);return o*i*a*(Math.sin(t*n)*(e+o*i*r)/t+r*Math.cos(t*n))-a*(Math.cos(t*n)*(e+o*i*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(o*o-1);p=a=>{const s=Math.exp(-o*i*a),l=Math.min(t*a,300);return n-s*((e+o*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const o=1e3*m(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=a;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],v()}}}Xo.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ko=e=>0,Jo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Qo=(e,t,n)=>-n*e+n*t+e,ei=(e,t)=>n=>Math.max(Math.min(n,t),e),ti=e=>e%1?Number(e.toFixed(5)):e,ni=/(-)?([\d]*\.?[\d])+/g,ri=/(#[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,ai=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function oi(e){return"string"==typeof e}const ii={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},si=Object.assign(Object.assign({},ii),{transform:ei(0,1)}),li=Object.assign(Object.assign({},ii),{default:1}),ci=e=>({test:t=>oi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ui=ci("deg"),di=ci("%"),fi=ci("px"),pi=ci("vh"),mi=ci("vw"),vi=Object.assign(Object.assign({},di),{parse:e=>di.parse(e)/100,transform:e=>di.transform(100*e)}),hi=(e,t)=>n=>Boolean(oi(n)&&ai.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yi=(e,t,n)=>r=>{if(!oi(r))return r;const[a,o,i,s]=r.match(ni);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},gi={test:hi("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+di.transform(ti(t))+", "+di.transform(ti(n))+", "+ti(si.transform(r))+")"},bi=ei(0,255),Ei=Object.assign(Object.assign({},ii),{transform:e=>Math.round(bi(e))}),xi={test:hi("rgb","red"),parse:yi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ei.transform(e)+", "+Ei.transform(t)+", "+Ei.transform(n)+", "+ti(si.transform(r))+")"},_i={test:hi("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:xi.transform},wi={test:e=>xi.test(e)||_i.test(e)||gi.test(e),parse:e=>xi.test(e)?xi.parse(e):gi.test(e)?gi.parse(e):_i.parse(e),transform:e=>oi(e)?e:e.hasOwnProperty("red")?xi.transform(e):gi.transform(e)};function ki(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ri);r&&(n=r.length,e=e.replace(ri,"${c}"),t.push(...r.map(wi.parse)));const a=e.match(ni);return a&&(e=e.replace(ni,"${n}"),t.push(...a.map(ii.parse))),{values:t,numColors:n,tokenised:e}}function Si(e){return ki(e).values}function Ci(e){const{values:t,numColors:n,tokenised:r}=ki(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=t.replace(r<n?"${c}":"${n}",r<n?wi.transform(e[r]):ti(e[r]));return t}}const Oi=e=>"number"==typeof e?0:e,Ai={test:function(e){var t,n,r,a;return isNaN(e)&&oi(e)&&(null!==(n=null===(t=e.match(ni))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(ri))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:Si,createTransformer:Ci,getAnimatableNone:function(e){const t=Si(e);return Ci(e)(t.map(Oi))}},Ni=new Set(["brightness","contrast","saturate","opacity"]);function Ri(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ni)||[];if(!r)return e;const a=n.replace(r,"");let o=Ni.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const Ii=/([a-z-]*)\(.*?\)/g,Pi=Object.assign(Object.assign({},Ai),{getAnimatableNone:e=>{const t=e.match(Ii);return t?t.map(Ri).join(" "):e}});function Ti(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Li({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=Ti(s,r,e+1/3),o=Ti(s,r,e),i=Ti(s,r,e-1/3)}else a=o=i=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}const Di=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Mi=[_i,xi,gi],Vi=e=>Mi.find(t=>t.test(e)),ji=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Bi=(e,t)=>{let n=Vi(e),r=Vi(t);co(!!n,ji(e)),co(!!r,ji(t));let a=n.parse(e),o=r.parse(t);n===gi&&(a=Li(a),n=xi),r===gi&&(o=Li(o),r=xi);const i=Object.assign({},a);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Di(a[t],o[t],e));return i.alpha=Qo(a.alpha,o.alpha,e),n.transform(i)}},Fi=e=>"number"==typeof e,zi=(e,t)=>n=>t(e(n)),Wi=(...e)=>e.reduce(zi);function Hi(e,t){return Fi(e)?n=>Qo(e,t,n):wi.test(e)?Bi(e,t):Yi(e,t)}const Ui=(e,t)=>{const n=[...e],r=n.length,a=e.map((e,n)=>Hi(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},$i=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Hi(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function qi(e){const t=Ai.parse(e),n=t.length;let r=0,a=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:o}}const Yi=(e,t)=>{const n=Ai.createTransformer(t),r=qi(e),a=qi(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?Wi(Ui(r.parsed,a.parsed),n):(lo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},Zi=(e,t)=>n=>Qo(e,t,n);function Gi(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;co(o===t.length,"Both input and output ranges must be the same length"),co(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],a=n||function(e){return"number"==typeof e?Zi:"string"==typeof e?wi.test(e)?Bi:Yi:Array.isArray(e)?Ui:"object"==typeof e?$i:void 0}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=Wi(e,o)}r.push(o)}return r}(t,r,a),s=2===o?function([e,t],[n]){return r=>n(Jo(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return a=>{let o=0,i=!1;if(a<=e[0]?i=!0:a>=e[r]&&(o=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>a||t===r);t++);o=t-1}const s=Jo(e[o],e[o+1],a);return t[o](s)}}(e,i);return n?t=>s($o(e[0],e[o-1],t)):s}const Xi=e=>t=>1-e(1-t),Ki=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ji=e=>t=>t*t*((e+1)*t-e),Qi=e=>e,es=e=>Math.pow(e,2),ts=Xi(es),ns=Ki(es),rs=e=>1-Math.sin(Math.acos(e)),as=Xi(rs),os=Ki(as),is=Ji(1.525),ss=Xi(is),ls=Ki(is),cs=(e=>{const t=Ji(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),us=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},ds=Xi(us);function fs(e,t){return e.map(()=>t||ns).splice(0,e.length-1)}function ps({from:e=0,to:t=1,ease:n,offset:r,duration:a=300}){const o={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),a);function l(){return Gi(s,i,{ease:Array.isArray(n)?n:fs(i,n)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{i.reverse(),c=l()}}}const ms={keyframes:ps,spring:Xo,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:o}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>a||t<-a),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}};function vs(e,t,n=0){return e-t-n}const hs=e=>{const t=({delta:t})=>e(t);return{start:()=>jo.update(t,!0),stop:()=>Bo.update(t)}};function ys(e){var t,n,{from:r,autoplay:a=!0,driver:o=hs,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=no(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,E=0,x=v.duration,_=!1,w=!0;const k=function(e){if(Array.isArray(e.to))return ps;if(ms[e.type])return ms[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ps:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xo:ps}(v);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Gi([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},v),{from:r,to:b}));return a&&(null==u||u(),h=o(function(e){if(w||(e=-e),i+=e,!_){const e=S.next(Math.max(0,i));y=e.value,g&&(y=g(y)),_=w?e.done:i<=0}null==m||m(y),_&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,w)&&(E++,"reverse"===l?(w=E%2==0,i=function(e,t,n=0,r=!0){return r?vs(t+-e,t,n):t-(e-t)+n}(i,x,c,w)):(i=vs(i,x,c),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function gs(e,t){return t?e*(1e3/t):0}const bs=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Es=e=>bs(e)&&e.hasOwnProperty("z"),xs=(e,t)=>Math.abs(e-t);function _s(e,t){if(Fi(e)&&Fi(t))return xs(e,t);if(bs(e)&&bs(t)){const n=xs(e.x,t.x),r=xs(e.y,t.y),a=Es(e)&&Es(t)?xs(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}const ws=(e,t)=>1-3*t+3*e,ks=(e,t)=>3*t-6*e,Ss=e=>3*e,Cs=(e,t,n)=>((ws(t,n)*e+ks(t,n))*e+Ss(t))*e,Os=(e,t,n)=>3*ws(t,n)*e*e+2*ks(t,n)*e+Ss(t);function As(e,t){-1===e.indexOf(t)&&e.push(t)}function Ns(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rs=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return As(this.subscriptions,e),function(){return Ns(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var a=0;a<r;a++){var o=this.subscriptions[a];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Is=function(){function e(e){var t=this;this.version="6.3.10",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Rs,this.velocityUpdateSubscribers=new Rs,this.renderSubscribers=new Rs,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=Uo(),a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=r.delta,t.lastUpdated=a,jo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return jo.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?gs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ps(e){return new Is(e)}var Ts=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Ls=function(e){return 1e3*e},Ds={linear:Qi,easeIn:es,easeInOut:ns,easeOut:ts,circIn:rs,circInOut:os,circOut:as,backIn:is,backInOut:ls,backOut:ss,anticipate:cs,bounceIn:ds,bounceInOut:e=>e<.5?.5*(1-us(1-2*e)):.5*us(2*e-1)+.5,bounceOut:us},Ms=function(e){if(Array.isArray(e)){co(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=ro(e,4);return function(e,t,n,r){if(e===t&&n===r)return Qi;const a=new Float32Array(11);for(let t=0;t<11;++t)a[t]=Cs(.1*t,e,n);return o=>0===o||1===o?o:Cs(function(t){let r=0,o=1;for(;10!==o&&a[o]<=t;++o)r+=.1;--o;const i=r+(t-a[o])/(a[o+1]-a[o])*.1,s=Os(i,e,n);return s>=.001?function(e,t,n,r){for(let a=0;a<8;++a){const a=Os(t,n,r);if(0===a)return t;t-=(Cs(t,n,r)-e)/a}return t}(t,i,e,n):0===s?i:function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=Cs(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(o),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(co(void 0!==Ds[e],"Invalid easing type '".concat(e,"'")),Ds[e]):e},Vs=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Ai.test(t)||t.startsWith("url(")))},js=function(e){return Array.isArray(e)},Bs=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Fs=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},zs=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ws=function(e){return{type:"keyframes",duration:.8,values:e}},Hs={x:Bs,y:Bs,z:Bs,rotate:Bs,rotateX:Bs,rotateY:Bs,rotateZ:Bs,scaleX:Fs,scaleY:Fs,scale:Fs,opacity:zs,backgroundColor:zs,color:zs,default:Fs},Us=to(to({},ii),{transform:Math.round}),$s={borderWidth:fi,borderTopWidth:fi,borderRightWidth:fi,borderBottomWidth:fi,borderLeftWidth:fi,borderRadius:fi,radius:fi,borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomRightRadius:fi,borderBottomLeftRadius:fi,width:fi,maxWidth:fi,height:fi,maxHeight:fi,size:fi,top:fi,right:fi,bottom:fi,left:fi,padding:fi,paddingTop:fi,paddingRight:fi,paddingBottom:fi,paddingLeft:fi,margin:fi,marginTop:fi,marginRight:fi,marginBottom:fi,marginLeft:fi,rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:li,scaleX:li,scaleY:li,scaleZ:li,skew:ui,skewX:ui,skewY:ui,distance:fi,translateX:fi,translateY:fi,translateZ:fi,x:fi,y:fi,z:fi,perspective:fi,transformPerspective:fi,opacity:si,originX:vi,originY:vi,originZ:fi,zIndex:Us,fillOpacity:si,strokeOpacity:si,numOctaves:Us},qs=to(to({},$s),{color:wi,backgroundColor:wi,outlineColor:wi,fill:wi,stroke:wi,borderColor:wi,borderTopColor:wi,borderRightColor:wi,borderBottomColor:wi,borderLeftColor:wi,filter:Pi,WebkitFilter:Pi}),Ys=function(e){return qs[e]};function Zs(e,t){var n,r=Ys(e);return r!==Pi&&(r=Ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Gs=function(e){return js(e)?e[e.length-1]||0:e},Xs=!1;function Ks(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Js(e){return"number"==typeof e?0:Zs("",e)}function Qs(e,t){return e[t]||e.default||e}function el(e,t,n,r){return void 0===r&&(r={}),t.start(function(a){var o,i,s=function(e,t,n,r,a){var o,i=Qs(r,e),s=null!==(o=i.from)&&void 0!==o?o:t.get(),l=Vs(e,n);"none"===s&&l&&"string"==typeof n?s=Zs(e,n):Ks(s)&&"string"==typeof n?s=Js(n):!Array.isArray(n)&&Ks(n)&&"string"==typeof s&&(n=Js(s));var c=Vs(e,s);return lo(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:a=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=ys(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=a*t+e;void 0!==c&&(r=c(r));const i=h(r),s=i===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=gs(e-u,Uo().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:a,restDelta:l,modifyTarget:c,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(to(to({},r),i)):ys(to(to({},function(e,t,n){var r,a,o,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ao([],ro(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=no(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=to(to({},e),(a=n,i=js(o=t.to)?Ws:Hs[a]||Hs.default,to({to:o},i(o))))),to(to({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,o=e.loop,i=no(e,["ease","times","yoyo","flip","loop"]),s=to({},i);return n&&(s.offset=n),i.duration&&(s.duration=Ls(i.duration)),i.repeatDelay&&(s.repeatDelay=Ls(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Ms):Ms(t)),"tween"===i.type&&(s.type="keyframes"),(r||o||a)&&(lo(!Xs,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Xs=!0,r?s.repeatType="reverse":o?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=o||r||a||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,o=Gs(n);return t.set(o),a(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,o),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,a),l=function(e,t){var n,r;return null!==(r=null!==(n=(Qs(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?o=window.setTimeout(c,Ls(l)):c(),function(){clearTimeout(o),null==i||i.stop()}})}var tl=["TopLeft","TopRight","BottomLeft","BottomRight"],nl=tl.length,rl=function(e){return"string"==typeof e?parseFloat(e):e},al=function(e){return"number"==typeof e||fi.test(e)};function ol(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var il=ll(0,.5,as),sl=ll(.5,.95,Qi);function ll(e,t,n){return function(r){return r<e?0:r>t?1:n(Jo(e,t,r))}}function cl(e,t){e.min=t.min,e.max=t.max}function ul(e,t){cl(e.x,t.x),cl(e.y,t.y)}function dl(e){return void 0===e||1===e}function fl(e){var t=e.scaleX,n=e.scaleY;return!dl(e.scale)||!dl(t)||!dl(n)}function pl(e){return fl(e)||ml(e.x)||ml(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ml(e){return e&&"0%"!==e}function vl(e,t,n){return n+t*(e-n)}function hl(e,t,n,r,a){return void 0!==a&&(e=vl(e,a,r)),vl(e,n,r)+t}function yl(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=hl(e.min,t,n,r,a),e.max=hl(e.max,t,n,r,a)}function gl(e,t){var n=t.x,r=t.y;yl(e.x,n.translate,n.scale,n.originPoint),yl(e.y,r.translate,r.scale,r.originPoint)}function bl(e,t){e.min=e.min+t,e.max=e.max+t}function El(e,t,n){var r=ro(n,3),a=r[0],o=r[1],i=r[2],s=Qo(e.min,e.max,void 0!==t[i]?t[i]:.5);yl(e,t[a],t[o],s,t.scale)}var xl=["x","scaleX","originX"],_l=["y","scaleY","originY"];function wl(e,t){El(e.x,t,xl),El(e.y,t,_l)}function kl(e){return e.max-e.min}function Sl(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),_s(e,t)<n}function Cl(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Qo(t.min,t.max,e.origin),e.scale=kl(n)/kl(t),(Sl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Qo(n.min,n.max,e.origin)-e.originPoint,(Sl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ol(e,t,n,r){Cl(e.x,t.x,n.x,null==r?void 0:r.originX),Cl(e.y,t.y,n.y,null==r?void 0:r.originY)}function Al(e,t,n){e.min=n.min+t.min,e.max=e.min+kl(t)}function Nl(e,t,n){e.min=t.min-n.min,e.max=e.min+kl(t)}function Rl(e,t,n){Nl(e.x,t.x,n.x),Nl(e.y,t.y,n.y)}function Il(e,t,n,r,a){return e=vl(e-=t,1/n,r),void 0!==a&&(e=vl(e,1/a,r)),e}function Pl(e,t,n,r,a){var o=ro(n,3);!function(e,t,n,r,a,o,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===i&&(i=e),di.test(t)&&(t=parseFloat(t),t=Qo(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=Qo(o.min,o.max,r);e===o&&(s-=t),e.min=Il(e.min,t,n,s,a),e.max=Il(e.max,t,n,s,a)}}(e,t[o[0]],t[o[1]],t[o[2]],t.scale,r,a)}var Tl=["x","scaleX","originX"],Ll=["y","scaleY","originY"];function Dl(e,t,n,r){Pl(e.x,t,Tl,null==n?void 0:n.x,null==r?void 0:r.x),Pl(e.y,t,Ll,null==n?void 0:n.y,null==r?void 0:r.y)}function Ml(e){return 0===e.translate&&1===e.scale}function Vl(e){return Ml(e.x)&&Ml(e.y)}function jl(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 Bl=function(){function e(){this.members=[]}return e.prototype.add=function(e){As(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ns(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var a=this.members[r];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Fl={};function zl(e,t,n){var r=e.y.translate/t.y,a="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(n){var o=n.rotate,i=n.rotateX,s=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),i&&(a+="rotateX(".concat(i,"deg) ")),s&&(a+="rotateY(".concat(s,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":a}function Wl(e){return[e("x"),e("y")]}var Hl=["","X","Y","Z"],Ul=["transformPerspective","x","y","z"];function $l(e,t){return Ul.indexOf(e)-Ul.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Hl.forEach(function(t){return Ul.push(e+t)})});var ql=new Set(Ul);function Yl(e){return ql.has(e)}var Zl=new Set(["originX","originY","originZ"]);function Gl(e){return Zl.has(e)}var Xl=function(e,t){return e.depth-t.depth},Kl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){As(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ns(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Xl),this.isDirty=!1,this.children.forEach(e)},e}();function Jl(e){var t=Ts(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ec(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.resetTransform;return function(){function e(e,t,r){var a=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(sc),a.nodes.forEach(lc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?ao(ao([],ro(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Rs),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,ao([],ro(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return a.root.updateBlockedByResize=!1};t(e,function(){a.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),Ql.hasAnimatedSinceResize&&(Ql.hasAnimatedSinceResize=!1,a.nodes.forEach(ic))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var f=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:mc,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!a.targetLayout||!jl(a.targetLayout,d)||u,y=!c&&u;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(h||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=to(to({},Qs(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}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,Bo.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(cc))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a<this.path.length;a++){var o=this.path[a];o.shouldResetTransform=!0,o.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ac);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(vc),this.potentialNodes.clear()),this.nodes.forEach(oc),this.nodes.forEach(tc),this.nodes.forEach(nc),this.clearAllSnapshots(),Fo.update(),Fo.preRender(),Fo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(rc),this.sharedNodes.forEach(uc)},e.prototype.scheduleUpdateProjection=function(){jo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;jo.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));yc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();yc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Vl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||pl(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(bl(t.x,n.x),bl(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};ul(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll;r!==this.root&&a&&r.options.layoutScroll&&(bl(t.x,a.x),bl(t.y,a.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};ul(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&wl(n,{x:-a.scroll.x,y:-a.scroll.y}),pl(a.latestValues)&&wl(n,a.latestValues)}return pl(this.latestValues)&&wl(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};ul(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&pl(a.latestValues)){fl(a.latestValues)&&a.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};ul(o,a.measure()),Dl(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,o)}}return pl(this.latestValues)&&Dl(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=to(to(to({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,a=this.options;this.layout&&(a.layout||a.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Rl(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ul(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)?(Al((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),Al(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):ul(this.target,this.layout.actual),gl(this.target,this.targetDelta)):ul(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}},Rl(this.relativeTargetOrigin,this.target,this.relativeParent.target),ul(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!pl(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var a=this.getLead();ul(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,o;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&wl(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,gl(e,l)),r&&pl(s.latestValues)&&wl(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;Ol(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=zl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var a=this.snapshot,o=(null==a?void 0:a.latestValues)||{},i=to({},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===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(pc));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;dc(s.x,e.x,a),dc(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Rl(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){fc(e.x,t.x,n.x,r),fc(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,a)),c&&(r.animationValues=i,function(e,t,n,r,a,o){var i,s,l,c;a?(e.opacity=Qo(0,null!==(i=n.opacity)&&void 0!==i?i:1,il(r)),e.opacityExit=Qo(null!==(s=t.opacity)&&void 0!==s?s:1,0,sl(r))):o&&(e.opacity=Qo(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<nl;u++){var d="border".concat(tl[u],"Radius"),f=ol(t,d),p=ol(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||al(f)===al(p)?(e[d]=Math.max(Qo(rl(f),rl(p),r),0),(di.test(p)||di.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Qo(t.rotate||0,n.rotate||0,r))}(i,o,r.latestValues,a,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Bo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jo.update(function(){Ql.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ts(0)?0:Ps(0);return el("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,to(to({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(ul(t,n),wl(t,r),Ol(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bl),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,a=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Hl.length;r++)e.getStaticValue(a="rotate"+Hl[r])&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0));if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,o,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Jl(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=Jl(e.pointerEvents)||""),this.hasProjected&&!pl(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=zl(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(a=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,Fl)if(void 0!==d[v]){var h=Fl[v],y=h.applyTo,g=(0,h.correct)(d[v],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Jl(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(ac),this.root.sharedNodes.clear()},e}()}function tc(e){e.updateLayout()}function nc(e){var t,n,r,a,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Wl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=kl(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Wl(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=kl(s[e]);t.max=t.min+n});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ol(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?Ol(u,e.applyTransform(l,!0),o.measured):Ol(u,s,o.layout);var d=!Vl(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};Rl(h,o.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Rl(y,s,v.actual),jl(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function rc(e){e.clearSnapshot()}function ac(e){e.clearMeasurements()}function oc(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function ic(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sc(e){e.resolveTargetDelta()}function lc(e){e.calcProjection()}function cc(e){e.resetRotation()}function uc(e){e.removeLeadSnapshot()}function dc(e,t,n){e.translate=Qo(t.translate,0,n),e.scale=Qo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fc(e,t,n,r){e.min=Qo(t.min,n.min,r),e.max=Qo(t.max,n.max,r)}function pc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var mc={duration:.45,ease:[.4,0,.1,1]};function vc(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function hc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function yc(e){hc(e.x),hc(e.y)}var gc=1,bc=F.createContext({}),Ec=F.createContext({}),xc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eo(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 _c(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?so.projectionNodeConstructor=e[t]:so[t].Component=e[t])}(t),F.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=F.useContext(bc))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=to(to({},e),{layoutId:l});var c=F.useContext(mo),u=null,d=function(e){var t=function(e,t){if(Co(e)){var n=e.initial,r=e.animate;return{initial:!1===n||wo(n)?n:void 0,animate:wo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(vo)),n=t.initial,r=t.animate;return F.useMemo(function(){return{initial:n,animate:r}},[Ao(n),Ao(r)])}(e),f=c.isStatic?void 0:No(function(){if(Ql.hasEverUpdated)return gc++}),p=o(e,c.isStatic);return!c.isStatic&&yo&&(d.visualElement=function(e,t,n,r){var a,o,i=F.useContext(uo),s=F.useContext(vo).visualElement,l=F.useContext(ho),c=(!Eo&&function(){if(Eo=!0,yo)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return bo.current=e.matches};e.addListener(t),t()}else bo.current=!1}(),a=ro(F.useState(bo.current),1)[0],"never"!==(o=F.useContext(mo).reducedMotion)&&("always"===o||a)),u=F.useRef(void 0);r||(r=i.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=u.current;return go(function(){null==d||d.syncRender()}),F.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),go(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,to(to({},c),e),n),function(e,t,n,r){var a,o=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=F.useContext(Ec);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||l&&xo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(f,e,d.visualElement,r||so.projectionNodeConstructor),u=function(e,t,n){var r=[],a=F.useContext(uo);if(!t)return null;"production"!==oo&&n&&a.strict&&co(!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<po;o++){var i=fo[o],s=so[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(F.createElement(l,to({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),F.createElement(xc,{visualElement:d.visualElement,props:to(to({},c),e)},u,F.createElement(vo.Provider,{value:d},a(i,e,f,function(e,t,n){return F.useCallback(function(r){var a;r&&(null===(a=e.mount)||void 0===a||a.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):xo(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,c.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var wc=["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 kc(e){return"string"==typeof e&&!e.includes("-")&&!!(wc.indexOf(e)>-1||/[A-Z]/.test(e))}function Sc(e,t){var n=t.layout,r=t.layoutId;return Yl(e)||Gl(e)||(n||void 0!==r)&&(!!Fl[e]||"opacity"===e)}var Cc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Oc(e){return e.startsWith("--")}var Ac=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Nc(e,t,n,r){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,f=!0;for(var p in t){var m=t[p];if(Oc(p))i[p]=m;else{var v=$s[p],h=Ac(m,v);if(Yl(p)){if(u=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(f=!1)}else Gl(p)?(c[p]=h,d=!0):o[p]=h}}u?o.transform=function(e,t,n,r){var a=e.transform,o=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort($l);for(var d=!1,f=o.length,p=0;p<f;p++){var m=o[p];u+="".concat(Cc[m]||m,"(").concat(a[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(a,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,a=e.originZ,o=void 0===a?0:a;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(o)}(c))}function Rc(e,t,n){for(var r in t)Ts(t[r])||Sc(r,n)||(e[r]=t[r])}function Ic(e,t,n){var r={},a=function(e,t,n){var r={};return Rc(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Nc(e,t,{enableHardwareAcceleration:!n},r);var a=e.style;return to(to({},e.vars),a)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var Pc=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 Tc(e){return Pc.has(e)}var Lc,Dc=function(e){return!Tc(e)};try{(Lc=require("@emotion/is-prop-valid").default)&&(Dc=function(e){return e.startsWith("on")?!Tc(e):Lc(e)})}catch(e){}function Mc(e,t,n){return"string"==typeof e?e:fi.transform(t+n*e)}var Vc={offset:"stroke-dashoffset",array:"stroke-dasharray"},jc={offset:"strokeDashoffset",array:"strokeDasharray"};function Bc(e,t,n,r){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,f=void 0===d?0:d;Nc(e,no(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Mc(t,e.x,e.width),a=Mc(n,e.y,e.height);return"".concat(r," ").concat(a)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var o=a?Vc:jc;e[o.offset]=fi.transform(-r);var i=fi.transform(t),s=fi.transform(n);e[o.array]="".concat(i," ").concat(s)}(p,l,u,f,!1)}var Fc=function(){return to(to({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function zc(e,t){var n=F.useMemo(function(){var n=Fc();return Bc(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),to(to({},n.attrs),{style:to({},n.style)})},[t]);if(e.style){var r={};Rc(r,e.style,e),n.style=to(to({},r),n.style)}return n}function Wc(e){return void 0===e&&(e=!1),function(t,n,r,a,o,i){var s=o.latestValues,l=(kc(t)?zc:Ic)(n,s,i),c=function(e,t,n){var r={};for(var a in e)(Dc(a)||!0===n&&Tc(a)||!t&&!Tc(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(n,"string"==typeof t,e),u=to(to(to({},c),l),{ref:a});return r&&(u["data-projection-id"]=r),F.createElement(t,u)}}var Hc=/([a-z])([A-Z])/g,Uc=function(e){return e.replace(Hc,"$1-$2").toLowerCase()};function $c(e,t,n,r){var a=t.style,o=t.vars;for(var i in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),o)e.style.setProperty(i,o[i])}var qc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Yc(e,t,n,r){for(var a in $c(e,t,void 0,r),t.attrs)e.setAttribute(qc.has(a)?a:Uc(a),t.attrs[a])}function Zc(e){var t=e.style,n={};for(var r in t)(Ts(t[r])||Sc(r,e))&&(n[r]=t[r]);return n}function Gc(e){var t=Zc(e);for(var n in e)Ts(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Xc(e){return"object"==typeof e&&"function"==typeof e.start}function Kc(e,t,n,r){var a=e.createRenderState,o=e.onMount,i={latestValues:Qc(t,n,r,e.scrapeMotionValuesFromProps),renderState:a()};return o&&(i.mount=function(e){return o(t,e,i)}),i}var Jc=function(e){return function(t,n){var r=F.useContext(vo),a=F.useContext(ho);return n?Kc(e,t,r,a):No(function(){return Kc(e,t,r,a)})}};function Qc(e,t,n,r){var a={},o=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)a[s]=Jl(i[s]);var l=e.initial,c=e.animate,u=Co(e),d=Oo(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=o||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!Xc(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=ko(e,t);if(n){var r=n.transitionEnd,o=no(n,["transitionEnd","transition"]);for(var i in o){var s=o[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(a[i]=s)}for(var i in r)a[i]=r[i]}}),a}var eu,tu={useVisualState:Jc({scrapeMotionValuesFromProps:Gc,createRenderState:Fc,onMount:function(e,t,n){var r=n.renderState,a=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Bc(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),Yc(t,r)}})},nu={useVisualState:Jc({scrapeMotionValuesFromProps:Zc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function ru(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function au(e,t,n,r){F.useEffect(function(){var a=e.current;if(n&&a)return ru(a,t,n,r)},[e,t,n,r])}function ou(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function iu(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"}(eu||(eu={}));var su={pageX:0,pageY:0};function lu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||su;return{x:n[t+"X"],y:n[t+"Y"]}}function cu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function uu(e,t){return void 0===t&&(t="page"),{point:iu(e)?lu(e,t):cu(e,t)}}var du=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,uu(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},fu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},pu={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mu(e){return yo&&null===window.onpointerdown?e:yo&&null===window.ontouchstart?pu[e]:yo&&null===window.onmousedown?fu[e]:e}function vu(e,t,n,r){return ru(e,mu(t),du(n,"pointerdown"===t),r)}function hu(e,t,n,r){return au(e,mu(t),n&&du(n,"pointerdown"===t),r)}function yu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var gu=yu("dragHorizontal"),bu=yu("dragVertical");function Eu(e){var t=!1;if("y"===e)t=bu();else if("x"===e)t=gu();else{var n=gu(),r=bu();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function xu(){var e=Eu(!0);return!e||(e(),!1)}function _u(e,t,n){return function(r,a){var o;ou(r)&&!xu()&&(null===(o=e.animationState)||void 0===o||o.setActive(eu.Hover,t),null==n||n(r,a))}}var wu=function(e,t){return!!t&&(e===t||wu(e,t.parentElement))};function ku(e){return F.useEffect(function(){return function(){return e()}},[])}var Su=new Set;function Cu(e,t,n){e||Su.has(t)||(console.warn(t),n&&console.warn(n),Su.add(t))}var Ou=new WeakMap,Au=new WeakMap,Nu=function(e){var t;null===(t=Ou.get(e.target))||void 0===t||t(e)},Ru=function(e){e.forEach(Nu)},Iu={some:0,all:1};function Pu(e,t,n,r){var a=r.root,o=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;F.useEffect(function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof s?s:Iu[s]};return function(e,r,a){var o=function(e){var t=e.root,n=no(e,["root"]),r=t||document;Au.has(r)||Au.set(r,{});var a=Au.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(Ru,to({root:t},n))),a[o]}(r);return Ou.set(e,function(e){var r,a=e.isIntersecting;if(t.isInView!==a&&(t.isInView=a,!l||a||!t.hasEnteredView)){a&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(eu.InView,a);var o=n.getProps(),i=a?o.onViewportEnter:o.onViewportLeave;null==i||i(e)}}),o.observe(e),function(){Ou.delete(e),o.unobserve(e)}}(n.getInstance(),r)}},[e,a,o,s])}function Tu(e,t,n,r){var a=r.fallback,o=void 0===a||a;F.useEffect(function(){e&&o&&("production"!==oo&&Cu(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(eu.InView,!0)}))},[e])}var Lu=function(e){return function(t){return e(t),null}},Du={inView:Lu(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,i=void 0===o?{}:o,s=F.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||a);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Tu:Pu)(l,s.current,t,i)}),tap:Lu(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.visualElement,o=t||n||r||e.whileTap,i=F.useRef(!1),s=F.useRef(null),l={passive:!(n||t||r||p)};function 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(eu.Tap,!1),!xu()}function d(e,n){u()&&(wu(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){u()&&(null==r||r(e,t))}function p(e,t){var r;c(),i.current||(i.current=!0,s.current=Wi(vu(window,"pointerup",d,l),vu(window,"pointercancel",f,l)),null===(r=a.animationState)||void 0===r||r.setActive(eu.Tap,!0),null==n||n(e,t))}hu(a,"pointerdown",o?p:void 0,l),ku(c)}),focus:Lu(function(e){var t=e.whileFocus,n=e.visualElement;au(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(eu.Focus,!0)}:void 0),au(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(eu.Focus,!1)}:void 0)}),hover:Lu(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;hu(a,"pointerenter",t||r?_u(a,!0,t):void 0,{passive:!t}),hu(a,"pointerleave",n||r?_u(a,!1,n):void 0,{passive:!n})})},Mu=0,Vu=function(){return Mu++},ju=function(){return No(Vu)};function Bu(){var e=F.useContext(ho);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=ju();return F.useEffect(function(){return r(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Fu(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var zu=function(e){return/^\-?\d*\.?\d+$/.test(e)},Wu=function(e){return/^0[^.\s]+$/.test(e)},Hu=function(e){return function(t){return t.test(e)}},Uu=[ii,fi,di,ui,mi,pi,{test:function(e){return"auto"===e},parse:function(e){return e}}],$u=function(e){return Uu.find(Hu(e))},qu=ao(ao([],ro(Uu),!1),[wi,Ai],!1),Yu=function(e){return qu.find(Hu(e))};function Zu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ps(n))}function Gu(e,t){if(t)return(t[e]||t.default||t).from}function Xu(e,t,n){var r;void 0===n&&(n={});var a=So(e,t,n.custom),o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);var s=a?function(){return Ku(e,a,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var a=i.delayChildren;return function(e,t,n,r,a,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===a?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Ju).forEach(function(e,r){i.push(Xu(e,t,to(to({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===a?0:a)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=ro("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Ku(e,t,n){var r,a=void 0===n?{}:n,o=a.delay,i=void 0===o?0:o,s=a.transitionOverride,l=a.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=no(c,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Qu(v,h))){var b=to({delay:i},d);e.shouldReduceMotion&&Yl(h)&&(b=to(to({},b),{type:!1,delay:0}));var E=el(h,y,g,b);m.push(E)}}return Promise.all(m).then(function(){f&&function(e,t){var n=So(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,o=void 0===a?{}:a,i=no(r,["transitionEnd","transition"]);for(var s in i=to(to({},i),o))Zu(e,s,Gs(i[s]))}(e,f)})}function Ju(e,t){return e.sortNodePosition(t)}function Qu(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var ed=[eu.Animate,eu.InView,eu.Focus,eu.Hover,eu.Tap,eu.Drag,eu.Exit],td=ao([],ro(ed),!1).reverse(),nd=ed.length;function rd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var ad={animation:Lu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map(function(t){return Xu(e,t,n)});r=Promise.all(a)}else if("string"==typeof t)r=Xu(e,t,n);else{var o="function"==typeof t?So(e,t,n.custom):t;r=Ku(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[eu.Animate]=rd(!0),t[eu.InView]=rd(),t[eu.Hover]=rd(),t[eu.Tap]=rd(),t[eu.Drag]=rd(),t[eu.Focus]=rd(),t[eu.Exit]=rd(),t),a={},o=!0,i=function(t,n){var r=So(e,n);if(r){var a=r.transitionEnd,o=no(r,["transition","transitionEnd"]);t=to(to(to({},t),o),a)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var a=td[n],v=r[a],h=null!==(l=c[a])&&void 0!==l?l:u[a],y=wo(h),g=a===s?v.isActive:null;!1===g&&(m=n);var b=h===u[a]&&h!==c[a]&&y;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=to({},p),!v.isActive&&null===g||!h&&!v.prevProp||Xc(h)||"boolean"==typeof h)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!_o(t)&&!Fu(t,e)}(v.prevProp,h),x=E||a===s&&v.isActive&&!b&&y||n>m&&y,_=Array.isArray(h)?h:[h],w=_.reduce(i,{});!1===g&&(w={});var k=v.prevResolvedValues,S=void 0===k?{}:k,C=to(to({},S),w),O=function(e){x=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in C){var N=w[A],R=S[A];p.hasOwnProperty(A)||(N!==R?js(N)&&js(R)?!Fu(N,R)||E?O(A):v.protectedKeys[A]=!0:void 0!==N?O(A):f.add(A):void 0!==N&&f.has(A)?O(A):v.protectedKeys[A]=!0)}v.prevProp=h,v.prevResolvedValues=w,v.isActive&&(p=to(to({},p),w)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,ao([],ro(_.map(function(e){return{animation:e,options:to({type:a},t)}})),!1))},h=0;h<nd;h++)v(h);if(a=to({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==a[e]},animateChanges:s,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(a,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Xc(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:Lu(function(e){var t=e.custom,n=e.visualElement,r=ro(Bu(),2),a=r[0],o=r[1],i=F.useContext(ho);F.useEffect(function(){var e,r;n.isPresent=a;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(eu.Exit,!a,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!a&&(null==s||s.then(o))},[a])})},od=function(){function e(e,t,n){var r=this,a=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ld(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=_s(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,o=Uo().timestamp;r.history.push(to(to({},a),{timestamp:o}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=id(t,r.transformPagePoint),ou(e)&&0===e.buttons?r.handlePointerUp(e,t):jo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,o=n.onSessionEnd,i=ld(id(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,i),o&&o(e,i)},!(iu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var o=id(uu(e),this.transformPagePoint),i=o.point,s=Uo().timestamp;this.history=[to(to({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ld(o,this.history)),this.removeListeners=Wi(vu(window,"pointermove",this.handlePointerMove),vu(window,"pointerup",this.handlePointerUp),vu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Bo.update(this.updatePoint)},e}();function id(e,t){return t?{point:t(e.point)}:e}function sd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ld(e,t){var n=e.point;return{point:n,delta:sd(n,ud(t)),offset:sd(n,cd(t)),velocity:dd(t,.1)}}function cd(e){return e[0]}function ud(e){return e[e.length-1]}function dd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=ud(e);n>=0&&!(a.timestamp-(r=e[n]).timestamp>Ls(t));)n--;if(!r)return{x:0,y:0};var o=(a.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function fd(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pd(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ro([a,r],2))[0],a=n[1]),{min:r,max:a}}function md(e,t,n){return{min:vd(e,t),max:vd(e,n)}}function vd(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function hd(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function yd(e,t){return hd(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var gd=new WeakMap,bd=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new od(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(uu(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),o=a.drag,i=a.onDragStart;(!o||a.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Eu(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Wl(function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(di.test(a)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(a=kl(o)*(parseFloat(a)/100))}n.originPoint[e]=a}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(eu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.onDirectionLock,o=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==o||o(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(eu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ed(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?Qo(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Qo(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.bottom;return{x:fd(e.x,t.left,t.right),y:fd(e.y,n,r)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:md(e,"left","right"),y:md(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Wl(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!xo(t))return!1;var r=t.current;co(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=yd(e,n),a=t.scroll;return a&&(bl(r.x,a.x),bl(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:pd(e.x,t.x),y:pd(e.y,t.y)}}(a.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=hd(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Wl(function(n){var l;if(Ed(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=to(to({type:"inertia",velocity:a?e[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(n,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return el(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Wl(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Wl(function(n){if(Ed(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n];a.set(e[n]-Qo(o.min,o.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=this.visualElement.projection;if(xo(n.dragConstraints)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Wl(function(e){var n,r,a,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();o[e]=(r=t.constraints[e],a=.5,i=kl(n={min:c,max:c}),(s=kl(r))>i?a=Jo(r.min,r.max-i,n.min):i>s&&(a=Jo(n.min,n.max-s,r.min)),$o(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(),Wl(function(e){if(Ed(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e];n.set(Qo(a.min,a.max,o[e]))}})}},e.prototype.addListeners=function(){var e,t=this;gd.set(this.visualElement,this);var n=vu(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){xo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=ru(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Wl(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,f=void 0===d||d;return to(to({},e),{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function Ed(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var xd={pan:Lu(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,i=t||n||r||a,s=F.useRef(null),l=F.useContext(mo).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};F.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),hu(o,"pointerdown",i&&function(e){s.current=new od(e,c,{transformPagePoint:l})}),ku(function(){return s.current&&s.current.end()})}),drag:Lu(function(e){var t=e.dragControls,n=e.visualElement,r=No(function(){return new bd(n)});F.useEffect(function(){return t&&t.subscribe(r)},[r,t]),F.useEffect(function(){return r.addListeners()},[r])})},_d=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],wd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,o=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=h.latestValues,_=h.renderState,w=function(){var e=_d.map(function(){return new Rs}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){_d.forEach(function(r){var a,o="on"+r,i=e[o];null===(a=t[r])||void 0===a||a.call(t),i&&(t[r]=n[o](i))})}};return e.forEach(function(e,t){n["on"+_d[t]]=function(t){return e.add(t)},n["notify"+_d[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ao([],ro(t),!1))}}),n}(),k=new Map,S=new Map,C={},O=to({},x);function A(){g&&E&&(N(),s(g,_,p.style,V.projection))}function N(){r(V,_,x,t,p)}function R(){w.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&jo.update(R,!1,!0)}),r=t.onRenderRequest(V.scheduleRender);S.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==x[T]&&Ts(L)&&L.set(x[T],!1)}var D=Co(p),M=Oo(p),V=to(to({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=V.current=e,V.projection&&V.projection.mount(e),M&&f&&!D&&(b=null==f?void 0:f.addVariantChild(V)),k.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(V),V.setProps(p)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),Bo.update(R),Bo.render(A),S.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(V),w.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=V.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?V:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(V,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),k.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],c(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Ps(t),V.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(a){var t=a(p,e);if(void 0!==t&&!Ts(t))return t}return O[e]}},w),{build:function(){return N(),_},scheduleRender:function(){jo.render(A,!1,!0)},syncRender:A,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&V.scheduleRender(),p=e,w.updatePropListeners(e),C=function(e,t,n){var r;for(var a in t){var o=t[a],i=n[a];if(Ts(o))e.addValue(a,o),"development"===process.env.NODE_ENV&&Cu("6.3.10"===o.version,"Attempting to mix Framer Motion versions ".concat(o.version," with 6.3.10 may not work as expected."));else if(Ts(i))e.addValue(a,Ps(o));else if(i!==o)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(o)}else e.addValue(a,Ps(null!==(r=e.getStaticValue(a))&&void 0!==r?r:o))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(V,d(p),C)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Sd;r++){var a=kd[r],o=p[a];(wo(o)||!1===o)&&(n[a]=o)}return n}});return V}},kd=ao(["initial"],ro(ed),!1),Sd=kd.length;function Cd(e){return"string"==typeof e&&e.startsWith("var(--")}var Od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ad(e,t,n){void 0===n&&(n=1),co(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=ro(function(e){var t=Od.exec(e);if(!t)return[,];var n=ro(t,3);return[n[1],n[2]]}(e),2),a=r[0],o=r[1];if(a){var i=window.getComputedStyle(t).getPropertyValue(a);return i?i.trim():Cd(o)?Ad(o,t,n+1):o}}var Nd,Rd=new Set(["width","height","top","left","right","bottom","x","y"]),Id=function(e){return Rd.has(e)},Pd=function(e,t){e.set(t,!1),e.set(t)},Td=function(e){return e===ii||e===fi};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Nd||(Nd={}));var Ld=function(e,t){return parseFloat(e.split(", ")[t])},Dd=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return Ld(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?Ld(i[1],e):0}},Md=new Set(["x","y","z"]),Vd=Ul.filter(function(e){return!Md.has(e)}),jd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(o)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:Dd(4,13),y:Dd(5,14)},Bd={treeType:"dom",readValueFromInstance:function(e,t){if(Yl(t)){var n=Ys(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(Oc(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return yd(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var a=n.transformValues;void 0===r&&(r=!0);var o=t.transition,i=t.transitionEnd,s=no(t,["transition","transitionEnd"]),l=function(e,t,n){var r,a,o={};for(var i in e)o[i]=null!==(r=Gu(i,t))&&void 0!==r?r:null===(a=n.getValue(i))||void 0===a?void 0:a.get();return o}(s,o||{},e);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),r){!function(e,t,n){var r,a,o,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(a=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==a?a:t[u]),null!=f&&("string"==typeof f&&(zu(f)||Wu(f))?f=parseFloat(f):!Yu(f)&&Ai.test(d)&&(f=Zs(u,d)),e.addValue(u,Ps(f)),null!==(o=(i=n)[u])&&void 0!==o||(i[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,n,r){var a=function(e,t,n){var r,a=no(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:a,transitionEnd:n};for(var i in n&&(n=to({},n)),e.forEachValue(function(e){var t=e.get();if(Cd(t)){var n=Ad(t,o);n&&e.set(n)}}),a){var s=a[i];if(Cd(s)){var l=Ad(s,o);l&&(a[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(Id)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=to({},t),r=to({},r);var a=Object.keys(t).filter(Id),o=[],i=!1,s=[];if(a.forEach(function(a){var l=e.getValue(a);if(e.hasValue(a)){var c,u=n[a],d=$u(u),f=t[a];if(js(f)){var p=f.length,m=null===f[0]?1:0;d=$u(u=f[m]);for(var v=m;v<p;v++)c?co($u(f[v])===c,"All keyframes must be of the same type"):(c=$u(f[v]),co(c===d||Td(d)&&Td(c),"Keyframes must be of the same dimension as the current value"))}else c=$u(f);if(d!==c)if(Td(d)&&Td(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[a]=parseFloat(f):Array.isArray(f)&&c===fi&&(t[a]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[a]=d.transform(f):(i||(o=function(e){var t=[];return Vd.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(a),r[a]=void 0!==r[a]?r[a]:t[a],Pd(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),o=getComputedStyle(a),i={};"none"===o.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=jd[e](r,o)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);Pd(r,i[n]),e[n]=jd[n](s,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=ro(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=a.target,n,r=a.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return to({transition:o,transitionEnd:i},s)},scrapeMotionValuesFromProps:Zc,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Nc(t,n,r,a.transformTemplate)},render:$c},Fd=wd(Bd),zd=wd(to(to({},Bd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yl(t)?(null===(n=Ys(t))||void 0===n?void 0:n.default)||0:(t=qc.has(t)?t:Uc(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Gc,build:function(e,t,n,r,a){Bc(t,n,r,a.transformTemplate)},render:Yc})),Wd=function(e,t){return kc(e)?zd(t,{enableHardwareAcceleration:!1}):Fd(t,{enableHardwareAcceleration:!0})};function Hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ud={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!fi.test(e))return e;e=parseFloat(e)}var n=Hd(e,t.target.x),r=Hd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},$d={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,o=e.includes("var("),i=[];o&&(e=e.replace(Od,function(e){return i.push(e),"_$css"}));var s=Ai.parse(e);if(s.length>5)return a;var l=Ai.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=Qo(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(o){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eo(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,a=t.layoutId,o=t.visualElement.projection;Object.assign(Fl,Yd),o&&((null==n?void 0:n.group)&&n.group.add(o),(null==r?void 0:r.register)&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",function(){e.safeToRemove()}),o.setOptions(to(to({},o.options),{onExitComplete:function(){return e.safeToRemove()}}))),Ql.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.drag,o=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=o,a||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||jo.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(F.Component),Yd={borderRadius:to(to({},Ud),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ud,borderTopRightRadius:Ud,borderBottomLeftRadius:Ud,borderBottomRightRadius:Ud,boxShadow:$d},Zd={measureLayout:function(e){var t=ro(Bu(),2),n=t[0],r=t[1],a=F.useContext(bc);return F.createElement(qd,to({},e,{layoutGroup:a,switchLayoutGroup:F.useContext(Ec),isPresent:n,safeToRemove:r}))}},Gd=ec({attachResizeListener:function(e,t){return ru(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Xd={current:void 0},Kd=ec({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Xd.current){var e=new Gd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Xd.current=e}return Xd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Jd=to(to(to(to({},ad),Du),xd),Zd),Qd=/*@__PURE__*/_c(function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o,s=kc(e)?tu:nu;return to(to({},s),{preloadedFeatures:n,useRender:Wc(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,Jd,Wd,Kd)});function ef(){var e=F.useRef(!1);return go(function(){return e.current=!0,function(){e.current=!1}},[]),e}var tf=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,o=e.custom,i=e.presenceAffectsLayout,s=No(nf),l=ju(),c=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:o,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return F.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),F.useEffect(function(){!r&&!s.size&&(null==a||a())},[r]),F.createElement(ho.Provider,{value:c},t)};function nf(){return new Map}var rf=function(e){return e.key||""},af=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,o=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=ro(function(){var e=ef(),t=ro(F.useState(0),2),n=t[0],r=t[1],a=F.useCallback(function(){e.current&&r(n+1)},[n]);return[F.useCallback(function(){return jo.postRender(a)},[a]),n]}(),1),u=c[0],d=F.useContext(bc).forceRender;d&&(u=d);var f=ef(),p=function(e){var t=[];return F.Children.forEach(e,function(e){F.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=F.useRef(m),y=F.useRef(new Map).current,g=F.useRef(!0);if(go(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=rf(e);t.set(n,e)})}(p,y),h.current=m}),ku(function(){g.current=!0,y.clear(),v.clear()}),g.current)return F.createElement(F.Fragment,null,m.map(function(e){return F.createElement(tf,{key:rf(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)}));m=ao([],ro(m),!1);for(var b=h.current.map(rf),E=p.map(rf),x=b.length,_=0;_<x;_++){var w=b[_];-1===E.indexOf(w)&&v.add(w)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,F.createElement(tf,{key:rf(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;u(),o&&o()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:F.createElement(tf,{key:rf(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==oo&&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 of(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}var lf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},cf={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},uf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},df={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},ff={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function pf(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return uf;case"left":return cf;case"bottom":return ff;case"top":return df}}var mf={enter:{duration:.2,ease:lf.easeOut},exit:{duration:.1,ease:lf.easeIn}},vf=function(e,n){return sf({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},hf=function(e,n){return sf({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},yf=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],gf={exit:{height:{duration:.2,ease:lf.ease},opacity:{duration:.3,ease:lf.ease}},enter:{height:{duration:.3,ease:lf.ease},opacity:{duration:.4,ease:lf.ease}}},bf={exit:function(e){var t,n,r=e.startingHeight,a=e.transition,o=e.transitionEnd,i=e.delay;return sf({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==o?void 0:o.exit,transition:null!=(t=null==a?void 0:a.exit)?t:hf(gf.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return sf({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:vf(gf.enter,e.delay)})}},Ef=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.in,a=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingHeight,l=void 0===s?0:s,c=e.endingHeight,u=void 0===c?"auto":c,d=e.style,f=e.className,p=e.transition,m=e.transitionEnd,v=of(e,yf),h=F.useState(!1),y=h[0],g=h[1];F.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),t.warn({condition:Boolean(l>0&&a),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(l.toString())>0,E={startingHeight:l,endingHeight:u,animateOpacity:i,transition:y?p:{enter:{duration:0}},transitionEnd:t.mergeWith(m,{exit:a?void 0:{display:b?"block":"none"}})},x=r||a?"enter":"exit";/*#__PURE__*/
|
8
|
+
return F.createElement(af,{initial:!1,custom:E},(!a||r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n},v,{className:t.cx("chakra-collapse",f),style:sf({overflow:"hidden",display:"block"},d),custom:E,variants:bf,initial:!!a&&"exit",animate:x,exit:"exit"})))});t.__DEV__&&(Ef.displayName="Collapse");var xf=["unmountOnExit","in","className","transition","transitionEnd","delay"],_f={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:vf(mf.enter,n.delay),transitionEnd:null==a?void 0:a.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,a=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:hf(mf.exit,n.delay),transitionEnd:null==a?void 0:a.exit}}},wf={initial:"exit",animate:"enter",exit:"exit",variants:_f},kf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,c=of(e,xf),u=a||r?"enter":"exit",d={transition:i,transitionEnd:s,delay:l};/*#__PURE__*/
|
9
|
+
return F.createElement(af,{custom:d},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-fade",o),custom:d},wf,{animate:u},c)))});t.__DEV__&&(kf.displayName="Fade");var Sf=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],Cf={exit:function(e){var t,n=e.initialScale,r=e.transition,a=e.transitionEnd,o=e.delay;return sf({opacity:0},e.reverse?{scale:n,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:sf({scale:n},null==a?void 0:a.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:hf(mf.exit,o)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:vf(mf.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},Of={initial:"exit",animate:"enter",exit:"exit",variants:Cf},Af=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.initialScale,l=void 0===s?.95:s,c=e.className,u=e.transition,d=e.transitionEnd,f=e.delay,p=of(e,Sf),m=a||r?"enter":"exit",v={initialScale:l,reverse:i,transition:u,transitionEnd:d,delay:f};/*#__PURE__*/
|
10
|
+
return F.createElement(af,{custom:v},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-offset-slide",c)},Of,{animate:m,custom:v},p)))});t.__DEV__&&(Af.displayName="ScaleFade");var Nf=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],Rf={exit:{duration:.15,ease:lf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},If={exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.delay;return sf({},pf({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:hf(Rf.exit,a),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,a=e.delay;return sf({},pf({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:vf(Rf.enter,a),transitionEnd:null==n?void 0:n.enter})}},Pf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.direction,a=void 0===r?"right":r,o=e.style,i=e.unmountOnExit,s=e.in,l=e.className,c=e.transition,u=e.transitionEnd,d=e.delay,f=of(e,Nf),p=pf({direction:a}),m=Object.assign({position:"fixed"},p.position,o),v=s||i?"enter":"exit",h={transitionEnd:u,transition:c,direction:a,delay:d};/*#__PURE__*/
|
11
|
+
return F.createElement(af,{custom:h},(!i||s&&i)&&/*#__PURE__*/F.createElement(Qd.div,sf({},f,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:v,exit:"exit",custom:h,variants:If,style:m})))});t.__DEV__&&(Pf.displayName="Slide");var Tf=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Lf={initial:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==n?void 0:n.exit)?t:hf(mf.exit,e.delay),transitionEnd:null==r?void 0:r.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:vf(mf.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,a=e.reverse,o={x:e.offsetX,y:e.offsetY};return sf({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:hf(mf.exit,e.delay)},a?sf({},o,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:sf({},o,null==r?void 0:r.exit)})}},Df={initial:"initial",animate:"enter",exit:"exit",variants:Lf},Mf=/*#__PURE__*/F.forwardRef(function(e,n){var r=e.unmountOnExit,a=e.in,o=e.reverse,i=void 0===o||o,s=e.className,l=e.offsetX,c=void 0===l?0:l,u=e.offsetY,d=void 0===u?8:u,f=e.transition,p=e.transitionEnd,m=e.delay,v=of(e,Tf),h=a||r?"enter":"exit",y={offsetX:c,offsetY:d,reverse:i,transition:f,transitionEnd:p,delay:m};/*#__PURE__*/
|
12
|
+
return F.createElement(af,{custom:y},(!r||a&&r)&&/*#__PURE__*/F.createElement(Qd.div,sf({ref:n,className:t.cx("chakra-offset-slide",s),custom:y},Df,{animate:h},v)))});function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vf.apply(this,arguments)}function jf(e){return e.sort(function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Bf(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function Ff(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}t.__DEV__&&(Mf.displayName="SlideFade");var zf="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,Wf=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=jf(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,n){void 0===n&&(n=!0);var r=Bf(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var a=Bf(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(a)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=Ff(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var a=Ff(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(a)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=jf(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var a=Vf({node:t,index:-1},n);e.descendants.set(t,a),e.assignIndex(r)}}},Hf=nn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Uf=Hf[0],$f=Hf[1];function qf(){return[Uf,function(){return $f()},function(){return e=F.useRef(new Wf),zf(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=$f(),n=F.useState(-1),r=n[0],a=n[1],o=F.useRef(null);zf(function(){return function(){o.current&&t.unregister(o.current)}},[]),zf(function(){if(o.current){var e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||a(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:tn(i,o)}}(e)}]}function Yf(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}var Gf=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Xf=nn({strict:!1,name:"ButtonGroupContext"}),Kf=Xf[0],Jf=Xf[1],Qf=/*#__PURE__*/La(function(e,n){var r=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Yf(e,Gf),f=t.cx("chakra-button__group",i),p=F.useMemo(function(){return{size:r,colorScheme:a,variant:o,isDisabled:u}},[r,a,o,u]),m={display:"inline-flex"};return m=Zf({},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(Kf,{value:p},/*#__PURE__*/F.createElement(Fa.div,Zf({ref:n,role:"group",__css:m,className:f,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Qf.displayName="ButtonGroup");var ep=["label","placement","spacing","children","className","__css"],tp=function(e){var n=e.label,r=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(Ya,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Yf(e,ep),d=t.cx("chakra-button__spinner",l),f="start"===r?"marginEnd":"marginStart",p=F.useMemo(function(){var e;return Zf(((e={display:"flex",alignItems:"center",position:n?"relative":"absolute"})[f]=n?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,n,f,o]);/*#__PURE__*/
|
13
|
+
return F.createElement(Fa.div,Zf({className:d},u,{__css:p}),s)};t.__DEV__&&(tp.displayName="ButtonSpinner");var np=["children","className"],rp=function(e){var n=e.children,r=e.className,a=Yf(e,np),o=/*#__PURE__*/F.isValidElement(n)?/*#__PURE__*/F.cloneElement(n,{"aria-hidden":!0,focusable:!1}):n,i=t.cx("chakra-button__icon",r);/*#__PURE__*/
|
14
|
+
return F.createElement(Fa.span,Zf({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(rp.displayName="ButtonIcon");var ap=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],op=/*#__PURE__*/La(function(e,n){var r,a,o,i,s=Jf(),l=Va("Button",Zf({},s,e)),c=Ca(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,f=c.isLoading,p=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,y=c.loadingText,g=c.iconSpacing,b=void 0===g?"0.5rem":g,E=c.type,x=c.spinner,_=c.spinnerPlacement,w=void 0===_?"start":_,k=c.className,S=c.as,C=Yf(c,ap),O=F.useMemo(function(){var e,n=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Zf({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:n})},[l,s]),A=(a=(r=F.useState(!S))[0],o=r[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),N=A.type,R={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
|
15
|
+
return F.createElement(Fa.button,Zf({disabled:d||f,ref:hn(n,A.ref),as:S,type:null!=E?E:N,"data-active":t.dataAttr(p),"data-loading":t.dataAttr(f),__css:O,className:t.cx("chakra-button",k)},C),f&&"start"===w&&/*#__PURE__*/F.createElement(tp,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},x),f?y||/*#__PURE__*/F.createElement(Fa.span,{opacity:0},/*#__PURE__*/F.createElement(ip,R)):/*#__PURE__*/F.createElement(ip,R),f&&"end"===w&&/*#__PURE__*/F.createElement(tp,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},x))});function ip(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,a=e.iconSpacing;/*#__PURE__*/
|
16
|
+
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(rp,{marginEnd:a},t),r,n&&/*#__PURE__*/F.createElement(rp,{marginStart:a},n))}t.__DEV__&&(op.displayName="Button");var sp=["icon","children","isRound","aria-label"],lp=/*#__PURE__*/La(function(e,t){var n=e.icon,r=e.children,a=e.isRound,o=e["aria-label"],i=Yf(e,sp),s=n||r,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
17
|
+
return F.createElement(op,Zf({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}function up(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(lp.displayName="IconButton");var dp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],fp=["getRootProps","htmlProps"],pp=Sa("FormControl"),mp=pp[0],vp=pp[1],hp=vp,yp=nn({strict:!1,name:"FormControlContext"}),gp=yp[0],bp=yp[1],Ep=/*#__PURE__*/La(function(e,n){var r=ja("Form",e),a=function(e){var n=e.id,r=e.isRequired,a=e.isInvalid,o=e.isDisabled,i=e.isReadOnly,s=up(e,dp),l=fn(),c=n||"field-"+l,u=c+"-label",d=c+"-feedback",f=c+"-helptext",p=F.useState(!1),m=p[0],v=p[1],h=F.useState(!1),y=h[0],g=h[1],b=ln(),E=b[0],x=b[1],_=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({id:f},e,{ref:tn(t,function(e){e&&g(!0)})})},[f]),w=F.useCallback(function(e,n){var r,s;return void 0===e&&(e={}),void 0===n&&(n=null),cp({},e,{ref:n,"data-focus":t.dataAttr(E),"data-disabled":t.dataAttr(o),"data-invalid":t.dataAttr(a),"data-readonly":t.dataAttr(i),id:null!=(r=e.id)?r:u,htmlFor:null!=(s=e.htmlFor)?s:c})},[c,o,E,a,i,u]),k=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({id:d},e,{ref:tn(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),cp({},e,s,{ref:t,role:"group"})},[s]),C=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),cp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:x.on,onBlur:x.off,hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:g,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(Ca(e)),o=a.getRootProps,i=up(a,fp),s=t.cx("chakra-form-control",e.className);/*#__PURE__*/
|
18
|
+
return F.createElement(gp,{value:i},/*#__PURE__*/F.createElement(mp,{value:r},/*#__PURE__*/F.createElement(Fa.div,cp({},o({},n),{className:s,__css:r.container}))))});t.__DEV__&&(Ep.displayName="FormControl");var xp=/*#__PURE__*/La(function(e,n){var r=bp(),a=vp(),o=t.cx("chakra-form__helper-text",e.className);/*#__PURE__*/
|
19
|
+
return F.createElement(Fa.div,cp({},null==r?void 0:r.getHelpTextProps(e,n),{__css:a.helperText,className:o}))});t.__DEV__&&(xp.displayName="FormHelperText");var _p=["isDisabled","isInvalid","isReadOnly","isRequired"],wp=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function kp(e){var n=Sp(e),r=n.isDisabled,a=n.isInvalid,o=n.isReadOnly,i=n.isRequired;return cp({},up(n,_p),{disabled:r,readOnly:o,required:i,"aria-invalid":t.ariaAttr(a),"aria-required":t.ariaAttr(i),"aria-readonly":t.ariaAttr(o)})}function Sp(e){var n,r,a,o=bp(),i=e.id,s=e.disabled,l=e.readOnly,c=e.required,u=e.isRequired,d=e.isInvalid,f=e.isReadOnly,p=e.isDisabled,m=e.onFocus,v=e.onBlur,h=up(e,wp),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&y.push(o.feedbackId),null!=o&&o.hasHelpText&&y.push(o.helpTextId),cp({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=l?l:f)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(a=null!=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 Cp=Sa("FormError"),Op=Cp[0],Ap=Cp[1],Np=/*#__PURE__*/La(function(e,n){var r=ja("FormError",e),a=Ca(e),o=bp();return null!=o&&o.isInvalid?/*#__PURE__*/F.createElement(Op,{value:r},/*#__PURE__*/F.createElement(Fa.div,cp({},null==o?void 0:o.getErrorMessageProps(a,n),{className:t.cx("chakra-form__error-message",e.className),__css:cp({display:"flex",alignItems:"center"},r.text)}))):null});t.__DEV__&&(Np.displayName="FormErrorMessage");var Rp=/*#__PURE__*/La(function(e,n){var r=Ap(),a=bp();if(null==a||!a.isInvalid)return null;var o=t.cx("chakra-form__error-icon",e.className);/*#__PURE__*/
|
20
|
+
return F.createElement(Ja,cp({ref:n,"aria-hidden":!0},e,{__css:r.icon,className:o}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))});t.__DEV__&&(Rp.displayName="FormErrorIcon");var Ip=["className","children","requiredIndicator","optionalIndicator"],Pp=/*#__PURE__*/La(function(e,n){var r,a=Va("FormLabel",e),o=Ca(e),i=o.children,s=o.requiredIndicator,l=void 0===s?/*#__PURE__*/F.createElement(Tp,null):s,c=o.optionalIndicator,u=void 0===c?null:c,d=up(o,Ip),f=bp(),p=null!=(r=null==f?void 0:f.getLabelProps(d,n))?r:cp({ref:n},d);/*#__PURE__*/
|
21
|
+
return F.createElement(Fa.label,cp({},p,{className:t.cx("chakra-form__label",o.className),__css:cp({display:"block",textAlign:"start"},a)}),i,null!=f&&f.isRequired?l:u)});t.__DEV__&&(Pp.displayName="FormLabel");var Tp=/*#__PURE__*/La(function(e,n){var r=bp(),a=hp();if(null==r||!r.isRequired)return null;var o=t.cx("chakra-form__required-indicator",e.className);/*#__PURE__*/
|
22
|
+
return F.createElement(Fa.span,cp({},null==r?void 0:r.getRequiredIndicatorProps(e,n),{__css:a.requiredIndicator,className:o}))});t.__DEV__&&(Tp.displayName="RequiredIndicator");var Lp=!1,Dp=null,Mp=!1,Vp=/* @__PURE__ */new Set,jp="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Bp(e,t){Vp.forEach(n=>n(e,t))}function Fp(e){Mp=!0,function(e){return!(e.metaKey||!jp&&e.altKey||e.ctrlKey)}(e)&&(Dp="keyboard",Bp("keyboard",e))}function zp(e){Dp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Mp=!0,Bp("pointer",e))}function Wp(e){e.target!==window&&e.target!==document&&(Mp||(Dp="keyboard",Bp("keyboard",e)),Mp=!1)}function Hp(){Mp=!1}function Up(){return"pointer"!==Dp}function $p(e){!function(){if("undefined"==typeof window||Lp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Mp=!0,e.apply(this,t)},document.addEventListener("keydown",Fp,!0),document.addEventListener("keyup",Fp,!0),window.addEventListener("focus",Wp,!0),window.addEventListener("blur",Hp,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",zp,!0),document.addEventListener("pointermove",zp,!0),document.addEventListener("pointerup",zp,!0)):(document.addEventListener("mousedown",zp,!0),document.addEventListener("mousemove",zp,!0),document.addEventListener("mouseup",zp,!0)),Lp=!0}(),e(Up());const t=()=>e(Up());return Vp.add(t),()=>{Vp.delete(t)}}function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qp.apply(this,arguments)}var Yp=nn({name:"CheckboxGroupContext",strict:!1})[1];function Zp(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var Gp=["isIndeterminate","isChecked"],Xp=function(e){var t=Qd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(Fa.svg),Kp=function(e){/*#__PURE__*/
|
23
|
+
return F.createElement(Xp,qp({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"}))},Jp=function(e){/*#__PURE__*/
|
24
|
+
return F.createElement(Xp,qp({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"}))},Qp=function(e){/*#__PURE__*/
|
25
|
+
return F.createElement(af,{initial:!1},e.open&&/*#__PURE__*/F.createElement(Qd.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))},em=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Zp(e,Gp);/*#__PURE__*/
|
26
|
+
return F.createElement(Qp,{open:n||t},/*#__PURE__*/F.createElement(t?Jp:Kp,r))},tm=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function nm(e){void 0===e&&(e={});var n=Sp(e),r=n.isDisabled,a=n.isReadOnly,o=n.isRequired,i=n.isInvalid,s=n.id,l=n.onBlur,c=n.onFocus,u=n["aria-describedby"],d=e.defaultChecked,f=e.isChecked,p=e.isFocusable,m=e.onChange,v=e.isIndeterminate,h=e.name,y=e.value,g=e.tabIndex,b=void 0===g?void 0:g,E=e["aria-label"],x=e["aria-labelledby"],_=e["aria-invalid"],w=Zp(e,tm),k=t.omit(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=on(m),C=on(l),O=on(c),A=F.useState(!1),N=A[0],R=A[1],I=ln(),P=I[0],T=I[1],L=ln(),D=L[0],M=L[1],V=ln(),j=V[0],B=V[1];F.useEffect(function(){return $p(R)},[]);var z=F.useRef(null),W=F.useState(!0),H=W[0],U=W[1],$=F.useState(!!d),q=$[1],Y=cn(f,$[0]),Z=Y[0],G=Y[1],X=F.useCallback(function(e){a||r?e.preventDefault():(Z||q(G?e.target.checked:!!v||e.target.checked),null==S||S(e))},[a,r,G,Z,v,S]);an(function(){z.current&&(z.current.indeterminate=Boolean(v))},[v]),pn(function(){r&&T.off()},[r,T]),an(function(){var e=z.current;null!=e&&e.form&&(e.form.onreset=function(){q(!!d)})},[]);var K=r&&!p,J=F.useCallback(function(e){" "===e.key&&B.on()},[B]),Q=F.useCallback(function(e){" "===e.key&&B.off()},[B]);an(function(){z.current&&z.current.checked!==G&&q(z.current.checked)},[z.current]);var ee=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:n,"data-active":t.dataAttr(j),"data-hover":t.dataAttr(D),"data-checked":t.dataAttr(G),"data-focus":t.dataAttr(P),"data-focus-visible":t.dataAttr(P&&N),"data-indeterminate":t.dataAttr(v),"data-disabled":t.dataAttr(r),"data-invalid":t.dataAttr(i),"data-readonly":t.dataAttr(a),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,function(e){e.preventDefault(),B.on()}),onMouseUp:t.callAllHandlers(e.onMouseUp,B.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,M.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,M.off)})},[j,G,r,P,N,D,v,i,a,B,M.off,M.on]),te=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},k,e,{ref:tn(n,function(e){e&&U("LABEL"===e.tagName)}),onClick:t.callAllHandlers(e.onClick,function(){var e;H||(null==(e=z.current)||e.click(),t.focus(z.current,{nextTick:!0}))}),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[k,r,G,i,H]),ne=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:tn(z,n),type:"checkbox",name:h,value:y,id:s,tabIndex:b,onChange:t.callAllHandlers(e.onChange,X),onBlur:t.callAllHandlers(e.onBlur,C,T.off),onFocus:t.callAllHandlers(e.onFocus,O,T.on),onKeyDown:t.callAllHandlers(e.onKeyDown,J),onKeyUp:t.callAllHandlers(e.onKeyUp,Q),required:o,checked:G,disabled:K,readOnly:a,"aria-label":E,"aria-labelledby":x,"aria-invalid":_?Boolean(_):i,"aria-describedby":u,"aria-disabled":r,style:za})},[h,y,s,X,T.off,T.on,C,O,J,Q,o,G,K,a,E,x,_,i,u,r,b]),re=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),qp({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,rm),onTouchStart:t.callAllHandlers(e.onTouchStart,rm),"data-disabled":t.dataAttr(r),"data-checked":t.dataAttr(G),"data-invalid":t.dataAttr(i)})},[G,r,i]);return{state:{isInvalid:i,isFocused:P,isChecked:G,isActive:j,isHovered:D,isIndeterminate:v,isDisabled:r,isReadOnly:a,isRequired:o},getRootProps:te,getCheckboxProps:ee,getInputProps:ne,getLabelProps:re,htmlProps:k}}function rm(e){e.preventDefault(),e.stopPropagation()}var am=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],om=Fa("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),im=Fa("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),sm=/*#__PURE__*/La(function(e,n){var r=Yp(),a=ja("Checkbox",qp({},r,e)),o=Ca(e),i=o.spacing,s=void 0===i?"0.5rem":i,l=o.className,c=o.children,u=o.iconColor,d=o.iconSize,f=o.icon,p=void 0===f?/*#__PURE__*/F.createElement(em,null):f,m=o.isChecked,v=o.isDisabled,h=void 0===v?null==r?void 0:r.isDisabled:v,y=o.onChange,g=o.inputProps,b=Zp(o,am),E=m;null!=r&&r.value&&o.value&&(E=r.value.includes(o.value));var x=y;null!=r&&r.onChange&&o.value&&(x=t.callAll(r.onChange,y));var _=nm(qp({},b,{isDisabled:h,isChecked:E,onChange:x})),w=_.state,k=_.getInputProps,S=_.getCheckboxProps,C=_.getLabelProps,O=_.getRootProps,A=F.useMemo(function(){return qp({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:d,color:u},a.icon)},[u,d,w.isChecked,w.isIndeterminate,a.icon]),N=/*#__PURE__*/F.cloneElement(p,{__css:A,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
|
27
|
+
return F.createElement(im,qp({__css:a.container,className:t.cx("chakra-checkbox",l)},O()),/*#__PURE__*/F.createElement("input",qp({className:"chakra-checkbox__input"},k(g,n))),/*#__PURE__*/F.createElement(om,qp({__css:a.control,className:"chakra-checkbox__control"},S()),N),c&&/*#__PURE__*/F.createElement(Fa.span,qp({className:"chakra-checkbox__label"},C(),{__css:qp({marginStart:s},a.label)}),c))});function lm(e){void 0===e&&(e={});var n=e.precision,r=e.defaultValue,a=e.value,o=e.step,i=void 0===o?1:o,s=e.min,l=void 0===s?t.minSafeInteger:s,c=e.max,u=void 0===c?t.maxSafeInteger:c,d=e.keepWithinRange,f=void 0===d||d,p=on(e.onChange),m=F.useState(function(){var e;return null==r?"":null!=(e=dm(r,i,n))?e:""}),v=m[1],h=cn(a,m[0]),y=h[0],g=h[1],b=um(cm(g),i),E=null!=n?n:b,x=F.useCallback(function(e){e!==g&&(y||v(e.toString()),null==p||p(e.toString(),cm(e)))},[p,y,g]),_=F.useCallback(function(e){var n=e;return f&&(n=t.clampValue(n,l,u)),t.toPrecision(n,E)},[E,f,u,l]),w=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?cm(e):cm(g)+e,t=_(t),x(t)},[_,i,x,g]),k=F.useCallback(function(e){var t;void 0===e&&(e=i),t=""===g?cm(-e):cm(g)-e,t=_(t),x(t)},[_,i,x,g]),S=F.useCallback(function(){var e,t;e=null==r?"":null!=(t=dm(r,i,n))?t:l,x(e)},[r,n,i,x,l]),C=F.useCallback(function(e){var t,n=null!=(t=dm(e,i,E))?t:l;x(n)},[E,i,x,l]),O=cm(g);return{isOutOfRange:O>u||O<l,isAtMax:O===u,isAtMin:O===l,precision:E,value:g,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:_,cast:C,setValue:v}}function cm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function um(e,n){return Math.max(t.countDecimalPlaces(n),t.countDecimalPlaces(e))}function dm(e,n,r){var a=cm(e);if(!Number.isNaN(a)){var o=um(a,n);return t.toPrecision(a,null!=r?r:o)}}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function pm(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(sm.displayName="Checkbox");var mm=["htmlSize"],vm=/*#__PURE__*/La(function(e,n){var r=e.htmlSize,a=pm(e,mm),o=ja("Input",a),i=kp(Ca(a)),s=t.cx("chakra-input",e.className);/*#__PURE__*/
|
28
|
+
return F.createElement(Fa.input,fm({size:r},i,{__css:o.field,ref:n,className:s}))});t.__DEV__&&(vm.displayName="Input"),vm.id="Input";var hm=["children","className"],ym=Sa("InputGroup"),gm=ym[0],bm=ym[1],Em=/*#__PURE__*/La(function(e,n){var r=ja("Input",e),a=Ca(e),o=a.children,i=a.className,s=pm(a,hm),l=t.cx("chakra-input__group",i),c={},u=rn(o),d=r.field;u.forEach(function(e){var t,n;r&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=d.height)?n:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});var f=u.map(function(n){var r,a,o=t.filterUndefined({size:(null==(r=n.props)?void 0:r.size)||e.size,variant:(null==(a=n.props)?void 0:a.variant)||e.variant});/*#__PURE__*/
|
29
|
+
return F.cloneElement(n,"Input"!==n.type.id?o:Object.assign(o,c,n.props))});/*#__PURE__*/
|
30
|
+
return F.createElement(Fa.div,fm({className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative"}},s),/*#__PURE__*/F.createElement(gm,{value:r},f))});t.__DEV__&&(Em.displayName="InputGroup");var xm=["placement"],_m={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},wm=Fa("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),km=/*#__PURE__*/La(function(e,t){var n,r=e.placement,a=void 0===r?"left":r,o=pm(e,xm),i=null!=(n=_m[a])?n:{},s=bm();/*#__PURE__*/
|
31
|
+
return F.createElement(wm,fm({ref:t},o,{__css:fm({},s.addon,i)}))});t.__DEV__&&(km.displayName="InputAddon");var Sm=/*#__PURE__*/La(function(e,n){/*#__PURE__*/
|
32
|
+
return F.createElement(km,fm({ref:n,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))});t.__DEV__&&(Sm.displayName="InputLeftAddon"),Sm.id="InputLeftAddon";var Cm=/*#__PURE__*/La(function(e,n){/*#__PURE__*/
|
33
|
+
return F.createElement(km,fm({ref:n,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))});t.__DEV__&&(Cm.displayName="InputRightAddon"),Cm.id="InputRightAddon";var Om=["placement"],Am=["className"],Nm=["className"],Rm=Fa("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Im=/*#__PURE__*/La(function(e,t){var n,r,a,o=e.placement,i=void 0===o?"left":o,s=pm(e,Om),l=bm(),c=l.field,u=fm(((a={})["left"===i?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,a.height=null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,a.fontSize=null==c?void 0:c.fontSize,a),l.element);/*#__PURE__*/
|
34
|
+
return F.createElement(Rm,fm({ref:t,__css:u},s))});Im.id="InputElement",t.__DEV__&&(Im.displayName="InputElement");var Pm=/*#__PURE__*/La(function(e,n){var r=e.className,a=pm(e,Am),o=t.cx("chakra-input__left-element",r);/*#__PURE__*/
|
35
|
+
return F.createElement(Im,fm({ref:n,placement:"left",className:o},a))});Pm.id="InputLeftElement",t.__DEV__&&(Pm.displayName="InputLeftElement");var Tm=/*#__PURE__*/La(function(e,n){var r=e.className,a=pm(e,Nm),o=t.cx("chakra-input__right-element",r);/*#__PURE__*/
|
36
|
+
return F.createElement(Im,fm({ref:n,placement:"right",className:o},a))});function Lm(){return Lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lm.apply(this,arguments)}function Dm(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}Tm.id="InputRightElement",t.__DEV__&&(Tm.displayName="InputRightElement");var Mm=["ratio","children","className"],Vm=/*#__PURE__*/La(function(e,n){var r=e.ratio,a=void 0===r?4/3:r,o=e.children,i=e.className,s=Dm(e,Mm),l=F.Children.only(o),c=t.cx("chakra-aspect-ratio",i);/*#__PURE__*/
|
37
|
+
return F.createElement(Fa.div,Lm({ref:n,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 jm=["className"],Bm=/*#__PURE__*/La(function(e,n){var r=Va("Badge",e),a=Dm(Ca(e),jm);/*#__PURE__*/
|
38
|
+
return F.createElement(Fa.span,Lm({ref:n,className:t.cx("chakra-badge",e.className)},a,{__css:Lm({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))});t.__DEV__&&(Bm.displayName="Badge");var Fm=["size","centerContent"],zm=["size"],Wm=Fa("div");t.__DEV__&&(Wm.displayName="Box");var Hm=/*#__PURE__*/La(function(e,t){var n=e.size,r=e.centerContent,a=void 0===r||r,o=Dm(e,Fm);/*#__PURE__*/
|
39
|
+
return F.createElement(Wm,Lm({ref:t,boxSize:n,__css:Lm({},a?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},o))});t.__DEV__&&(Hm.displayName="Square"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=e.size,r=Dm(e,zm);/*#__PURE__*/
|
40
|
+
return F.createElement(Hm,Lm({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Um=Fa("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.__DEV__&&(Um.displayName="Center");var $m=["className"],qm=/*#__PURE__*/La(function(e,n){var r=Va("Code",e),a=Dm(Ca(e),$m);/*#__PURE__*/
|
41
|
+
return F.createElement(Fa.code,Lm({ref:n,className:t.cx("chakra-code",e.className)},a,{__css:Lm({display:"inline-block"},r)}))});t.__DEV__&&(qm.displayName="Code");var Ym=["className","centerContent"],Zm=/*#__PURE__*/La(function(e,n){var r=Ca(e),a=r.className,o=r.centerContent,i=Dm(r,Ym),s=Va("Container",e);/*#__PURE__*/
|
42
|
+
return F.createElement(Fa.div,Lm({ref:n,className:t.cx("chakra-container",a)},i,{__css:Lm({},s,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});t.__DEV__&&(Zm.displayName="Container");var Gm=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Xm=["className","orientation","__css"],Km=/*#__PURE__*/La(function(e,n){var r=Va("Divider",e),a=r.borderLeftWidth,o=r.borderBottomWidth,i=r.borderTopWidth,s=r.borderRightWidth,l=r.borderWidth,c=r.borderStyle,u=r.borderColor,d=Dm(r,Gm),f=Ca(e),p=f.className,m=f.orientation,v=void 0===m?"horizontal":m,h=f.__css,y=Dm(f,Xm);/*#__PURE__*/
|
43
|
+
return F.createElement(Fa.hr,Lm({ref:n,"aria-orientation":v},y,{__css:Lm({},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",p)}))});t.__DEV__&&(Km.displayName="Divider");var Jm=["direction","align","justify","wrap","basis","grow","shrink"],Qm=/*#__PURE__*/La(function(e,t){var n=e.direction,r=e.align,a=e.justify,o=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=Dm(e,Jm);/*#__PURE__*/
|
44
|
+
return F.createElement(Fa.div,Lm({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:s,flexShrink:l}},c))});t.__DEV__&&(Qm.displayName="Flex");var ev=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],tv=/*#__PURE__*/La(function(e,t){var n=e.templateAreas,r=e.gap,a=e.rowGap,o=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,u=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=Dm(e,ev);/*#__PURE__*/
|
45
|
+
return F.createElement(Fa.div,Lm({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:f}},p))});t.__DEV__&&(tv.displayName="Grid");var nv=["className"],rv=/*#__PURE__*/La(function(e,n){var r=Va("Heading",e),a=Dm(Ca(e),nv);/*#__PURE__*/
|
46
|
+
return F.createElement(Fa.h2,Lm({ref:n,className:t.cx("chakra-heading",e.className)},a,{__css:r}))});t.__DEV__&&(rv.displayName="Heading");var av=["className"],ov=/*#__PURE__*/La(function(e,n){var r=Va("Kbd",e),a=Ca(e),o=a.className,i=Dm(a,av);/*#__PURE__*/
|
47
|
+
return F.createElement(Fa.kbd,Lm({ref:n,className:t.cx("chakra-kbd",o)},i,{__css:Lm({fontFamily:"mono"},r)}))});t.__DEV__&&(ov.displayName="Kbd");var iv=["className","isExternal"],sv=/*#__PURE__*/La(function(e,n){var r=Va("Link",e),a=Ca(e),o=a.className,i=a.isExternal,s=Dm(a,iv);/*#__PURE__*/
|
48
|
+
return F.createElement(Fa.a,Lm({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:t.cx("chakra-link",o)},s,{__css:r}))});t.__DEV__&&(sv.displayName="Link");var lv=["children","styleType","stylePosition","spacing"],cv=["as"],uv=["as"],dv=Sa("List"),fv=dv[0],pv=dv[1],mv=/*#__PURE__*/La(function(e,t){var n,r=ja("List",e),a=Ca(e),o=a.children,i=a.styleType,s=void 0===i?"none":i,l=a.stylePosition,c=a.spacing,u=Dm(a,lv),d=rn(o),f=c?((n={})["& > *:not(style) ~ *:not(style)"]={mt:c},n):{};/*#__PURE__*/
|
49
|
+
return F.createElement(fv,{value:r},/*#__PURE__*/F.createElement(Fa.ul,Lm({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:Lm({},r.container,f)},u),d))});t.__DEV__&&(mv.displayName="List"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=Dm(e,cv);/*#__PURE__*/
|
50
|
+
return F.createElement(mv,Lm({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=Dm(e,uv);/*#__PURE__*/
|
51
|
+
return F.createElement(mv,Lm({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=pv();/*#__PURE__*/
|
52
|
+
return F.createElement(Fa.li,Lm({ref:t},e,{__css:n.item}))}).displayName="ListItem"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){var n=pv();/*#__PURE__*/
|
53
|
+
return F.createElement(Ka,Lm({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var vv=["columns","spacingX","spacingY","spacing","minChildWidth"],hv=/*#__PURE__*/La(function(e,n){var r=e.columns,a=e.spacingX,o=e.spacingY,i=e.spacing,s=e.minChildWidth,l=Dm(e,vv),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(r,function(e){return t.isNull(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
|
54
|
+
return F.createElement(tv,Lm({ref:n,gap:i,columnGap:a,rowGap:o,templateColumns:c},l))});t.__DEV__&&(hv.displayName="SimpleGrid");var yv=Fa("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.__DEV__&&(yv.displayName="Spacer");var gv="& > *:not(style) ~ *:not(style)",bv=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Ev=function(e){/*#__PURE__*/
|
55
|
+
return F.createElement(Fa.div,Lm({className:"chakra-stack__item"},e,{__css:Lm({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},xv=/*#__PURE__*/La(function(e,n){var r,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,f=e.divider,p=e.className,m=e.shouldWrapChildren,v=Dm(e,bv),h=a?"row":null!=o?o:"column",y=F.useMemo(function(){return function(e){var n,r=e.spacing,a=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(n={flexDirection:a})[gv]=t.mapResponsive(a,function(e){return o[e]}),n}({direction:h,spacing:c})},[h,c]),g=F.useMemo(function(){return function(e){var n=e.spacing,r={column:{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":t.mapResponsive(e.direction,function(e){return r[e]})}}({spacing:c,direction:h})},[c,h]),b=!!f,E=!m&&!b,x=rn(d),_=E?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,a=m?/*#__PURE__*/F.createElement(Ev,{key:n},e):e;return b?/*#__PURE__*/F.createElement(F.Fragment,{key:n},a,r?null:/*#__PURE__*/F.cloneElement(f,{__css:g})):a}),w=t.cx("chakra-stack",p);/*#__PURE__*/
|
56
|
+
return F.createElement(Fa.div,Lm({ref:n,display:"flex",alignItems:i,justifyContent:s,flexDirection:y.flexDirection,flexWrap:u,className:w,__css:b?{}:(r={},r[gv]=y[gv],r)},v),_)});t.__DEV__&&(xv.displayName="Stack");var _v=/*#__PURE__*/La(function(e,t){/*#__PURE__*/
|
57
|
+
return F.createElement(xv,Lm({align:"center"},e,{direction:"row",ref:t}))});t.__DEV__&&(_v.displayName="HStack"),t.__DEV__&&(/*#__PURE__*/La(function(e,t){/*#__PURE__*/
|
58
|
+
return F.createElement(xv,Lm({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var wv=["className","align","decoration","casing"],kv=/*#__PURE__*/La(function(e,n){var r=Va("Text",e),a=Dm(Ca(e),wv),o=t.filterUndefined({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
|
59
|
+
return F.createElement(Fa.p,Lm({ref:n,className:t.cx("chakra-text",e.className)},o,a,{__css:r}))});t.__DEV__&&(kv.displayName="Text");var Sv=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],Cv=["className"];function Ov(e){return"number"==typeof e?e+"px":e}var Av=/*#__PURE__*/La(function(e,n){var r=e.spacing,a=void 0===r?"0.5rem":r,o=e.spacingX,i=e.spacingY,s=e.children,l=e.justify,c=e.direction,u=e.align,d=e.className,f=e.shouldWrapChildren,p=Dm(e,Sv),m=F.useMemo(function(){var e={spacingX:o,spacingY:i},n=e.spacingX,r=void 0===n?a:n,s=e.spacingY,d=void 0===s?a:s;return{"--chakra-wrap-x-spacing":function(e){return t.mapResponsive(r,function(t){return Ov(wn("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return t.mapResponsive(d,function(t){return Ov(wn("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=f?F.Children.map(s,function(e,t){/*#__PURE__*/
|
60
|
+
return F.createElement(Nv,{key:t},e)}):s;/*#__PURE__*/
|
61
|
+
return F.createElement(Fa.div,Lm({ref:n,className:t.cx("chakra-wrap",d),overflow:"hidden"},p),/*#__PURE__*/F.createElement(Fa.ul,{className:"chakra-wrap__list",__css:m},v))});t.__DEV__&&(Av.displayName="Wrap");var Nv=/*#__PURE__*/La(function(e,n){var r=e.className,a=Dm(e,Cv);/*#__PURE__*/
|
62
|
+
return F.createElement(Fa.li,Lm({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:t.cx("chakra-wrap__listitem",r)},a))});function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}t.__DEV__&&(Nv.displayName="WrapItem");var Iv=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function Pv(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var Tv="top",Lv="bottom",Dv="right",Mv="left",Vv=[Tv,Lv,Dv,Mv],jv=/*#__PURE__*/Vv.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),Bv=/*#__PURE__*/[].concat(Vv,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),Fv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zv(e){return e?(e.nodeName||"").toLowerCase():null}function Wv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hv(e){return e instanceof Wv(e).Element||e instanceof Element}function Uv(e){return e instanceof Wv(e).HTMLElement||e instanceof HTMLElement}function $v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wv(e).ShadowRoot||e instanceof ShadowRoot)}function qv(e){return e.split("-")[0]}var Yv=Math.max,Zv=Math.min,Gv=Math.round;function Xv(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Uv(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Gv(n.width)/i||1),o>0&&(a=Gv(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Kv(e){var t=Xv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$v(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qv(e){return Wv(e).getComputedStyle(e)}function eh(e){return["table","td","th"].indexOf(zv(e))>=0}function th(e){return((Hv(e)?e.ownerDocument:e.document)||window.document).documentElement}function nh(e){return"html"===zv(e)?e:e.assignedSlot||e.parentNode||($v(e)?e.host:null)||th(e)}function rh(e){return Uv(e)&&"fixed"!==Qv(e).position?e.offsetParent:null}function ah(e){for(var t=Wv(e),n=rh(e);n&&eh(n)&&"static"===Qv(n).position;)n=rh(n);return n&&("html"===zv(n)||"body"===zv(n)&&"static"===Qv(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Uv(e)&&"fixed"===Qv(e).position)return null;var n=nh(e);for($v(n)&&(n=n.host);Uv(n)&&["html","body"].indexOf(zv(n))<0;){var r=Qv(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function oh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ih(e,t,n){return Yv(e,Zv(t,n))}function sh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ch(e){return e.split("-")[1]}var uh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dh(e){var t,n=e.popper,r=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,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Mv,E=Tv,x=window;if(c){var _=ah(n),w="clientHeight",k="clientWidth";_===Wv(n)&&"static"!==Qv(_=th(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth"),(a===Tv||(a===Mv||a===Dv)&&"end"===o)&&(E=Lv,v-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[w])-r.height,v*=l?1:-1),a!==Mv&&(a!==Tv&&a!==Lv||"end"!==o)||(b=Dv,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-r.width,p*=l?1:-1)}var S,C=Object.assign({position:s},c&&uh),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Gv(e.x*n)/n||0,y:Gv(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=O.x,v=O.y,Object.assign({},C,l?((S={})[E]=g?"0":"",S[b]=y?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",S):((t={})[E]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var fh={passive:!0},ph={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=Wv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,fh)}),s&&l.addEventListener("resize",n.update,fh),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,fh)}),s&&l.removeEventListener("resize",n.update,fh)}},data:{}},mh={left:"right",right:"left",bottom:"top",top:"bottom"};function vh(e){return e.replace(/left|right|bottom|top/g,function(e){return mh[e]})}var hh={start:"end",end:"start"};function yh(e){return e.replace(/start|end/g,function(e){return hh[e]})}function gh(e){var t=Wv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bh(e){return Xv(th(e)).left+gh(e).scrollLeft}function Eh(e){var t=Qv(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function xh(e){return["html","body","#document"].indexOf(zv(e))>=0?e.ownerDocument.body:Uv(e)&&Eh(e)?e:xh(nh(e))}function _h(e,t){var n;void 0===t&&(t=[]);var r=xh(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Wv(r),i=a?[o].concat(o.visualViewport||[],Eh(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(_h(nh(i)))}function wh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kh(e,t){return"viewport"===t?wh(function(e){var t=Wv(e),n=th(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+bh(e),y:s}}(e)):Hv(t)?function(e){var t=Xv(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):wh(function(e){var t,n=th(e),r=gh(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Yv(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Yv(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+bh(e),l=-r.scrollTop;return"rtl"===Qv(a||n).direction&&(s+=Yv(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}(th(e)))}function Sh(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?qv(a):null,i=a?ch(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Tv:t={x:s,y:n.y-r.height};break;case Lv:t={x:s,y:n.y+n.height};break;case Dv:t={x:n.x+n.width,y:l};break;case Mv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?oh(o):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ch(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.boundary,o=void 0===a?"clippingParents":a,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,f=t.padding,p=void 0===f?0:f,m=sh("number"!=typeof p?p:lh(p,Vv)),v=e.rects.popper,h=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=_h(nh(e)),n=["absolute","fixed"].indexOf(Qv(e).position)>=0&&Uv(e)?ah(e):e;return Hv(n)?t.filter(function(e){return Hv(e)&&Jv(e,n)&&"body"!==zv(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),o=a.reduce(function(t,n){var r=kh(e,n);return t.top=Yv(r.top,t.top),t.right=Zv(r.right,t.right),t.bottom=Zv(r.bottom,t.bottom),t.left=Yv(r.left,t.left),t},kh(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}(Hv(h)?h:h.contextElement||th(e.elements.popper),o,s),g=Xv(e.elements.reference),b=Sh({reference:g,element:v,strategy:"absolute",placement:r}),E=wh(Object.assign({},v,b)),x="popper"===c?E:g,_={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},w=e.modifiersData.offset;if("popper"===c&&w){var k=w[r];Object.keys(_).forEach(function(e){var t=[Dv,Lv].indexOf(e)>=0?1:-1,n=[Tv,Lv].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t})}return _}function Oh(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?Bv:i,l=ch(t.placement),c=l?o?jv:jv.filter(function(e){return ch(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]=Ch(e,{placement:o,boundary:n,rootBoundary:r,padding:a})[qv(o)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var Ah={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=qv(h),g=l||(y!==h&&m?function(e){if("auto"===qv(e))return[];var t=vh(e);return[yh(e),t,yh(t)]}(h):[vh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===qv(n)?Oh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],O=qv(C),A="start"===ch(C),N=[Tv,Lv].indexOf(O)>=0,R=N?"width":"height",I=Ch(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=N?A?Dv:Mv:A?Lv:Tv;E[R]>x[R]&&(P=vh(P));var T=vh(P),L=[];if(o&&L.push(I[O]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){k=C,w=!1;break}_.set(C,L)}if(w)for(var D=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==D(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rh(e){return[Tv,Dv,Lv,Mv].some(function(t){return e[t]>=0})}var Ih={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=Bv.reduce(function(e,n){return e[n]=function(e,t,n){var r=qv(e),a=[Mv,Tv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[Mv,Dv].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),i=o[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=o}},Ph={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.tether,c=void 0===l||l,u=n.tetherOffset,d=void 0===u?0:u,f=Ch(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=qv(t.placement),m=ch(t.placement),v=!m,h=oh(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,_="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(g){if(o){var S,C="y"===h?Tv:Mv,O="y"===h?Lv:Dv,A="y"===h?"height":"width",N=g[h],R=N+f[C],I=N-f[O],P=c?-E[A]/2:0,T="start"===m?b[A]:E[A],L="start"===m?-E[A]:-b[A],D=t.elements.arrow,M=c&&D?Kv(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[C],B=V[O],F=ih(0,b[A],M[A]),z=v?b[A]/2-P-F-j-_.mainAxis:T-F-j-_.mainAxis,W=v?-b[A]/2+P+F+B+_.mainAxis:L+F+B+_.mainAxis,H=t.elements.arrow&&ah(t.elements.arrow),U=null!=(S=null==w?void 0:w[h])?S:0,$=N+W-U,q=ih(c?Zv(R,N+z-U-(H?"y"===h?H.clientTop||0:H.clientLeft||0:0)):R,N,c?Yv(I,$):I);g[h]=q,k[h]=q-N}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?Tv:Mv],K=Z-f["x"===h?Lv:Dv],J=-1!==[Tv,Mv].indexOf(p),Q=null!=(Y=null==w?void 0:w[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+_.altAxis,te=J?Z+b[G]+E[G]-Q-_.altAxis:K,ne=c&&J?function(e,t,n){var r=ih(e,t,n);return r>n?n:r}(ee,Z,te):ih(c?ee:X,Z,c?te:K);g[y]=ne,k[y]=ne-Z}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function Th(e,t,n){void 0===n&&(n=!1);var r=Uv(t),a=Uv(t)&&function(e){var t=e.getBoundingClientRect(),n=Gv(t.width)/e.offsetWidth||1,r=Gv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=th(t),i=Xv(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==zv(t)||Eh(o))&&(s=function(e){return e!==Wv(e)&&Uv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:gh(e);var t}(t)),Uv(t)?((l=Xv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=bh(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Lh(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||a(e)}),r}function Dh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var Mh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Vh=["name","enabled","phase","fn","effect","requires","options"],jh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Bh={placement:"bottom",modifiers:[],strategy:"absolute"};function Fh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function zh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Bh:r;return function(e,t,r){void 0===r&&(r=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Hv(e)?_h(e):e.contextElement?_h(e.contextElement):[],popper:_h(t)};var i,c,f,p=function(e){var t=Lh(e);return Fv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),c=function(e){return e.name},f=new Set,i.filter(function(e){var t=c(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),Vh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Dh(Mh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Dh(Mh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Fv.indexOf(t.phase)<0&&console.error(Dh(Mh,t.name,'"phase"',"either "+Fv.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Dh(Mh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Dh(Mh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Dh(Mh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Dh(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 "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(Dh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===qv(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=Qv(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Fh(t,n)){s.rects={reference:Th(t,ah(n),"fixed"===s.options.strategy),popper:Kv(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,a=0;a<s.orderedModifiers.length;a++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var o=s.orderedModifiers[a],i=o.fn,l=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:o.name,instance:u})||s)}else s.reset=!1,a=-1}}else"production"!==process.env.NODE_ENV&&console.error(jh)}},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(!Fh(e,t))return"production"!==process.env.NODE_ENV&&console.error(jh),u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Wh=/*#__PURE__*/zh({defaultModifiers:[ph,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Sh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Qv(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:qv(t.placement),variation:ch(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,dh(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,dh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];Uv(a)&&zv(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Uv(r)&&zv(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Ih,Ah,Ph,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=qv(n.placement),l=oh(s),c=[Mv,Dv].indexOf(s)>=0?"height":"width";if(o&&i){var u=function(e,t){return sh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lh(e,Vv))}(a.padding,n),d=Kv(o),f="y"===l?Tv:Mv,p="y"===l?Lv:Dv,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],v=i[l]-n.rects.reference[l],h=ah(o),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[c]/2+(m/2-v/2),b=ih(u[f],g,y-d[c]-u[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Uv(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Jv(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Ch(t,{elementContext:"reference"}),s=Ch(t,{altBoundary:!0}),l=Nh(i,r),c=Nh(s,a,o),u=Rh(l),d=Rh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}var Uh=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},$h={arrowShadowColor:Uh("--popper-arrow-shadow-color"),arrowSize:Uh("--popper-arrow-size","8px"),arrowSizeHalf:Uh("--popper-arrow-size-half"),arrowBg:Uh("--popper-arrow-bg"),transformOrigin:Uh("--popper-transform-origin"),arrowOffset:Uh("--popper-arrow-offset")},qh={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"},Yh={scroll:!0,resize:!0},Zh={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"}}},Gh={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){Xh(e.state)},effect:function(e){var t=e.state;return function(){Xh(t)}}},Xh=function(e){e.elements.popper.style.setProperty($h.transformOrigin.var,qh[e.placement])},Kh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Jh(e.state)}},Jh=function(e){var t;if(e.placement){var n=Qh(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,a;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=$h.arrowSize.varRef,r.height=$h.arrowSize.varRef,r.zIndex=-1,r));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])}}},Qh=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},ey={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){ty(e.state)},effect:function(e){var t=e.state;return function(){ty(t)}}},ty=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:$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)})}},ny={"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"}},ry={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},ay=["size","shadowColor","bg","style"];function oy(e){var t=e.size,n=e.shadowColor,r=e.bg,a=Hh({},e.style,{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}function sy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var ly=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],cy=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],uy=["type","isChecked"],dy=["children","type","value","defaultValue","onChange"],fy=qf(),py=fy[0],my=fy[1],vy=fy[2],hy=fy[3],yy=nn({strict:!1,name:"MenuContext"}),gy=yy[0],by=yy[1];function Ey(e){var n;return t.isHTMLElement(e)&&!(null==(n=e.getAttribute("role"))||!n.startsWith("menuitem"))}function xy(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,i=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=sy(e,cy),f=by(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,E=F.useRef(null),x=b+"-menuitem-"+fn(),_=hy({disabled:s&&!l}),w=_.index,k=_.register,S=F.useCallback(function(e){null==r||r(e),s||p(w)},[p,w,s,r]),C=F.useCallback(function(e){null==a||a(e),E.current&&!t.isActiveElement(E.current)&&S(e)},[S,a]),O=F.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),A=F.useCallback(function(e){null==i||i(e),Ey(e.currentTarget)&&(null!=c?c:v)&&h()},[h,i,v,c]),N=w===m,R=s&&!l;pn(function(){g&&(N&&!R&&E.current?t.focus(E.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!t.isActiveElement(y.current)&&t.focus(y.current,{preventScroll:!1}))},[N,R,y,g]);var I=function(e){void 0===e&&(e={});var n=e.ref,r=e.isDisabled,a=e.isFocusable,o=e.clickOnEnter,i=void 0===o||o,s=e.clickOnSpace,l=void 0===s||s,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onKeyDown,p=e.onKeyUp,m=e.tabIndex,v=e.onMouseOver,h=e.onMouseLeave,y=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Iv),g=F.useState(!0),b=g[0],E=g[1],x=F.useState(!1),_=x[0],w=x[1],k=function(){var e=F.useRef(new Map),t=e.current,n=F.useCallback(function(t,n,r,a){e.current.set(r,{type:n,el:t,options:a}),t.addEventListener(n,r,a)},[]),r=F.useCallback(function(t,n,r,a){t.removeEventListener(n,r,a),e.current.delete(r)},[]);return F.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=b?m:m||0,C=r&&!a,O=F.useCallback(function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==d||d(e)},[r,d]),A=F.useCallback(function(e){_&&Pv(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))},[_,k]),N=F.useCallback(function(e){if(null==f||f(e),!(r||e.defaultPrevented||e.metaKey)&&Pv(e.nativeEvent)&&!b){var t=i&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",A,!1)}},[r,b,f,i,l,k,A]),R=F.useCallback(function(e){null==p||p(e),r||e.defaultPrevented||e.metaKey||Pv(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[l,b,r,p]),I=F.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=F.useCallback(function(e){if(!t.isRightClick(e)){if(r)return e.stopPropagation(),void e.preventDefault();b||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==c||c(e)}},[r,b,c,k,I]),T=F.useCallback(function(e){t.isRightClick(e)||(b||w(!1),null==u||u(e))},[u,b]),L=F.useCallback(function(e){r?e.preventDefault():null==v||v(e)},[r,v]),D=F.useCallback(function(e){_&&(e.preventDefault(),w(!1)),null==h||h(e)},[_,h]),M=tn(n,function(e){e&&"BUTTON"!==e.tagName&&E(!1)});return Rv({},y,b?{ref:M,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:O,onMouseDown:c,onMouseUp:u,onKeyUp:p,onKeyDown:f,onMouseOver:v,onMouseLeave:h}:{ref:M,role:"button","data-active":t.dataAttr(_),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:S,onClick:O,onMouseDown:P,onMouseUp:T,onKeyUp:R,onKeyDown:N,onMouseOver:L,onMouseLeave:D})}({onClick:A,onMouseEnter:S,onMouseMove:C,onMouseLeave:O,ref:tn(k,E,n),isDisabled:s,isFocusable:l});return iy({},d,I,{type:null!=u?u:I.type,id:x,role:"menuitem",tabIndex:N?0:-1})}var _y=["descendants"],wy=["children","as"],ky=["rootProps"],Sy=["type"],Cy=["icon","iconSpacing","command","commandSpacing","children"],Oy=["icon","iconSpacing"],Ay=["className","title"],Ny=["title","children","className"],Ry=["className","children"],Iy=Sa("Menu"),Py=Iy[0],Ty=Iy[1],Ly=function(e){var n=e.children,r=ja("Menu",e),a=function(e){void 0===e&&(e={});var n=e.id,r=e.closeOnSelect,a=void 0===r||r,o=e.closeOnBlur,i=void 0===o||o,s=e.autoSelect,l=void 0===s||s,c=e.isLazy,u=e.isOpen,d=e.defaultIsOpen,f=e.onClose,p=e.onOpen,m=e.placement,v=void 0===m?"bottom-start":m,h=e.lazyBehavior,y=void 0===h?"unmount":h,g=e.direction,b=e.computePositionOnMount,E=void 0!==b&&b,x=sy(e,ly),_=F.useRef(null),w=F.useRef(null),k=vy(),S=F.useCallback(function(){t.focus(_.current,{nextTick:!0,selectTextIfInput:!1})},[]),C=F.useCallback(function(){var e=setTimeout(function(){var e=k.firstEnabled();e&&z(e.index)});Y.current.add(e)},[k]),O=F.useCallback(function(){var e=setTimeout(function(){var e=k.lastEnabled();e&&z(e.index)});Y.current.add(e)},[k]),A=function(e){void 0===e&&(e={});var n=e.onClose,r=e.isOpen,a=e.id,o=on(e.onOpen),i=on(n),s=F.useState(e.defaultIsOpen||!1),l=s[1],c=cn(r,s[0]),u=c[0],d=c[1],f=fn(a,"disclosure"),p=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?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),dn({},e,{"aria-expanded":d,"aria-controls":f,onClick:t.callAllHandlers(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),dn({},e,{hidden:!d,id:f})}}}({isOpen:u,defaultIsOpen:d,onClose:f,onOpen:F.useCallback(function(){null==p||p(),l?C():S()},[l,C,S,p])}),N=A.isOpen,R=A.onOpen,I=A.onClose,P=A.onToggle;!function(e){var n=e.ref,r=e.handler,a=e.enabled,o=void 0===a||a,i=on(r),s=F.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;F.useEffect(function(){if(o){var e=function(e){yn(e,n)&&(s.isPointerDown=!0)},a=function(e){s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&r&&yn(e,n)&&(s.isPointerDown=!1,i(e))},l=function(e){s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&yn(e,n)&&(s.isPointerDown=!1,i(e))},c=t.getOwnerDocument(n.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)}}},[r,n,i,s,o])}({enabled:N&&i,ref:_,handler:function(e){var t;null!=(t=w.current)&&t.contains(e.target)||I()}});var T,L,D,M,V=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,a=e.placement,o=void 0===a?"bottom":a,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,c=void 0===l?8:l,u=e.eventListeners,d=void 0===u||u,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,E=void 0===b||b,x=e.matchWidth,_=e.direction,w=void 0===_?"ltr":_,k=F.useRef(null),S=F.useRef(null),C=F.useRef(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var a=(null==(n=ny[e])?void 0:n[t])||e;return"ltr"===t?a:null!=(r=ry[e])?r:a}(o,w),A=F.useRef(function(){}),N=F.useCallback(function(){var e;n&&k.current&&S.current&&(null==A.current||A.current(),C.current=Wh(k.current,S.current,{placement:O,modifiers:[ey,Kh,Gh,Hh({},Zh,{enabled:!!x}),Hh({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:Hh({},Yh,e)}:{enabled:e,options:Yh})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!E,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),C.current.forceUpdate(),A.current=C.current.destroy)},[O,n,r,x,d,c,f,m,h,E,g,s]);F.useEffect(function(){return function(){var e;k.current||S.current||(null==(e=C.current)||e.destroy(),C.current=null)}},[]);var R=F.useCallback(function(e){k.current=e,N()},[N]),I=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},e,{ref:tn(R,t)})},[R]),P=F.useCallback(function(e){S.current=e,N()},[N]),T=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},e,{ref:tn(P,t),style:Hh({},e.style,{position:s,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,x]),L=F.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,ay);return Hh({},n,{ref:t,"data-popper-arrow":"",style:oy(e)})},[]),D=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Hh({},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:R,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:D,getReferenceProps:I}}(iy({},x,{enabled:N||E,placement:v,direction:g})),j=F.useState(-1),B=j[0],z=j[1];pn(function(){N||z(-1)},[N]),pn(function(){if(M&&!function(e){var n=e.current;if(!n)return!1;var r=t.getActiveElement(n);return!!r&&!t.contains(n,r)&&!!t.isTabbable(r)}(T)){var e=(null==D?void 0:D.current)||T.current;e&&t.focus(e,{nextTick:!0})}},[M=(L={focusRef:w,visible:N,shouldFocus:!0}).shouldFocus&&!L.visible,T=_,D=L.focusRef]);var W=function(e){var n=e.isOpen,r=e.ref,a=F.useState(n),o=a[0],i=a[1],s=F.useState(!1),l=s[0],c=s[1];return F.useEffect(function(){l||(i(n),c(!0))},[n,l,o]),sn("animationend",function(){i(n)},function(){return r.current}),{present:!(!n&&!o),onComplete:function(){var e,n=new(t.getOwnerWindow(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:N,ref:_}),H=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=fn(e);return F.useMemo(function(){return n.map(function(e){return e+"-"+a})},[a,n])}(n,"menu-button","menu-list"),U=H[0],$=H[1],q=F.useCallback(function(){R(),S()},[R,S]),Y=F.useRef(new Set([]));mn(function(){Y.current.forEach(function(e){return clearTimeout(e)}),Y.current.clear()});var Z=F.useCallback(function(){R(),C()},[C,R]),G=F.useCallback(function(){R(),O()},[R,O]),X=F.useCallback(function(){var e,n,r=t.getOwnerDocument(_.current),a=null==(e=_.current)?void 0:e.contains(r.activeElement);if(N&&!a){var o=null==(n=k.item(B))?void 0:n.node;o&&t.focus(o,{selectTextIfInput:!1,preventScroll:!1})}},[N,B,k]);return{openAndFocusMenu:q,openAndFocusFirstItem:Z,openAndFocusLastItem:G,onTransitionEnd:X,unstable__animationState:W,descendants:k,popper:V,buttonId:U,menuId:$,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:N,onToggle:P,onOpen:R,onClose:I,menuRef:_,buttonRef:w,focusedIndex:B,closeOnSelect:a,closeOnBlur:i,autoSelect:l,setFocusedIndex:z,isLazy:c,lazyBehavior:y}}(iy({},Ca(e),{direction:ka().direction})),o=a.descendants,i=sy(a,_y),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
|
63
|
+
return F.createElement(py,{value:o},/*#__PURE__*/F.createElement(gy,{value:s},/*#__PURE__*/F.createElement(Py,{value:r},t.runIfFn(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate}))))};t.__DEV__&&(Ly.displayName="Menu");var Dy=/*#__PURE__*/La(function(e,t){var n=Ty();/*#__PURE__*/
|
64
|
+
return F.createElement(Fa.button,iy({ref:t},e,{__css:iy({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),My=/*#__PURE__*/La(function(e,n){var r=e.as,a=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=by(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,s=r.openAndFocusLastItem,l=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Enter:i,ArrowDown:i,ArrowUp:s}[n];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[i,s]);return iy({},e,{ref:tn(r.buttonRef,n,o.referenceRef),id:r.buttonId,"data-active":t.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:t.callAllHandlers(e.onClick,a),onKeyDown:t.callAllHandlers(e.onKeyDown,l)})}(sy(e,wy),n);/*#__PURE__*/
|
65
|
+
return F.createElement(r||Dy,iy({},a,{className:t.cx("chakra-menu__menu-button",e.className)}),/*#__PURE__*/F.createElement(Fa.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});t.__DEV__&&(My.displayName="MenuButton");var Vy={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"}}},jy=function(e){var t=Qd;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(Fa.div),By=/*#__PURE__*/La(function(e,n){var r,a,o=e.rootProps,i=sy(e,ky),s=by(),l=s.isOpen,c=s.onTransitionEnd,u=s.unstable__animationState,d=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=by();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var a=r.focusedIndex,o=r.setFocusedIndex,i=r.menuRef,s=r.isOpen,l=r.onClose,c=r.menuId,u=r.isLazy,d=r.lazyBehavior,f=r.unstable__animationState,p=my(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,a=void 0===r?function(){return!0}:r,o=F.useState([]),i=o[0],s=o[1],l=F.useRef(),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 r=[].concat(i);return r.pop(),void s(r)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var o=i.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),s(o),e(o.join("")),c(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&Ey(e.target)}}),v=F.useCallback(function(e){var n=t.normalizeEventKey(e),r={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(a);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(a);e&&o(e.index)}},i=r[n];if(i)return e.preventDefault(),void i(e);var s=m(function(e){var n=t.getNextItemFromSearch(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(a));if(n){var r=p.indexOf(n.node);o(r)}});Ey(e.target)&&s(e)},[p,a,m,l,o]),h=F.useRef(!1);s&&(h.current=!0);var y=t.determineLazyBehavior({hasBeenSelected:h.current,isLazy:u,lazyBehavior:d,isSelected:f.present});return iy({},e,{ref:tn(i,n),children:y?e.children:null,tabIndex:-1,role:"menu",id:c,style:iy({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:t.callAllHandlers(e.onKeyDown,v)})}(i,n),f=function(e){void 0===e&&(e={});var t=by();return t.popper.getPopperProps(iy({},e,{style:iy({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=Ty();/*#__PURE__*/
|
66
|
+
return F.createElement(Fa.div,iy({},f,{__css:{zIndex:null!=(r=e.zIndex)?r:null==(a=p.list)?void 0:a.zIndex}}),/*#__PURE__*/F.createElement(jy,iy({},d,{onUpdate:c,onAnimationComplete:t.callAll(u.onComplete,d.onAnimationComplete),className:t.cx("chakra-menu__menu-list",d.className),variants:Vy,initial:!1,animate:l?"enter":"exit",__css:iy({outline:0},p.list)})))});t.__DEV__&&(By.displayName="MenuList");var Fy=/*#__PURE__*/La(function(e,t){var n=e.type,r=sy(e,Sy),a=Ty(),o=r.as||n?null!=n?n:void 0:"button",i=F.useMemo(function(){return iy({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(Fa.button,iy({ref:t,type:o},r,{__css:i}))}),zy=/*#__PURE__*/La(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=e.command,s=e.commandSpacing,l=void 0===s?"0.75rem":s,c=e.children,u=xy(sy(e,Cy),n),d=r||i?/*#__PURE__*/F.createElement("span",{style:{pointerEvents:"none",flex:1}},c):c;/*#__PURE__*/
|
68
|
+
return F.createElement(Fy,iy({},u,{className:t.cx("chakra-menu__menuitem",u.className)}),r&&/*#__PURE__*/F.createElement(Yy,{fontSize:"0.8em",marginEnd:o},r),d,i&&/*#__PURE__*/F.createElement(qy,{marginStart:l},i))});t.__DEV__&&(zy.displayName="MenuItem");var Wy=function(e){/*#__PURE__*/
|
69
|
+
return F.createElement("svg",iy({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"}))},Hy=/*#__PURE__*/La(function(e,n){var r=e.icon,a=e.iconSpacing,o=void 0===a?"0.75rem":a,i=sy(e,Oy),s=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,a=e.isChecked;return iy({},xy(sy(e,uy),t),{role:"menuitem"+r,"aria-checked":a})}(i,n);/*#__PURE__*/
|
70
|
+
return F.createElement(Fy,iy({},s,{className:t.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&/*#__PURE__*/F.createElement(Yy,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},r||/*#__PURE__*/F.createElement(Wy,null)),/*#__PURE__*/F.createElement("span",{style:{flex:1}},s.children))});Hy.id="MenuItemOption",t.__DEV__&&(Hy.displayName="MenuItemOption");var Uy=function(e){var n=e.className,r=e.title,a=function(e){void 0===e&&(e={});var n=e.children,r=e.type,a=void 0===r?"radio":r,o=e.value,i=e.defaultValue,s=e.onChange,l=sy(e,dy),c=un({defaultValue:null!=i?i:"radio"===a?"":[],value:o,onChange:s}),u=c[0],d=c[1],f=F.useCallback(function(e){if("radio"===a&&t.isString(u)&&d(e),"checkbox"===a&&t.isArray(u)){var n=u.includes(e)?t.removeItem(u,e):t.addItem(u,e);d(n)}},[u,d,a]);return iy({},l,{children:rn(n).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){f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(sy(e,Ay));/*#__PURE__*/
|
72
|
+
return F.createElement($y,iy({title:r,className:t.cx("chakra-menu__option-group",n)},a))};t.__DEV__&&(Uy.displayName="MenuOptionGroup");var $y=/*#__PURE__*/La(function(e,n){var r=e.title,a=e.children,o=e.className,i=sy(e,Ny),s=t.cx("chakra-menu__group__title",o),l=Ty();/*#__PURE__*/
|
73
|
+
return F.createElement("div",{ref:n,className:"chakra-menu__group",role:"group"},r&&/*#__PURE__*/F.createElement(Fa.p,iy({className:s},i,{__css:l.groupTitle}),r),a)});t.__DEV__&&($y.displayName="MenuGroup");var qy=/*#__PURE__*/La(function(e,t){var n=Ty();/*#__PURE__*/
|
74
|
+
return F.createElement(Fa.span,iy({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});t.__DEV__&&(qy.displayName="MenuCommand");var Yy=function(e){var n=e.className,r=e.children,a=sy(e,Ry),o=F.Children.only(r),i=/*#__PURE__*/F.isValidElement(o)?/*#__PURE__*/F.cloneElement(o,{focusable:"false","aria-hidden":!0,className:t.cx("chakra-menu__icon",o.props.className)}):null,s=t.cx("chakra-menu__icon-wrapper",n);/*#__PURE__*/
|
75
|
+
return F.createElement(Fa.span,iy({className:s},a,{__css:{flexShrink:0}}),i)};function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}function Gy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Yy.displayName="MenuIcon");var Xy=function(e){/*#__PURE__*/
|
76
|
+
return F.createElement(Ka,Zy({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"}))},Ky=function(e){/*#__PURE__*/
|
77
|
+
return F.createElement(Ka,Zy({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 Jy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qy(e,n,r,a){F.useEffect(function(){if(e.current&&a){var o=t.getOwnerWindow(e.current),i=Array.isArray(n)?n:[n],s=new o.MutationObserver(function(e){for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jy(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=n()).done;){var a=t.value;"attributes"===a.type&&a.attributeName&&i.includes(a.attributeName)&&r(a)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var eg=["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"],tg=/^[Ee0-9+\-.]$/;function ng(e){return tg.test(e)}var rg=["htmlProps"],ag=Sa("NumberInput"),og=ag[0],ig=ag[1],sg=nn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),lg=sg[0],cg=sg[1],ug=/*#__PURE__*/La(function(e,n){var r=ja("NumberInput",e),a=function(e){void 0===e&&(e={});var n=e.focusInputOnChange,r=void 0===n||n,a=e.clampValueOnBlur,o=void 0===a||a,i=e.keepWithinRange,s=void 0===i||i,l=e.min,c=void 0===l?t.minSafeInteger:l,u=e.max,d=void 0===u?t.maxSafeInteger:u,f=e.step,p=void 0===f?1:f,m=e.isReadOnly,v=e.isDisabled,h=e.isRequired,y=e.isInvalid,g=e.pattern,b=void 0===g?"[0-9]*(.[0-9]+)?":g,E=e.inputMode,x=void 0===E?"decimal":E,_=e.allowMouseWheel,w=e.id,k=e.name,S=e["aria-describedby"],C=e["aria-label"],O=e["aria-labelledby"],A=e.onFocus,N=e.onBlur,R=e.onInvalid,I=e.getAriaValueText,P=e.isValidCharacter,T=e.format,L=e.parse,D=Gy(e,eg),M=on(A),V=on(N),j=on(R),B=on(null!=P?P:ng),z=on(I),W=lm(e),H=W.update,U=W.increment,$=W.decrement,q=ln(),Y=q[0],Z=q[1],G=!(m||v),X=F.useRef(null),K=F.useRef(null),J=F.useRef(null),Q=F.useRef(null),ee=F.useCallback(function(e){return e.split("").filter(B).join("")},[B]),te=F.useCallback(function(e){var t;return null!=(t=null==L?void 0:L(e))?t:e},[L]),ne=F.useCallback(function(e){var t;return(null!=(t=null==T?void 0:T(e))?t:e).toString()},[T]);pn(function(){(W.valueAsNumber>d||W.valueAsNumber<c)&&(null==j||j("rangeOverflow",ne(W.value),W.valueAsNumber))},[W.valueAsNumber,W.value,ne,j]),an(function(){if(X.current&&X.current.value!=W.value){var e=te(X.current.value);W.setValue(ee(e))}},[te,ee]);var re=F.useCallback(function(e){void 0===e&&(e=p),G&&U(e)},[U,G,p]),ae=F.useCallback(function(e){void 0===e&&(e=p),G&&$(e)},[$,G,p]),oe=function(e,t){var n,r,a=F.useState(!1),o=a[0],i=a[1],s=F.useState(null),l=s[0],c=s[1],u=F.useState(!0),d=u[0],f=u[1],p=F.useRef(null),m=function(){return clearTimeout(p.current)};n=o?50:null,r=on(function(){"increment"===l&&e(),"decrement"===l&&t()}),F.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=F.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),c("increment")},300)},[e,d]),h=F.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),c("decrement")},300)},[t,d]),y=F.useCallback(function(){f(!0),i(!1),m()},[]);return mn(m),{up:v,down:h,stop:y,isSpinning:o}}(re,ae);Qy(J,"disabled",oe.stop,oe.isSpinning),Qy(Q,"disabled",oe.stop,oe.isSpinning);var ie=F.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=te(e.currentTarget.value);H(ee(t)),K.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[H,ee,te]),se=F.useCallback(function(e){var t,n,r;null==M||M(e),K.current&&(e.target.selectionStart=null!=(t=K.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=K.current.end)?r:e.currentTarget.selectionStart)},[M]),le=F.useCallback(function(e){if(!e.nativeEvent.isComposing){(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,B)||e.preventDefault();var n=ce(e)*p,r={ArrowUp:function(){return re(n)},ArrowDown:function(){return ae(n)},Home:function(){return H(c)},End:function(){return H(d)}}[t.normalizeEventKey(e)];r&&(e.preventDefault(),r(e))}},[B,p,re,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]),fe=F.useCallback(function(){Z.off(),o&&de()},[o,Z,de]),pe=F.useCallback(function(){r&&t.focus(X.current,{nextTick:!0})},[r]),me=F.useCallback(function(e){e.preventDefault(),oe.up(),pe()},[pe,oe]),ve=F.useCallback(function(e){e.preventDefault(),oe.down(),pe()},[pe,oe]);sn("wheel",function(e){var n=t.getOwnerDocument(X.current);if(_&&n.activeElement===X.current){e.preventDefault();var r=ce(e)*p,a=Math.sign(e.deltaY);-1===a?re(r):1===a&&ae(r)}},X.current,{passive:!1});var he=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMax;return Zy({},e,{ref:tn(n,J),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||me(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMax,s,me,oe.stop,v]),ye=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=v||s&&W.isAtMin;return Zy({},e,{ref:tn(n,Q),role:"button",tabIndex:-1,onPointerDown:t.callAllHandlers(e.onPointerDown,function(e){r||ve(e)}),onPointerLeave:t.callAllHandlers(e.onPointerLeave,oe.stop),onPointerUp:t.callAllHandlers(e.onPointerUp,oe.stop),disabled:r,"aria-disabled":t.ariaAttr(r)})},[W.isAtMin,s,ve,oe.stop,v]),ge=F.useCallback(function(e,n){var r,a,o,i;return void 0===e&&(e={}),void 0===n&&(n=null),Zy({name:k,inputMode:x,type:"text",pattern:b,"aria-labelledby":O,"aria-label":C,"aria-describedby":S,id:w,disabled:v},e,{readOnly:null!=(r=e.readOnly)?r:m,"aria-readonly":null!=(a=e.readOnly)?a:m,"aria-required":null!=(o=e.required)?o:h,required:null!=(i=e.required)?i:h,ref:tn(X,n),value:ne(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!=y?y: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,Z.on),onBlur:t.callAllHandlers(e.onBlur,V,fe)})},[k,x,b,O,C,ne,S,w,v,h,m,y,W.value,W.valueAsNumber,W.isOutOfRange,c,d,ue,ie,le,se,Z.on,V,fe]);return{value:ne(W.value),valueAsNumber:W.valueAsNumber,isFocused:Y,isDisabled:v,isReadOnly:m,getIncrementButtonProps:he,getDecrementButtonProps:ye,getInputProps:ge,htmlProps:D}}(Sp(Ca(e))),o=a.htmlProps,i=Gy(a,rg),s=F.useMemo(function(){return i},[i]);/*#__PURE__*/
|
78
|
+
return F.createElement(lg,{value:s},/*#__PURE__*/F.createElement(og,{value:r},/*#__PURE__*/F.createElement(Fa.div,Zy({},o,{ref:n,className:t.cx("chakra-numberinput",e.className),__css:Zy({position:"relative",zIndex:0},r.root)}))))});t.__DEV__&&(ug.displayName="NumberInput");var dg=/*#__PURE__*/La(function(e,t){var n=ig();/*#__PURE__*/
|
79
|
+
return F.createElement(Fa.div,Zy({"aria-hidden":!0,ref:t},e,{__css:Zy({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});t.__DEV__&&(dg.displayName="NumberInputStepper");var fg=/*#__PURE__*/La(function(e,n){var r=(0,cg().getInputProps)(e,n),a=ig();/*#__PURE__*/
|
80
|
+
return F.createElement(Fa.input,Zy({},r,{className:t.cx("chakra-numberinput__field",e.className),__css:Zy({width:"100%"},a.field)}))});t.__DEV__&&(fg.displayName="NumberInputField");var pg=Fa("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),mg=/*#__PURE__*/La(function(e,t){var n,r=ig(),a=(0,cg().getDecrementButtonProps)(e,t);/*#__PURE__*/
|
81
|
+
return F.createElement(pg,Zy({},a,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Xy,null))});t.__DEV__&&(mg.displayName="NumberDecrementStepper");var vg=/*#__PURE__*/La(function(e,t){var n,r=(0,cg().getIncrementButtonProps)(e,t),a=ig();/*#__PURE__*/
|
82
|
+
return F.createElement(pg,Zy({},r,{__css:a.stepper}),null!=(n=e.children)?n:/*#__PURE__*/F.createElement(Ky,null))});function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(this,arguments)}function yg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(vg.displayName="NumberIncrementStepper");var gg=["index"],bg=qf(),Eg=bg[0],xg=bg[2],_g=bg[3],wg=nn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),kg=wg[0],Sg=wg[1],Cg=function(e){return null==e?void 0:e.split("")};function Og(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var Ag=["children"],Ng=["descendants"],Rg=function(e){var n=Va("PinInput",e),r=Ca(e),a=r.children,o=function(e){void 0===e&&(e={});var n=e.autoFocus,r=e.value,a=e.defaultValue,o=e.onChange,i=e.onComplete,s=e.placeholder,l=void 0===s?"○":s,c=e.manageFocus,u=void 0===c||c,d=e.otp,f=void 0!==d&&d,p=e.id,m=e.isDisabled,v=e.isInvalid,h=e.type,y=void 0===h?"number":h,g=e.mask,b=fn(),E=null!=p?p:"pin-input-"+b,x=xg(),_=F.useState(!0),w=_[0],k=_[1],S=F.useState(-1),C=S[0],O=S[1],A=un({defaultValue:Cg(a)||[],value:Cg(r),onChange:function(e){return null==o?void 0:o(e.join(""))}}),N=A[0],R=A[1];F.useEffect(function(){if(n){var e=x.first();e&&t.focus(e.node,{nextTick:!0})}},[x]);var I=F.useCallback(function(e){if(w&&u){var n=x.next(e,!1);n&&t.focus(n.node,{nextTick:!0})}},[x,w,u]),P=F.useCallback(function(e,t){var n=[].concat(N);n[t]=e,R(n),""!==e&&n.length===x.count()&&n.every(function(e){return null!=e&&""!==e})?null==i||i(n.join("")):I(t)},[N,R,I,i,x]),T=F.useCallback(function(){var e=Array(x.count()).fill("");R(e);var n=x.first();n&&t.focus(n.node)},[x,R]),L=F.useCallback(function(e,t){var n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]),D=F.useCallback(function(e){var n=e.index,r=yg(e,gg),a=C===n;return hg({"aria-label":"Please enter your pin code",inputMode:"number"===y?"numeric":"text",type:g?"password":"number"===y?"tel":"text"},r,{id:E+"-"+n,disabled:m,"aria-invalid":t.ariaAttr(v),onChange:t.callAllHandlers(r.onChange,function(e){var t=e.target.value,r=L(N[n],t);if(""!==r)if(t.length>2){if(Og(t,y)){var a=t.split("").filter(function(e,t){return t<x.count()});R(a),a.length===x.count()&&(null==i||i(a.join("")))}}else Og(r,y)&&P(r,n),k(!0);else P("",n)}),onKeyDown:t.callAllHandlers(r.onKeyDown,function(e){if("Backspace"===e.key&&u)if(""===e.target.value){var r=x.prev(n,!1);r&&(P("",n-1),t.focus(r.node),k(!0))}else k(!1)}),onFocus:t.callAllHandlers(r.onFocus,function(){O(n)}),onBlur:t.callAllHandlers(r.onBlur,function(){O(-1)}),value:N[n]||"",autoComplete:f?"one-time-code":"off",placeholder:a?"":l})},[x,C,L,E,m,g,v,u,i,f,l,P,R,y,N]);return{getInputProps:D,id:E,descendants:x,values:N,setValue:P,setValues:R,clear:T}}(yg(r,Ag)),i=o.descendants,s=yg(o,Ng),l=rn(a).map(function(e){/*#__PURE__*/
|
83
83
|
return F.cloneElement(e,{__css:n})});/*#__PURE__*/
|
84
|
-
return F.createElement(
|
85
|
-
return F.createElement(
|
86
|
-
return F.createElement(
|
87
|
-
return F.createElement(
|
88
|
-
return F.createElement(
|
89
|
-
return F.createElement(
|
90
|
-
return F.createElement("svg",
|
91
|
-
return F.createElement(
|
92
|
-
return F.createElement(
|
93
|
-
return F.createElement(
|
94
|
-
return F.createElement(
|
95
|
-
return F.createElement(
|
96
|
-
return F.createElement($g,Hg({ref:t,viewBox:r},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(u.displayName=o),u}t.__DEV__&&($g.displayName="Icon"),qg({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"}),qg({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"}),qg({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"}),qg({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"}),qg({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 Yg=qg({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"});qg({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"})}),qg({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"}),qg({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"}),qg({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"}),qg({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 Zg=qg({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"}))}),Gg=qg({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"}))});qg({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"}),qg({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"}))}),qg({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"}))}),qg({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"}))}),qg({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"}))}),qg({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),qg({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Xg=qg({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});qg({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),qg({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),qg({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),qg({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),qg({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"}),qg({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),qg({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"}))}),qg({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"}))}),qg({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"}))}),qg({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"}),qg({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"}),qg({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"}))}),qg({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"}))}),qg({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"}))}),qg({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"}),qg({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"}),qg({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"}),qg({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"}),qg({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"}))}),qg({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"}),qg({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"}),qg({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"})))}),qg({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"}),qg({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"})}),qg({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"}),qg({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"}),qg({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"}),qg({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"}))}),qg({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"}),qg({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"}),qg({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"}),qg({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"}))}),qg({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"}),qg({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 Kg=qg({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"}))}),Jg=qg({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}qg({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 eb=["label","isPrimary","isSecondary","children"],tb=fa(function(e,t){var n,r=e.label,a=e.isPrimary,o=e.isSecondary,i=e.children,s=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,eb);return a&&(n="primary"),o&&(n="secondary"),/*#__PURE__*/F.createElement(Vf,Qg({ref:t,colorScheme:n},s),i||r)});function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nb.apply(this,arguments)}t.__DEV__&&(tb.displayName="Button");var rb=fa(function(e,t){/*#__PURE__*/return F.createElement(dm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(tb,nb({ref:t,height:"auto"},e)))});function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ab.apply(this,arguments)}rb.id="InputRightElement",t.__DEV__&&(rb.displayName="InputRightButton");var ob=["viewIcon","viewOffIcon","autoComplete"],ib=fa(function(e,t){var n,r=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,ob),s=F.useState(!1),l=s[0],u=s[1],c=l?"Hide password":"Show password";return n=l?r||/*#__PURE__*/F.createElement(Zg,null):a||/*#__PURE__*/F.createElement(Gg,null),/*#__PURE__*/F.createElement(Jp,null,/*#__PURE__*/F.createElement(Yp,ab({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(rb,{onClick:function(){return u(!l)},"aria-label":c,variant:"ghost"},n))});function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(this,arguments)}function lb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(ib.displayName="PasswordInput");var ub=["options","spacing","direction"],cb=["onBlur","onChange"],db=["value","label"],fb=fa(function(e,t){var n=e.options,r=e.spacing,a=e.direction,o=lb(e,ub),i=o.onBlur,s=o.onChange,l=lb(o,cb);return F.createElement(yg,sb({onChange:s},l),/*#__PURE__*/F.createElement(Qm,{spacing:r,direction:a},n.map(function(e,n){var r=e.value,a=e.label,o=lb(e,db);return F.createElement(xg,sb({key:n,onBlur:i,value:r,ref:t},o),a||r)})))});t.__DEV__&&(fb.displayName="RadioInput");var pb=["pinLength","spacing"],mb=fa(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,a=e.spacing,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,pb),i=[],s=0;s<r;s++)i.push(/*#__PURE__*/F.createElement(ug,{key:s,ref:t}));return F.createElement(ev,{spacing:a},/*#__PURE__*/F.createElement(lg,o,i))});function vb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hb.apply(this,arguments)}function yb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}mb.defaultProps={pinLength:4},t.__DEV__&&(mb.displayName="PinInput");var gb=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],bb=["value","label"],Eb=fa(function(e,t){var n=ha("Input",e),r=hb({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height},n.field,{h:"auto"});return F.createElement(my,hb({as:Vf},e,{ref:t,sx:r}))});t.__DEV__&&(Eb.displayName="SelectButton");var xb=fa(function(e,n){var r=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,u=e.placeholder,c=e.isDisabled,d=e.leftIcon,f=e.rightIcon,p=void 0===f?/*#__PURE__*/F.createElement(Xg,null):f,m=e.multiple,v=e.size,h=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=aa(yb(e,gb)),x=F.useState(l||s),_=x[0],w=x[1],k=np({name:r}),S={isDisabled:c,leftIcon:d,rightIcon:p,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vb(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[a]),O=_?(Array.isArray(_)?_:[_]).map(C):[];return F.createElement(fy,hb({},E,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ga.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Eb,hb({ref:n},S),b(O)||u),/*#__PURE__*/F.createElement(yy,hb({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/F.createElement(_y,{defaultValue:s||l,onChange:function(e){w(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var n=e.value,r=e.label,a=yb(e,bb);return F.createElement(xy,hb({key:t,value:n},a),r||n)}):o)),/*#__PURE__*/F.createElement(ga.input,hb({},k,{name:r,type:"hidden",value:_,className:"saas-select__input"}))))});t.__DEV__&&(xb.displayName="Select");var _b=["options","children"],wb=fa(function(e,t){var n=e.options,r=e.children,a=yb(e,_b);return F.createElement(Ag,hb({ref:t},a),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}function Sb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(wb.displayName="NativeSelect");var Cb=en({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Ob=Cb[0],Ab=Cb[1];function Nb(e){var t=e.step,n=e.onChange,r=F.useState(-1),a=r[0],o=r[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),u=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?u(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==n||n(a)},[a,n]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:u,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var Rb=["orientation","children"],Ib=["children","orientation","step","onChange"],Pb=["children","orientation","stepComponent"],Tb=["children","isOpen"],Lb=["icon","isActive","isCompleted","className"],Db=["name","title","icon","isActive","isCompleted"],Mb=["isActive"],Vb=ra("Stepper"),jb=Vb[0],Bb=Vb[1],Fb=fa(function(e,t){var n=e.orientation,r=e.children,a=Sb(e,Rb);return F.createElement(zb,kb({ref:t,orientation:n},a),/*#__PURE__*/F.createElement(Hb,{orientation:n},r))});t.__DEV__&&(Fb.displayName="Stepper");var zb=fa(function(e,n){var r=e.children,a=e.orientation,o=void 0===a?"horizontal":a,i=Sb(e,Ib),s=ha("Stepper",kb({},i,{orientation:o})),l=aa(i),u=Nb(e),c=kb({display:"flex",flexDirection:"column"},s.container);return F.createElement(jb,{value:s},/*#__PURE__*/F.createElement(Ob,{value:u},/*#__PURE__*/F.createElement(ga.div,kb({ref:n,__css:c},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(zb.displayName="StepperContainer");var Hb=function(e){var n,r,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,u=Sb(e,Pb),c=Bb(),d=Ab().activeIndex,f=kb({display:"flex",flexDirection:"row",alignItems:"center"},c.steps),p="vertical"===s,m=l||$b,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/F.createElement(m,kb({key:n},t.props,{icon:t.props.icon||n+1,isActive:d===n,isCompleted:t.props.isCompleted||d>n}))),p&&e.push(/*#__PURE__*/F.createElement(Wb,{key:"content-"+n,isOpen:d===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/F.createElement(qb,{key:"separator-"+n,isActive:n<d})),e},[]),y=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,Zb),g=d>=v.length?y:p?null:/*#__PURE__*/F.createElement(Wb,null,null==(n=v[d])||null==(r=n.props)?void 0:r.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(ga.div,kb({__css:f},u,{className:t.cx("saas-stepper__steps",e.className)}),h),g)};t.__DEV__&&(Hb.displayName="StepperSteps");var Wb=function(e){var n=e.children,r=e.isOpen,a=void 0===r||r,o=Sb(e,Tb),i=Bb();return F.createElement(ga.div,kb({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement(Kd,{in:a},n))};t.__DEV__&&(Wb.displayName="StepperContent");var Ub=function(e){var n,r=e.icon,a=e.isCompleted,o=e.className,i=Sb(e,Lb),s=kb({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Bb().icon);return n=a?/*#__PURE__*/F.createElement($g,{as:Kg}):r,/*#__PURE__*/F.createElement(ga.div,kb({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),n)};t.__DEV__&&(Ub.displayName="StepperIcon");var $b=function(e){var n=e.title,r=e.icon,a=e.isActive,o=e.isCompleted,i=Sb(e,Db),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,a=Ab(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=kb({display:"flex",alignItems:"center",flexDirection:"row"},Bb().step);return F.createElement(ga.div,kb({},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(Ub,{icon:r,isActive:a,isCompleted:o}),n&&/*#__PURE__*/F.createElement(Yb,null,n))};t.__DEV__&&($b.displayName="StepperStep");var qb=function(e){var n=e.isActive,r=Sb(e,Mb),a=kb({flex:1,mx:2},Bb().separator);return F.createElement(ga.div,kb({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(qb.displayName="StepperSeparator");var Yb=function(e){var n=Bb();return F.createElement(ga.p,kb({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(Yb.displayName="StepperStepTitle");var Zb=function(e){var n=Bb();return F.createElement(ga.div,kb({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gb.apply(this,arguments)}function Xb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Zb.displayName="StepperCompleted");var Kb=["name","label","help","variant","hideLabel","children"],Jb=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],Qb=["name","rules"],eE=["ref"],tE=["name","rules"],nE=["ref"],rE=["type"],aE=["type"],oE=["label","type"],iE={},sE=function(e){var t=e.name,r=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=Xb(e,Kb),u=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return F.createElement(Jf,Gb({variant:o},l,{isInvalid:!!u}),r&&!i?/*#__PURE__*/F.createElement(cp,{variant:o},r):null,/*#__PURE__*/F.createElement(Em,null,s,!a||null!=u&&u.message?null:/*#__PURE__*/F.createElement(Qf,null,a),(null==u?void 0:u.message)&&/*#__PURE__*/F.createElement(sp,null,null==u?void 0:u.message)))};t.__DEV__&&(sE.displayName="BaseField");var lE=fa(function(e,t){var n=e.type;return F.createElement(iE[void 0===n?"text":n]||iE.text,Gb({ref:t},e))}),uE=function(e,t,r){var a;a=null!=r&&r.isControlled?function(e){return fa(function(t,r){var a=t.name,o=t.rules,i=Xb(t,Qb),s=n.useFormContext();return F.createElement(n.Controller,{name:a,control:s.control,rules:o,render:function(t){var n=t.field.ref,a=Xb(t.field,eE);return F.createElement(e,Gb({},a,i,{ref:mn(r,n)}))}})})}(t):function(e){return fa(function(t,r){var a=t.name,o=t.rules,i=Xb(t,tE),s=(0,n.useFormContext().register)(a,o),l=s.ref,u=Xb(s,nE);return F.createElement(e,Gb({},u,i,{ref:mn(r,l)}))})}(t);var o=function(e,t){var n=t.displayName,r=t.hideLabel,a=t.BaseField,o=fa(function(t,n){var o=t.id,i=t.name,s=t.label,l=t.help,u=t.isDisabled,c=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.rules,m=t.variant,v=Xb(t,Jb),h=Gb({required:f},p);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:r,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f,variant:m},/*#__PURE__*/F.createElement(e,Gb({ref:n,id:o,name:i,label:r?s:void 0,rules:h},v)))});return o.displayName=n,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||sE});return iE[e]=o,o};uE("text",fa(function(e,t){var n=e.type,r=void 0===n?"text":n,a=Xb(e,rE);return F.createElement(Yp,Gb({type:r},a,{ref:t}))})),uE("number",zg,{isControlled:!0}),uE("password",ib),uE("textarea",jg),uE("switch",fa(function(e,t){var n=Xb(e,aE);return F.createElement(Lg,Gb({},n,{ref:t}))}),{isControlled:!0}),uE("select",xb,{isControlled:!0}),uE("checkbox",fa(function(e,t){var n=e.label,r=Xb(e,oE);return F.createElement(Bp,Gb({ref:t},r),n)}),{hideLabel:!0}),uE("radio",fb,{isControlled:!0}),uE("pin",mb,{isControlled:!0}),uE("native-select",wb,{isControlled:!0});var cE=["items"],dE=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return Gb({},Xb(e[1],cE),{name:t})})},fE=function(e){return{getFields:function(){return dE(e)},getNestedFields:function(n){var r,a=t.get(e,n);return a?"object"===(null==(r=a.items)?void 0:r.type)?dE(a.items.properties):"object"===a.type?dE(a.properties):[a.items]:[]}}},pE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],mE=fa(function(e,r){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,u=e.shouldUnregister,c=e.shouldUseNativeValidation,d=e.criteriaMode,f=e.delayError,p=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,y=e.formRef,g=e.children,b=Xb(e,pE),E={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:u,shouldUseNativeValidation:c,criteriaMode:d,delayError:f};p&&!i&&(E.resolver=null==mE.getResolver?void 0:mE.getResolver(p));var x=n.useForm(E),_=x.handleSubmit;return F.useImperativeHandle(r,function(){return x},[r,x]),/*#__PURE__*/F.createElement(n.FormProvider,x,/*#__PURE__*/F.createElement(ga.form,Gb({ref:y,onSubmit:_(v,h)},b,{className:t.cx("saas-form",e.className)}),g))});mE.getFieldResolver=fE,t.__DEV__&&(mE.displayName="Form");var vE=["children"],hE=function(e){/*#__PURE__*/return F.createElement(ga.div,null,e.children)};t.__DEV__&&(hE.displayName="FormLayoutItem");var yE=function(e){var n,r,a,o=e.children,i=Xb(e,vE),s=Gb({},null!=(n=null==(r=na().components)||null==(a=r.FormLayout)?void 0:a.defaultProps)?n:{spacing:4},i);return F.createElement(Zm,Gb({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(hE,null,e):e}))};t.__DEV__&&(yE.displayName="FormLayout");var gE=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,Gb({},t.props,{name:e+"."+t.props.name})):t})},bE=en({name:"ArrayFieldContext"}),EE=bE[0],xE=bE[1],_E=en({name:"ArrayFieldRowContext"}),wE=_E[0],kE=_E[1],SE=["children","columns","spacing"],CE=["children"],OE=["name","defaultValue","keyName","min","max","children"],AE=function(e){/*#__PURE__*/return F.createElement(RE,{index:e.index},/*#__PURE__*/F.createElement(NE,{columns:e.columns,spacing:e.spacing},e.children),/*#__PURE__*/F.createElement(IE,null))};t.__DEV__&&(AE.displayName="ArrayFieldRow");var NE=function(e){var t=e.children,n=e.columns,r=e.spacing,a=Xb(e,SE),o=kE().name;return F.createElement(yE,Gb({flex:"1",columns:n,gridGap:r,mr:"2"},a),gE(o,t))};t.__DEV__&&(NE.displayName="ArrayFieldRowFields");var RE=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,a=xE(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){r(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){r(o),i(t)},[t])}}({index:e.index});return F.createElement(wE,{value:r},/*#__PURE__*/F.createElement(ga.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(RE.displayName="ArrayFieldRowContainer");var IE=function(e){/*#__PURE__*/return F.createElement(Ff,Gb({icon:/*#__PURE__*/F.createElement(Jg,null),"aria-label":"Remove row"},function(){var e=kE(),t=e.isFirst,n=e.remove,r=xE(),a=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(a&&r.fields.length<=a)}}(),e))};t.__DEV__&&(IE.displayName="ArrayFieldRemoveButton");var PE=function(e){/*#__PURE__*/return F.createElement(Ff,Gb({icon:/*#__PURE__*/F.createElement(Yg,null),"aria-label":"Add row",float:"right"},function(){var e=xE(),t=e.append,n=e.defaultValue,r=e.max;return{onClick:function(){return t(n,{shouldFocus:!1})},isDisabled:!!(r&&e.fields.length>=r)}}(),e))};t.__DEV__&&(PE.displayName="ArrayFieldAddButton");var TE=F.forwardRef(function(e,t){var n=e.children,r=Xb(e,CE);return F.createElement(DE,Gb({ref:t},r),/*#__PURE__*/F.createElement(LE,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(AE,{key:e.id,index:t},n)}))}),/*#__PURE__*/F.createElement(PE,null))});t.__DEV__&&(TE.displayName="ArrayField");var LE=function(e){return(0,e.children)(xE().fields)};t.__DEV__&&(LE.displayName="ArrayFieldRows");var DE=F.forwardRef(function(e,t){var r=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,u=Xb(e,OE),c=function(e){var t=e.name,r=e.defaultValue,a=void 0===r?{}:r,o=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return Gb({},n.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:r,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return c},[t,c]),/*#__PURE__*/F.createElement(EE,{value:c},/*#__PURE__*/F.createElement(sE,Gb({name:r},u),l))});t.__DEV__&&(DE.displayName="ArrayFieldContainer");var ME=["name","label","hideLabel","children","columns","spacing"],VE=function(e){var t=va("FormLegend");return F.createElement(cp,Gb({as:"legend",sx:t},e))},jE=function(e){var t=e.name,n=e.label,r=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=Xb(e,ME);return F.createElement(Jf,Gb({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(VE,{display:r?"none":"block"},n),/*#__PURE__*/F.createElement(yE,{columns:o,gridGap:i},gE(t,a)))};t.__DEV__&&(jE.displayName="ObjectField");var BE=["name","type"],FE=["schema","fieldResolver"],zE=["name","type","defaultValue"],HE=function(e,t){var n;return null==(n=e.getNestedFields(t))?void 0:n.map(function(e,t){var n=e.name,r=e.type,a=Xb(e,BE);return F.createElement(lE,Gb({key:n||t,name:n,type:r},a))})},WE=function(e){var t=e.schema,n=e.fieldResolver,r=Xb(e,FE),a=F.useMemo(function(){return n||mE.getFieldResolver(t)},[t,n]);return F.createElement(yE,r,a.getFields().map(function(e){var t=e.name,n=e.type,r=Xb(e,zE);return"array"===n?/*#__PURE__*/F.createElement(TE,Gb({key:t,name:t},r),HE(a,t)):"object"===n?/*#__PURE__*/F.createElement(jE,Gb({key:t,name:t},r),HE(a,t)):/*#__PURE__*/F.createElement(lE,Gb({key:t,name:t,type:n},r))}))};t.__DEV__&&(WE.displayName="Fields");var UE=["children","disableIfUntouched","disableIfInvalid"],$E=fa(function(e,t){var r=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=Xb(e,UE),s=n.useFormContext().formState;return F.createElement(tb,Gb({type:"submit",isLoading:s.isSubmitting,isPrimary:!0,ref:t,isDisabled:a&&!s.isDirty||o&&!s.isValid},i),r)});$E.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&($E.displayName="SubmitButton");var qE=["schema","submitLabel","fieldResolver","children"],YE=fa(function(e,t){var n=e.schema,r=e.submitLabel,a=void 0===r?"Submit":r,o=e.fieldResolver,i=e.children,s=Xb(e,qE);return F.createElement(mE,Gb({},s,{schema:n,ref:t}),/*#__PURE__*/F.createElement(yE,null,/*#__PURE__*/F.createElement(WE,{schema:n,fieldResolver:o}),a&&/*#__PURE__*/F.createElement($E,{label:a}),i))});t.__DEV__&&(YE.displayName="AutoForm");var ZE=["onChange"],GE=en({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],XE=["children"],KE=["getFormProps"];F.forwardRef(function(e,n){var r=e.children,a=Xb(e,XE),o=function(e){var t=Nb(Xb(e,ZE)),n=t.activeStep,r=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(t){try{return r?Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(t).then(function(){c(Gb({},i[n],{isCompleted:!0}))}).then(a)):(a(),Promise.resolve())}catch(t){return Promise.reject(t)}},[n,r]),u=F.useCallback(function(){var e=i[n];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,n]),c=F.useCallback(function(e){s(function(t){var n;return Gb({},t,((n={})[e.name]=e,n))})},[i]);return Gb({getFormProps:u,updateStep:c,steps:i},t)}(e),i=o.getFormProps,s=Xb(o,KE),l=F.useMemo(function(){return s},[s]);return F.createElement(Ob,{value:l},/*#__PURE__*/F.createElement(GE,{value:l},/*#__PURE__*/F.createElement(mE,Gb({ref:n},a,i()),t.runIfFn(r,o))))});var JE=function(e){return fE(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:JE(t),resolver:e.ajvResolver(t)}};
|
84
|
+
return F.createElement(Eg,{value:i},/*#__PURE__*/F.createElement(kg,{value:s},l))};t.__DEV__&&(Rg.displayName="PinInput");var Ig=/*#__PURE__*/La(function(e,n){var r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Sg().getInputProps,r=_g(),a=r.index;return n(hg({},e,{ref:tn(r.register,t),index:a}))}(e,n);/*#__PURE__*/
|
85
|
+
return F.createElement(Fa.input,hg({},r,{className:t.cx("chakra-pin-input",e.className)}))});function Pg(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tg.apply(this,arguments)}t.__DEV__&&(Ig.displayName="PinInputField");var Lg=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],Dg=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],Mg=nn({name:"RadioGroupContext",strict:!1}),Vg=Mg[0],jg=Mg[1],Bg=/*#__PURE__*/La(function(e,n){var r=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 n=e.onChange,r=e.value,a=e.defaultValue,o=e.name,i=e.isDisabled,s=e.isFocusable,l=e.isNative,c=Pg(e,Lg),u=F.useState(a||""),d=u[1],f=cn(r,u[0]),p=f[0],m=f[1],v=F.useRef(null),h=F.useCallback(function(){var e=v.current;if(e){var t="input:not(:disabled):checked",n=e.querySelector(t);if(n)n.focus();else{var r=e.querySelector(t="input:not(:disabled)");null==r||r.focus()}}},[]),y=fn(void 0,"radio"),g=o||y,b=F.useCallback(function(e){var r=t.isInputEvent(e)?e.target.value:e;p||d(r),null==n||n(String(r))},[n,p]),E=F.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Tg({},e,{ref:tn(t,v),role:"radiogroup"})},[]),x=F.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),Tg({},e,((n={ref:t,name:g})[l?"checked":"isChecked"]=null!=m?e.value===m:void 0,n.onChange=b,n["data-radiogroup"]=!0,n))},[l,g,b,m]);return{getRootProps:E,getRadioProps:x,name:g,ref:v,focus:h,setValue:d,value:m,onChange:b,isDisabled:i,isFocusable:s,htmlProps:c}}(Pg(e,Dg)),d=u.value,f=u.onChange,p=u.getRootProps,m=u.name,v=u.htmlProps,h=F.useMemo(function(){return{name:m,size:a,onChange:f,colorScheme:r,value:d,variant:o,isDisabled:l,isFocusable:c}},[m,a,f,r,d,o,l,c]),y=p(v,n),g=t.cx("chakra-radio-group",s);/*#__PURE__*/
|
86
|
+
return F.createElement(Vg,{value:h},/*#__PURE__*/F.createElement(Fa.div,Tg({},y,{className:g}),i))});t.__DEV__&&(Bg.displayName="RadioGroup");var Fg=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function zg(e){e.preventDefault(),e.stopPropagation()}var Wg=["spacing","children","isDisabled","isFocusable","inputProps"],Hg=/*#__PURE__*/La(function(e,n){var r,a=jg(),o=e.onChange,i=e.value,s=ja("Radio",Tg({},a,e)),l=Ca(e),c=l.spacing,u=void 0===c?"0.5rem":c,d=l.children,f=l.isDisabled,p=void 0===f?null==a?void 0:a.isDisabled:f,m=l.isFocusable,v=void 0===m?null==a?void 0:a.isFocusable:m,h=l.inputProps,y=Pg(l,Wg),g=e.isChecked;null!=(null==a?void 0:a.value)&&null!=i&&(g=a.value===i);var b=o;null!=a&&a.onChange&&null!=i&&(b=t.callAll(a.onChange,o));var E=function(e){void 0===e&&(e={});var n=e.defaultChecked,r=e.isChecked,a=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,c=e.isInvalid,u=e.name,d=e.value,f=e.id,p=e["data-radiogroup"],m=e["aria-describedby"],v=Pg(e,Fg),h=fn(void 0,"radio"),y=bp(),g=jg(),b=!y||g||p?h:y.id;b=null!=f?f:b;var E=null!=o?o:null==y?void 0:y.isDisabled,x=null!=i?i:null==y?void 0:y.isReadOnly,_=null!=s?s:null==y?void 0:y.isRequired,w=null!=c?c:null==y?void 0:y.isInvalid,k=ln(),S=k[0],C=k[1],O=ln(),A=O[0],N=O[1],R=ln(),I=R[0],P=R[1],T=F.useState(Boolean(n)),L=T[1],D=cn(r,T[0]),M=D[0],V=D[1],j=F.useCallback(function(e){x||E?e.preventDefault():(M||L(e.target.checked),null==l||l(e))},[M,E,x,l]),B=F.useCallback(function(e){" "===e.key&&P.on()},[P]),z=F.useCallback(function(e){" "===e.key&&P.off()},[P]),W=F.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Tg({},e,{ref:n,"data-active":t.dataAttr(I),"data-hover":t.dataAttr(A),"data-disabled":t.dataAttr(E),"data-invalid":t.dataAttr(w),"data-checked":t.dataAttr(V),"data-focus":t.dataAttr(S),"data-readonly":t.dataAttr(x),"aria-hidden":!0,onMouseDown:t.callAllHandlers(e.onMouseDown,P.on),onMouseUp:t.callAllHandlers(e.onMouseUp,P.off),onMouseEnter:t.callAllHandlers(e.onMouseEnter,N.on),onMouseLeave:t.callAllHandlers(e.onMouseLeave,N.off)})},[I,A,E,w,V,S,x,P.on,P.off,N.on,N.off]),H=null!=y?y:{},U=H.onFocus,$=H.onBlur,q=F.useCallback(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=E&&!a;return Tg({},e,{id:b,ref:n,type:"radio",name:u,value:d,onChange:t.callAllHandlers(e.onChange,j),onBlur:t.callAllHandlers($,e.onBlur,C.off),onFocus:t.callAllHandlers(U,e.onFocus,C.on),onKeyDown:t.callAllHandlers(e.onKeyDown,B),onKeyUp:t.callAllHandlers(e.onKeyUp,z),checked:V,disabled:r,readOnly:x,required:_,"aria-invalid":t.ariaAttr(w),"aria-disabled":t.ariaAttr(r),"aria-required":t.ariaAttr(_),"data-readonly":t.dataAttr(x),"aria-describedby":m,style:za})},[E,a,b,u,d,j,$,C,U,B,z,V,x,_,w,m]);return{state:{isInvalid:w,isFocused:S,isChecked:V,isActive:I,isHovered:A,isDisabled:E,isReadOnly:x,isRequired:_},getCheckboxProps:W,getInputProps:q,getLabelProps:function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Tg({},e,{ref:n,onMouseDown:t.callAllHandlers(e.onMouseDown,zg),onTouchStart:t.callAllHandlers(e.onTouchStart,zg),"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},getRootProps:function(e,n){return void 0===n&&(n=null),Tg({},e,{ref:n,"data-disabled":t.dataAttr(E),"data-checked":t.dataAttr(V),"data-invalid":t.dataAttr(w)})},htmlProps:v}}(Tg({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(r=null==e?void 0:e.name)?r:null==a?void 0:a.name})),x=E.getInputProps,_=E.getCheckboxProps,w=E.getLabelProps,k=E.getRootProps,S=t.split(E.htmlProps,Mr),C=S[0],O=_(S[1]),A=x(h,n),N=w(),R=Object.assign({},C,k()),I=Tg({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),P=Tg({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),T=Tg({userSelect:"none",marginStart:u},s.label);/*#__PURE__*/
|
87
|
+
return F.createElement(Fa.label,Tg({className:"chakra-radio"},R,{__css:I}),/*#__PURE__*/F.createElement("input",Tg({className:"chakra-radio__input"},A)),/*#__PURE__*/F.createElement(Fa.span,Tg({className:"chakra-radio__control"},O,{__css:P})),d&&/*#__PURE__*/F.createElement(Fa.span,Tg({className:"chakra-radio__label"},N,{__css:T}),d))});function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ug.apply(this,arguments)}function $g(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Hg.displayName="Radio");var qg=["children","placeholder","className"],Yg=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Zg=["children"],Gg=/*#__PURE__*/La(function(e,n){var r=e.children,a=e.placeholder,o=e.className,i=$g(e,qg);/*#__PURE__*/
|
88
|
+
return F.createElement(Fa.select,Ug({},i,{ref:n,className:t.cx("chakra-select",o)}),a&&/*#__PURE__*/F.createElement("option",{value:""},a),r)});t.__DEV__&&(Gg.displayName="SelectField");var Xg=/*#__PURE__*/La(function(e,n){var r=ja("Select",e),a=Ca(e),o=a.rootProps,i=a.placeholder,s=a.icon,l=a.color,c=a.height,u=a.h,d=a.minH,f=a.minHeight,p=a.iconColor,m=a.iconSize,v=$g(a,Yg),h=t.split(v,Mr),y=h[0],g=kp(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:l},E=t.mergeWith({paddingEnd:"2rem"},r.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
|
89
|
+
return F.createElement(Fa.div,Ug({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/F.createElement(Gg,Ug({ref:n,height:null!=u?u:c,minH:null!=d?d:f,placeholder:i},g,{__css:E}),e.children),/*#__PURE__*/F.createElement(Qg,Ug({"data-disabled":t.dataAttr(g.disabled)},(p||l)&&{color:p||l},{__css:r.icon},m&&{fontSize:m}),s))});t.__DEV__&&(Xg.displayName="Select");var Kg=function(e){/*#__PURE__*/
|
90
|
+
return F.createElement("svg",Ug({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"}))},Jg=Fa("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Qg=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/F.createElement(Kg,null):t,r=$g(e,Zg),a=/*#__PURE__*/F.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
|
91
|
+
return F.createElement(Jg,Ug({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/F.isValidElement(n)?a:null)};function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}t.__DEV__&&(Qg.displayName="SelectIcon");var tb=["spacing","children"],nb=/*#__PURE__*/La(function(e,n){var r=ja("Switch",e),a=Ca(e),o=a.spacing,i=void 0===o?"0.5rem":o,s=a.children,l=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,tb),c=nm(l),u=c.state,d=c.getInputProps,f=c.getCheckboxProps,p=c.getRootProps,m=c.getLabelProps,v=F.useMemo(function(){return eb({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)},[r.container]),h=F.useMemo(function(){return eb({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)},[r.track]),y=F.useMemo(function(){return eb({userSelect:"none",marginStart:i},r.label)},[i,r.label]);/*#__PURE__*/
|
92
|
+
return F.createElement(Fa.label,eb({},p(),{className:t.cx("chakra-switch",e.className),__css:v}),/*#__PURE__*/F.createElement("input",eb({className:"chakra-switch__input"},d({},n))),/*#__PURE__*/F.createElement(Fa.span,eb({},f(),{className:"chakra-switch__track",__css:h}),/*#__PURE__*/F.createElement(Fa.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":t.dataAttr(u.isChecked),"data-hover":t.dataAttr(u.isHovered)})),s&&/*#__PURE__*/F.createElement(Fa.span,eb({className:"chakra-switch__label"},m(),{__css:y}),s))});function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rb.apply(this,arguments)}t.__DEV__&&(nb.displayName="Switch");var ab=["className","rows"],ob=["h","minH","height","minHeight"],ib=/*#__PURE__*/La(function(e,n){var r=Va("Textarea",e),a=Ca(e),o=a.className,i=a.rows,s=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(a,ab),l=kp(s),c=i?t.omit(r,ob):r;/*#__PURE__*/
|
93
|
+
return F.createElement(Fa.textarea,rb({ref:n,rows:i},l,{className:t.cx("chakra-textarea",o),__css:c}))});function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(this,arguments)}t.__DEV__&&(ib.displayName="Textarea");var lb=["hideStepper","incrementIcon","decrementIcon"],cb=La(function(e,t){var n=e.hideStepper,r=e.incrementIcon,a=e.decrementIcon,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,lb);return F.createElement(ug,sb({},o,{ref:t}),/*#__PURE__*/F.createElement(fg,null),!n&&/*#__PURE__*/F.createElement(dg,null,/*#__PURE__*/F.createElement(vg,{children:r}),/*#__PURE__*/F.createElement(mg,{children:a})))});function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}cb.defaultProps={hideStepper:!1},t.__DEV__&&(cb.displayName="NumberInput");var db=["as","viewBox","color","focusable","children","className","__css"],fb={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"},pb=/*#__PURE__*/La(function(e,n){var r=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,f=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,db),p={ref:n,focusable:l,className:t.cx("chakra-icon",u),__css:ub({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:fb.viewBox;if(r&&"string"!=typeof r)/*#__PURE__*/
|
94
|
+
return F.createElement(Fa.svg,ub({as:r},p,f));var v=null!=c?c:fb.path;/*#__PURE__*/
|
95
|
+
return F.createElement(Fa.svg,ub({verticalAlign:"middle",viewBox:m},p,f),v)});function mb(e){var n=e.viewBox,r=void 0===n?"0 0 24 24":n,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),c=/*#__PURE__*/La(function(e,t){/*#__PURE__*/
|
96
|
+
return F.createElement(pb,ub({ref:t,viewBox:r},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(pb.displayName="Icon"),mb({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"}),mb({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"}),mb({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"}),mb({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"}),mb({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 vb=mb({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"});mb({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"})}),mb({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"}),mb({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"}),mb({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"}),mb({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 hb=mb({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"}))}),yb=mb({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"}))});mb({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"}),mb({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"}))}),mb({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"}))}),mb({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"}))}),mb({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"}))}),mb({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),mb({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var gb=mb({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});mb({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),mb({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),mb({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),mb({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),mb({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"}),mb({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),mb({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"}))}),mb({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"}))}),mb({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"}))}),mb({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"}),mb({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"}),mb({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"}))}),mb({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"}))}),mb({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"}))}),mb({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"}),mb({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"}),mb({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"}),mb({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"}),mb({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"}))}),mb({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"}),mb({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"}),mb({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"})))}),mb({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"}),mb({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"})}),mb({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"}),mb({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"}),mb({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"}),mb({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"}))}),mb({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"}),mb({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"}),mb({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"}),mb({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"}))}),mb({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"}),mb({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 bb=mb({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"}))}),Eb=mb({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.apply(this,arguments)}mb({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 _b=["label","children"],wb=La(function(e,t){var n=e.label,r=e.children,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,_b);return F.createElement(op,xb({ref:t},a),r||n)});function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}t.__DEV__&&(wb.displayName="Button");var Sb=La(function(e,t){/*#__PURE__*/return F.createElement(Tm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(wb,kb({ref:t,height:"auto"},e)))});function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cb.apply(this,arguments)}Sb.id="InputRightElement",t.__DEV__&&(Sb.displayName="InputRightButton");var Ob=["viewIcon","viewOffIcon","autoComplete"],Ab=La(function(e,t){var n,r=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,Ob),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return n=l?r||/*#__PURE__*/F.createElement(hb,null):a||/*#__PURE__*/F.createElement(yb,null),/*#__PURE__*/F.createElement(Em,null,/*#__PURE__*/F.createElement(vm,Cb({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(Sb,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},n))});function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(this,arguments)}function Rb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Ab.displayName="PasswordInput");var Ib=["options","spacing","direction"],Pb=["onBlur","onChange"],Tb=["value","label"],Lb=La(function(e,t){var n=e.options,r=e.spacing,a=e.direction,o=Rb(e,Ib),i=o.onBlur,s=o.onChange,l=Rb(o,Pb);return F.createElement(Bg,Nb({onChange:s},l),/*#__PURE__*/F.createElement(xv,{spacing:r,direction:a},n.map(function(e,n){var r=e.value,a=e.label,o=Rb(e,Tb);return F.createElement(Hg,Nb({key:n,onBlur:i,value:r,ref:t},o),a||r)})))});function Db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mb.apply(this,arguments)}function Vb(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Lb.displayName="RadioInput");var jb=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Bb=["value","label"],Fb=La(function(e,t){var n=ja("Input",e),r=Mb({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height},n.field,{h:"auto"});return F.createElement(My,Mb({as:op},e,{ref:t,sx:r}))});t.__DEV__&&(Fb.displayName="SelectButton");var zb=La(function(e,n){var r=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,f=e.rightIcon,p=void 0===f?/*#__PURE__*/F.createElement(gb,null):f,m=e.multiple,v=e.size,h=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=Ca(Vb(e,jb)),x=F.useState(l||s),_=x[0],w=x[1],k=kp({name:r}),S={isDisabled:u,leftIcon:d,rightIcon:p,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Db(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[a]),O=_?(Array.isArray(_)?_:[_]).map(C):[];return F.createElement(Ly,Mb({},E,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(Fa.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Fb,Mb({ref:n},S),b(O)||c),/*#__PURE__*/F.createElement(By,Mb({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/F.createElement(Uy,{defaultValue:s||l,onChange:function(e){w(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var n=e.value,r=e.label,a=Vb(e,Bb);return F.createElement(Hy,Mb({key:t,value:n},a),r||n)}):o)),/*#__PURE__*/F.createElement(Fa.input,Mb({},k,{name:r,type:"hidden",value:_,className:"saas-select__input"}))))});t.__DEV__&&(zb.displayName="Select");var Wb=["options","children"],Hb=La(function(e,t){var n=e.options,r=e.children,a=Vb(e,Wb);return F.createElement(Xg,Mb({ref:t},a),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}function $b(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(Hb.displayName="NativeSelect");var qb=nn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Yb=qb[0],Zb=qb[1];function Gb(e){var t=e.step,n=e.onChange,r=F.useState(-1),a=r[0],o=r[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),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==n||n(a)},[a,n]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep: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 Xb=["orientation","children"],Kb=["children","orientation","step","onChange"],Jb=["children","orientation","stepComponent"],Qb=["children","isOpen"],eE=["icon","isActive","isCompleted","className"],tE=["name","title","icon","isActive","isCompleted"],nE=["isActive"],rE=Sa("Stepper"),aE=rE[0],oE=rE[1],iE=La(function(e,t){var n=e.orientation,r=e.children,a=$b(e,Xb);return F.createElement(sE,Ub({ref:t,orientation:n},a),/*#__PURE__*/F.createElement(lE,{orientation:n},r))});t.__DEV__&&(iE.displayName="Stepper");var sE=La(function(e,n){var r=e.children,a=e.orientation,o=void 0===a?"horizontal":a,i=$b(e,Kb),s=ja("Stepper",Ub({},i,{orientation:o})),l=Ca(i),c=Gb(e),u=Ub({display:"flex",flexDirection:"column"},s.container);return F.createElement(aE,{value:s},/*#__PURE__*/F.createElement(Yb,{value:c},/*#__PURE__*/F.createElement(Fa.div,Ub({ref:n,__css:u},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(sE.displayName="StepperContainer");var lE=function(e){var n,r,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=$b(e,Jb),u=oE(),d=Zb().activeIndex,f=Ub({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),p="vertical"===s,m=l||dE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/F.createElement(m,Ub({key:n},t.props,{icon:t.props.icon||n+1,isActive:d===n,isCompleted:t.props.isCompleted||d>n}))),p&&e.push(/*#__PURE__*/F.createElement(cE,{key:"content-"+n,isOpen:d===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/F.createElement(fE,{key:"separator-"+n,isActive:n<d})),e},[]),y=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,mE),g=d>=v.length?y:p?null:/*#__PURE__*/F.createElement(cE,null,null==(n=v[d])||null==(r=n.props)?void 0:r.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(Fa.div,Ub({__css:f},c,{className:t.cx("saas-stepper__steps",e.className)}),h),g)};t.__DEV__&&(lE.displayName="StepperSteps");var cE=function(e){var n=e.children,r=e.isOpen,a=void 0===r||r,o=$b(e,Qb),i=oE();return F.createElement(Fa.div,Ub({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement(Ef,{in:a},n))};t.__DEV__&&(cE.displayName="StepperContent");var uE=function(e){var n,r=e.icon,a=e.isCompleted,o=e.className,i=$b(e,eE),s=Ub({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},oE().icon);return n=a?/*#__PURE__*/F.createElement(pb,{as:bb}):r,/*#__PURE__*/F.createElement(Fa.div,Ub({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),n)};t.__DEV__&&(uE.displayName="StepperIcon");var dE=function(e){var n=e.title,r=e.icon,a=e.isActive,o=e.isCompleted,i=$b(e,tE),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,a=Zb(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=Ub({display:"flex",alignItems:"center",flexDirection:"row"},oE().step);return F.createElement(Fa.div,Ub({},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(uE,{icon:r,isActive:a,isCompleted:o}),n&&/*#__PURE__*/F.createElement(pE,null,n))};t.__DEV__&&(dE.displayName="StepperStep");var fE=function(e){var n=e.isActive,r=$b(e,nE),a=Ub({flex:1,mx:2},oE().separator);return F.createElement(Fa.div,Ub({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(fE.displayName="StepperSeparator");var pE=function(e){var n=oE();return F.createElement(Fa.p,Ub({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(pE.displayName="StepperStepTitle");var mE=function(e){var n=oE();return F.createElement(Fa.div,Ub({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vE.apply(this,arguments)}function hE(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}t.__DEV__&&(mE.displayName="StepperCompleted");var yE=["name","label","help","variant","hideLabel","children"],gE=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","isOptional","rules","variant"],bE=["name","rules"],EE=["ref"],xE=["name","rules"],_E=["ref"],wE=["type","leftAddon","rightAddon","size"],kE=["type"],SE=["label","type"],CE=["pinLength","pinType","spacing"],OE={},AE=function(e){var t=e.name,r=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=hE(e,yE),c=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return F.createElement(Ep,vE({variant:o},l,{isInvalid:!!c}),r&&!i?/*#__PURE__*/F.createElement(Pp,{variant:o},r):null,/*#__PURE__*/F.createElement(Wm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(xp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(Np,null,null==c?void 0:c.message)))};t.__DEV__&&(AE.displayName="BaseField");var NE=F.forwardRef(function(e,t){var n=e.type;return F.createElement(OE[void 0===n?"text":n]||OE.text,vE({ref:t},e))}),RE=function(e,t,r){var a;a=null!=r&&r.isControlled?function(e){return La(function(t,r){var a=t.name,o=t.rules,i=hE(t,bE),s=n.useFormContext();return F.createElement(n.Controller,{name:a,control:s.control,rules:o,render:function(t){var n=t.field.ref,a=hE(t.field,EE);return F.createElement(e,vE({},a,i,{ref:hn(r,n)}))}})})}(t):function(e){return La(function(t,r){var a=t.name,o=t.rules,i=hE(t,xE),s=(0,n.useFormContext().register)(a,o),l=s.ref,c=hE(s,_E);return F.createElement(e,vE({},c,i,{ref:hn(r,l)}))})}(t);var o=function(e,t){var n=t.displayName,r=t.hideLabel,a=t.BaseField,o=La(function(t,n){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,f=t.isRequired,p=t.isOptional,m=t.rules,v=t.variant,h=hE(t,gE),y=vE({required:f},m);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:r,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:f,isOptional:p,variant:v},/*#__PURE__*/F.createElement(e,vE({ref:n,id:o,name:i,label:r?s:void 0,rules:y},h)))});return o.displayName=n,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==r?void 0:r.hideLabel,BaseField:(null==r?void 0:r.BaseField)||AE});return OE[e]=o,o};RE("text",La(function(e,t){var n=e.type,r=void 0===n?"text":n,a=e.leftAddon,o=e.rightAddon,i=e.size,s=hE(e,wE),l=/*#__PURE__*/F.createElement(vm,vE({type:r,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Em,{size:i},a,l,o):l})),RE("number",cb,{isControlled:!0}),RE("password",La(function(e,t){/*#__PURE__*/return F.createElement(Ab,vE({ref:t},e))})),RE("textarea",ib),RE("switch",La(function(e,t){var n=hE(e,kE);return F.createElement(nb,vE({},n,{ref:t}))}),{isControlled:!0}),RE("select",zb,{isControlled:!0}),RE("checkbox",La(function(e,t){var n=e.label,r=hE(e,SE);return F.createElement(sm,vE({ref:t},r),n)}),{hideLabel:!0}),RE("radio",Lb,{isControlled:!0}),RE("native-select",Hb,{isControlled:!0}),RE("pin",La(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,a=e.pinType,o=e.spacing,i=hE(e,CE),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/F.createElement(Ig,{key:l,ref:t}));return F.createElement(_v,{spacing:o},/*#__PURE__*/F.createElement(Rg,vE({},i,{type:a}),s))}),{isControlled:!0});var IE=["items"],PE=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return vE({},hE(e[1],IE),{name:t})})},TE=function(e){return{getFields:function(){return PE(e)},getNestedFields:function(n){var r,a=t.get(e,n);return a?"object"===(null==(r=a.items)?void 0:r.type)?PE(a.items.properties):"object"===a.type?PE(a.properties):[a.items]:[]}}},LE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],DE=La(function(e,r){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,f=e.delayError,p=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,y=e.formRef,g=e.children,b=hE(e,LE),E={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:f};p&&!i&&(E.resolver=null==DE.getResolver?void 0:DE.getResolver(p));var x=n.useForm(E),_=x.handleSubmit;return F.useImperativeHandle(r,function(){return x},[r,x]),/*#__PURE__*/F.createElement(n.FormProvider,x,/*#__PURE__*/F.createElement(Fa.form,vE({ref:y,onSubmit:_(v,h)},b,{className:t.cx("saas-form",e.className)}),g))});DE.getFieldResolver=TE,t.__DEV__&&(DE.displayName="Form");var ME=["children"],VE=function(e){/*#__PURE__*/return F.createElement(Fa.div,null,e.children)};t.__DEV__&&(VE.displayName="FormLayoutItem");var jE=function(e){var n,r,a,o=e.children,i=hE(e,ME),s=vE({},null!=(n=null==(r=ka().components)||null==(a=r.FormLayout)?void 0:a.defaultProps)?n:{spacing:4},i);return F.createElement(hv,vE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(VE,null,e):e}))};t.__DEV__&&(jE.displayName="FormLayout");var BE=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,vE({},t.props,{name:e+"."+t.props.name})):t})},FE=nn({name:"ArrayFieldContext"}),zE=FE[0],WE=FE[1],HE=nn({name:"ArrayFieldRowContext"}),UE=HE[0],$E=HE[1],qE=["children","index"],YE=["children"],ZE=["children"],GE=["name","defaultValue","keyName","min","max","children"],XE=function(e){var t=e.children,n=e.index,r=hE(e,qE);return F.createElement(JE,{index:n},/*#__PURE__*/F.createElement(KE,r,t),/*#__PURE__*/F.createElement(QE,null))};t.__DEV__&&(XE.displayName="ArrayFieldRow");var KE=function(e){var t=e.children,n=hE(e,YE),r=$E().name;return F.createElement(jE,vE({flex:"1",mr:"2"},n),BE(r,t))};t.__DEV__&&(KE.displayName="ArrayFieldRowFields");var JE=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,a=WE(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){r(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){r(o),i(t)},[t])}}({index:e.index});return F.createElement(UE,{value:r},/*#__PURE__*/F.createElement(Fa.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(JE.displayName="ArrayFieldRowContainer");var QE=function(e){/*#__PURE__*/return F.createElement(lp,vE({icon:/*#__PURE__*/F.createElement(Eb,null),"aria-label":"Remove row"},function(){var e=$E(),t=e.isFirst,n=e.remove,r=WE(),a=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(a&&r.fields.length<=a)}}(),e))};t.__DEV__&&(QE.displayName="ArrayFieldRemoveButton");var ex=function(e){/*#__PURE__*/return F.createElement(lp,vE({icon:/*#__PURE__*/F.createElement(vb,null),"aria-label":"Add row",float:"right"},function(){var e=WE(),t=e.append,n=e.defaultValue,r=e.max;return{onClick:function(){return t(n,{shouldFocus:!1})},isDisabled:!!(r&&e.fields.length>=r)}}(),e))};t.__DEV__&&(ex.displayName="ArrayFieldAddButton");var tx=La(function(e,t){var n=e.children,r=hE(e,ZE);return F.createElement(rx,vE({ref:t},r),/*#__PURE__*/F.createElement(nx,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(XE,{key:e.id,index:t},n)}))}),/*#__PURE__*/F.createElement(ex,null))});t.__DEV__&&(tx.displayName="ArrayField");var nx=function(e){return(0,e.children)(WE().fields)};t.__DEV__&&(nx.displayName="ArrayFieldRows");var rx=F.forwardRef(function(e,t){var r=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=hE(e,GE),u=function(e){var t=e.name,r=e.defaultValue,a=void 0===r?{}:r,o=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return vE({},n.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:r,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(zE,{value:u},/*#__PURE__*/F.createElement(AE,vE({name:r},c),l))});t.__DEV__&&(rx.displayName="ArrayFieldContainer");var ax=["name","label","hideLabel","children","columns","spacing"],ox=function(e){var t=Va("FormLegend");return F.createElement(Pp,vE({as:"legend",sx:t},e))},ix=function(e){var t=e.name,n=e.label,r=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=hE(e,ax);return F.createElement(Ep,vE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(ox,{display:r?"none":"block"},n),/*#__PURE__*/F.createElement(jE,{columns:o,gridGap:i},BE(t,a)))};t.__DEV__&&(ix.displayName="ObjectField");var sx=["name","type"],lx=["schema","fieldResolver"],cx=["name","type","defaultValue"],ux=function(e,t){var n;return null==(n=e.getNestedFields(t))?void 0:n.map(function(e,t){var n=e.name,r=e.type,a=hE(e,sx);return F.createElement(NE,vE({key:n||t,name:n,type:r},a))})},dx=function(e){var t=e.schema,n=e.fieldResolver,r=hE(e,lx),a=F.useMemo(function(){return n||DE.getFieldResolver(t)},[t,n]);return F.createElement(jE,r,a.getFields().map(function(e){var t=e.name,n=e.type,r=hE(e,cx);return"array"===n?/*#__PURE__*/F.createElement(tx,vE({key:t,name:t},r),ux(a,t)):"object"===n?/*#__PURE__*/F.createElement(ix,vE({key:t,name:t},r),ux(a,t)):/*#__PURE__*/F.createElement(NE,vE({key:t,name:t,type:n},r))}))};t.__DEV__&&(dx.displayName="Fields");var fx=["children","disableIfUntouched","disableIfInvalid"],px=La(function(e,t){var r=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=hE(e,fx),s=n.useFormContext().formState;return F.createElement(wb,vE({type:"submit",isLoading:s.isSubmitting,colorScheme:"primary",ref:t,isDisabled:a&&!s.isDirty||o&&!s.isValid},i),r)});px.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(px.displayName="SubmitButton");var mx=["schema","submitLabel","fieldResolver","children"],vx=La(function(e,t){var n=e.schema,r=e.submitLabel,a=void 0===r?"Submit":r,o=e.fieldResolver,i=e.children,s=hE(e,mx);return F.createElement(DE,vE({},s,{schema:n,ref:t}),/*#__PURE__*/F.createElement(jE,null,/*#__PURE__*/F.createElement(dx,{schema:n,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(px,{label:a}),i))});t.__DEV__&&(vx.displayName="AutoForm");var hx=["onChange"],yx=nn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],gx=["children"],bx=["getFormProps"];F.forwardRef(function(e,n){var r=e.children,a=hE(e,gx),o=function(e){var t=Gb(hE(e,hx)),n=t.activeStep,r=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(t){try{return r?Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(t).then(function(){u(vE({},i[n],{isCompleted:!0}))}).then(a)):(a(),Promise.resolve())}catch(t){return Promise.reject(t)}},[n,r]),c=F.useCallback(function(){var e=i[n];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,n]),u=F.useCallback(function(e){s(function(t){var n;return vE({},t,((n={})[e.name]=e,n))})},[i]);return vE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=hE(o,bx),l=F.useMemo(function(){return s},[s]);return F.createElement(Yb,{value:l},/*#__PURE__*/F.createElement(yx,{value:l},/*#__PURE__*/F.createElement(DE,vE({ref:n},a,i()),t.runIfFn(r,o))))});var Ex=function(e){return TE(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:Ex(t),resolver:e.ajvResolver(t)}};
|
97
97
|
//# sourceMappingURL=index.js.map
|