@saas-ui/forms 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/dist/ajv/index.js +83 -85
- package/dist/ajv/index.js.map +1 -1
- package/dist/ajv/index.modern.js +84 -86
- package/dist/ajv/index.modern.js.map +1 -1
- package/dist/field-resolver.d.ts +2 -2
- package/dist/field-resolver.d.ts.map +1 -1
- package/dist/field.d.ts +9 -9
- package/dist/field.d.ts.map +1 -1
- package/dist/form.d.ts +2 -2
- package/dist/form.d.ts.map +1 -1
- package/dist/layout.d.ts +1 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +1 -1
- package/dist/use-step-form.d.ts.map +1 -1
- package/dist/yup/yup-resolver.d.ts +1 -1
- package/dist/yup/yup-resolver.d.ts.map +1 -1
- package/dist/zod/zod-resolver.d.ts +1 -1
- package/dist/zod/zod-resolver.d.ts.map +1 -1
- package/package.json +14 -14
package/dist/ajv/index.js
CHANGED
@@ -1,87 +1,85 @@
|
|
1
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}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var i=Symbol.for("react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,E={};function x(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||g}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||g}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=x.prototype;var S=k.prototype=new w;S.constructor=k,b(S,x.prototype),S.isPureReactComponent=!0;var _=Array.isArray,C=Object.prototype.hasOwnProperty,O={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:O.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var I=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function L(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case s:l=!0}}if(l)return o=o(l=e),e=""===r?"."+T(l,0):r,_(o)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),L(o,t,n,"",function(e){return e})):null!=o&&(R(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",_(e))for(var c=0;c<e.length;c++){var u=r+T(a=e[c],c);l+=L(a,t,n,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=L(a=a.value,t,n,u=r+T(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(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},j={transition:null},V={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},B={Children:V,Component:x,Fragment:l,Profiler:u,PureComponent:k,StrictMode:c,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:D,ReactCurrentBatchConfig:j,ReactCurrentOwner:O},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=b({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!N.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:i,type:e.type,key:o,ref:a,props:r,_owner:s}},createContext:function(e){return(e={$$typeof:p,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:d,_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:R,lazy:function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:M}},memo:function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return D.current.useCallback(e,t)},useContext:function(e){return D.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return D.current.useDeferredValue(e)},useEffect:function(e,t){return D.current.useEffect(e,t)},useId:function(){return D.current.useId()},useImperativeHandle:function(e,t,n){return D.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return D.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return D.current.useLayoutEffect(e,t)},useMemo:function(e,t){return D.current.useMemo(e,t)},useReducer:function(e,t,n){return D.current.useReducer(e,t,n)},useRef:function(e){return D.current.useRef(e)},useState:function(e){return D.current.useState(e)},useSyncExternalStore:function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},useTransition:function(){return D.current.useTransition()},version:"18.2.0"},F=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"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator;function v(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},E={current:null},x={},w=null;function k(e){w=e}x.setExtraStackFrame=function(e){w=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";w&&(e+=w);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:E};function _(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=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=x,S.ReactCurrentActQueue=b;var N={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(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),N[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},I=Object.assign,T={};function L(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}Object.freeze(T),L.prototype.isReactComponent={},L.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var P={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(L.prototype,e,{get:function(){_("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var D in P)P.hasOwnProperty(D)&&M(D,P[D]);function j(){}function V(e,t,n){this.props=e,this.context=t,this.refs=T,this.updater=n||R}j.prototype=L.prototype;var B=V.prototype=new j;B.constructor=V,I(B,L.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function $(e){return""+e}function U(e){if(function(e){try{return $(e),!1}catch(e){return!0}}(e))return 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)),$(e)}function W(e){return e.displayName||"Context"}function H(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 o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return W(e)+".Consumer";case s:return W(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case p:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case f:var n=e._payload,m=e._init;try{return H(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,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=H(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,o,a,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),o.children=u}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(a||i){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,f),i&&ee(o,f)}return ne(e,a,i,s,l,E.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=I({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,u=E.current),J(t)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];a.children=p}return ne(e.type,i,s,l,c,u,a)}function ae(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ce(e){return e.replace(le,"$&/")}function ue(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(U(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var p=e,f=i(p),m=""===a?"."+ue(p,0):a;if(z(f)){var h="";null!=m&&(h=ce(m)+"/"),de(f,t,h,"",function(e){return e})}else null!=f&&(ae(f)&&(!f.key||p&&p.key===f.key||U(f.key),l=f,c=o+(!f.key||p&&p.key===f.key?"":ce(""+f.key)+"/")+m,f=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var y=0,g=""===a?".":a+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(u=e[b],t,o,g+ue(u,b),i);else{var E=v(e);if("function"==typeof E){var x=e;E===x.entries&&(se||_("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=E.call(x),S=0;!(w=k.next()).done;)y+=de(u=w.value,t,o,g+ue(u,S++),i)}else if("object"===s){var 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 pe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&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===o||e===i||e===a||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function he(){var e=y.current;return null===e&&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 ve,ye,ge,be,Ee,xe,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var _e,Ce=S.ReactCurrentDispatcher;function Oe(e,t,n){if(void 0===_e)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);_e=r&&r[1]||""}return"\n"+_e+e}var Ne,Ae=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Ae)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Ae=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Ce.current,Ce.current=null,function(){if(0===ke){ve=console.log,ye=console.info,ge=console.warn,be=console.error,Ee=console.group,xe=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ae=!1,Ce.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:xe}),groupEnd:I({},e,{value:we})})}ke<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",f=p?Oe(p):"";return"function"==typeof e&&Ne.set(e,f),f}function Te(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case u:return Oe("Suspense");case d:return Oe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ie(e.render,!1);case p:return Te(e.type,t,n);case f:var r=e._payload,o=e._init;try{return Te(o(r),t,n)}catch(e){}}return""}Ne=new Re;var Le,Pe={},Me=S.ReactDebugCurrentFrame;function De(e){if(e){var t=e._owner,n=Te(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function je(e){if(e){var t=e._owner;k(Te(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(E.current){var e=H(E.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Le=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==E.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),je(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),je(null)}}}function $e(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&ze(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=v(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function Ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(De(o),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),De(null)),s instanceof Error&&!(s.message in Pe)&&(Pe[s.message]=!0,De(o),C("Failed %s type: %s",n,s.message),De(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Le||(Le=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(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 We(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){je(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),je(null);break}}null!==e.ref&&(je(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}function He(e,t,r){var a=me(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,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(a)for(var u=2;u<arguments.length;u++)$e(arguments[u],e);return e===o?We(c):Ue(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&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 o=b.current;if(null!==o)try{et(o),function(a){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&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===o.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=He,nt={map:pe,forEach:function(e,t,n){pe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pe(e,function(){t++}),t},toArray:function(e){return pe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=L,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return Ue(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,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){o||(_("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,_("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 _("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===p?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ae,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){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:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&_("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,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 he().useCallback(e,t)},t.useContext=function(e){var t=he();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 he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,n){return he().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,n){return he().useReducer(e,t,n)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,n){return he().useSyncExternalStore(e,t,n)},t.useTransition=function(){return he().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),z=a(function(e){e.exports="production"===process.env.NODE_ENV?B:F}),$=/*#__PURE__*/r({__proto__:null,default:z},[z]),U=Boolean(null==globalThis?void 0:globalThis.document)?z.useLayoutEffect:z.useEffect,W=z.createContext({});function H(){const e=z.useContext(W);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}W.displayName="ColorModeContext";var q=a(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[a]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof o&&o&&o.Object===Object&&o,p="object"==typeof self&&self&&self.Object===Object&&self,f=d||p||Function("return this")(),m=t&&!t.nodeType&&t,h=m&&e&&!e.nodeType&&e,v=h&&h.exports===m,y=v&&d.process,g=function(){try{return h&&h.require&&h.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),b=g&&g.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var x,w=Array.prototype,k=Object.prototype,S=f["__core-js_shared__"],_=Function.prototype.toString,C=k.hasOwnProperty,O=(x=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",N=k.toString,A=_.call(Object),R=RegExp("^"+_.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=v?f.Buffer:void 0,T=f.Symbol,L=f.Uint8Array,P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),M=Object.create,D=k.propertyIsEnumerable,j=w.splice,V=T?T.toStringTag:void 0,B=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=I?I.isBuffer:void 0,z=Math.max,$=Date.now,U=ae(f,"Map"),W=ae(Object,"create"),H=function(){function e(){}return function(t){if(!Ee(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=this.__data__=new Y(e);this.size=t.size}function X(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&Q(e,t,n)}function K(e,t,n){var r=e[t];C.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||Q(e,t,n)}function J(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function Q(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=C.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch(e){}var o=N.call(e);return r&&(t?e[V]=n:delete e[V]),o}(e):function(e){return N.call(e)}(e)}function te(e){return xe(e)&&ee(e)==a}function ne(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s))break}}(t,function(a,i){if(o||(o=new G),Ee(a))!function(e,t,n,r,o,a,i){var l=le(e,n),c=le(t,n),u=i.get(c);if(u)X(e,n,u);else{var d,p,f,m,h=a?a(l,c,n+"",e,t,i):void 0,v=void 0===h;if(v){var y=he(c),g=!y&&ye(c),b=!y&&!g&&we(c);h=c,y||g||b?he(l)?h=l:xe(m=l)&&ve(m)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):g?(v=!1,h=c.slice()):b?(v=!1,f=new(p=(d=c).buffer).constructor(p.byteLength),new L(f).set(new L(p)),h=new d.constructor(f,d.byteOffset,d.length)):h=[]:function(e){if(!xe(e)||ee(e)!=s)return!1;var t=P(e);if(null===t)return!0;var n=C.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_.call(n)==A}(c)||me(c)?(h=l,me(l)?h=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=void 0;void 0===l&&(l=e[s]),o?Q(n,s,l):K(n,s,l)}return n}(e,ke(e))}(l):Ee(l)&&!ge(l)||(h=function(e){return"function"!=typeof e.constructor||se(e)?{}:H(P(e))}(c))):v=!1}v&&(i.set(c,h),o(h,c,r,a,i),i.delete(c)),X(e,n,h)}}(e,t,i,n,ne,r,o);else{var l=r?r(le(e,i),a,i+"",e,t,o):void 0;void 0===l&&(l=a),X(e,i,l)}},ke)}q.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(W){var r=t[e];return r===n?void 0:r}return C.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return W?void 0!==t[e]:C.call(t,e)},q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=J(t,e);return!(n<0||(n==t.length-1?t.pop():j.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=J(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return J(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=J(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(U||Y),string:new q}},Z.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return oe(this,e).get(e)},Z.prototype.has=function(e){return oe(this,e).has(e)},Z.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},G.prototype.clear=function(){this.__data__=new Y,this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!U||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z(r)}return n.set(e,t),this.size=n.size,this};var re=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ce;function oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||(t=e,O&&O in t))&&(ge(e)?R:l).test(function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function ie(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function se(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ce,ue,de,pe=(ce=re,ue=0,de=0,function(){var e=$(),t=16-(e-de);if(de=e,t>0){if(++ue>=800)return arguments[0]}else ue=0;return ce.apply(void 0,arguments)});function fe(e,t){return e===t||e!=e&&t!=t}var me=te(function(){return arguments}())?te:function(e){return xe(e)&&C.call(e,"callee")&&!D.call(e,"callee")},he=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!ge(e)}var ye=F||function(){return!1};function ge(e){if(!Ee(e))return!1;var t=ee(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=b?function(e){return function(t){return e(t)}}(b):function(e){return xe(e)&&be(e.length)&&!!u[ee(e)]};function ke(e){return ve(e)?function(e,t){var n=he(e),r=!n&&me(e),o=!n&&!r&&ye(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ie(c,l))||s.push(c);return s}(e):function(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=se(e),n=[];for(var r in e)("constructor"!=r||!t&&C.call(e,r))&&n.push(r);return n}(e)}var Se,_e=(Se=function(e,t,n,r){ne(e,t,n,r)},function(e,t){return pe(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=z(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),E(e,this,s)}}(e,void 0,Ce),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&ie(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Se(e,i,n,o)}return e}));function Ce(e){return e}e.exports=_e});function Y(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function Z(e,...t){return G(e)?e(...t):e}var G=e=>"function"==typeof e,X=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,K=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=X(r),i=e?`${e}.${a}`:a;let s=Y(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=X(s),o?`${s} !important`:s};function J(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{const a=K(t,e)(o);let i=(null==n?void 0:n(a,o))??a;return r&&(i=r(i,o)),i}}var Q=(...e)=>t=>e.reduce((e,t)=>t(e),t);function ee(e,t){return n=>{const r={property:n,scale:e};return r.transform=J({scale:e,transform:t}),r}}var te=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,ne=["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))"],re={"--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(" ")},oe={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,/*!*/ /*!*/)"},ae={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ie={"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"},se=new Set(Object.values(ie)),le=/* @__PURE__ */new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ce=e=>e.trim(),ue=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),de=e=>t=>`${e}(${t})`,pe={filter:e=>"auto"!==e?e:re,backdropFilter:e=>"auto"!==e?e:oe,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(pe.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ne].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ne].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){var n;if(null==e||le.has(e))return e;const{type:r,values:o}=(null==(n=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g.exec(e))?void 0:n.groups)??{};if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(ce).filter(Boolean);if(0===(null==s?void 0:s.length))return e;s.unshift(i in ie?ie[i]:i);const l=s.map(e=>{if(se.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=ue(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s});return`${a}(${l.join(", ")})`}(e,t??{}),blur:de("blur"),opacity:de("opacity"),brightness:de("brightness"),contrast:de("contrast"),dropShadow:de("drop-shadow"),grayscale:de("grayscale"),hueRotate:de("hue-rotate"),invert:de("invert"),saturate:de("saturate"),sepia:de("sepia"),bgImage:e=>null==e||ue(e)||le.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=ae[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},fe={borderWidths:ee("borderWidths"),borderStyles:ee("borderStyles"),colors:ee("colors"),borders:ee("borders"),radii:ee("radii",pe.px),space:ee("space",Q(pe.vh,pe.px)),spaceT:ee("space",Q(pe.vh,pe.px)),degreeT:e=>({property:e,transform:pe.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:J({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:ee("sizes",Q(pe.vh,pe.px)),sizesT:ee("sizes",Q(pe.vh,pe.fraction)),shadows:ee("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:te(t),transform:n?J({scale:n,compose:r}):r}},blur:ee("blur",pe.blur)},me={background:fe.colors("background"),backgroundColor:fe.colors("backgroundColor"),backgroundImage:fe.propT("backgroundImage",pe.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:pe.bgClip},bgSize:fe.prop("backgroundSize"),bgPosition:fe.prop("backgroundPosition"),bg:fe.colors("background"),bgColor:fe.colors("backgroundColor"),bgPos:fe.prop("backgroundPosition"),bgRepeat:fe.prop("backgroundRepeat"),bgAttachment:fe.prop("backgroundAttachment"),bgGradient:fe.propT("backgroundImage",pe.gradient),bgClip:{transform:pe.bgClip}};Object.assign(me,{bgImage:me.backgroundImage,bgImg:me.backgroundImage});var he={border:fe.borders("border"),borderWidth:fe.borderWidths("borderWidth"),borderStyle:fe.borderStyles("borderStyle"),borderColor:fe.colors("borderColor"),borderRadius:fe.radii("borderRadius"),borderTop:fe.borders("borderTop"),borderBlockStart:fe.borders("borderBlockStart"),borderTopLeftRadius:fe.radii("borderTopLeftRadius"),borderStartStartRadius:fe.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:fe.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:fe.radii("borderTopRightRadius"),borderStartEndRadius:fe.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:fe.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:fe.borders("borderRight"),borderInlineEnd:fe.borders("borderInlineEnd"),borderBottom:fe.borders("borderBottom"),borderBlockEnd:fe.borders("borderBlockEnd"),borderBottomLeftRadius:fe.radii("borderBottomLeftRadius"),borderBottomRightRadius:fe.radii("borderBottomRightRadius"),borderLeft:fe.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:fe.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:fe.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:fe.borders(["borderLeft","borderRight"]),borderInline:fe.borders("borderInline"),borderY:fe.borders(["borderTop","borderBottom"]),borderBlock:fe.borders("borderBlock"),borderTopWidth:fe.borderWidths("borderTopWidth"),borderBlockStartWidth:fe.borderWidths("borderBlockStartWidth"),borderTopColor:fe.colors("borderTopColor"),borderBlockStartColor:fe.colors("borderBlockStartColor"),borderTopStyle:fe.borderStyles("borderTopStyle"),borderBlockStartStyle:fe.borderStyles("borderBlockStartStyle"),borderBottomWidth:fe.borderWidths("borderBottomWidth"),borderBlockEndWidth:fe.borderWidths("borderBlockEndWidth"),borderBottomColor:fe.colors("borderBottomColor"),borderBlockEndColor:fe.colors("borderBlockEndColor"),borderBottomStyle:fe.borderStyles("borderBottomStyle"),borderBlockEndStyle:fe.borderStyles("borderBlockEndStyle"),borderLeftWidth:fe.borderWidths("borderLeftWidth"),borderInlineStartWidth:fe.borderWidths("borderInlineStartWidth"),borderLeftColor:fe.colors("borderLeftColor"),borderInlineStartColor:fe.colors("borderInlineStartColor"),borderLeftStyle:fe.borderStyles("borderLeftStyle"),borderInlineStartStyle:fe.borderStyles("borderInlineStartStyle"),borderRightWidth:fe.borderWidths("borderRightWidth"),borderInlineEndWidth:fe.borderWidths("borderInlineEndWidth"),borderRightColor:fe.colors("borderRightColor"),borderInlineEndColor:fe.colors("borderInlineEndColor"),borderRightStyle:fe.borderStyles("borderRightStyle"),borderInlineEndStyle:fe.borderStyles("borderInlineEndStyle"),borderTopRadius:fe.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:fe.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:fe.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:fe.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(he,{rounded:he.borderRadius,roundedTop:he.borderTopRadius,roundedTopLeft:he.borderTopLeftRadius,roundedTopRight:he.borderTopRightRadius,roundedTopStart:he.borderStartStartRadius,roundedTopEnd:he.borderStartEndRadius,roundedBottom:he.borderBottomRadius,roundedBottomLeft:he.borderBottomLeftRadius,roundedBottomRight:he.borderBottomRightRadius,roundedBottomStart:he.borderEndStartRadius,roundedBottomEnd:he.borderEndEndRadius,roundedLeft:he.borderLeftRadius,roundedRight:he.borderRightRadius,roundedStart:he.borderInlineStartRadius,roundedEnd:he.borderInlineEndRadius,borderStart:he.borderInlineStart,borderEnd:he.borderInlineEnd,borderTopStartRadius:he.borderStartStartRadius,borderTopEndRadius:he.borderStartEndRadius,borderBottomStartRadius:he.borderEndStartRadius,borderBottomEndRadius:he.borderEndEndRadius,borderStartRadius:he.borderInlineStartRadius,borderEndRadius:he.borderInlineEndRadius,borderStartWidth:he.borderInlineStartWidth,borderEndWidth:he.borderInlineEndWidth,borderStartColor:he.borderInlineStartColor,borderEndColor:he.borderInlineEndColor,borderStartStyle:he.borderInlineStartStyle,borderEndStyle:he.borderInlineEndStyle});var ve={color:fe.colors("color"),textColor:fe.colors("color"),fill:fe.colors("fill"),stroke:fe.colors("stroke")},ye={boxShadow:fe.shadows("boxShadow"),mixBlendMode:!0,blendMode:fe.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:fe.prop("backgroundBlendMode"),opacity:!0};Object.assign(ye,{shadow:ye.boxShadow});var ge={filter:{transform:pe.filter},blur:fe.blur("--chakra-blur"),brightness:fe.propT("--chakra-brightness",pe.brightness),contrast:fe.propT("--chakra-contrast",pe.contrast),hueRotate:fe.degreeT("--chakra-hue-rotate"),invert:fe.propT("--chakra-invert",pe.invert),saturate:fe.propT("--chakra-saturate",pe.saturate),dropShadow:fe.propT("--chakra-drop-shadow",pe.dropShadow),backdropFilter:{transform:pe.backdropFilter},backdropBlur:fe.blur("--chakra-backdrop-blur"),backdropBrightness:fe.propT("--chakra-backdrop-brightness",pe.brightness),backdropContrast:fe.propT("--chakra-backdrop-contrast",pe.contrast),backdropHueRotate:fe.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:fe.propT("--chakra-backdrop-invert",pe.invert),backdropSaturate:fe.propT("--chakra-backdrop-saturate",pe.saturate)},be={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:pe.flexDirection},experimental_spaceX:{static:{"& > :not(style) ~ :not(style)":{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},transform:J({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:{"& > :not(style) ~ :not(style)":{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},transform:J({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:fe.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:fe.space("gap"),rowGap:fe.space("rowGap"),columnGap:fe.space("columnGap")};Object.assign(be,{flexDir:be.flexDirection});var Ee={gridGap:fe.space("gridGap"),gridColumnGap:fe.space("gridColumnGap"),gridRowGap:fe.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},xe={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:pe.outline},outlineOffset:!0,outlineColor:fe.colors("outlineColor")},we={width:fe.sizesT("width"),inlineSize:fe.sizesT("inlineSize"),height:fe.sizes("height"),blockSize:fe.sizes("blockSize"),boxSize:fe.sizes(["width","height"]),minWidth:fe.sizes("minWidth"),minInlineSize:fe.sizes("minInlineSize"),minHeight:fe.sizes("minHeight"),minBlockSize:fe.sizes("minBlockSize"),maxWidth:fe.sizes("maxWidth"),maxInlineSize:fe.sizes("maxInlineSize"),maxHeight:fe.sizes("maxHeight"),maxBlockSize:fe.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:fe.propT("float",pe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(we,{w:we.width,h:we.height,minW:we.minWidth,maxW:we.maxWidth,minH:we.minHeight,maxH:we.maxHeight,overscroll:we.overscrollBehavior,overscrollX:we.overscrollBehaviorX,overscrollY:we.overscrollBehaviorY});var ke={listStyleType:!0,listStylePosition:!0,listStylePos:fe.prop("listStylePosition"),listStyleImage:!0,listStyleImg:fe.prop("listStyleImage")},Se=(e=>{const t=/* @__PURE__ */new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,/* @__PURE__ */new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),_e={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Ce={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Oe=(e,t,n)=>{const r={},o=Se(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},Ne={srOnly:{transform:e=>!0===e?_e:"focusable"===e?Ce:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>Oe(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Oe(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Oe(t,e,n)}},Ae={position:!0,pos:fe.prop("position"),zIndex:fe.prop("zIndex","zIndices"),inset:fe.spaceT("inset"),insetX:fe.spaceT(["left","right"]),insetInline:fe.spaceT("insetInline"),insetY:fe.spaceT(["top","bottom"]),insetBlock:fe.spaceT("insetBlock"),top:fe.spaceT("top"),insetBlockStart:fe.spaceT("insetBlockStart"),bottom:fe.spaceT("bottom"),insetBlockEnd:fe.spaceT("insetBlockEnd"),left:fe.spaceT("left"),insetInlineStart:fe.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:fe.spaceT("right"),insetInlineEnd:fe.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ae,{insetStart:Ae.insetInlineStart,insetEnd:Ae.insetInlineEnd});var Re={ring:{transform:pe.ring},ringColor:fe.colors("--chakra-ring-color"),ringOffset:fe.prop("--chakra-ring-offset-width"),ringOffsetColor:fe.colors("--chakra-ring-offset-color"),ringInset:fe.prop("--chakra-ring-inset")},Ie={margin:fe.spaceT("margin"),marginTop:fe.spaceT("marginTop"),marginBlockStart:fe.spaceT("marginBlockStart"),marginRight:fe.spaceT("marginRight"),marginInlineEnd:fe.spaceT("marginInlineEnd"),marginBottom:fe.spaceT("marginBottom"),marginBlockEnd:fe.spaceT("marginBlockEnd"),marginLeft:fe.spaceT("marginLeft"),marginInlineStart:fe.spaceT("marginInlineStart"),marginX:fe.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:fe.spaceT("marginInline"),marginY:fe.spaceT(["marginTop","marginBottom"]),marginBlock:fe.spaceT("marginBlock"),padding:fe.space("padding"),paddingTop:fe.space("paddingTop"),paddingBlockStart:fe.space("paddingBlockStart"),paddingRight:fe.space("paddingRight"),paddingBottom:fe.space("paddingBottom"),paddingBlockEnd:fe.space("paddingBlockEnd"),paddingLeft:fe.space("paddingLeft"),paddingInlineStart:fe.space("paddingInlineStart"),paddingInlineEnd:fe.space("paddingInlineEnd"),paddingX:fe.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:fe.space("paddingInline"),paddingY:fe.space(["paddingTop","paddingBottom"]),paddingBlock:fe.space("paddingBlock")};Object.assign(Ie,{m:Ie.margin,mt:Ie.marginTop,mr:Ie.marginRight,me:Ie.marginInlineEnd,marginEnd:Ie.marginInlineEnd,mb:Ie.marginBottom,ml:Ie.marginLeft,ms:Ie.marginInlineStart,marginStart:Ie.marginInlineStart,mx:Ie.marginX,my:Ie.marginY,p:Ie.padding,pt:Ie.paddingTop,py:Ie.paddingY,px:Ie.paddingX,pb:Ie.paddingBottom,pl:Ie.paddingLeft,ps:Ie.paddingInlineStart,paddingStart:Ie.paddingInlineStart,pr:Ie.paddingRight,pe:Ie.paddingInlineEnd,paddingEnd:Ie.paddingInlineEnd});var Te={textDecorationColor:fe.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:fe.shadows("textShadow")},Le={clipPath:!0,transform:fe.propT("transform",pe.transform),transformOrigin:!0,translateX:fe.spaceT("--chakra-translate-x"),translateY:fe.spaceT("--chakra-translate-y"),skewX:fe.degreeT("--chakra-skew-x"),skewY:fe.degreeT("--chakra-skew-y"),scaleX:fe.prop("--chakra-scale-x"),scaleY:fe.prop("--chakra-scale-y"),scale:fe.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:fe.degreeT("--chakra-rotate")},Pe={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:fe.prop("transitionDuration","transition.duration"),transitionProperty:fe.prop("transitionProperty","transition.property"),transitionTimingFunction:fe.prop("transitionTimingFunction","transition.easing")},Me={fontFamily:fe.prop("fontFamily","fonts"),fontSize:fe.prop("fontSize","fontSizes",pe.px),fontWeight:fe.prop("fontWeight","fontWeights"),lineHeight:fe.prop("lineHeight","lineHeights"),letterSpacing:fe.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"}},De={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:fe.spaceT("scrollMargin"),scrollMarginTop:fe.spaceT("scrollMarginTop"),scrollMarginBottom:fe.spaceT("scrollMarginBottom"),scrollMarginLeft:fe.spaceT("scrollMarginLeft"),scrollMarginRight:fe.spaceT("scrollMarginRight"),scrollMarginX:fe.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:fe.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:fe.spaceT("scrollPadding"),scrollPaddingTop:fe.spaceT("scrollPaddingTop"),scrollPaddingBottom:fe.spaceT("scrollPaddingBottom"),scrollPaddingLeft:fe.spaceT("scrollPaddingLeft"),scrollPaddingRight:fe.spaceT("scrollPaddingRight"),scrollPaddingX:fe.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:fe.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function je(e){return Y(e)&&e.reference?e.reference:String(e)}var Ve=(e,...t)=>t.map(je).join(` ${e} `).replace(/calc/g,""),Be=(...e)=>`calc(${Ve("+",...e)})`,Fe=(...e)=>`calc(${Ve("-",...e)})`,ze=(...e)=>`calc(${Ve("*",...e)})`,$e=(...e)=>`calc(${Ve("/",...e)})`,Ue=e=>{const t=je(e);return null==t||Number.isNaN(parseFloat(t))?ze(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},We=Object.assign(e=>({add:(...t)=>We(Be(e,...t)),subtract:(...t)=>We(Fe(e,...t)),multiply:(...t)=>We(ze(e,...t)),divide:(...t)=>We($e(e,...t)),negate:()=>We(Ue(e)),toString:()=>e.toString()}),{add:Be,subtract:Fe,multiply:ze,divide:$e,negate:Ue});function He(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}function qe(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${He(e)})`),t&&n.push("and",`(max-width: ${He(t)})`),n.join(" ")}var Ye=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Ze=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Ge=(e,t)=>`${e}:focus-visible ${t}`,Xe=(e,t)=>`${e}:focus-within ${t}`,Ke=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Je=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Qe=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,et=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,tt=e=>rt(t=>e(t,"&"),"[role=group]","[data-group]",".group"),nt=e=>rt(t=>e(t,"~ &"),"[data-peer]",".peer"),rt=(e,...t)=>t.map(e).join(", "),ot={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:tt(Ye),_peerHover:nt(Ye),_groupFocus:tt(Ze),_peerFocus:nt(Ze),_groupFocusVisible:tt(Ge),_peerFocusVisible:nt(Ge),_groupActive:tt(Ke),_peerActive:nt(Ke),_groupDisabled:tt(Je),_peerDisabled:nt(Je),_groupInvalid:tt(Qe),_peerInvalid:nt(Qe),_groupChecked:tt(et),_peerChecked:nt(et),_groupFocusWithin:tt(Xe),_peerFocusWithin:nt(Xe),_peerPlaceholderShown:nt((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},at=Object.keys(ot),it=q({},me,he,ve,be,we,ge,Re,xe,Ee,Ne,Ae,ye,Ie,De,Me,Te,Le,ke,Pe),st=Object.assign({},Ie,we,be,Ee,Ae),lt=Object.keys(st),ct=[...Object.keys(it),...at],ut={...it,...ot},dt=e=>e in ut,pt=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),ft=(e,t)=>{if(null==t)return t;const n=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},r=e=>n(e)??e,[o,a]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"("===a?(r=!0,n+=a):")"===a?(r=!1,n+=a):","!==a||r?n+=a:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return n(o)??r(a)??r(t)};function mt(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function ht(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var vt=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),yt="-ms-",gt="-webkit-",bt=Math.abs,Et=String.fromCharCode,xt=Object.assign;function wt(e){return e.trim()}function kt(e,t,n){return e.replace(t,n)}function St(e,t){return e.indexOf(t)}function _t(e,t){return 0|e.charCodeAt(t)}function Ct(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function Nt(e){return e.length}function At(e,t){return t.push(e),e}var Rt=1,It=1,Tt=0,Lt=0,Pt=0,Mt="";function Dt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Rt,column:It,length:i,return:""}}function jt(e,t){return xt(Dt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vt(){return Pt=Lt>0?_t(Mt,--Lt):0,It--,10===Pt&&(It=1,Rt--),Pt}function Bt(){return Pt=Lt<Tt?_t(Mt,Lt++):0,It++,10===Pt&&(It=1,Rt++),Pt}function Ft(){return _t(Mt,Lt)}function zt(){return Lt}function $t(e,t){return Ct(Mt,e,t)}function Ut(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 Wt(e){return Rt=It=1,Tt=Ot(Mt=e),Lt=0,[]}function Ht(e){return Mt="",e}function qt(e){return wt($t(Lt-1,Gt(91===e?e+2:40===e?e+1:e)))}function Yt(e){for(;(Pt=Ft())&&Pt<33;)Bt();return Ut(e)>2||Ut(Pt)>3?"":" "}function Zt(e,t){for(;--t&&Bt()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return $t(e,zt()+(t<6&&32==Ft()&&32==Bt()))}function Gt(e){for(;Bt();)switch(Pt){case e:return Lt;case 34:case 39:34!==e&&39!==e&&Gt(Pt);break;case 40:41===e&&Gt(e);break;case 92:Bt()}return Lt}function Xt(e,t){for(;Bt()&&e+Pt!==57&&(e+Pt!==84||47!==Ft()););return"/*"+$t(t,Lt-1)+"*"+Et(47===e?e:Bt())}function Kt(e){for(;!Ut(Ft());)Bt();return $t(e,Lt)}function Jt(e){return Ht(Qt("",null,null,null,[""],e=Wt(e),0,[0],e))}function Qt(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,v=1,y=1,g=0,b="",E=o,x=a,w=r,k=b;v;)switch(m=g,g=Bt()){case 40:if(108!=m&&58==_t(k,d-1)){-1!=St(k+=kt(qt(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=qt(g);break;case 9:case 10:case 13:case 32:k+=Yt(m);break;case 92:k+=Zt(zt()-1,7);continue;case 47:switch(Ft()){case 42:case 47:At(tn(Xt(Bt(),zt()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=Ot(k)*y;case 125*h:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:f>0&&Ot(k)-d&&At(f>32?nn(k+";",r,n,d-1):nn(kt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(At(w=en(k,t,n,c,u,o,s,b,E=[],x=[],d),a),123===g)if(0===u)Qt(k,t,w,w,E,a,d,s,x);else switch(99===p&&110===_t(k,3)?100:p){case 100:case 109:case 115:Qt(e,w,w,r&&At(en(e,w,w,0,0,o,s,b,o,E=[],d),x),o,x,d,s,r?E:x);break;default:Qt(k,w,w,w,[""],x,0,s,x)}}c=u=f=0,h=y=1,b=k="",d=i;break;case 58:d=1+Ot(k),f=m;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Vt())continue;switch(k+=Et(g),g*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ot(k)-1)*y,y=1;break;case 64:45===Ft()&&(k+=qt(Bt())),p=Ft(),u=d=Ot(b=k+=Kt(zt())),g++;break;case 45:45===m&&2==Ot(k)&&(h=0)}}return a}function en(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Nt(p),m=0,h=0,v=0;m<r;++m)for(var y=0,g=Ct(e,d+1,d=bt(h=i[m])),b=e;y<f;++y)(b=wt(h>0?p[y]+" "+g:kt(g,/&\f/g,p[y])))&&(l[v++]=b);return Dt(e,t,n,0===o?"rule":s,l,c,u)}function tn(e,t,n){return Dt(e,t,n,"comm",Et(Pt),Ct(e,2,-2),0)}function nn(e,t,n,r){return Dt(e,t,n,"decl",Ct(e,0,r),Ct(e,r+1,-1),r)}function rn(e,t){for(var n="",r=Nt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function on(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+"{"+rn(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Ot(n=rn(e.children,r))?e.return=e.value+"{"+n+"}":""}function an(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var sn=function(e,t,n){for(var r=0,o=0;r=o,o=Ft(),38===r&&12===o&&(t[n]=1),!Ut(o);)Bt();return $t(e,Lt)},ln=/* #__PURE__ */new WeakMap,cn=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)||ln.get(n))&&!r){ln.set(e,!0);for(var o=[],a=function(e,t){return Ht(function(e,t){var n=-1,r=44;do{switch(Ut(r)){case 0:38===r&&12===Ft()&&(t[n]=1),e[n]+=sn(Lt-1,t,n);break;case 2:e[n]+=qt(r);break;case 4:if(44===r){e[++n]=58===Ft()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Et(r)}}while(r=Bt());return e}(Wt(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},un=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},dn=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},pn=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},fn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},mn=function(e,t,n){pn(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."),fn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!pn(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."),fn(e)))};function hn(e,t){switch(function(e,t){return 45^_t(e,0)?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}(e,t)){case 5103:return gt+"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 gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+"-moz-"+e+yt+e+e;case 6828:case 4268:return gt+e+yt+e+e;case 6165:return gt+e+yt+"flex-"+e+e;case 5187:return gt+e+kt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return gt+e+yt+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return gt+e+yt+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+yt+kt(e,"shrink","negative")+e;case 5292:return gt+e+yt+kt(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+kt(e,"-grow","")+gt+e+yt+kt(e,"grow","positive")+e;case 4554:return gt+kt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,gt+"$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(Ot(e)-1-t>6)switch(_t(e,t+1)){case 109:if(45!==_t(e,t+4))break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==_t(e,t+3)?"$3":"$2-$3"))+e;case 115:return~St(e,"stretch")?hn(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_t(e,t+1))break;case 6444:switch(_t(e,Ot(e)-3-(~St(e,"!important")&&10))){case 107:return kt(e,":",":"+gt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(45===_t(e,14)?"inline-":"")+"box$3$1"+gt+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return gt+e+yt+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+yt+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+yt+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+yt+e+e}return e}var vn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=hn(e.value,e.length);break;case"@keyframes":return rn([jt(e,{value:kt(e.value,"@","@"+gt)})],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 rn([jt(e,{props:[kt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return rn([jt(e,{props:[kt(t,/:(plac\w+)/,":-webkit-input-$1")]}),jt(e,{props:[kt(t,/:(plac\w+)/,":-moz-$1")]}),jt(e,{props:[kt(t,/:(plac\w+)/,yt+"input-$1")]})],r)}return""})}}],yn=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||vn;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[cn,un];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent===r[0]?r[0].children:r,i=a.length-1;i>=0;i--){var s=a[i];if(s.line<t.line)break;if(s.column<t.column){if(dn(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),mn);var c,u,d=[on,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=Nt(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=function(e,t,n,r){c=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),rn(Jt(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new vt({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(s),f};function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(this,arguments)}var bn="function"==typeof Symbol&&Symbol.for,En=bn?Symbol.for("react.element"):60103,xn=bn?Symbol.for("react.portal"):60106,wn=bn?Symbol.for("react.fragment"):60107,kn=bn?Symbol.for("react.strict_mode"):60108,Sn=bn?Symbol.for("react.profiler"):60114,_n=bn?Symbol.for("react.provider"):60109,Cn=bn?Symbol.for("react.context"):60110,On=bn?Symbol.for("react.async_mode"):60111,Nn=bn?Symbol.for("react.concurrent_mode"):60111,An=bn?Symbol.for("react.forward_ref"):60112,Rn=bn?Symbol.for("react.suspense"):60113,In=bn?Symbol.for("react.suspense_list"):60120,Tn=bn?Symbol.for("react.memo"):60115,Ln=bn?Symbol.for("react.lazy"):60116,Pn=bn?Symbol.for("react.block"):60121,Mn=bn?Symbol.for("react.fundamental"):60117,Dn=bn?Symbol.for("react.responder"):60118,jn=bn?Symbol.for("react.scope"):60119;function Vn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case En:switch(e=e.type){case On:case Nn:case wn:case Sn:case kn:case Rn:return e;default:switch(e=e&&e.$$typeof){case Cn:case An:case Ln:case Tn:case _n:return e;default:return t}}case xn:return t}}}function Bn(e){return Vn(e)===Nn}var Fn={AsyncMode:On,ConcurrentMode:Nn,ContextConsumer:Cn,ContextProvider:_n,Element:En,ForwardRef:An,Fragment:wn,Lazy:Ln,Memo:Tn,Portal:xn,Profiler:Sn,StrictMode:kn,Suspense:Rn,isAsyncMode:function(e){return Bn(e)||Vn(e)===On},isConcurrentMode:Bn,isContextConsumer:function(e){return Vn(e)===Cn},isContextProvider:function(e){return Vn(e)===_n},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===En},isForwardRef:function(e){return Vn(e)===An},isFragment:function(e){return Vn(e)===wn},isLazy:function(e){return Vn(e)===Ln},isMemo:function(e){return Vn(e)===Tn},isPortal:function(e){return Vn(e)===xn},isProfiler:function(e){return Vn(e)===Sn},isStrictMode:function(e){return Vn(e)===kn},isSuspense:function(e){return Vn(e)===Rn},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===wn||e===Nn||e===Sn||e===kn||e===Rn||e===In||"object"==typeof e&&null!==e&&(e.$$typeof===Ln||e.$$typeof===Tn||e.$$typeof===_n||e.$$typeof===Cn||e.$$typeof===An||e.$$typeof===Mn||e.$$typeof===Dn||e.$$typeof===jn||e.$$typeof===Pn)},typeOf:Vn},zn=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,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case c:case u:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case l:case d:case h:case m:case s:return v;default:return t}}case r:return t}}}var x=u,w=l,k=s,S=n,_=d,C=o,O=h,N=m,A=r,R=i,I=a,T=p,L=!1;function P(e){return E(e)===u}t.AsyncMode=c,t.ConcurrentMode=x,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=_,t.Fragment=C,t.Lazy=O,t.Memo=N,t.Portal=A,t.Profiler=R,t.StrictMode=I,t.Suspense=T,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||E(e)===c},t.isConcurrentMode=P,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E}()});function $n(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?Fn:zn});var Un=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Wn=function(e,t,n){Un(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Hn={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},qn="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",Yn=/[A-Z]|^ms/g,Zn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gn=function(e){return 45===e.charCodeAt(1)},Xn=function(e){return null!=e&&"boolean"!=typeof e},Kn=/* #__PURE__ */an(function(e){return Gn(e)?e:e.replace(Yn,"-$&").toLowerCase()}),Jn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zn,function(e,t,n){return lr={name:t,styles:n,next:lr},t})}return 1===Hn[e]||Gn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Qn=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,er=["normal","none","initial","inherit","unset"],tr=Jn,nr=/^-ms-/,rr=/-(.)/g,or={};Jn=function(e,t){if("content"===e&&("string"!=typeof t||-1===er.indexOf(t)&&!Qn.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=tr(e,t);return""===n||Gn(e)||-1===e.indexOf("-")||void 0!==or[e]||(or[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(nr,"ms-").replace(rr,function(e,t){return t.toUpperCase()})+"?")),n}}var ar="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ir(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(ar);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return lr={name:n.name,styles:n.styles,next:lr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)lr={name:r.name,styles:r.styles,next:lr},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ir(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Xn(i)&&(r+=Kn(a)+":"+Jn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(ar);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ir(e,t,i);switch(a){case"animation":case"animationName":r+=Kn(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Xn(i[l])&&(r+=Kn(a)+":"+Jn(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=lr,i=n(e);return lr=a,ir(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(Zn,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 sr,lr,cr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(sr=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ur=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lr=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=ir(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(qn),o+=i[0]);for(var s=1;s<e.length;s++)o+=ir(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(qn),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(sr,function(e){return a=e,""})),cr.lastIndex=0;for(var l,c="";null!==(l=cr.exec(o));)c+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:lr,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:lr}},dr=!!$.useInsertionEffect&&$.useInsertionEffect,pr=dr||function(e){return e()},fr=dr||z.useLayoutEffect,mr={}.hasOwnProperty,hr=/* #__PURE__ */z.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */yn({key:"css"}):null);"production"!==process.env.NODE_ENV&&(hr.displayName="EmotionCacheContext");var vr=function(e){/*#__PURE__*/
|
2
|
-
return z.forwardRef(function(t,n){var r=z.useContext(hr);return e(t,r,n)})},yr=/* #__PURE__ */z.createContext({});"production"!==process.env.NODE_ENV&&(yr.displayName="EmotionThemeContext");var gr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Un(t,n,r),pr(function(){return Wn(t,n,r)}),null};"production"!==process.env.NODE_ENV&&(/* #__PURE__ */vr(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=$n(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=ur(a,void 0,z.useContext(yr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=ur([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!mr.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__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(gr,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/z.createElement(o,c))}).displayName="EmotionCssPropInternal");var br=!1,Er=/* #__PURE__ */vr(function(e,t){"production"===process.env.NODE_ENV||br||!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?"),br=!0);var n=ur([e.styles],void 0,z.useContext(yr)),r=z.useRef();return fr(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),fr(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&Wn(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function xr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ur(t)}"production"!==process.env.NODE_ENV&&(Er.displayName="EmotionGlobal");var wr=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function kr(e,t,n){var r=[],o=$n(e,r,n);return r.length<2?n:o+t(r)}var Sr=function(e){var t=e.cache,n=e.serializedArr;return pr(function(){for(var e=0;e<n.length;e++)Wn(t,n[e],!1)}),null},_r=/* #__PURE__ */vr(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=ur(o,t.registered);return r.push(i),Un(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return kr(t.registered,o,wr(r))},theme:z.useContext(yr)},i=e.children(a);return n=!0,/*#__PURE__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(Sr,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(_r.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest&&"undefined"==typeof vi){var Cr="undefined"!=typeof globalThis?globalThis:window,Or="__EMOTION_REACT_"+"11.10.5".split(".")[0]+"__";Cr[Or]&&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."),Cr[Or]=!0}function Nr(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=z.createContext(void 0);return o.displayName=r,[o.Provider,function e(){var r;const a=z.useContext(o);if(!a&&t){const t=new Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return a},o]}var Ar=/^((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)-.*))$/,Rr=/* #__PURE__ */an(function(e){return Ar.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ir=function(e){return"theme"!==e},Tr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Rr:Ir},Lr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Pr="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",Mr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Un(t,n,r),pr(function(){return Wn(t,n,r)}),null},Dr=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Lr(t,n,a),l=s||Tr(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Pr),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(Pr),d.push(u[f],u[0][f])}var m=vr(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=z.useContext(yr)}"string"==typeof e.className?a=$n(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=ur(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Tr(r):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,/*#__PURE__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(Mr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/z.createElement(r,v))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,gn({},n,r,{shouldForwardProp:Lr(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Dr[e]=Dr(e)});var jr="undefined"!=typeof Element,Vr="function"==typeof Map,Br="function"==typeof Set,Fr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function zr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!zr(e[r],t[r]))return!1;return!0}if(Vr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!zr(r.value[1],t.get(r.value[0])))return!1;return!0}if(Br&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Fr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(jr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!zr(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var $r=function(e,t){try{return zr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function Ur(){const e=z.useContext(yr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Nr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var Wr=/* @__PURE__ */new Set([...ct,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Hr=/* @__PURE__ */new Set(["htmlWidth","htmlHeight","htmlSize"]);function qr(e){return Hr.has(e)||!Wr.has(e)}function Yr(e,n){const{baseStyle:r,...o}=n??{};o.shouldForwardProp||(o.shouldForwardProp=qr);const a=(({baseStyle:e})=>n=>{const{theme:r,css:o,__css:a,sx:i,...s}=n,l=t.objectFilter(s,(e,t)=>dt(t)),c=t.runIfFn(e,n),u=Object.assign({},a,c,t.filterUndefined(l),i),d=(p=u,e=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i;const s=Z(e,r),l=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=Z(e[i],t);if(null==s)continue;if(s=Y(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(s)(r);let c={};for(let e in l){let u=Z(l[e],r);e in n&&(e=n[e]),pt(e,u)&&(u=ft(r,u));let d=t[e];if(!0===d&&(d={property:e}),Y(u)){c[e]=c[e]??{},c[e]=q({},c[e],o(u,!0));continue}let p=(null==(i=null==d?void 0:d.transform)?void 0:i.call(d,u,r,s))??u;p=(null==d?void 0:d.processResult)?o(p,!0):p;const f=Z(null==d?void 0:d.property,r);if(!a&&(null==d?void 0:d.static)){const e=Z(d.static,r);c=q({},c,e)}if(f&&Array.isArray(f))for(const e of f)c[e]=p;else f?"&"===f&&Y(p)?c=q({},c,p):c[f]=p:Y(p)?c=q({},c,p):c[e]=p}return c};return o}({theme:e,pseudos:ot,configs:it})(p))(n.theme);var p;return o?[d,o]:d})({baseStyle:r}),i=Dr(e,o)(a);return z.forwardRef(function(e,t){const{colorMode:n,forced:r}=H();return z.createElement(i,{ref:t,"data-theme":r?n:void 0,...e})})}function Zr(e){return z.forwardRef(e)}function Gr(e,n={}){const{styleConfig:r,...o}=n,{theme:a,colorMode:i}={...H(),theme:Ur()},s=e?t.memoizedGet(a,`components.${e}`):void 0,l=r||s,c=t.mergeWith({theme:a,colorMode:i},(null==l?void 0:l.defaultProps)??{},t.filterUndefined(t.omit(o,["children"]))),u=z.useRef({});if(l){const e=(d=l,e=>{const{variant:t,size:n,theme:r}=e,o=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:Y(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let r=0;r<c;r++){const c=t.details[r],p=t.details[mt(l,r)],f=qe(c.minW,null==p?void 0:p._minW),m=Z(null==(a=e[n])?void 0:a[l[r]],o);m&&(d?null==(i=e.parts)||i.forEach(e=>{q(s,{[e]:u?m[e]:{[f]:m[e]}})}):d?s[f]=m:u?q(s,m):s[f]=m)}return s}}(r);return q({},Z(d.baseStyle??{},e),o(d,"sizes",n,e),o(d,"variants",t,e))}),t=e(c);$r(u.current,t)||(u.current=t)}var d;return u.current}function Xr(e,t={}){return Gr(e,t)}function Kr(e,t={}){return Gr(e,t)}var Jr=function(){const e=/* @__PURE__ */new Map;return new Proxy(Yr,{apply:(e,t,n)=>Yr(...n),get:(t,n)=>(e.has(n)||e.set(n,Yr(n)),e.get(n))})}();function Qr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=z.createContext(void 0);return i.displayName=t,[i.Provider,function e(){var t;const s=z.useContext(i);if(!s&&n){const n=new Error(a??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},i]}function eo(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function to(...e){return z.useMemo(()=>eo(...e),e)}function no(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function ro(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function oo(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var ao="undefined"!=typeof window?z.useLayoutEffect:z.useEffect,[io,so]=Qr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function lo(){return[io,()=>so(),()=>function(){const e=z.useRef(new class{descendants=/* @__PURE__ */new Map;register=e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=no(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(0!==this.count())return this.values()[e]};enabledItem=e=>{if(0!==this.enabledCount())return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?(null==(t=this.descendants.get(e))?void 0:t.index)??-1:-1};enabledIndexOf=e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=ro(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=ro(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)};prev=(e,t=!0)=>{const n=oo(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=oo(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=no(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}});return ao(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const t=so(),[n,r]=z.useState(-1),o=z.useRef(null);ao(()=>()=>{o.current&&t.unregister(o.current)},[]),ao(()=>{if(!o.current)return;const e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||r(e)});const a=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:eo(a,o)}}(e)]}var co=(...e)=>e.filter(Boolean).join(" "),uo={path:/* @__PURE__ */z.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */z.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__ */z.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__ */z.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},po=Zr((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:co("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??uo.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
3
|
-
return z.createElement(
|
4
|
-
return z.createElement(Jr.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});function fo(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=z.Children.toArray(e.path),i=Zr((e,r)=>/* @__PURE__ */z.createElement(po,{ref:r,viewBox:t,...o,...e},a.length?a:/* @__PURE__ */z.createElement("path",{fill:"currentColor",d:n})));return i.displayName=r,i}function mo(e,t=[]){const n=z.useRef(e);return z.useEffect(()=>{n.current=e}),z.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function ho(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=((e,t)=>e!==t)}=e,a=mo(r),i=mo(o),[s,l]=z.useState(n),c=void 0!==t,u=c?t:s,d=mo(e=>{const t="function"==typeof e?e(u):e;i(u,t)&&(c||l(t),a(t))},[c,a,u,i]);return[u,d]}po.displayName="Icon";var vo=function(e,t){return vo=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])},vo(e,t)};function yo(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}vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var go=function(){return go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},go.apply(this,arguments)};function bo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Eo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function xo(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var wo="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",ko=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},So={measureLayout:ko(["layout","layoutId","drag"]),animation:ko(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ko(["exit"]),drag:ko(["drag","dragControls"]),focus:ko(["whileFocus"]),hover:ko(["whileHover","onHoverStart","onHoverEnd"]),tap:ko(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ko(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ko(["whileInView","onViewportEnter","onViewportLeave"])},_o=function(){},Co=function(){};"production"!==process.env.NODE_ENV&&(_o=function(e,t){e||"undefined"==typeof console||console.warn(t)},Co=function(e,t){if(!e)throw new Error(t)});var Oo=z.createContext({strict:!1}),No=Object.keys(So),Ao=No.length,Ro=z.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Io=z.createContext({}),To=z.createContext(null),Lo="undefined"!=typeof document,Po=Lo?z.useLayoutEffect:z.useEffect,Mo={current:null},Do=!1;function jo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Vo(e){return Array.isArray(e)}function Bo(e){return"string"==typeof e||Vo(e)}function Fo(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function zo(e,t,n){var r=e.getProps();return Fo(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 $o(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Bo(e.initial)||Bo(e.animate)||Bo(e.whileHover)||Bo(e.whileDrag)||Bo(e.whileTap)||Bo(e.whileFocus)||Bo(e.exit)}function Uo(e){return Boolean($o(e)||e.variants)}function Wo(e){return Array.isArray(e)?e.join(" "):e}function Ho(e){var t=z.useRef(null);return null===t.current&&(t.current=e()),t.current}var qo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yo=1,Zo=z.createContext({}),Go=z.createContext({}),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yo(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}(z.Component);function Ko(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?So.projectionNodeConstructor=e[t]:So[t].Component=e[t])}(t),z.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=z.useContext(Zo))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=go(go({},e),{layoutId:l});var c=z.useContext(Ro),u=null,d=function(e){var t=function(e,t){if($o(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Bo(n)?n:void 0,animate:Bo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,z.useContext(Io)),n=t.initial,r=t.animate;return z.useMemo(function(){return{initial:n,animate:r}},[Wo(n),Wo(r)])}(e),p=c.isStatic?void 0:Ho(function(){if(qo.hasEverUpdated)return Yo++}),f=a(e,c.isStatic);return!c.isStatic&&Lo&&(d.visualElement=function(e,t,n,r){var o,a,i=z.useContext(Oo),s=z.useContext(Io).visualElement,l=z.useContext(To),c=(!Do&&function(){if(Do=!0,Lo)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Mo.current=e.matches};e.addListener(t),t()}else Mo.current=!1}(),o=Eo(z.useState(Mo.current),1)[0],"never"!==(a=z.useContext(Ro).reducedMotion)&&("always"===a||o)),u=z.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 Po(function(){null==d||d.syncRender()}),z.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Po(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,go(go({},c),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=z.useContext(Go);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&jo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,r||So.projectionNodeConstructor),u=function(e,t,n){var r=[],o=z.useContext(Oo);if(!t)return null;"production"!==wo&&n&&o.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 a=0;a<Ao;a++){var i=No[a],s=So[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(z.createElement(l,go({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),z.createElement(Xo,{visualElement:d.visualElement,props:go(go({},c),e)},u,z.createElement(Io.Provider,{value:d},o(i,e,p,function(e,t,n){return z.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):jo(n)&&(n.current=r))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Jo=["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 Qo(e){return"string"==typeof e&&!e.includes("-")&&!!(Jo.indexOf(e)>-1||/[A-Z]/.test(e))}var ea={},ta=["","X","Y","Z"],na=["transformPerspective","x","y","z"];function ra(e,t){return na.indexOf(e)-na.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ta.forEach(function(t){return na.push(e+t)})});var oa=new Set(na);function aa(e){return oa.has(e)}var ia=new Set(["originX","originY","originZ"]);function sa(e){return ia.has(e)}function la(e,t){var n=t.layout,r=t.layoutId;return aa(e)||sa(e)||(n||void 0!==r)&&(!!ea[e]||"opacity"===e)}var ca=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},ua={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function da(e){return e.startsWith("--")}var pa=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const fa=(e,t)=>n=>Math.max(Math.min(n,t),e),ma=e=>e%1?Number(e.toFixed(5)):e,ha=/(-)?([\d]*\.?[\d])+/g,va=/(#[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,ya=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ga(e){return"string"==typeof e}const ba={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ea=Object.assign(Object.assign({},ba),{transform:fa(0,1)}),xa=Object.assign(Object.assign({},ba),{default:1}),wa=e=>({test:t=>ga(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ka=wa("deg"),Sa=wa("%"),_a=wa("px"),Ca=wa("vh"),Oa=wa("vw"),Na=Object.assign(Object.assign({},Sa),{parse:e=>Sa.parse(e)/100,transform:e=>Sa.transform(100*e)}),Aa=(e,t)=>n=>Boolean(ga(n)&&ya.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ra=(e,t,n)=>r=>{if(!ga(r))return r;const[o,a,i,s]=r.match(ha);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ia={test:Aa("hsl","hue"),parse:Ra("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Sa.transform(ma(t))+", "+Sa.transform(ma(n))+", "+ma(Ea.transform(r))+")"},Ta=fa(0,255),La=Object.assign(Object.assign({},ba),{transform:e=>Math.round(Ta(e))}),Pa={test:Aa("rgb","red"),parse:Ra("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+La.transform(e)+", "+La.transform(t)+", "+La.transform(n)+", "+ma(Ea.transform(r))+")"},Ma={test:Aa("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Pa.transform},Da={test:e=>Pa.test(e)||Ma.test(e)||Ia.test(e),parse:e=>Pa.test(e)?Pa.parse(e):Ia.test(e)?Ia.parse(e):Ma.parse(e),transform:e=>ga(e)?e:e.hasOwnProperty("red")?Pa.transform(e):Ia.transform(e)};function ja(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(va);r&&(n=r.length,e=e.replace(va,"${c}"),t.push(...r.map(Da.parse)));const o=e.match(ha);return o&&(e=e.replace(ha,"${n}"),t.push(...o.map(ba.parse))),{values:t,numColors:n,tokenised:e}}function Va(e){return ja(e).values}function Ba(e){const{values:t,numColors:n,tokenised:r}=ja(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Da.transform(e[r]):ma(e[r]));return t}}const Fa=e=>"number"==typeof e?0:e,za={test:function(e){var t,n,r,o;return isNaN(e)&&ga(e)&&(null!==(n=null===(t=e.match(ha))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(va))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Va,createTransformer:Ba,getAnimatableNone:function(e){const t=Va(e);return Ba(e)(t.map(Fa))}},$a=new Set(["brightness","contrast","saturate","opacity"]);function Ua(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ha)||[];if(!r)return e;const o=n.replace(r,"");let a=$a.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const Wa=/([a-z-]*)\(.*?\)/g,Ha=Object.assign(Object.assign({},za),{getAnimatableNone:e=>{const t=e.match(Wa);return t?t.map(Ua).join(" "):e}});var qa=go(go({},ba),{transform:Math.round}),Ya={borderWidth:_a,borderTopWidth:_a,borderRightWidth:_a,borderBottomWidth:_a,borderLeftWidth:_a,borderRadius:_a,radius:_a,borderTopLeftRadius:_a,borderTopRightRadius:_a,borderBottomRightRadius:_a,borderBottomLeftRadius:_a,width:_a,maxWidth:_a,height:_a,maxHeight:_a,size:_a,top:_a,right:_a,bottom:_a,left:_a,padding:_a,paddingTop:_a,paddingRight:_a,paddingBottom:_a,paddingLeft:_a,margin:_a,marginTop:_a,marginRight:_a,marginBottom:_a,marginLeft:_a,rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scale:xa,scaleX:xa,scaleY:xa,scaleZ:xa,skew:ka,skewX:ka,skewY:ka,distance:_a,translateX:_a,translateY:_a,translateZ:_a,x:_a,y:_a,z:_a,perspective:_a,transformPerspective:_a,opacity:Ea,originX:Na,originY:Na,originZ:_a,zIndex:qa,fillOpacity:Ea,strokeOpacity:Ea,numOctaves:qa};function Za(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if(da(f))i[f]=m;else{var h=Ya[f],v=pa(m,h);if(aa(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else sa(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";a.sort(ra);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(ua[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function Ga(e,t,n){for(var r in t)ca(t[r])||la(r,n)||(e[r]=t[r])}function Xa(e,t,n){var r={},o=function(e,t,n){var r={};return Ga(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return z.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Za(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return go(go({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var Ka=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 Ja(e){return Ka.has(e)}var Qa,ei=function(e){return!Ja(e)};try{(Qa=require("@emotion/is-prop-valid").default)&&(ei=function(e){return e.startsWith("on")?!Ja(e):Qa(e)})}catch(e){}function ti(e,t,n){return"string"==typeof e?e:_a.transform(t+n*e)}var ni={offset:"stroke-dashoffset",array:"stroke-dasharray"},ri={offset:"strokeDashoffset",array:"strokeDasharray"};function oi(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Za(e,bo(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=ti(t,e.x,e.width),o=ti(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?ni:ri;e[a.offset]=_a.transform(-r);var i=_a.transform(t),s=_a.transform(n);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var ai=function(){return go(go({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ii(e,t){var n=z.useMemo(function(){var n=ai();return oi(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),go(go({},n.attrs),{style:go({},n.style)})},[t]);if(e.style){var r={};Ga(r,e.style,e),n.style=go(go({},r),n.style)}return n}function si(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(Qo(t)?ii:Xa)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(ei(o)||!0===n&&Ja(o)||!t&&!Ja(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=go(go(go({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),z.createElement(t,u)}}var li=/([a-z])([A-Z])/g,ci=function(e){return e.replace(li,"$1-$2").toLowerCase()};function ui(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var di=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pi(e,t,n,r){for(var o in ui(e,t,void 0,r),t.attrs)e.setAttribute(di.has(o)?o:ci(o),t.attrs[o])}function fi(e){var t=e.style,n={};for(var r in t)(ca(t[r])||la(r,e))&&(n[r]=t[r]);return n}function mi(e){var t=fi(e);for(var n in e)ca(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function hi(e){return"object"==typeof e&&"function"==typeof e.start}var yi=function(e){return Array.isArray(e)},gi=function(e){return yi(e)?e[e.length-1]||0:e};function bi(e){var t=ca(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Ei(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:wi(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var xi=function(e){return function(t,n){var r=z.useContext(Io),o=z.useContext(To);return n?Ei(e,t,r,o):Ho(function(){return Ei(e,t,r,o)})}};function wi(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=bi(i[s]);var l=e.initial,c=e.animate,u=$o(e),d=Uo(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!hi(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=Fo(e,t);if(n){var r=n.transitionEnd,a=bo(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var ki,Si={useVisualState:xi({scrapeMotionValuesFromProps:mi,createRenderState:ai,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}oi(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),pi(t,r)}})},_i={useVisualState:xi({scrapeMotionValuesFromProps:fi,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ci(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Oi(e,t,n,r){z.useEffect(function(){var o=e.current;if(n&&o)return Ci(o,t,n,r)},[e,t,n,r])}function Ni(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ai(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"}(ki||(ki={}));var Ri={pageX:0,pageY:0};function Ii(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ri;return{x:n[t+"X"],y:n[t+"Y"]}}function Ti(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Li(e,t){return void 0===t&&(t="page"),{point:Ai(e)?Ii(e,t):Ti(e,t)}}var Pi=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Li(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Mi={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Di={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ji(e){return Lo&&null===window.onpointerdown?e:Lo&&null===window.ontouchstart?Di[e]:Lo&&null===window.onmousedown?Mi[e]:e}function Vi(e,t,n,r){return Ci(e,ji(t),Pi(n,"pointerdown"===t),r)}function Bi(e,t,n,r){return Oi(e,ji(t),n&&Pi(n,"pointerdown"===t),r)}function Fi(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var zi=Fi("dragHorizontal"),$i=Fi("dragVertical");function Ui(e){var t=!1;if("y"===e)t=$i();else if("x"===e)t=zi();else{var n=zi(),r=$i();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Wi(){var e=Ui(!0);return!e||(e(),!1)}function Hi(e,t,n){return function(r,o){var a;Ni(r)&&!Wi()&&(null===(a=e.animationState)||void 0===a||a.setActive(ki.Hover,t),null==n||n(r,o))}}var qi=function(e,t){return!!t&&(e===t||qi(e,t.parentElement))};function Yi(e){return z.useEffect(function(){return function(){return e()}},[])}const Zi=(e,t,n)=>Math.min(Math.max(n,e),t);function Gi(e,t){return e*Math.sqrt(1-t*t)}const Xi=["duration","bounce"],Ki=["stiffness","damping","mass"];function Ji(e,t){return t.some(t=>void 0!==e[t])}function Qi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=bo(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ji(e,Ki)&&Ji(e,Xi)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;_o(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=Zi(.05,1,i),e=Zi(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Gi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Gi(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),f=es,m=es;function h(){const e=u?-u/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Gi(i,a);f=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)f=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}Qi.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const es=e=>0,ts=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ns=(e,t,n)=>-n*e+n*t+e;function rs(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 os({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=rs(s,r,e+1/3),a=rs(s,r,e),i=rs(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const as=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},is=[Ma,Pa,Ia],ss=e=>is.find(t=>t.test(e)),ls=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,cs=(e,t)=>{let n=ss(e),r=ss(t);Co(!!n,ls(e)),Co(!!r,ls(t));let o=n.parse(e),a=r.parse(t);n===Ia&&(o=os(o),n=Pa),r===Ia&&(a=os(a),r=Pa);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=as(o[t],a[t],e));return i.alpha=ns(o.alpha,a.alpha,e),n.transform(i)}},us=e=>"number"==typeof e,ds=(e,t)=>n=>t(e(n)),ps=(...e)=>e.reduce(ds);function fs(e,t){return us(e)?n=>ns(e,t,n):Da.test(e)?cs(e,t):ys(e,t)}const ms=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>fs(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},hs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=fs(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function vs(e){const t=za.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const ys=(e,t)=>{const n=za.createTransformer(t),r=vs(e),o=vs(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ps(ms(r.parsed,o.parsed),n):(_o(!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}`)},gs=(e,t)=>n=>ns(e,t,n);function bs(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Co(a===t.length,"Both input and output ranges must be the same length"),Co(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?gs:"string"==typeof e?Da.test(e)?cs:ys:Array.isArray(e)?ms:"object"==typeof e?hs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=ps(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(ts(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=ts(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(Zi(e[0],e[a-1],t)):s}const Es=e=>t=>1-e(1-t),xs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ws=e=>t=>t*t*((e+1)*t-e),ks=e=>e,Ss=e=>Math.pow(e,2),_s=Es(Ss),Cs=xs(Ss),Os=e=>1-Math.sin(Math.acos(e)),Ns=Es(Os),As=xs(Ns),Rs=ws(1.525),Is=Es(Rs),Ts=xs(Rs),Ls=(e=>{const t=ws(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ps=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},Ms=Es(Ps);function Ds(e,t){return e.map(()=>t||Cs).splice(0,e.length-1)}function js({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return bs(s,i,{ease:Array.isArray(n)?n:Ds(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Vs={keyframes:js,spring:Qi,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===a?l:a(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}},Bs="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Fs="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Bs()),16.666666666666668);let zs=!0,$s=!1,Us=!1;const Ws={delta:0,timestamp:0},Hs=["read","update","preRender","render","postRender"],qs=Hs.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),$s=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),Ys=Hs.reduce((e,t)=>{const n=qs[t];return e[t]=(e,t=!1,r=!1)=>($s||Ks(),n.schedule(e,t,r)),e},{}),Zs=Hs.reduce((e,t)=>(e[t]=qs[t].cancel,e),{});Hs.reduce((e,t)=>(e[t]=()=>qs[t].process(Ws),e),{});const Gs=e=>qs[e].process(Ws),Xs=e=>{$s=!1,Ws.delta=zs?16.666666666666668:Math.max(Math.min(e-Ws.timestamp,40),1),Ws.timestamp=e,Us=!0,Hs.forEach(Gs),Us=!1,$s&&(zs=!1,Fs(Xs))},Ks=()=>{$s=!0,zs=!0,Us||Fs(Xs)};function Js(e,t,n=0){return e-t-n}const Qs=e=>{const t=({delta:t})=>e(t);return{start:()=>Ys.update(t,!0),stop:()=>Zs.update(t)}};function el(e){var t,n,{from:r,autoplay:o=!0,driver:a=Qs,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=bo(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,y,g,{to:b}=h,E=0,x=h.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return js;if(Vs[e.type])return Vs[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?js:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Qi:js}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=bs([0,100],[r,b],{clamp:!1}),r=0,b=100);const _=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),v=a(function(e){if(k||(e=-e),i+=e,!w){const e=_.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,k)&&(E++,"reverse"===l?(k=E%2==0,i=function(e,t,n=0,r=!0){return r?Js(t+-e,t,n):t-(e-t)+n}(i,x,c,k)):(i=Js(i,x,c),"mirror"===l&&_.flipTarget()),w=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function tl(e,t){return t?e*(1e3/t):0}const nl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),rl=e=>nl(e)&&e.hasOwnProperty("z"),ol=(e,t)=>Math.abs(e-t);function al(e,t){if(us(e)&&us(t))return ol(e,t);if(nl(e)&&nl(t)){const n=ol(e.x,t.x),r=ol(e.y,t.y),o=rl(e)&&rl(t)?ol(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const il=(e,t)=>1-3*t+3*e,sl=(e,t)=>3*t-6*e,ll=e=>3*e,cl=(e,t,n)=>((il(t,n)*e+sl(t,n))*e+ll(t))*e,ul=(e,t,n)=>3*il(t,n)*e*e+2*sl(t,n)*e+ll(t);var dl=new Set;function pl(e,t,n){e||dl.has(t)||(console.warn(t),n&&console.warn(n),dl.add(t))}var fl=new WeakMap,ml=new WeakMap,hl=function(e){var t;null===(t=fl.get(e.target))||void 0===t||t(e)},vl=function(e){e.forEach(hl)},yl={some:0,all:1};function gl(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;z.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:yl[s]};return function(e,r,o){var a=function(e){var t=e.root,n=bo(e,["root"]),r=t||document;ml.has(r)||ml.set(r,{});var o=ml.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(vl,go({root:t},n))),o[a]}(r);return fl.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(ki.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){fl.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function bl(e,t,n,r){var o=r.fallback,a=void 0===o||o;z.useEffect(function(){e&&a&&("production"!==wo&&pl(!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(ki.InView,!0)}))},[e])}var El=function(e){return function(t){return e(t),null}},xl={inView:El(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=z.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?bl:gl)(l,s.current,t,i)}),tap:El(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=z.useRef(!1),s=z.useRef(null),l={passive:!(n||t||r||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ki.Tap,!1),!Wi()}function d(e,n){u()&&(qi(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function f(e,t){var r;c(),i.current||(i.current=!0,s.current=ps(Vi(window,"pointerup",d,l),Vi(window,"pointercancel",p,l)),null===(r=o.animationState)||void 0===r||r.setActive(ki.Tap,!0),null==n||n(e,t))}Bi(o,"pointerdown",a?f:void 0,l),Yi(c)}),focus:El(function(e){var t=e.whileFocus,n=e.visualElement;Oi(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ki.Focus,!0)}:void 0),Oi(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ki.Focus,!1)}:void 0)}),hover:El(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Bi(o,"pointerenter",t||r?Hi(o,!0,t):void 0,{passive:!t}),Bi(o,"pointerleave",n||r?Hi(o,!1,n):void 0,{passive:!n})})},wl=0,kl=function(){return wl++},Sl=function(){return Ho(kl)};function _l(){var e=z.useContext(To);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Sl();return z.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Cl(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 Ol=function(e){return 1e3*e},Nl={linear:ks,easeIn:Ss,easeInOut:Cs,easeOut:_s,circIn:Os,circInOut:As,circOut:Ns,backIn:Rs,backInOut:Ts,backOut:Is,anticipate:Ls,bounceIn:Ms,bounceInOut:e=>e<.5?.5*(1-Ps(1-2*e)):.5*Ps(2*e-1)+.5,bounceOut:Ps},Al=function(e){if(Array.isArray(e)){Co(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Eo(e,4);return function(e,t,n,r){if(e===t&&n===r)return ks;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=cl(.1*t,e,n);return a=>0===a||1===a?a:cl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=ul(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=ul(t,n,r);if(0===o)return t;t-=(cl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=cl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Co(void 0!==Nl[e],"Invalid easing type '".concat(e,"'")),Nl[e]):e},Rl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!za.test(t)||t.startsWith("url(")))},Il=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Tl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Ll=function(){return{type:"keyframes",ease:"linear",duration:.3}},Pl=function(e){return{type:"keyframes",duration:.8,values:e}},Ml={x:Il,y:Il,z:Il,rotate:Il,rotateX:Il,rotateY:Il,rotateZ:Il,scaleX:Tl,scaleY:Tl,scale:Tl,opacity:Ll,backgroundColor:Ll,color:Ll,default:Tl},Dl=go(go({},Ya),{color:Da,backgroundColor:Da,outlineColor:Da,fill:Da,stroke:Da,borderColor:Da,borderTopColor:Da,borderRightColor:Da,borderBottomColor:Da,borderLeftColor:Da,filter:Ha,WebkitFilter:Ha}),jl=function(e){return Dl[e]};function Vl(e,t){var n,r=jl(e);return r!==Ha&&(r=za),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Bl=!1;function Fl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function zl(e){return"number"==typeof e?0:Vl("",e)}function $l(e,t){return e[t]||e.default||e}function Ul(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=$l(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Rl(e,n);"none"===s&&l&&"string"==typeof n?s=Vl(e,n):Fl(s)&&"string"==typeof n?s=zl(n):!Array.isArray(n)&&Fl(n)&&"string"==typeof s&&(n=zl(s));var c=Rl(e,s);return _o(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=el(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:p,onStop:f}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))g({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=v(r),s=i===n?-1:1;let u,d;const p=e=>{u=d,d=e,t=tl(e-u,Ws.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(go(go({},r),i)):el(go(go({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=xo([],Eo(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=bo(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=go(go({},e),(o=n,i=yi(a=t.to)?Pl:Ml[o]||Ml.default,go({to:a},i(a))))),go(go({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=bo(e,["ease","times","yoyo","flip","loop"]),s=go({},i);return n&&(s.offset=n),i.duration&&(s.duration=Ol(i.duration)),i.repeatDelay&&(s.repeatDelay=Ol(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Al):Al(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(_o(!Bl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Bl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=gi(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=($l(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,Ol(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var Wl=function(e){return/^\-?\d*\.?\d+$/.test(e)},Hl=function(e){return/^0[^.\s]+$/.test(e)};const ql="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Yl="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ql()),16.666666666666668);let Zl=!0,Gl=!1,Xl=!1;const Kl={delta:0,timestamp:0},Jl=["read","update","preRender","render","postRender"],Ql=Jl.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>Gl=!0),e),{}),ec=Jl.reduce((e,t)=>{const n=Ql[t];return e[t]=(e,t=!1,r=!1)=>(Gl||ac(),n.schedule(e,t,r)),e},{}),tc=Jl.reduce((e,t)=>(e[t]=Ql[t].cancel,e),{}),nc=Jl.reduce((e,t)=>(e[t]=()=>Ql[t].process(Kl),e),{}),rc=e=>Ql[e].process(Kl),oc=e=>{Gl=!1,Kl.delta=Zl?16.666666666666668:Math.max(Math.min(e-Kl.timestamp,40),1),Kl.timestamp=e,Xl=!0,Jl.forEach(rc),Xl=!1,Gl&&(Zl=!1,Yl(oc))},ac=()=>{Gl=!0,Zl=!0,Xl||Yl(oc)},ic=()=>Kl;function sc(e,t){-1===e.indexOf(t)&&e.push(t)}function lc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var cc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return sc(this.subscriptions,e),function(){return lc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),uc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new cc,this.velocityUpdateSubscribers=new cc,this.renderSubscribers=new cc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=ic(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,ec.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 ec.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?tl(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 dc(e){return new uc(e)}var pc=function(e){return function(t){return t.test(e)}},fc=[ba,_a,Sa,ka,Oa,Ca,{test:function(e){return"auto"===e},parse:function(e){return e}}],mc=function(e){return fc.find(pc(e))},hc=xo(xo([],Eo(fc),!1),[Da,za],!1),vc=function(e){return hc.find(pc(e))};function yc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dc(n))}function gc(e,t){if(t)return(t[e]||t.default||t).from}function bc(e,t,n){var r;void 0===n&&(n={});var o=zo(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Ec(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(xc).forEach(function(e,r){i.push(bc(e,t,go(go({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=Eo("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Ec(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=bo(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in f){var y=e.getValue(v),g=f[v];if(!(!y||void 0===g||h&&wc(h,v))){var b=go({delay:i},d);e.shouldReduceMotion&&aa(v)&&(b=go(go({},b),{type:!1,delay:0}));var E=Ul(v,y,g,b);m.push(E)}}return Promise.all(m).then(function(){p&&function(e,t){var n=zo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=bo(r,["transitionEnd","transition"]);for(var s in i=go(go({},i),a))yc(e,s,gi(i[s]))}(e,p)})}function xc(e,t){return e.sortNodePosition(t)}function wc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var kc=[ki.Animate,ki.InView,ki.Focus,ki.Hover,ki.Tap,ki.Drag,ki.Exit],Sc=xo([],Eo(kc),!1).reverse(),_c=kc.length;function Cc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Oc={animation:El(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return bc(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=bc(e,t,n);else{var a="function"==typeof t?zo(e,t,n.custom):t;r=Ec(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[ki.Animate]=Cc(!0),t[ki.InView]=Cc(),t[ki.Hover]=Cc(),t[ki.Tap]=Cc(),t[ki.Drag]=Cc(),t[ki.Focus]=Cc(),t[ki.Exit]=Cc(),t),o={},a=!0,i=function(t,n){var r=zo(e,n);if(r){var o=r.transitionEnd,a=bo(r,["transition","transitionEnd"]);t=go(go(go({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(n){var o=Sc[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],y=Bo(v),g=o===s?h.isActive:null;!1===g&&(m=n);var b=v===u[o]&&v!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=go({},f),!h.isActive&&null===g||!v&&!h.prevProp||hi(v)||"boolean"==typeof v)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!Vo(t)&&!Cl(t,e)}(h.prevProp,v),x=E||o===s&&h.isActive&&!b&&y||n>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(i,{});!1===g&&(k={});var S=h.prevResolvedValues,_=void 0===S?{}:S,C=go(go({},_),k),O=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var N in C){var A=k[N],R=_[N];f.hasOwnProperty(N)||(A!==R?yi(A)&&yi(R)?!Cl(A,R)||E?O(N):h.protectedKeys[N]=!0:void 0!==A?O(N):p.add(N):void 0!==A&&p.has(N)?O(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=k,h.isActive&&(f=go(go({},f),k)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,xo([],Eo(w.map(function(e){return{animation:e,options:go({type:o},t)}})),!1))},v=0;v<_c;v++)h(v);if(o=go({},f),p.size){var y={};p.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),hi(n)&&z.useEffect(function(){return n.subscribe(t)},[n])}),exit:El(function(e){var t=e.custom,n=e.visualElement,r=Eo(_l(),2),o=r[0],a=r[1],i=z.useContext(To);z.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(ki.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},Nc=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Ic(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=al(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=ic().timestamp;r.history.push(go(go({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Ac(t,r.transformPagePoint),Ni(e)&&0===e.buttons?r.handlePointerUp(e,t):ec.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Ic(Ac(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Ai(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Ac(Li(e),this.transformPagePoint),i=a.point,s=ic().timestamp;this.history=[go(go({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Ic(a,this.history)),this.removeListeners=ps(Vi(window,"pointermove",this.handlePointerMove),Vi(window,"pointerup",this.handlePointerUp),Vi(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),tc.update(this.updatePoint)},e}();function Ac(e,t){return t?{point:t(e.point)}:e}function Rc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ic(e,t){var n=e.point;return{point:n,delta:Rc(n,Lc(t)),offset:Rc(n,Tc(t)),velocity:Pc(t,.1)}}function Tc(e){return e[0]}function Lc(e){return e[e.length-1]}function Pc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Lc(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>Ol(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Mc(e){return e.max-e.min}function Dc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),al(e,t)<n}function jc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=ns(t.min,t.max,e.origin),e.scale=Mc(n)/Mc(t),(Dc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ns(n.min,n.max,e.origin)-e.originPoint,(Dc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Vc(e,t,n,r){jc(e.x,t.x,n.x,null==r?void 0:r.originX),jc(e.y,t.y,n.y,null==r?void 0:r.originY)}function Bc(e,t,n){e.min=n.min+t.min,e.max=e.min+Mc(t)}function Fc(e,t,n){e.min=t.min-n.min,e.max=e.min+Mc(t)}function zc(e,t,n){Fc(e.x,t.x,n.x),Fc(e.y,t.y,n.y)}function $c(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Uc(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Eo([o,r],2))[0],o=n[1]),{min:r,max:o}}function Wc(e,t,n){return{min:Hc(e,t),max:Hc(e,n)}}function Hc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function qc(e){return[e("x"),e("y")]}function Yc(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Zc(e){return void 0===e||1===e}function Gc(e){var t=e.scaleX,n=e.scaleY;return!Zc(e.scale)||!Zc(t)||!Zc(n)}function Xc(e){return Gc(e)||Kc(e.x)||Kc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Kc(e){return e&&"0%"!==e}function Jc(e,t,n){return n+t*(e-n)}function Qc(e,t,n,r,o){return void 0!==o&&(e=Jc(e,o,r)),Jc(e,n,r)+t}function eu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Qc(e.min,t,n,r,o),e.max=Qc(e.max,t,n,r,o)}function tu(e,t){var n=t.x,r=t.y;eu(e.x,n.translate,n.scale,n.originPoint),eu(e.y,r.translate,r.scale,r.originPoint)}function nu(e,t){e.min=e.min+t,e.max=e.max+t}function ru(e,t,n){var r=Eo(n,3),o=r[0],a=r[1],i=r[2],s=ns(e.min,e.max,void 0!==t[i]?t[i]:.5);eu(e,t[o],t[a],s,t.scale)}var ou=["x","scaleX","originX"],au=["y","scaleY","originY"];function iu(e,t){ru(e.x,t,ou),ru(e.y,t,au)}function su(e,t){return Yc(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 lu=new WeakMap,cu=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Nc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Li(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ui(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),qc(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Sa.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=Mc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ki.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ki.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&uu(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?ns(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?ns(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&jo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:$c(e.x,t.left,t.right),y:$c(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Wc(e,"left","right"),y:Wc(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&qc(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!jo(t))return!1;var r=t.current;Co(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=su(e,n),o=t.scroll;return o&&(nu(r.x,o.x),nu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Uc(e.x,t.x),y:Uc(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=Yc(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=qc(function(n){var l;if(uu(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=go(go({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(n,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Ul(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;qc(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;qc(function(n){if(uu(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-ns(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(jo(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};qc(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r=t.constraints[e],o=.5,i=Mc(n={min:c,max:c}),(s=Mc(r))>i?o=ts(r.min,r.max-i,n.min):i>s&&(o=ts(n.min,n.max-s,r.min)),Zi(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),qc(function(e){if(uu(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(ns(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;lu.set(this.visualElement,this);var n=Vi(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){jo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Ci(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(qc(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return go(go({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function uu(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var du={pan:El(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=z.useRef(null),l=z.useContext(Ro).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};z.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),Bi(a,"pointerdown",i&&function(e){s.current=new Nc(e,c,{transformPagePoint:l})}),Yi(function(){return s.current&&s.current.end()})}),drag:El(function(e){var t=e.dragControls,n=e.visualElement,r=Ho(function(){return new cu(n)});z.useEffect(function(){return t&&t.subscribe(r)},[r,t]),z.useEffect(function(){return r.addListeners()},[r])})},pu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],fu=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=v.latestValues,w=v.renderState,k=function(){var e=pu.map(function(){return new cc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){pu.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+pu[t]]=function(t){return e.add(t)},n["notify"+pu[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,xo([],Eo(t),!1))}}),n}(),S=new Map,_=new Map,C={},O=go({},x);function N(){g&&E&&(A(),s(g,w,f.style,j.projection))}function A(){r(j,w,x,t,f)}function R(){k.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,f.onUpdate&&ec.update(R,!1,!0)}),r=t.onRenderRequest(j.scheduleRender);_.set(e,function(){n(),r()})}var T=d(f);for(var L in T){var P=T[L];void 0!==x[L]&&ca(P)&&P.set(x[L],!1)}var M=$o(f),D=Uo(f),j=go(go({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:D?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=j.current=e,j.projection&&j.projection.mount(e),D&&p&&!M&&(b=null==p?void 0:p.addVariantChild(j)),S.forEach(function(e,t){return I(t,e)}),null==p||p.children.add(j),j.setProps(f)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),tc.update(R),tc.render(N),_.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(j),k.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=j.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(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return D?j:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(j,e,f,t)},measureViewportBox:function(){return i(g,f)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=_.get(e))||void 0===t||t(),_.delete(e),delete x[e],c(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=dc(t),j.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!ca(t))return t}return O[e]}},k),{build:function(){return A(),w},scheduleRender:function(){ec.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&j.scheduleRender(),f=e,k.updatePropListeners(e),C=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(ca(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&pl("6.5.1"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.5.1 may not work as expected."));else if(ca(i))e.addValue(o,dc(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,dc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,d(f),C)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<hu;r++){var o=mu[r],a=f[o];(Bo(a)||!1===a)&&(n[o]=a)}return n}});return j}},mu=xo(["initial"],Eo(kc),!1),hu=mu.length;function vu(e){return"string"==typeof e&&e.startsWith("var(--")}var yu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gu(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=Eo(function(e){var t=yu.exec(e);if(!t)return[,];var n=Eo(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():vu(a)?gu(a,t,n+1):a}}var bu,Eu=new Set(["width","height","top","left","right","bottom","x","y"]),xu=function(e){return Eu.has(e)},wu=function(e,t){e.set(t,!1),e.set(t)},ku=function(e){return e===ba||e===_a};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(bu||(bu={}));var Su=function(e,t){return parseFloat(e.split(", ")[t])},_u=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Su(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Su(i[1],e):0}},Cu=new Set(["x","y","z"]),Ou=na.filter(function(e){return!Cu.has(e)}),Nu={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:_u(4,13),y:_u(5,14)},Au={treeType:"dom",readValueFromInstance:function(e,t){if(aa(t)){var n=jl(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(da(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 su(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=bo(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=gc(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(Wl(p)||Hl(p))?p=parseFloat(p):!vc(p)&&za.test(d)&&(p=Vl(u,d)),e.addValue(u,dc(p)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=bo(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=go({},n)),e.forEachValue(function(e){var t=e.get();if(vu(t)){var n=gu(t,a);n&&e.set(n)}}),o){var s=o[i];if(vu(s)){var l=gu(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(xu)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=go({},t),r=go({},r);var o=Object.keys(t).filter(xu),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=mc(u),p=t[o];if(yi(p)){var f=p.length,m=null===p[0]?1:0;d=mc(u=p[m]);for(var h=m;h<f;h++)c?Co(mc(p[h])===c,"All keyframes must be of the same type"):(c=mc(p[h]),Co(c===d||ku(d)&&ku(c),"Keyframes must be of the same dimension as the current value"))}else c=mc(p);if(d!==c)if(ku(d)&&ku(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===_a&&(t[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[o]=d.transform(p):(i||(a=function(e){var t=[];return Ou.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],wu(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Nu[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);wu(r,i[n]),e[n]=Nu[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=Eo(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return go({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:fi,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Za(t,n,r,o.transformTemplate)},render:ui},Ru=fu(Au),Iu=fu(go(go({},Au),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return aa(t)?(null===(n=jl(t))||void 0===n?void 0:n.default)||0:(t=di.has(t)?t:ci(t),e.getAttribute(t))},scrapeMotionValuesFromProps:mi,build:function(e,t,n,r,o){oi(t,n,r,o.transformTemplate)},render:pi})),Tu=function(e,t){return Qo(e)?Iu(t,{enableHardwareAcceleration:!1}):Ru(t,{enableHardwareAcceleration:!0})};function Lu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Pu={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!_a.test(e))return e;e=parseFloat(e)}var n=Lu(e,t.target.x),r=Lu(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Mu={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(yu,function(e){return i.push(e),"_$css"}));var s=za.parse(e);if(s.length>5)return o;var l=za.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=ns(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yo(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(ea,ju),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(go(go({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),qo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||ec.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}(z.Component),ju={borderRadius:go(go({},Pu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pu,borderTopRightRadius:Pu,borderBottomLeftRadius:Pu,borderBottomRightRadius:Pu,boxShadow:Mu},Vu={measureLayout:function(e){var t=Eo(_l(),2),n=t[0],r=t[1],o=z.useContext(Zo);return z.createElement(Du,go({},e,{layoutGroup:o,switchLayoutGroup:z.useContext(Go),isPresent:n,safeToRemove:r}))}},Bu=["TopLeft","TopRight","BottomLeft","BottomRight"],Fu=Bu.length,zu=function(e){return"string"==typeof e?parseFloat(e):e},$u=function(e){return"number"==typeof e||_a.test(e)};function Uu(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Wu=qu(0,.5,Ns),Hu=qu(.5,.95,ks);function qu(e,t,n){return function(r){return r<e?0:r>t?1:n(ts(e,t,r))}}function Yu(e,t){e.min=t.min,e.max=t.max}function Zu(e,t){Yu(e.x,t.x),Yu(e.y,t.y)}function Gu(e,t,n,r,o){return e=Jc(e-=t,1/n,r),void 0!==o&&(e=Jc(e,1/o,r)),e}function Xu(e,t,n,r,o){var a=Eo(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Sa.test(t)&&(t=parseFloat(t),t=ns(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=ns(a.min,a.max,r);e===a&&(s-=t),e.min=Gu(e.min,t,n,s,o),e.max=Gu(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var Ku=["x","scaleX","originX"],Ju=["y","scaleY","originY"];function Qu(e,t,n,r){Xu(e.x,t,Ku,null==n?void 0:n.x,null==r?void 0:r.x),Xu(e.y,t,Ju,null==n?void 0:n.y,null==r?void 0:r.y)}function ed(e){return 0===e.translate&&1===e.scale}function td(e){return ed(e.x)&&ed(e.y)}function nd(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 rd=function(){function e(){this.members=[]}return e.prototype.add=function(e){sc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(lc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function od(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}var ad=function(e,t){return e.depth-t.depth},id=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){sc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){lc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(ad),this.isDirty=!1,this.children.forEach(e)},e}();function sd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(md),o.nodes.forEach(hd)},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?xo(xo([],Eo(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new id)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new cc),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,xo([],Eo(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),qo.hasAnimatedSinceResize&&(qo.hasAnimatedSinceResize=!1,o.nodes.forEach(fd))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:xd,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!nd(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=go(go({},$l(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,tc.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(vd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(dd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(wd),this.potentialNodes.clear()),this.nodes.forEach(pd),this.nodes.forEach(ld),this.nodes.forEach(cd),this.clearAllSnapshots(),nc.update(),nc.preRender(),nc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ud),this.sharedNodes.forEach(yd)},e.prototype.scheduleUpdateProjection=function(){ec.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;ec.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));Sd(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();Sd(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!td(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||Xc(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&&(nu(t.x,n.x),nu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Zu(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){Zu(t,e);var a=this.root.scroll;a&&(nu(t.x,-a.x),nu(t.y,-a.y))}nu(t.x,o.x),nu(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Zu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&iu(n,{x:-o.scroll.x,y:-o.scroll.y}),Xc(o.latestValues)&&iu(n,o.latestValues)}return Xc(this.latestValues)&&iu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Zu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Xc(o.latestValues)){Gc(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Zu(a,o.measure()),Qu(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return Xc(this.latestValues)&&Qu(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=go(go(go({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},zc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Zu(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)?(Bc((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),Bc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Zu(this.target,this.layout.actual),tu(this.target,this.targetDelta)):Zu(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}},zc(this.relativeTargetOrigin,this.target,this.relativeParent.target),Zu(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Xc(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Zu(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,tu(e,l)),r&&Xc(s.latestValues)&&iu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Vc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=od(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=go({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Ed));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;gd(s.x,e.x,o),gd(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(zc(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){bd(e.x,t.x,n.x,r),bd(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,c;o?(e.opacity=ns(0,null!==(i=n.opacity)&&void 0!==i?i:1,Wu(r)),e.opacityExit=ns(null!==(s=t.opacity)&&void 0!==s?s:1,0,Hu(r))):a&&(e.opacity=ns(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Fu;u++){var d="border".concat(Bu[u],"Radius"),p=Uu(t,d),f=Uu(n,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||$u(p)===$u(f)?(e[d]=Math.max(ns(zu(p),zu(f),r),0),(Sa.test(f)||Sa.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||n.rotate)&&(e.rotate=ns(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(tc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ec.update(function(){qo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ca(0)?0:dc(0);return Ul("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,go(go({},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&&(Zu(t,n),iu(t,r),Vc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new rd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<ta.length;r++)e.getStaticValue(o="rotate"+ta[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=bi(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=bi(e.pointerEvents)||""),this.hasProjected&&!Xc(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=od(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,ea)if(void 0!==d[h]){var v=ea[h],y=v.applyTo,g=(0,v.correct)(d[h],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[h]=g}return this.options.layoutId&&(s.pointerEvents=c===this?bi(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(dd),this.root.sharedNodes.clear()},e}()}function ld(e){e.updateLayout()}function cd(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?qc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Mc(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&qc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Mc(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}};Vc(c,s,a.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Vc(u,e.applyTransform(l,!0),a.measured):Vc(u,s,a.layout);var d=!td(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};zc(v,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};zc(y,s,h.actual),nd(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function ud(e){e.clearSnapshot()}function dd(e){e.clearMeasurements()}function pd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function fd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function md(e){e.resolveTargetDelta()}function hd(e){e.calcProjection()}function vd(e){e.resetRotation()}function yd(e){e.removeLeadSnapshot()}function gd(e,t,n){e.translate=ns(t.translate,0,n),e.scale=ns(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bd(e,t,n,r){e.min=ns(t.min,n.min,r),e.max=ns(t.max,n.max,r)}function Ed(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var xd={duration:.45,ease:[.4,0,.1,1]};function wd(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function kd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Sd(e){kd(e.x),kd(e.y)}var _d=sd({attachResizeListener:function(e,t){return Ci(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Cd={current:void 0},Od=sd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Cd.current){var e=new _d(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Nd=go(go(go(go({},Oc),xl),du),Vu),Ad=/*@__PURE__*/Ko(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=Qo(e)?Si:_i;return go(go({},s),{preloadedFeatures:n,useRender:si(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Nd,Tu,Od)});function Rd(){var e=z.useRef(!1);return Po(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Id=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=Ho(Td),l=Sl(),c=z.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return z.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),z.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),z.createElement(To.Provider,{value:c},t)};function Td(){return new Map}var Ld=function(e){return e.key||""},Pd=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=Eo(function(){var e=Rd(),t=Eo(z.useState(0),2),n=t[0],r=t[1],o=z.useCallback(function(){e.current&&r(n+1)},[n]);return[z.useCallback(function(){return ec.postRender(o)},[o]),n]}(),1),u=c[0],d=z.useContext(Zo).forceRender;d&&(u=d);var p=Rd(),f=function(e){var t=[];return z.Children.forEach(e,function(e){z.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=z.useRef(m),y=z.useRef(new Map).current,g=z.useRef(!0);if(Po(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Ld(e);t.set(n,e)})}(f,y),v.current=m}),Yi(function(){g.current=!0,y.clear(),h.clear()}),g.current)return z.createElement(z.Fragment,null,m.map(function(e){return z.createElement(Id,{key:Ld(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=xo([],Eo(m),!1);for(var b=v.current.map(Ld),E=f.map(Ld),x=b.length,w=0;w<x;w++){var k=b[w];-1===E.indexOf(k)&&h.add(k)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,z.createElement(Id,{key:Ld(t),isPresent:!1,onExitComplete:function(){y.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:z.createElement(Id,{key:Ld(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==wo&&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."),z.createElement(z.Fragment,null,h.size?m:m.map(function(e){return z.cloneElement(e)}))},Md=(...e)=>e.filter(Boolean).join(" "),Dd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},jd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Vd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Bd={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Fd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function zd(e){switch((null==e?void 0:e.direction)??"right"){case"right":default:return Vd;case"left":return jd;case"bottom":return Fd;case"top":return Bd}}var $d={enter:{duration:.2,ease:Dd.easeOut},exit:{duration:.1,ease:Dd.easeIn}},Ud=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),Wd=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),Hd={exit:{height:{duration:.2,ease:Dd.ease},opacity:{duration:.3,ease:Dd.ease}},enter:{height:{duration:.3,ease:Dd.ease},opacity:{duration:.4,ease:Dd.ease}}},qd={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:(null==n?void 0:n.exit)??Wd(Hd.exit,o)};var a},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:(null==n?void 0:n.enter)??Ud(Hd.enter,o)})},Yd=z.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:u,...d}=e,[p,f]=z.useState(!1);z.useEffect(()=>{const e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:n}=e;t&&"production"!==process.env.NODE_ENV&&console.warn(n)})({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,h={startingHeight:a,endingHeight:i,animateOpacity:o,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:null==u?void 0:u.enter,exit:r?null==u?void 0:u.exit:{...null==u?void 0:u.exit,display:m?"block":"none"}}},v=n||r?"enter":"exit";/* @__PURE__ */
|
5
|
-
return z.createElement(
|
6
|
-
return z.createElement(
|
7
|
-
return z.createElement(
|
8
|
-
return z.createElement(
|
9
|
-
return z.createElement(
|
10
|
-
return z.createElement(
|
11
|
-
return z.createElement(
|
12
|
-
return z.createElement(
|
13
|
-
return z.createElement(
|
14
|
-
return z.createElement(z.Fragment,null,t&&/* @__PURE__ */z.createElement(
|
15
|
-
return z.createElement(
|
16
|
-
return z.createElement(
|
17
|
-
return z.createElement(
|
18
|
-
return z.createElement(
|
19
|
-
return z.createElement(
|
20
|
-
return z.createElement(
|
21
|
-
return z.createElement(
|
22
|
-
return z.createElement(
|
23
|
-
return z.createElement(
|
24
|
-
return z.createElement(
|
25
|
-
return z.createElement(
|
26
|
-
return z.createElement(
|
27
|
-
return z.createElement(
|
28
|
-
return z.createElement(
|
29
|
-
return z.createElement(
|
30
|
-
return z.createElement(
|
31
|
-
return z.createElement(
|
32
|
-
return z.createElement(
|
33
|
-
return z.createElement(
|
34
|
-
return z.createElement(
|
35
|
-
return z.createElement(
|
36
|
-
return z.createElement(
|
37
|
-
return z.createElement(
|
38
|
-
return z.createElement(
|
39
|
-
return z.createElement(
|
40
|
-
return z.createElement(
|
41
|
-
return z.createElement(
|
42
|
-
return z.createElement(
|
43
|
-
return z.createElement(
|
44
|
-
return z.createElement(
|
45
|
-
return z.createElement(
|
46
|
-
return z.createElement(
|
47
|
-
return z.createElement(
|
48
|
-
return z.createElement(
|
49
|
-
return z.createElement(
|
50
|
-
return z.createElement(
|
51
|
-
return z.createElement(
|
52
|
-
return z.createElement(
|
53
|
-
return z.createElement(
|
54
|
-
return z.createElement(
|
55
|
-
return z.createElement(
|
56
|
-
return z.createElement(
|
57
|
-
return z.createElement(
|
58
|
-
return z.createElement(
|
59
|
-
return z.createElement(Jr.p,{ref:t,className:co("chakra-text",e.className),...l,...s,__css:n})}).displayName="Text";var Xf=Zr(function(e,t){const{spacing:n="0.5rem",spacingX:r,spacingY:o,children:a,justify:i,direction:s,align:l,className:c,shouldWrapChildren:u,...d}=e,p=z.useMemo(()=>{const{spacingX:e=n,spacingY:t=n}={spacingX:r,spacingY:o};return{"--chakra-wrap-x-spacing":t=>Lf(e,e=>Gf(K("space",e)(t))),"--chakra-wrap-y-spacing":e=>Lf(t,t=>Gf(K("space",t)(e))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:i,alignItems:l,flexDirection:s,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[n,r,o,i,l,s]),f=z.useMemo(()=>u?z.Children.map(a,(e,t)=>/* @__PURE__ */z.createElement(Kf,{key:t},e)):a,[a,u]);/* @__PURE__ */
|
60
|
-
return z.createElement(
|
61
|
-
return z.createElement(Jr.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:co("chakra-wrap__listitem",n),...r})});function Jf(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function Qf(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function em(e){return!!Qf(e)&&e instanceof(e.ownerDocument.defaultView??window).HTMLElement}function tm(e){return Qf(e)?e.ownerDocument:document}Kf.displayName="WrapItem";var nm=e=>e.hasAttribute("tabindex");function rm(e){return!(!e.parentElement||!rm(e.parentElement))||e.hidden}function om(e){if(!em(e)||rm(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||nm(e)}var am="top",im="bottom",sm="right",lm="left",cm=[am,im,sm,lm],um=/*#__PURE__*/cm.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),dm=/*#__PURE__*/[].concat(cm,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),pm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fm(e){return e?(e.nodeName||"").toLowerCase():null}function mm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hm(e){return e instanceof mm(e).Element||e instanceof Element}function vm(e){return e instanceof mm(e).HTMLElement||e instanceof HTMLElement}function ym(e){return"undefined"!=typeof ShadowRoot&&(e instanceof mm(e).ShadowRoot||e instanceof ShadowRoot)}function gm(e){return e.split("-")[0]}var bm=Math.max,Em=Math.min,xm=Math.round;function wm(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(vm(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=xm(n.width)/i||1),a>0&&(o=xm(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function km(e){var t=wm(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 Sm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ym(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _m(e){return mm(e).getComputedStyle(e)}function Cm(e){return["table","td","th"].indexOf(fm(e))>=0}function Om(e){return((hm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nm(e){return"html"===fm(e)?e:e.assignedSlot||e.parentNode||(ym(e)?e.host:null)||Om(e)}function Am(e){return vm(e)&&"fixed"!==_m(e).position?e.offsetParent:null}function Rm(e){for(var t=mm(e),n=Am(e);n&&Cm(n)&&"static"===_m(n).position;)n=Am(n);return n&&("html"===fm(n)||"body"===fm(n)&&"static"===_m(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&vm(e)&&"fixed"===_m(e).position)return null;var n=Nm(e);for(ym(n)&&(n=n.host);vm(n)&&["html","body"].indexOf(fm(n))<0;){var r=_m(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 Im(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tm(e,t,n){return bm(e,Em(t,n))}function Lm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Mm(e){return e.split("-")[1]}var Dm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=lm,E=am,x=window;if(c){var w=Rm(n),k="clientHeight",S="clientWidth";w===mm(n)&&"static"!==_m(w=Om(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===am||(o===lm||o===sm)&&"end"===a)&&(E=im,h-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,h*=l?1:-1),o!==lm&&(o!==am&&o!==im||"end"!==a)||(b=sm,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var _,C=Object.assign({position:s},c&&Dm),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:xm(e.x*n)/n||0,y:xm(t*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},C,l?((_={})[E]=g?"0":"",_[b]=y?"0":"",_.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",_):((t={})[E]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}var Vm={passive:!0},Bm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=mm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Vm)}),s&&l.addEventListener("resize",n.update,Vm),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Vm)}),s&&l.removeEventListener("resize",n.update,Vm)}},data:{}},Fm={left:"right",right:"left",bottom:"top",top:"bottom"};function zm(e){return e.replace(/left|right|bottom|top/g,function(e){return Fm[e]})}var $m={start:"end",end:"start"};function Um(e){return e.replace(/start|end/g,function(e){return $m[e]})}function Wm(e){var t=mm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hm(e){return wm(Om(e)).left+Wm(e).scrollLeft}function qm(e){var t=_m(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Ym(e){return["html","body","#document"].indexOf(fm(e))>=0?e.ownerDocument.body:vm(e)&&qm(e)?e:Ym(Nm(e))}function Zm(e,t){var n;void 0===t&&(t=[]);var r=Ym(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=mm(r),i=o?[a].concat(a.visualViewport||[],qm(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Zm(Nm(i)))}function Gm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xm(e,t){return"viewport"===t?Gm(function(e){var t=mm(e),n=Om(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Hm(e),y:s}}(e)):hm(t)?function(e){var t=wm(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):Gm(function(e){var t,n=Om(e),r=Wm(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=bm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=bm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Hm(e),l=-r.scrollTop;return"rtl"===_m(o||n).direction&&(s+=bm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Om(e)))}function Km(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?gm(o):null,i=o?Mm(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case am:t={x:s,y:n.y-r.height};break;case im:t={x:s,y:n.y+n.height};break;case sm:t={x:n.x+n.width,y:l};break;case lm:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?Im(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Jm(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Lm("number"!=typeof f?f:Pm(f,cm)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=Zm(Nm(e)),n=["absolute","fixed"].indexOf(_m(e).position)>=0&&vm(e)?Rm(e):e;return hm(n)?t.filter(function(e){return hm(e)&&Sm(e,n)&&"body"!==fm(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=Xm(e,n);return t.top=bm(r.top,t.top),t.right=Em(r.right,t.right),t.bottom=Em(r.bottom,t.bottom),t.left=bm(r.left,t.left),t},Xm(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(hm(v)?v:v.contextElement||Om(e.elements.popper),a,s),g=wm(e.elements.reference),b=Km({reference:g,element:h,strategy:"absolute",placement:r}),E=Gm(Object.assign({},h,b)),x="popper"===c?E:g,w={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[sm,im].indexOf(e)>=0?1:-1,n=[am,im].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function Qm(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?dm:i,l=Mm(t.placement),c=l?a?um:um.filter(function(e){return Mm(e)===l}):cm,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,a){return t[a]=Jm(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[gm(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var eh={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,y=gm(v),g=l||(y!==v&&m?function(e){if("auto"===gm(e))return[];var t=zm(e);return[Um(e),t,Um(t)]}(v):[zm(v)]),b=[v].concat(g).reduce(function(e,n){return e.concat("auto"===gm(n)?Qm(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],_=0;_<b.length;_++){var C=b[_],O=gm(C),N="start"===Mm(C),A=[am,im].indexOf(O)>=0,R=A?"width":"height",I=Jm(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=A?N?sm:lm:N?im:am;E[R]>x[R]&&(T=zm(T));var L=zm(T),P=[];if(a&&P.push(I[O]<=0),s&&P.push(I[T]<=0,I[L]<=0),P.every(function(e){return e})){S=C,k=!1;break}w.set(C,P)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},D=m?3:1;D>0&&"break"!==M(D);D--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function th(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 nh(e){return[am,sm,im,lm].some(function(t){return e[t]>=0})}var rh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=dm.reduce(function(e,n){return e[n]=function(e,t,n){var r=gm(e),o=[lm,am].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[lm,sm].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},oh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.tether,c=void 0===l||l,u=n.tetherOffset,d=void 0===u?0:u,p=Jm(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),f=gm(t.placement),m=Mm(t.placement),h=!m,v=Im(f),y="x"===v?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var _,C="y"===v?am:lm,O="y"===v?im:sm,N="y"===v?"height":"width",A=g[v],R=A+p[C],I=A-p[O],T=c?-E[N]/2:0,L="start"===m?b[N]:E[N],P="start"===m?-E[N]:-b[N],M=t.elements.arrow,D=c&&M?km(M):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=j[C],B=j[O],F=Tm(0,b[N],D[N]),z=h?b[N]/2-T-F-V-w.mainAxis:L-F-V-w.mainAxis,$=h?-b[N]/2+T+F+B+w.mainAxis:P+F+B+w.mainAxis,U=t.elements.arrow&&Rm(t.elements.arrow),W=null!=(_=null==k?void 0:k[v])?_:0,H=A+$-W,q=Tm(c?Em(R,A+z-W-(U?"y"===v?U.clientTop||0:U.clientLeft||0:0)):R,A,c?bm(I,H):I);g[v]=q,S[v]=q-A}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+p["x"===v?am:lm],K=Z-p["x"===v?im:sm],J=-1!==[am,lm].indexOf(f),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+w.altAxis,te=J?Z+b[G]+E[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Tm(e,t,n);return r>n?n:r}(ee,Z,te):Tm(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function ah(e,t,n){void 0===n&&(n=!1);var r=vm(t),o=vm(t)&&function(e){var t=e.getBoundingClientRect(),n=xm(t.width)/e.offsetWidth||1,r=xm(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Om(t),i=wm(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==fm(t)||qm(a))&&(s=function(e){return e!==mm(e)&&vm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Wm(e);var t}(t)),vm(t)?((l=wm(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Hm(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function ih(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function sh(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 lh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ch=["name","enabled","phase","fn","effect","requires","options"],uh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",dh={placement:"bottom",modifiers:[],strategy:"absolute"};function ph(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function fh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?dh:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},dh,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:hm(e)?Zm(e):e.contextElement?Zm(e.contextElement):[],popper:Zm(t)};var i,c,p,f=function(e){var t=ih(e);return pm.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),ch).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(sh(lh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(sh(lh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":pm.indexOf(t.phase)<0&&console.error(sh(lh,t.name,'"phase"',"either "+pm.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(sh(lh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(sh(lh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(sh(lh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(sh(lh,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 '+ch.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(sh('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===gm(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var h=_m(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ph(t,n)){s.rects={reference:ah(t,Rm(n),"fixed"===s.options.strategy),popper:km(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(uh)}},update:(a=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(a())})})),i}),destroy:function(){d(),c=!0}};if(!ph(e,t))return"production"!==process.env.NODE_ENV&&console.error(uh),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 mh=/*#__PURE__*/fh({defaultModifiers:[Bm,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Km({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=_m(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:gm(t.placement),variation:Mm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,jm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,jm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];vm(o)&&fm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});vm(r)&&fm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},rh,eh,oh,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=gm(n.placement),l=Im(s),c=[lm,sm].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Lm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pm(e,cm))}(o.padding,n),d=km(a),p="y"===l?am:lm,f="y"===l?im:sm,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=Rm(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=y/2-d[c]/2+(m/2-h/2),b=Tm(u[p],g,y-d[c]-u[f]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(vm(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(" "))),Sm(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Jm(t,{elementContext:"reference"}),s=Jm(t,{altBoundary:!0}),l=th(i,r),c=th(s,o,a),u=nh(l),d=nh(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})}}]}),hh=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),vh={arrowShadowColor:hh("--popper-arrow-shadow-color"),arrowSize:hh("--popper-arrow-size","8px"),arrowSizeHalf:hh("--popper-arrow-size-half"),arrowBg:hh("--popper-arrow-bg"),transformOrigin:hh("--popper-transform-origin"),arrowOffset:hh("--popper-arrow-offset")},yh={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"},gh={scroll:!0,resize:!0};function bh(e){let t;return t="object"==typeof e?{enabled:!0,options:{...gh,...e}}:{enabled:e,options:gh},t}var Eh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},xh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{wh(e)},effect:({state:e})=>()=>{wh(e)}},wh=e=>{e.elements.popper.style.setProperty(vh.transformOrigin.var,yh[e.placement])},kh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Sh(e)}},Sh=e=>{var t;if(!e.placement)return;const n=_h(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:vh.arrowSize.varRef,height:vh.arrowSize.varRef,zIndex:-1});const t={[vh.arrowSizeHalf.var]:`calc(${vh.arrowSize.varRef} / 2)`,[vh.arrowOffset.var]:`calc(${vh.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},_h=e=>e.startsWith("top")?{property:"bottom",value:vh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:vh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:vh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:vh.arrowOffset.varRef}:void 0,Ch={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Oh(e)},effect:({state:e})=>()=>{Oh(e)}},Oh=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");var n;t&&Object.assign(t.style,{transform:"rotate(45deg)",background:vh.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(n=e.placement,n.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})},Nh={"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"}},Ah={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Rh(e){const{size:t,shadowColor:n,bg:r,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Ih(e,t){var n;const r=e.target;return!(e.button>0||r&&!Th(r).contains(r)||(null==(n=t.current)?void 0:n.contains(r)))}function Th(e){return(null==e?void 0:e.ownerDocument)??document}var Lh=(...e)=>e.filter(Boolean).join(" ");function Ph(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function Mh(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}var[Dh,jh,Vh,Bh]=lo(),[Fh,zh]=Qr({strict:!1,name:"MenuContext"});function $h(e){return(null==e?void 0:e.ownerDocument)??document}function Uh(e){return $h(e).activeElement===e}function Wh(e){var t,n;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(n=e)&&n instanceof(n.ownerDocument.defaultView??window).HTMLElement&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function Hh(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:a,isDisabled:i,isFocusable:s,closeOnSelect:l,type:c,...u}=e,d=zh(),{setFocusedIndex:p,focusedIndex:f,closeOnSelect:m,onClose:h,menuRef:v,isOpen:y,menuId:g}=d,b=z.useRef(null),E=`${g}-menuitem-${z.useId()}`,{index:x,register:w}=Bh({disabled:i&&!s}),k=z.useCallback(e=>{null==n||n(e),i||p(x)},[p,x,i,n]),S=z.useCallback(e=>{null==r||r(e),b.current&&!Uh(b.current)&&k(e)},[k,r]),_=z.useCallback(e=>{null==o||o(e),i||p(-1)},[p,i,o]),C=z.useCallback(e=>{null==a||a(e),Wh(e.currentTarget)&&(l??m)&&h()},[h,a,m,l]),O=x===f,N=i&&!s;Mp(()=>{y&&(O&&!N&&b.current?requestAnimationFrame(()=>{var e;null==(e=b.current)||e.focus()}):v.current&&!Uh(v.current)&&v.current.focus())},[O,N,v,y]);const A=function(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:p,onMouseLeave:f,...m}=e,[h,v]=z.useState(!0),[y,g]=z.useState(!1),b=function(){const e=z.useRef(/* @__PURE__ */new Map),t=e.current,n=z.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=z.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return z.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=h?d:d||0,x=n&&!r,w=z.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),k=z.useCallback(e=>{y&&Jf(e)&&(e.preventDefault(),e.stopPropagation(),g(!1),b.remove(document,"keyup",k,!1))},[y,b]),S=z.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!Jf(e.nativeEvent)||h)return;const t=o&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),g(!0)),t&&(e.preventDefault(),e.currentTarget.click()),b.add(document,"keyup",k,!1)},[n,h,c,o,a,b,k]),_=z.useCallback(e=>{null==u||u(e),n||e.defaultPrevented||e.metaKey||Jf(e.nativeEvent)&&!h&&a&&" "===e.key&&(e.preventDefault(),g(!1),e.currentTarget.click())},[a,h,n,u]),C=z.useCallback(e=>{0===e.button&&(g(!1),b.remove(document,"mouseup",C,!1))},[b]),O=z.useCallback(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();h||g(!0),e.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",C,!1),null==i||i(e)}},[n,h,i,b,C]),N=z.useCallback(e=>{0===e.button&&(h||g(!1),null==s||s(e))},[s,h]),A=z.useCallback(e=>{n?e.preventDefault():null==p||p(e)},[n,p]),R=z.useCallback(e=>{y&&(e.preventDefault(),g(!1)),null==f||f(e)},[y,f]),I=eo(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return h?{...m,ref:I,type:"button","aria-disabled":x?void 0:n,disabled:x,onClick:w,onMouseDown:i,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:p,onMouseLeave:f}:{...m,ref:I,role:"button","data-active":(T=y,T?"":void 0),"aria-disabled":n?"true":void 0,tabIndex:x?void 0:E,onClick:w,onMouseDown:O,onMouseUp:N,onKeyUp:_,onKeyDown:S,onMouseOver:A,onMouseLeave:R};var T}({onClick:C,onMouseEnter:k,onMouseMove:S,onMouseLeave:_,ref:eo(w,b,t),isDisabled:i,isFocusable:s});return{...u,...A,type:c??A.type,id:E,role:"menuitem",tabIndex:O?0:-1}}var[qh,Yh]=Qr({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),Zh=e=>{const{children:t}=e,n=Kr("Menu",e),r=ht(e),{direction:o}=Ur(),{descendants:a,...i}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:a,isOpen:i,defaultIsOpen:s,onClose:l,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:f=!1,...m}=e,h=z.useRef(null),v=z.useRef(null),y=Vh(),g=z.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!1})})},[]),b=z.useCallback(()=>{const e=setTimeout(()=>{const e=y.firstEnabled();e&&N(e.index)});L.current.add(e)},[y]),E=z.useCallback(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&N(e.index)});L.current.add(e)},[y]),x=z.useCallback(()=>{null==c||c(),o?b():g()},[o,b,g,c]),{isOpen:w,onOpen:k,onClose:S,onToggle:_}=function(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=mo(n),i=mo(t),[s,l]=z.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=z.useId(),p=o??`disclosure-${d}`,f=z.useCallback(()=>{u||l(!1),null==i||i()},[u,i]),m=z.useCallback(()=>{u||l(!0),null==a||a()},[u,a]),h=z.useCallback(()=>{c?f():m()},[c,m,f]);return{isOpen:c,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),h()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}({isOpen:i,defaultIsOpen:s,onClose:l,onOpen:x});!function(e){const{ref:t,handler:n,enabled:r=!0}=e,o=mo(n),a=z.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;z.useEffect(()=>{if(!r)return;const e=e=>{Ih(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&Ih(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Ih(e,t)&&(a.isPointerDown=!1,o(e))},l=Th(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,a,r])}({enabled:w&&r,ref:h,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||S()}});const C=function(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:p,direction:f="ltr"}=e,m=z.useRef(null),h=z.useRef(null),v=z.useRef(null),y=function(e,t="ltr"){var n;const r=(null==(n=Nh[e])?void 0:n[t])||e;return"ltr"===t?r:Ah[e]??r}(r,f),g=z.useRef(()=>{}),b=z.useCallback(()=>{var e;t&&m.current&&h.current&&(null==(e=g.current)||e.call(g),v.current=mh(m.current,h.current,{placement:y,modifiers:[Ch,kh,xh,{...Eh,enabled:!!p},{name:"eventListeners",...bh(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...n??[]],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)},[y,t,n,p,i,a,s,l,c,d,u,o]);z.useEffect(()=>()=>{var e;m.current||h.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const E=z.useCallback(e=>{m.current=e,b()},[b]),x=z.useCallback((e={},t=null)=>({...e,ref:eo(E,t)}),[E]),w=z.useCallback(e=>{h.current=e,b()},[b]),k=z.useCallback((e={},t=null)=>({...e,ref:eo(w,t),style:{...e.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,p]),S=z.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:a,...i}=e;return{...i,ref:t,"data-popper-arrow":"",style:Rh(e)}},[]),_=z.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:vh.transformOrigin.varRef,referenceRef:E,popperRef:w,getPopperProps:k,getArrowProps:S,getArrowInnerProps:_,getReferenceProps:x}}({...m,enabled:w||f,placement:u,direction:p}),[O,N]=z.useState(-1);Mp(()=>{w||N(-1)},[w]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,a=n&&!r;Mp(()=>{if(!a)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return tm(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&em(r)&&om(r))||(e=>nm(e)&&-1===e.tabIndex)(r)));var r}(e))return;const t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(h,{focusRef:v,visible:w,shouldFocus:!0});const A=function(e){const{isOpen:t,ref:n}=e,[r,o]=z.useState(t),[a,i]=z.useState(!1);return z.useEffect(()=>{a||(o(t),i(!0))},[t,a,r]),yf(()=>n.current,"animationend",()=>{o(t)}),{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t;return(null==(t=tm(e))?void 0:t.defaultView)??window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:w,ref:h}),[R,I]=function(e,...t){const n=z.useId(),r=e||n;return z.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(t,"menu-button","menu-list"),T=z.useCallback(()=>{k(),g()},[k,g]),L=z.useRef(/* @__PURE__ */new Set([]));!function(e,t=[]){z.useEffect(()=>()=>e(),t)}(()=>{L.current.forEach(e=>clearTimeout(e)),L.current.clear()});const P=z.useCallback(()=>{k(),b()},[b,k]),M=z.useCallback(()=>{k(),E()},[k,E]),D=z.useCallback(()=>{var e,t;const n=$h(h.current),r=null==(e=h.current)?void 0:e.contains(n.activeElement);if(!w||r)return;const o=null==(t=y.item(O))?void 0:t.node;null==o||o.focus()},[w,O,y]);return{openAndFocusMenu:T,openAndFocusFirstItem:P,openAndFocusLastItem:M,onTransitionEnd:D,unstable__animationState:A,descendants:y,popper:C,buttonId:R,menuId:I,forceUpdate:C.forceUpdate,orientation:"vertical",isOpen:w,onToggle:_,onOpen:k,onClose:S,menuRef:h,buttonRef:v,focusedIndex:O,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:N,isLazy:a,lazyBehavior:d}}({...r,direction:o}),s=z.useMemo(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:u}=s;/* @__PURE__ */
|
62
|
-
return z.createElement(
|
63
|
-
return z.createElement(
|
64
|
-
return z.createElement(
|
65
|
-
return z.createElement(
|
66
|
-
return z.createElement(
|
67
|
-
return z.createElement(
|
68
|
-
return z.createElement(
|
69
|
-
return z.createElement(
|
70
|
-
return z.createElement(ev,{
|
71
|
-
return z.createElement(
|
72
|
-
return z.createElement(
|
73
|
-
return z.createElement(
|
74
|
-
return z.createElement(
|
75
|
-
return z.createElement(
|
76
|
-
return z.createElement(
|
77
|
-
return z.createElement(
|
78
|
-
return z.createElement(
|
79
|
-
return z.createElement(
|
80
|
-
return z.createElement(
|
81
|
-
return z.createElement(
|
82
|
-
return z.createElement(
|
83
|
-
return z.createElement(
|
84
|
-
return z.createElement(Jv,{...n,className:"chakra-select__icon-wrapper"},z.isValidElement(t)?r:null)};Qv.displayName="SelectIcon";var ey=(...e)=>e.filter(Boolean).join(" "),ty=e=>e?"":void 0,ny=Zr(function(e,t){const n=Kr("Switch",e),{spacing:r="0.5rem",children:o,...a}=ht(e),{state:i,getInputProps:s,getCheckboxProps:l,getRootProps:c,getLabelProps:u}=af(a),d=z.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=z.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),f=z.useMemo(()=>({userSelect:"none",marginStart:r,...n.label}),[r,n.label]);/* @__PURE__ */
|
85
|
-
return z.createElement(Jr.label,{...c(),className:ey("chakra-switch",e.className),__css:d},/* @__PURE__ */z.createElement("input",{className:"chakra-switch__input",...s({},t)}),/* @__PURE__ */z.createElement(Jr.span,{...l(),className:"chakra-switch__track",__css:p},/* @__PURE__ */z.createElement(Jr.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":ty(i.isChecked),"data-hover":ty(i.isHovered)})),o&&/* @__PURE__ */z.createElement(Jr.span,{className:"chakra-switch__label",...u(),__css:f},o))});ny.displayName="Switch";var ry=(...e)=>e.filter(Boolean).join(" "),oy=["h","minH","height","minHeight"],ay=Zr((e,t)=>{const n=Xr("Textarea",e),{className:r,rows:o,...a}=ht(e),i=Np(a),s=o?function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(n,oy):n;/* @__PURE__ */
|
86
|
-
return z.createElement(Jr.textarea,{ref:t,rows:o,...i,className:ry("chakra-textarea",r),__css:s})});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)}ay.displayName="Textarea";var sy=["hideStepper","incrementIcon","decrementIcon"],ly=Zr(function(e,t){var n=e.hideStepper,r=e.incrementIcon,o=e.decrementIcon,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,sy);return z.createElement(bv,iy({},a,{ref:t}),/*#__PURE__*/z.createElement(xv,null),!n&&/*#__PURE__*/z.createElement(Ev,null,/*#__PURE__*/z.createElement(Sv,{children:r}),/*#__PURE__*/z.createElement(kv,{children:o})))});ly.defaultProps={hideStepper:!1},t.__DEV__&&(ly.displayName="NumberInput"),fo({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"}),fo({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"}),fo({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"}),fo({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"}),fo({displayName:"SunIcon",path:/* @__PURE__ */z.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/* @__PURE__ */z.createElement("circle",{cx:"12",cy:"12",r:"5"}),/* @__PURE__ */z.createElement("path",{d:"M12 1v2"}),/* @__PURE__ */z.createElement("path",{d:"M12 21v2"}),/* @__PURE__ */z.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/* @__PURE__ */z.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/* @__PURE__ */z.createElement("path",{d:"M1 12h2"}),/* @__PURE__ */z.createElement("path",{d:"M21 12h2"}),/* @__PURE__ */z.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/* @__PURE__ */z.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var cy=fo({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"});fo({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/* @__PURE__ */z.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"})}),fo({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"}),fo({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"}),fo({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"}),fo({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 uy=fo({displayName:"ViewIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),dy=fo({displayName:"ViewOffIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))});fo({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"}),fo({displayName:"DeleteIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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"}))}),fo({displayName:"RepeatIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({displayName:"RepeatClockIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({displayName:"EditIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.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__ */z.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),fo({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),fo({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var py=fo({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});fo({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),fo({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),fo({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),fo({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),fo({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"}),fo({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),fo({displayName:"ExternalLinkIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/* @__PURE__ */z.createElement("path",{d:"M15 3h6v6"}),/* @__PURE__ */z.createElement("path",{d:"M10 14L21 3"}))}),fo({displayName:"LinkIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({displayName:"PlusSquareIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/* @__PURE__ */z.createElement("path",{d:"M12 8v8"}),/* @__PURE__ */z.createElement("path",{d:"M8 12h8"}))}),fo({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"}),fo({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"}),fo({displayName:"TimeIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({displayName:"ArrowRightIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({displayName:"ArrowLeftIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({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"}),fo({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"}),fo({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"}),fo({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"}),fo({displayName:"EmailIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),fo({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"}),fo({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"}),fo({displayName:"SpinnerIcon",path:/* @__PURE__ */z.createElement(z.Fragment,null,/* @__PURE__ */z.createElement("defs",null,/* @__PURE__ */z.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/* @__PURE__ */z.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/* @__PURE__ */z.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/* @__PURE__ */z.createElement("g",{transform:"translate(2)",fill:"none"},/* @__PURE__ */z.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/* @__PURE__ */z.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/* @__PURE__ */z.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),fo({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"}),fo({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/* @__PURE__ */z.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"})}),fo({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"}),fo({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"}),fo({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"}),fo({displayName:"InfoOutlineIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/* @__PURE__ */z.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/* @__PURE__ */z.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/* @__PURE__ */z.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),fo({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"}),fo({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"}),fo({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"}),fo({displayName:"QuestionOutlineIcon",path:/* @__PURE__ */z.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */z.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__ */z.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__ */z.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),fo({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"}),fo({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 fy=fo({viewBox:"0 0 14 14",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),my=fo({displayName:"MinusIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function hy(){return hy=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},hy.apply(this,arguments)}fo({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 vy=["label","children"],yy=Zr(function(e,t){var n=e.label,r=e.children,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,vy);return z.createElement(hp,hy({ref:t},o),r||n)});function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gy.apply(this,arguments)}t.__DEV__&&(yy.displayName="Button");var by=Zr(function(e,t){/*#__PURE__*/return z.createElement(Tf,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/z.createElement(yy,gy({ref:t,height:"auto"},e)))});function Ey(){return Ey=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},Ey.apply(this,arguments)}by.id="InputRightElement",t.__DEV__&&(by.displayName="InputRightButton");var xy=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],wy=Zr(function(e,t){var n,r=e.viewIcon,o=e.viewOffIcon,a=e.autoComplete,i=e.w,s=e.width,l=e.size,c=e.variant,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,xy),d=z.useState(!1),p=d[0],f=d[1],m=p?"Hide password":"Show password";return n=p?r||/*#__PURE__*/z.createElement(uy,null):o||/*#__PURE__*/z.createElement(dy,null),/*#__PURE__*/z.createElement(kf,{width:i||s,size:l,variant:c},/*#__PURE__*/z.createElement(Ef,Ey({},u,{ref:t,type:p?"text":"password",autoComplete:p?"off":a})),/*#__PURE__*/z.createElement(by,{onClick:function(){return f(!p)},"aria-label":m,variant:"ghost"},n))});function ky(){return ky=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},ky.apply(this,arguments)}function Sy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(wy.displayName="PasswordInput");var _y=["options","spacing","direction"],Cy=["onBlur","onChange"],Oy=["value","label"],Ny=Zr(function(e,t){var n=e.options,r=e.spacing,o=e.direction,a=Sy(e,_y),i=a.onBlur,s=a.onChange,l=Sy(a,Cy);return z.createElement(Wv,ky({onChange:s},l),/*#__PURE__*/z.createElement(Yf,{spacing:r,direction:o},n.map(function(e,n){var r=e.value,o=e.label,a=Sy(e,Oy);return z.createElement(Yv,ky({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function Ay(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 Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}function Iy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(Ny.displayName="RadioInput");var Ty=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Ly=["value","label"],Py=Zr(function(e,t){var n=Kr("Input",e),r=n.field._focusVisible,o=Ry({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return z.createElement(Xh,Ry({as:hp},e,{ref:t,sx:o}))});t.__DEV__&&(Py.displayName="SelectButton");var My=Zr(function(e,n){var r=e.name,o=e.options,a=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/z.createElement(py,null):p,m=e.multiple,h=e.size,v=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=ht(Iy(e,Ty)),x=z.useState(l||s),w=x[0],k=x[1],S=Np({name:r}),_={isDisabled:u,leftIcon:d,rightIcon:f,size:h,variant:v},C=z.useCallback(function(e){if(!o)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 Ay(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)?Ay(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.")}(o);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[o]),O=w?(Array.isArray(w)?w:[w]).map(C):[];return z.createElement(Zh,Ry({},E,{closeOnSelect:!m}),/*#__PURE__*/z.createElement(Jr.div,{className:t.cx("saas-select")},/*#__PURE__*/z.createElement(Py,Ry({ref:n},_),b(O)||c),/*#__PURE__*/z.createElement(av,Ry({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/z.createElement(iv,{defaultValue:s||l,onChange:function(e){k(e),null==i||i(e)},type:m?"checkbox":"radio"},o?o.map(function(e,t){var n=e.value,r=e.label,o=Iy(e,Ly);return z.createElement(nv,Ry({key:t,value:n},o),r||n)}):a)),/*#__PURE__*/z.createElement(Jr.input,Ry({},S,{name:r,type:"hidden",value:w,className:"saas-select__input"}))))});t.__DEV__&&(My.displayName="Select");var Dy=["options","children"],jy=Zr(function(e,t){var n=e.options,r=e.children,o=Iy(e,Dy);return z.createElement(Xv,Ry({ref:t},o),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return z.createElement("option",{key:t,value:t},e.label||t)})))});function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vy.apply(this,arguments)}function By(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(jy.displayName="NativeSelect");var Fy=Nr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),zy=Fy[0],$y=Fy[1];function Uy(e){var t=e.step,n=e.onChange,r=z.useState(-1),o=r[0],a=r[1],i=z.useRef([]),s=z.useState(Date.now())[1],l=z.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&&a(t)};return z.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?a(t):-1===o&&a(0)},[t]),z.useEffect(function(){null==n||n(o)},[o,n]),{stepsRef:i,activeStep:i.current[o],activeIndex:o,isFirstStep:0===o,isLastStep:o===i.current.length-1,isCompleted:o>=i.current.length,setIndex:a,setStep:c,nextStep:function(){a(o+1)},prevStep:function(){a(o-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var Wy=["orientation","children"],Hy=["children","orientation","step","onChange"],qy=["children","orientation","stepComponent"],Yy=["children","isOpen"],Zy=["icon","isActive","isCompleted","className"],Gy=["name","title","icon","isActive","isCompleted"],Xy=["isActive"],Ky=Nr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),Jy=Ky[0],Qy=Ky[1],eg=Zr(function(e,t){var n=e.orientation,r=e.children,o=By(e,Wy);return z.createElement(tg,Vy({ref:t,orientation:n},o),/*#__PURE__*/z.createElement(ng,{orientation:n},r))});t.__DEV__&&(eg.displayName="Stepper");var tg=Zr(function(e,n){var r=e.children,o=e.orientation,a=void 0===o?"horizontal":o,i=By(e,Hy),s=Kr("Stepper",Vy({},i,{orientation:a})),l=ht(i),c=Uy(e),u=Vy({display:"flex",flexDirection:"column"},s.container);return z.createElement(Jy,{value:s},/*#__PURE__*/z.createElement(zy,{value:c},/*#__PURE__*/z.createElement(Jr.div,Vy({ref:n,__css:u},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(tg.displayName="StepperContainer");var ng=function(e){var n,r,o=e.children,a=e.orientation,i=void 0===a?"horizontal":a,s=e.stepComponent,l=By(e,qy),c=Qy(),u=$y().activeIndex,d=Vy({display:"flex",flexDirection:"row",alignItems:"center"},c.steps),p="vertical"===i,f=s||ag,m=function(e,t){return z.Children.toArray(e).filter(function(e){return Array.isArray(t)?t.some(function(t){return t===e.type}):e.type===t})}(o,f),h=m.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/z.createElement(f,Vy({key:n},t.props,{icon:t.props.icon||n+1,isActive:u===n,isCompleted:t.props.isCompleted||u>n}))),p&&e.push(/*#__PURE__*/z.createElement(rg,{key:"content-"+n,isOpen:u===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/z.createElement(ig,{key:"separator-"+n,isActive:n<u})),e},[]),v=function(e,t){return z.Children.toArray(e).find(function(e){return e.type===t})}(o,lg),y=u>=m.length?v:p?null:/*#__PURE__*/z.createElement(rg,null,null==(n=m[u])||null==(r=n.props)?void 0:r.children);return z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(Jr.div,Vy({__css:d},l,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&(ng.displayName="StepperSteps");var rg=function(e){var n=e.children,r=e.isOpen,o=void 0===r||r,a=By(e,Yy),i=Qy();return z.createElement(Jr.div,Vy({__css:i.content},a,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/z.createElement(Yd,{in:o},n))};t.__DEV__&&(rg.displayName="StepperContent");var og=function(e){var n,r=e.icon,o=e.isCompleted,a=e.className,i=By(e,Zy),s=Vy({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Qy().icon);return n=o?/*#__PURE__*/z.createElement(po,{as:fy}):r,/*#__PURE__*/z.createElement(Jr.div,Vy({__css:s},i,{className:t.cx("saas-stepper__icon",a)}),n)};t.__DEV__&&(og.displayName="StepperIcon");var ag=function(e){var n=e.title,r=e.icon,o=e.isActive,a=e.isCompleted,i=By(e,Gy),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,o=$y(),a=o.registerStep,i=o.unregisterStep,s=o.activeStep;return z.useEffect(function(){if(t)return a(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=Vy({display:"flex",alignItems:"center",flexDirection:"row"},Qy().step);return z.createElement(Jr.div,Vy({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/z.createElement(og,{icon:r,isActive:o,isCompleted:a}),n&&/*#__PURE__*/z.createElement(sg,null,n))};t.__DEV__&&(ag.displayName="StepperStep");var ig=function(e){var n=e.isActive,r=By(e,Xy),o=Vy({flex:1,mx:2},Qy().separator);return z.createElement(Jr.div,Vy({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:o}))};t.__DEV__&&(ig.displayName="StepperSeparator");var sg=function(e){var n=Qy();return z.createElement(Jr.p,Vy({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(sg.displayName="StepperStepTitle");var lg=function(e){var n=Qy();return z.createElement(Jr.div,Vy({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function cg(){return cg=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},cg.apply(this,arguments)}function ug(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(lg.displayName="StepperCompleted");var dg=["name","label","help","hideLabel","children"],pg=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],fg=["name","rules"],mg=["ref"],hg=["name","rules"],vg=["ref"],yg=["type","leftAddon","rightAddon","size"],gg=["type"],bg=["label","type"],Eg=["pinLength","pinType","spacing"],xg={},wg=function(e){var t=e.name,r=e.label,o=e.help,a=e.hideLabel,i=e.children,s=ug(e,dg),l=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return z.createElement(Cp,cg({},s,{isInvalid:!!l}),r&&!a?/*#__PURE__*/z.createElement(Lp,null,r):null,/*#__PURE__*/z.createElement(Mf,null,i,!o||null!=l&&l.message?null:/*#__PURE__*/z.createElement(Op,null,o),(null==l?void 0:l.message)&&/*#__PURE__*/z.createElement(Tp,null,null==l?void 0:l.message)))};t.__DEV__&&(wg.displayName="BaseField");var kg=z.forwardRef(function(e,t){var n=e.type;return z.createElement(xg[void 0===n?"text":n]||xg.text,cg({ref:t},e))}),Sg=function(e,r,o){var a;a=null!=o&&o.isControlled?function(e){return Zr(function(r,o){var a=r.name,i=r.rules,s=ug(r,fg),l=n.useFormContext();return z.createElement(n.Controller,{name:a,control:l.control,rules:i,render:function(n){var r=n.field.ref,a=ug(n.field,mg);return z.createElement(e,cg({},a,s,{onChange:t.callAllHandlers(s.onChange,a.onChange),onBlur:t.callAllHandlers(s.onBlur,a.onBlur),ref:gf(o,r)}))}})})}(r):function(e){return Zr(function(r,o){var a=r.name,i=r.rules,s=ug(r,hg),l=(0,n.useFormContext().register)(a,i),c=l.ref,u=ug(l,vg);return z.createElement(e,cg({},u,s,{onChange:t.callAllHandlers(s.onChange,u.onChange),onBlur:t.callAllHandlers(s.onBlur,u.onBlur),ref:gf(o,c)}))})}(r);var i=function(e,t){var n=t.displayName,r=t.hideLabel,o=t.BaseField,a=Zr(function(t,n){var a=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=ug(t,pg),h=cg({required:p},f);return z.createElement(o,{id:a,name:i,label:s,help:l,hideLabel:r,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p},/*#__PURE__*/z.createElement(e,cg({ref:n,id:a,name:i,label:r?s:void 0,rules:h},m)))});return a.displayName=n,a}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==o?void 0:o.hideLabel,BaseField:(null==o?void 0:o.BaseField)||wg});return xg[e]=i,i};Sg("text",Zr(function(e,t){var n=e.type,r=void 0===n?"text":n,o=e.leftAddon,a=e.rightAddon,i=e.size,s=ug(e,yg),l=/*#__PURE__*/z.createElement(Ef,cg({type:r,size:i},s,{ref:t}));return o||a?/*#__PURE__*/z.createElement(kf,{size:i},o,l,a):l})),Sg("number",ly,{isControlled:!0}),Sg("password",Zr(function(e,t){/*#__PURE__*/return z.createElement(wy,cg({ref:t},e))})),Sg("textarea",ay),Sg("switch",Zr(function(e,t){var n=ug(e,gg);return z.createElement(ny,cg({},n,{ref:t}))}),{isControlled:!0}),Sg("select",My,{isControlled:!0}),Sg("checkbox",Zr(function(e,t){var n=e.label,r=ug(e,bg);return z.createElement(uf,cg({ref:t},r),n)}),{hideLabel:!0}),Sg("radio",Ny,{isControlled:!0}),Sg("native-select",jy,{isControlled:!0}),Sg("pin",Zr(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,o=e.pinType,a=e.spacing,i=ug(e,Eg),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/z.createElement(Dv,{key:l,ref:t}));return z.createElement(Zf,{spacing:a},/*#__PURE__*/z.createElement(Mv,cg({},i,{type:o}),s))}),{isControlled:!0});var _g=["items","label","title"],Cg=function(e){return e&&Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n.label,o=n.title;return cg({},ug(n,_g),{name:t,label:r||o})})},Og=function(e){return{getFields:function(){return Cg(e)},getNestedFields:function(n){var r,o=t.get(e,n);return o?"object"===(null==(r=o.items)?void 0:r.type)?Cg(o.items.properties):"object"===o.type?Cg(o.properties):[o.items]:[]}}},Ng=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],Ag=Zr(function(e,r){var o=e.mode,a=void 0===o?"all":o,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,h=e.onChange,v=e.onSubmit,y=e.onError,g=e.formRef,b=e.children,E=ug(e,Ng),x={mode:a,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==Ag.getResolver?void 0:Ag.getResolver(f));var w=n.useForm(x),k=w.handleSubmit;return z.useImperativeHandle(r,function(){return w},[r,w]),z.useEffect(function(){var e;return h&&(e=w.watch(h)),function(){var t;return null==(t=e)?void 0:t.unsubscribe()}},[w,h]),/*#__PURE__*/z.createElement(n.FormProvider,w,/*#__PURE__*/z.createElement(Jr.form,cg({ref:g,onSubmit:k(v,y)},E,{className:t.cx("saas-form",e.className)}),t.runIfFn(b,w)))});Ag.getFieldResolver=Og,t.__DEV__&&(Ag.displayName="Form");var Rg=["children"],Ig=function(e){/*#__PURE__*/return z.createElement(Jr.div,null,e.children)};t.__DEV__&&(Ig.displayName="FormLayoutItem");var Tg=function(e){var n,r,o,a=e.children,i=ug(e,Rg),s=cg({},null!=(n=null==(r=Ur().components)||null==(o=r.FormLayout)?void 0:o.defaultProps)?n:{spacing:4},i);return z.createElement(Wf,cg({},s,{className:t.cx("saas-form__layout",i.className)}),z.Children.map(a,function(e){return z.isValidElement(e)?/*#__PURE__*/z.createElement(Ig,null,e):e}))};t.__DEV__&&(Tg.displayName="FormLayout");var Lg=function(e,t){return z.Children.map(t,function(t){return z.isValidElement(t)&&t.props.name?z.cloneElement(t,cg({},t.props,{name:e+"."+t.props.name})):t})},Pg=Nr({name:"ArrayFieldContext"}),Mg=Pg[0],Dg=Pg[1],jg=Nr({name:"ArrayFieldRowContext"}),Vg=jg[0],Bg=jg[1],Fg=["children","index"],zg=["children"],$g=["children"],Ug=["name","defaultValue","keyName","min","max","children"],Wg=function(e){var t=e.children,n=e.index,r=ug(e,Fg);return z.createElement(qg,{index:n},/*#__PURE__*/z.createElement(Hg,r,t),/*#__PURE__*/z.createElement(Yg,null))};t.__DEV__&&(Wg.displayName="ArrayFieldRow");var Hg=function(e){var t=e.children,n=ug(e,zg),r=Bg().name;return z.createElement(Tg,cg({flex:"1",mr:"2"},n),Lg(r,t))};t.__DEV__&&(Hg.displayName="ArrayFieldRowFields");var qg=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,o=Dg(),a=o.name,i=o.remove,s=o.fields;return z.useEffect(function(){r(a)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:a+"."+t,remove:z.useCallback(function(){r(a),i(t)},[t])}}({index:e.index});return z.createElement(Vg,{value:r},/*#__PURE__*/z.createElement(Jr.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(qg.displayName="ArrayFieldRowContainer");var Yg=function(e){/*#__PURE__*/return z.createElement(yp,cg({icon:/*#__PURE__*/z.createElement(my,null),"aria-label":"Remove row"},function(){var e=Bg(),t=e.isFirst,n=e.remove,r=Dg(),o=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(o&&r.fields.length<=o)}}(),e))};t.__DEV__&&(Yg.displayName="ArrayFieldRemoveButton");var Zg=function(e){/*#__PURE__*/return z.createElement(yp,cg({icon:/*#__PURE__*/z.createElement(cy,null),"aria-label":"Add row",float:"right"},function(){var e=Dg(),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__&&(Zg.displayName="ArrayFieldAddButton");var Gg=Zr(function(e,t){var n=e.children,r=ug(e,$g);return z.createElement(Kg,cg({ref:t},r),/*#__PURE__*/z.createElement(Xg,null,function(e){/*#__PURE__*/return z.createElement(z.Fragment,null,e.map(function(e,t){/*#__PURE__*/return z.createElement(Wg,{key:e.id,index:t},n)}))}),/*#__PURE__*/z.createElement(Zg,null))});t.__DEV__&&(Gg.displayName="ArrayField");var Xg=function(e){return(0,e.children)(Dg().fields)};t.__DEV__&&(Xg.displayName="ArrayFieldRows");var Kg=z.forwardRef(function(e,t){var r=e.name,o=e.defaultValue,a=e.keyName,i=e.min,s=e.max,l=e.children,c=ug(e,Ug),u=function(e){var t=e.name,r=e.defaultValue,o=void 0===r?{}:r,a=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return cg({},n.useFieldArray({control:l.control,name:t,keyName:a}),{name:t,defaultValue:o,min:i,max:s})}({name:r,defaultValue:o,keyName:a,min:i,max:s});return z.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/z.createElement(Mg,{value:u},/*#__PURE__*/z.createElement(wg,cg({name:r},c),l))});t.__DEV__&&(Kg.displayName="ArrayFieldContainer");var Jg=["name","label","hideLabel","children","columns","spacing"],Qg=function(e){var t=Xr("FormLegend");return z.createElement(Lp,cg({as:"legend",sx:t},e))},eb=function(e){var t=e.name,n=e.label,r=e.hideLabel,o=e.children,a=e.columns,i=e.spacing,s=ug(e,Jg);return z.createElement(Cp,cg({name:t,as:"fieldset"},s),/*#__PURE__*/z.createElement(Qg,{display:r?"none":"block"},n),/*#__PURE__*/z.createElement(Tg,{columns:a,gridGap:i},Lg(t,o)))};t.__DEV__&&(eb.displayName="ObjectField");var tb=["name","type"],nb=["schema","fieldResolver","focusFirstField"],rb=["name","type","defaultValue"],ob=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,o=ug(e,tb);return z.createElement(kg,cg({key:n||t,name:n,type:r},o))})},ab=function(e){var t=e.schema,r=e.fieldResolver,o=e.focusFirstField,a=ug(e,nb),i=z.useMemo(function(){return r||Ag.getFieldResolver(t)},[t,r]),s=z.useMemo(function(){return i.getFields()},[i]),l=n.useFormContext();return z.useEffect(function(){var e;o&&null!=(e=s[0])&&e.name&&l.setFocus(s[0].name)},[t,r,o]),/*#__PURE__*/z.createElement(Tg,a,s.map(function(e){var t=e.name,n=e.type,r=ug(e,rb);return"array"===n?/*#__PURE__*/z.createElement(Gg,cg({key:t,name:t},r),ob(i,t)):"object"===n?/*#__PURE__*/z.createElement(eb,cg({key:t,name:t},r),ob(i,t)):/*#__PURE__*/z.createElement(kg,cg({key:t,name:t,type:n},r))}))};t.__DEV__&&(ab.displayName="Fields");var ib=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],sb=z.forwardRef(function(e,t){var r=e.children,o=e.disableIfUntouched,a=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=ug(e,ib),c=n.useFormContext().formState;return z.createElement(yy,cg({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:o&&!c.isDirty||a&&!c.isValid||i}),r)});sb.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(sb.displayName="SubmitButton");var lb=["schema","submitLabel","fieldResolver","children"],cb=Zr(function(e,t){var n=e.schema,r=e.submitLabel,o=void 0===r?"Submit":r,a=e.fieldResolver,i=e.children,s=ug(e,lb);return z.createElement(Ag,cg({},s,{schema:n,ref:t}),/*#__PURE__*/z.createElement(Tg,null,/*#__PURE__*/z.createElement(ab,{schema:n,fieldResolver:a}),o&&/*#__PURE__*/z.createElement(sb,null,o),i))});t.__DEV__&&(cb.displayName="AutoForm");var ub=["onChange"],db=Nr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],pb=["children"],fb=["getFormProps"];z.forwardRef(function(e,n){var r=e.children,o=ug(e,pb),a=function(e){var t=Uy(ug(e,ub)),n=t.activeStep,r=t.isLastStep,o=t.nextStep,a=z.useState({}),i=a[0],s=a[1],l=z.useCallback(function(a){var s;return Promise.resolve(function(l,c){try{var d=function(){function l(e){return s?e:Promise.resolve(null==c.onSubmit?void 0:c.onSubmit(a,t)).then(function(){o()})}var c=i[n],d=function(){if(r)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(a)).then(function(){var e=(u(cg({},c,{isCompleted:!0})),void o());return s=1,e})}();return d&&d.then?d.then(l):l(d)}()}catch(e){return}return d&&d.then?d.then(void 0,function(){}):d}())},[i,n,r]),c=z.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=z.useCallback(function(e){s(function(t){var n;return cg({},t,((n={})[e.name]=e,n))})},[i]);return cg({getFormProps:c,updateStep:u,steps:i},t)}(e),i=a.getFormProps,s=ug(a,fb),l=z.useMemo(function(){return s},[s]);return z.createElement(zy,{value:l},/*#__PURE__*/z.createElement(db,{value:l},/*#__PURE__*/z.createElement(Ag,cg({ref:n},o,i()),t.runIfFn(r,a))))});var mb=function(e){return Og(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:mb(t),resolver:e.ajvResolver(t)}};
|
2
|
+
return z.forwardRef(function(t,n){var r=z.useContext(hr);return e(t,r,n)})},yr=/* #__PURE__ */z.createContext({});"production"!==process.env.NODE_ENV&&(yr.displayName="EmotionThemeContext");var gr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Un(t,n,r),pr(function(){return Wn(t,n,r)}),null};"production"!==process.env.NODE_ENV&&(/* #__PURE__ */vr(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=$n(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=ur(a,void 0,z.useContext(yr));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=ur([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var c={};for(var u in e)!mr.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__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(gr,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/z.createElement(o,c))}).displayName="EmotionCssPropInternal");var br=!1,Er=/* #__PURE__ */vr(function(e,t){"production"===process.env.NODE_ENV||br||!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?"),br=!0);var n=ur([e.styles],void 0,z.useContext(yr)),r=z.useRef();return fr(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),fr(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&Wn(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function xr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ur(t)}"production"!==process.env.NODE_ENV&&(Er.displayName="EmotionGlobal");var wr=function(){var e=xr.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_"}}},kr=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Sr(e,t,n){var r=[],o=$n(e,r,n);return r.length<2?n:o+t(r)}var _r=function(e){var t=e.cache,n=e.serializedArr;return pr(function(){for(var e=0;e<n.length;e++)Wn(t,n[e],!1)}),null},Cr=/* #__PURE__ */vr(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=ur(o,t.registered);return r.push(i),Un(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return Sr(t.registered,o,kr(r))},theme:z.useContext(yr)},i=e.children(a);return n=!0,/*#__PURE__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(_r,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Cr.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest&&"undefined"==typeof vi){var Or="undefined"!=typeof globalThis?globalThis:window,Nr="__EMOTION_REACT_"+"11.10.5".split(".")[0]+"__";Or[Nr]&&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."),Or[Nr]=!0}function Ar(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=z.createContext(void 0);return o.displayName=r,[o.Provider,function e(){var r;const a=z.useContext(o);if(!a&&t){const t=new Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return a},o]}var Rr=/^((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)-.*))$/,Ir=/* #__PURE__ */an(function(e){return Rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Tr=function(e){return"theme"!==e},Lr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ir:Tr},Pr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Mr="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",Dr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Un(t,n,r),pr(function(){return Wn(t,n,r)}),null},jr=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Pr(t,n,a),l=s||Lr(i),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(Mr),d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(Mr),d.push(u[f],u[0][f])}var m=vr(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=z.useContext(yr)}"string"==typeof e.className?a=$n(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=ur(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var h=c&&void 0===s?Lr(r):l,v={};for(var y in e)c&&"as"===y||h(y)&&(v[y]=e[y]);return v.className=a,v.ref=n,/*#__PURE__*/z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(Dr,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/z.createElement(r,v))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,gn({},n,r,{shouldForwardProp:Pr(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){jr[e]=jr(e)});var Vr="undefined"!=typeof Element,Br="function"==typeof Map,Fr="function"==typeof Set,zr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function $r(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!$r(e[r],t[r]))return!1;return!0}if(Br&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!$r(r.value[1],t.get(r.value[0])))return!1;return!0}if(Fr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(zr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Vr&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!$r(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Ur=function(e,t){try{return $r(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function Wr(){const e=z.useContext(yr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Ar({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var Hr=/* @__PURE__ */new Set([...ct,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),qr=/* @__PURE__ */new Set(["htmlWidth","htmlHeight","htmlSize"]);function Yr(e){return qr.has(e)||!Hr.has(e)}function Zr(e,n){const{baseStyle:r,...o}=n??{};o.shouldForwardProp||(o.shouldForwardProp=Yr);const a=(({baseStyle:e})=>n=>{const{theme:r,css:o,__css:a,sx:i,...s}=n,l=t.objectFilter(s,(e,t)=>dt(t)),c=t.runIfFn(e,n),u=Object.assign({},a,c,t.filterUndefined(l),i),d=(p=u,e=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i;const s=Z(e,r),l=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=Z(e[i],t);if(null==s)continue;if(s=Y(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(s)(r);let c={};for(let e in l){let u=Z(l[e],r);e in n&&(e=n[e]),pt(e,u)&&(u=ft(r,u));let d=t[e];if(!0===d&&(d={property:e}),Y(u)){c[e]=c[e]??{},c[e]=q({},c[e],o(u,!0));continue}let p=(null==(i=null==d?void 0:d.transform)?void 0:i.call(d,u,r,s))??u;p=(null==d?void 0:d.processResult)?o(p,!0):p;const f=Z(null==d?void 0:d.property,r);if(!a&&(null==d?void 0:d.static)){const e=Z(d.static,r);c=q({},c,e)}if(f&&Array.isArray(f))for(const e of f)c[e]=p;else f?"&"===f&&Y(p)?c=q({},c,p):c[f]=p:Y(p)?c=q({},c,p):c[e]=p}return c};return o}({theme:e,pseudos:ot,configs:it})(p))(n.theme);var p;return o?[d,o]:d})({baseStyle:r}),i=jr(e,o)(a);return z.forwardRef(function(e,t){const{colorMode:n,forced:r}=H();return z.createElement(i,{ref:t,"data-theme":r?n:void 0,...e})})}function Gr(e){return z.forwardRef(e)}function Xr(e,n={}){const{styleConfig:r,...o}=n,{theme:a,colorMode:i}={...H(),theme:Wr()},s=e?t.memoizedGet(a,`components.${e}`):void 0,l=r||s,c=t.mergeWith({theme:a,colorMode:i},(null==l?void 0:l.defaultProps)??{},t.filterUndefined(t.omit(o,["children"]))),u=z.useRef({});if(l){const e=(d=l,e=>{const{variant:t,size:n,theme:r}=e,o=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:Y(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let r=0;r<c;r++){const c=t.details[r],p=t.details[mt(l,r)],f=qe(c.minW,null==p?void 0:p._minW),m=Z(null==(a=e[n])?void 0:a[l[r]],o);m&&(d?null==(i=e.parts)||i.forEach(e=>{q(s,{[e]:u?m[e]:{[f]:m[e]}})}):d?s[f]=m:u?q(s,m):s[f]=m)}return s}}(r);return q({},Z(d.baseStyle??{},e),o(d,"sizes",n,e),o(d,"variants",t,e))}),t=e(c);Ur(u.current,t)||(u.current=t)}var d;return u.current}function Kr(e,t={}){return Xr(e,t)}function Jr(e,t={}){return Xr(e,t)}var Qr=function(){const e=/* @__PURE__ */new Map;return new Proxy(Zr,{apply:(e,t,n)=>Zr(...n),get:(t,n)=>(e.has(n)||e.set(n,Zr(n)),e.get(n))})}();function eo(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=z.createContext(void 0);return i.displayName=t,[i.Provider,function e(){var t;const s=z.useContext(i);if(!s&&n){const n=new Error(a??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},i]}function to(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function no(...e){return z.useMemo(()=>to(...e),e)}function ro(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function oo(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function ao(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var io="undefined"!=typeof window?z.useLayoutEffect:z.useEffect,[so,lo]=eo({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function co(){return[so,()=>lo(),()=>function(){const e=z.useRef(new class{descendants=/* @__PURE__ */new Map;register=e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=ro(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(0!==this.count())return this.values()[e]};enabledItem=e=>{if(0!==this.enabledCount())return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?(null==(t=this.descendants.get(e))?void 0:t.index)??-1:-1};enabledIndexOf=e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=oo(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=oo(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)};prev=(e,t=!0)=>{const n=ao(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=ao(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=ro(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}});return io(()=>()=>e.current.destroy()),e.current}(),e=>function(e){const t=lo(),[n,r]=z.useState(-1),o=z.useRef(null);io(()=>()=>{o.current&&t.unregister(o.current)},[]),io(()=>{if(!o.current)return;const e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||r(e)});const a=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:to(a,o)}}(e)]}var uo=(...e)=>e.filter(Boolean).join(" "),po={path:/* @__PURE__ */z.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */z.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__ */z.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__ */z.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},fo=Gr((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,u={ref:t,focusable:a,className:uo("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l}},d=r??po.viewBox;if(n&&"string"!=typeof n)/* @__PURE__ */
|
3
|
+
return z.createElement(Qr.svg,{as:n,...u,...c});const p=i??po.path;/* @__PURE__ */
|
4
|
+
return z.createElement(Qr.svg,{verticalAlign:"middle",viewBox:d,...u,...c},p)});function mo(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=z.Children.toArray(e.path),i=Gr((e,r)=>/* @__PURE__ */z.createElement(fo,{ref:r,viewBox:t,...o,...e},a.length?a:/* @__PURE__ */z.createElement("path",{fill:"currentColor",d:n})));return i.displayName=r,i}function ho(e,t=[]){const n=z.useRef(e);return z.useEffect(()=>{n.current=e}),z.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function vo(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=((e,t)=>e!==t)}=e,a=ho(r),i=ho(o),[s,l]=z.useState(n),c=void 0!==t,u=c?t:s,d=ho(e=>{const t="function"==typeof e?e(u):e;i(u,t)&&(c||l(t),a(t))},[c,a,u,i]);return[u,d]}fo.displayName="Icon";var yo=function(e,t){return yo=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])},yo(e,t)};function go(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}yo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)};function Eo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function xo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function wo(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ko="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",So=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},_o={measureLayout:So(["layout","layoutId","drag"]),animation:So(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:So(["exit"]),drag:So(["drag","dragControls"]),focus:So(["whileFocus"]),hover:So(["whileHover","onHoverStart","onHoverEnd"]),tap:So(["whileTap","onTap","onTapStart","onTapCancel"]),pan:So(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:So(["whileInView","onViewportEnter","onViewportLeave"])},Co=function(){},Oo=function(){};"production"!==process.env.NODE_ENV&&(Co=function(e,t){e||"undefined"==typeof console||console.warn(t)},Oo=function(e,t){if(!e)throw new Error(t)});var No=z.createContext({strict:!1}),Ao=Object.keys(_o),Ro=Ao.length,Io=z.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),To=z.createContext({}),Lo=z.createContext(null),Po="undefined"!=typeof document,Mo=Po?z.useLayoutEffect:z.useEffect,Do={current:null},jo=!1;function Vo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Bo(e){return Array.isArray(e)}function Fo(e){return"string"==typeof e||Bo(e)}function zo(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function $o(e,t,n){var r=e.getProps();return zo(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 Uo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Fo(e.initial)||Fo(e.animate)||Fo(e.whileHover)||Fo(e.whileDrag)||Fo(e.whileTap)||Fo(e.whileFocus)||Fo(e.exit)}function Wo(e){return Boolean(Uo(e)||e.variants)}function Ho(e){return Array.isArray(e)?e.join(" "):e}function qo(e){var t=z.useRef(null);return null===t.current&&(t.current=e()),t.current}var Yo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zo=1,Go=z.createContext({}),Xo=z.createContext({}),Ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return go(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}(z.Component);function Jo(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?_o.projectionNodeConstructor=e[t]:_o[t].Component=e[t])}(t),z.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=z.useContext(Go))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=bo(bo({},e),{layoutId:l});var c=z.useContext(Io),u=null,d=function(e){var t=function(e,t){if(Uo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Fo(n)?n:void 0,animate:Fo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,z.useContext(To)),n=t.initial,r=t.animate;return z.useMemo(function(){return{initial:n,animate:r}},[Ho(n),Ho(r)])}(e),p=c.isStatic?void 0:qo(function(){if(Yo.hasEverUpdated)return Zo++}),f=a(e,c.isStatic);return!c.isStatic&&Po&&(d.visualElement=function(e,t,n,r){var o,a,i=z.useContext(No),s=z.useContext(To).visualElement,l=z.useContext(Lo),c=(!jo&&function(){if(jo=!0,Po)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Do.current=e.matches};e.addListener(t),t()}else Do.current=!1}(),o=xo(z.useState(Do.current),1)[0],"never"!==(a=z.useContext(Io).reducedMotion)&&("always"===a||o)),u=z.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 Mo(function(){null==d||d.syncRender()}),z.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),Mo(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,f,bo(bo({},c),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=z.useContext(Xo);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Vo(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(p,e,d.visualElement,r||_o.projectionNodeConstructor),u=function(e,t,n){var r=[],o=z.useContext(No);if(!t)return null;"production"!==ko&&n&&o.strict&&Oo(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<Ro;a++){var i=Ao[a],s=_o[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(z.createElement(l,bo({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),z.createElement(Ko,{visualElement:d.visualElement,props:bo(bo({},c),e)},u,z.createElement(To.Provider,{value:d},o(i,e,p,function(e,t,n){return z.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Vo(n)&&(n.current=r))},[t])}(f,d.visualElement,s),f,c.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Qo=["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 ea(e){return"string"==typeof e&&!e.includes("-")&&!!(Qo.indexOf(e)>-1||/[A-Z]/.test(e))}var ta={},na=["","X","Y","Z"],ra=["transformPerspective","x","y","z"];function oa(e,t){return ra.indexOf(e)-ra.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return na.forEach(function(t){return ra.push(e+t)})});var aa=new Set(ra);function ia(e){return aa.has(e)}var sa=new Set(["originX","originY","originZ"]);function la(e){return sa.has(e)}function ca(e,t){var n=t.layout,r=t.layoutId;return ia(e)||la(e)||(n||void 0!==r)&&(!!ta[e]||"opacity"===e)}var ua=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},da={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function pa(e){return e.startsWith("--")}var fa=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const ma=(e,t)=>n=>Math.max(Math.min(n,t),e),ha=e=>e%1?Number(e.toFixed(5)):e,va=/(-)?([\d]*\.?[\d])+/g,ya=/(#[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,ga=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ba(e){return"string"==typeof e}const Ea={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},xa=Object.assign(Object.assign({},Ea),{transform:ma(0,1)}),wa=Object.assign(Object.assign({},Ea),{default:1}),ka=e=>({test:t=>ba(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Sa=ka("deg"),_a=ka("%"),Ca=ka("px"),Oa=ka("vh"),Na=ka("vw"),Aa=Object.assign(Object.assign({},_a),{parse:e=>_a.parse(e)/100,transform:e=>_a.transform(100*e)}),Ra=(e,t)=>n=>Boolean(ba(n)&&ga.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ia=(e,t,n)=>r=>{if(!ba(r))return r;const[o,a,i,s]=r.match(va);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ta={test:Ra("hsl","hue"),parse:Ia("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_a.transform(ha(t))+", "+_a.transform(ha(n))+", "+ha(xa.transform(r))+")"},La=ma(0,255),Pa=Object.assign(Object.assign({},Ea),{transform:e=>Math.round(La(e))}),Ma={test:Ra("rgb","red"),parse:Ia("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pa.transform(e)+", "+Pa.transform(t)+", "+Pa.transform(n)+", "+ha(xa.transform(r))+")"},Da={test:Ra("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ma.transform},ja={test:e=>Ma.test(e)||Da.test(e)||Ta.test(e),parse:e=>Ma.test(e)?Ma.parse(e):Ta.test(e)?Ta.parse(e):Da.parse(e),transform:e=>ba(e)?e:e.hasOwnProperty("red")?Ma.transform(e):Ta.transform(e)};function Va(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ya);r&&(n=r.length,e=e.replace(ya,"${c}"),t.push(...r.map(ja.parse)));const o=e.match(va);return o&&(e=e.replace(va,"${n}"),t.push(...o.map(Ea.parse))),{values:t,numColors:n,tokenised:e}}function Ba(e){return Va(e).values}function Fa(e){const{values:t,numColors:n,tokenised:r}=Va(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?ja.transform(e[r]):ha(e[r]));return t}}const za=e=>"number"==typeof e?0:e,$a={test:function(e){var t,n,r,o;return isNaN(e)&&ba(e)&&(null!==(n=null===(t=e.match(va))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ya))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Ba,createTransformer:Fa,getAnimatableNone:function(e){const t=Ba(e);return Fa(e)(t.map(za))}},Ua=new Set(["brightness","contrast","saturate","opacity"]);function Wa(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(va)||[];if(!r)return e;const o=n.replace(r,"");let a=Ua.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const Ha=/([a-z-]*)\(.*?\)/g,qa=Object.assign(Object.assign({},$a),{getAnimatableNone:e=>{const t=e.match(Ha);return t?t.map(Wa).join(" "):e}});var Ya=bo(bo({},Ea),{transform:Math.round}),Za={borderWidth:Ca,borderTopWidth:Ca,borderRightWidth:Ca,borderBottomWidth:Ca,borderLeftWidth:Ca,borderRadius:Ca,radius:Ca,borderTopLeftRadius:Ca,borderTopRightRadius:Ca,borderBottomRightRadius:Ca,borderBottomLeftRadius:Ca,width:Ca,maxWidth:Ca,height:Ca,maxHeight:Ca,size:Ca,top:Ca,right:Ca,bottom:Ca,left:Ca,padding:Ca,paddingTop:Ca,paddingRight:Ca,paddingBottom:Ca,paddingLeft:Ca,margin:Ca,marginTop:Ca,marginRight:Ca,marginBottom:Ca,marginLeft:Ca,rotate:Sa,rotateX:Sa,rotateY:Sa,rotateZ:Sa,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:Sa,skewX:Sa,skewY:Sa,distance:Ca,translateX:Ca,translateY:Ca,translateZ:Ca,x:Ca,y:Ca,z:Ca,perspective:Ca,transformPerspective:Ca,opacity:xa,originX:Aa,originY:Aa,originZ:Ca,zIndex:Ya,fillOpacity:xa,strokeOpacity:xa,numOctaves:Ya};function Ga(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in t){var m=t[f];if(pa(f))i[f]=m;else{var h=Za[f],v=fa(m,h);if(ia(f)){if(u=!0,s[f]=v,l.push(f),!p)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else la(f)?(c[f]=v,d=!0):a[f]=v}}u?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,c=void 0===l||l,u="";a.sort(oa);for(var d=!1,p=a.length,f=0;f<p;f++){var m=a[f];u+="".concat(da[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,p,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function Xa(e,t,n){for(var r in t)ua(t[r])||ca(r,n)||(e[r]=t[r])}function Ka(e,t,n){var r={},o=function(e,t,n){var r={};return Xa(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return z.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Ga(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return bo(bo({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var Ja=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 Qa(e){return Ja.has(e)}var ei,ti=function(e){return!Qa(e)};try{(ei=require("@emotion/is-prop-valid").default)&&(ti=function(e){return e.startsWith("on")?!Qa(e):ei(e)})}catch(e){}function ni(e,t,n){return"string"==typeof e?e:Ca.transform(t+n*e)}var ri={offset:"stroke-dashoffset",array:"stroke-dasharray"},oi={offset:"strokeDashoffset",array:"strokeDasharray"};function ai(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,p=void 0===d?0:d;Ga(e,Eo(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var f=e.attrs,m=e.style,h=e.dimensions;f.transform&&(h&&(m.transform=f.transform),delete f.transform),h&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=ni(t,e.x,e.width),o=ni(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?ri:oi;e[a.offset]=Ca.transform(-r);var i=Ca.transform(t),s=Ca.transform(n);e[a.array]="".concat(i," ").concat(s)}(f,l,u,p,!1)}var ii=function(){return bo(bo({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function si(e,t){var n=z.useMemo(function(){var n=ii();return ai(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),bo(bo({},n.attrs),{style:bo({},n.style)})},[t]);if(e.style){var r={};Xa(r,e.style,e),n.style=bo(bo({},r),n.style)}return n}function li(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(ea(t)?si:Ka)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(ti(o)||!0===n&&Qa(o)||!t&&!Qa(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=bo(bo(bo({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),z.createElement(t,u)}}var ci=/([a-z])([A-Z])/g,ui=function(e){return e.replace(ci,"$1-$2").toLowerCase()};function di(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var pi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function fi(e,t,n,r){for(var o in di(e,t,void 0,r),t.attrs)e.setAttribute(pi.has(o)?o:ui(o),t.attrs[o])}function mi(e){var t=e.style,n={};for(var r in t)(ua(t[r])||ca(r,e))&&(n[r]=t[r]);return n}function hi(e){var t=mi(e);for(var n in e)ua(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function yi(e){return"object"==typeof e&&"function"==typeof e.start}var gi=function(e){return Array.isArray(e)},bi=function(e){return gi(e)?e[e.length-1]||0:e};function Ei(e){var t=ua(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function xi(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:ki(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var wi=function(e){return function(t,n){var r=z.useContext(To),o=z.useContext(Lo);return n?xi(e,t,r,o):qo(function(){return xi(e,t,r,o)})}};function ki(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Ei(i[s]);var l=e.initial,c=e.animate,u=Uo(e),d=Wo(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=a||!1===l,f=p?c:l;return f&&"boolean"!=typeof f&&!yi(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=zo(e,t);if(n){var r=n.transitionEnd,a=Eo(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[p?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var Si,_i={useVisualState:wi({scrapeMotionValuesFromProps:hi,createRenderState:ii,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}ai(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),fi(t,r)}})},Ci={useVisualState:wi({scrapeMotionValuesFromProps:mi,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Oi(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ni(e,t,n,r){z.useEffect(function(){var o=e.current;if(n&&o)return Oi(o,t,n,r)},[e,t,n,r])}function Ai(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ri(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"}(Si||(Si={}));var Ii={pageX:0,pageY:0};function Ti(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ii;return{x:n[t+"X"],y:n[t+"Y"]}}function Li(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Pi(e,t){return void 0===t&&(t="page"),{point:Ri(e)?Ti(e,t):Li(e,t)}}var Mi=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Pi(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Di={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ji={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Vi(e){return Po&&null===window.onpointerdown?e:Po&&null===window.ontouchstart?ji[e]:Po&&null===window.onmousedown?Di[e]:e}function Bi(e,t,n,r){return Oi(e,Vi(t),Mi(n,"pointerdown"===t),r)}function Fi(e,t,n,r){return Ni(e,Vi(t),n&&Mi(n,"pointerdown"===t),r)}function zi(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var $i=zi("dragHorizontal"),Ui=zi("dragVertical");function Wi(e){var t=!1;if("y"===e)t=Ui();else if("x"===e)t=$i();else{var n=$i(),r=Ui();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Hi(){var e=Wi(!0);return!e||(e(),!1)}function qi(e,t,n){return function(r,o){var a;Ai(r)&&!Hi()&&(null===(a=e.animationState)||void 0===a||a.setActive(Si.Hover,t),null==n||n(r,o))}}var Yi=function(e,t){return!!t&&(e===t||Yi(e,t.parentElement))};function Zi(e){return z.useEffect(function(){return function(){return e()}},[])}const Gi=(e,t,n)=>Math.min(Math.max(n,e),t);function Xi(e,t){return e*Math.sqrt(1-t*t)}const Ki=["duration","bounce"],Ji=["stiffness","damping","mass"];function Qi(e,t){return t.some(t=>void 0!==e[t])}function es(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Eo(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Qi(e,Ji)&&Qi(e,Ki)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Co(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=Gi(.05,1,i),e=Gi(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Xi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Xi(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),f=ts,m=ts;function h(){const e=u?-u/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*c)),i=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Xi(i,a);f=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)f=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);f=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=f(e);if(p)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}es.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const ts=e=>0,ns=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},rs=(e,t,n)=>-n*e+n*t+e;function os(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 as({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=os(s,r,e+1/3),a=os(s,r,e),i=os(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const is=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ss=[Da,Ma,Ta],ls=e=>ss.find(t=>t.test(e)),cs=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,us=(e,t)=>{let n=ls(e),r=ls(t);Oo(!!n,cs(e)),Oo(!!r,cs(t));let o=n.parse(e),a=r.parse(t);n===Ta&&(o=as(o),n=Ma),r===Ta&&(a=as(a),r=Ma);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=is(o[t],a[t],e));return i.alpha=rs(o.alpha,a.alpha,e),n.transform(i)}},ds=e=>"number"==typeof e,ps=(e,t)=>n=>t(e(n)),fs=(...e)=>e.reduce(ps);function ms(e,t){return ds(e)?n=>rs(e,t,n):ja.test(e)?us(e,t):gs(e,t)}const hs=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>ms(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},vs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ms(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function ys(e){const t=$a.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const gs=(e,t)=>{const n=$a.createTransformer(t),r=ys(e),o=ys(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?fs(hs(r.parsed,o.parsed),n):(Co(!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}`)},bs=(e,t)=>n=>rs(e,t,n);function Es(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Oo(a===t.length,"Both input and output ranges must be the same length"),Oo(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?bs:"string"==typeof e?ja.test(e)?us:gs:Array.isArray(e)?hs:"object"==typeof e?vs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=fs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(ns(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=ns(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(Gi(e[0],e[a-1],t)):s}const xs=e=>t=>1-e(1-t),ws=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ks=e=>t=>t*t*((e+1)*t-e),Ss=e=>e,_s=e=>Math.pow(e,2),Cs=xs(_s),Os=ws(_s),Ns=e=>1-Math.sin(Math.acos(e)),As=xs(Ns),Rs=ws(As),Is=ks(1.525),Ts=xs(Is),Ls=ws(Is),Ps=(e=>{const t=ks(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ms=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=xs(Ms);function js(e,t){return e.map(()=>t||Os).splice(0,e.length-1)}function Vs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return Es(s,i,{ease:Array.isArray(n)?n:js(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Bs={keyframes:Vs,spring:es,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===a?l:a(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?c:c+t,i},flipTarget:()=>{}}}},Fs="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),zs="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Fs()),16.666666666666668);let $s=!0,Us=!1,Ws=!1;const Hs={delta:0,timestamp:0},qs=["read","update","preRender","render","postRender"],Ys=qs.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),Us=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),Zs=qs.reduce((e,t)=>{const n=Ys[t];return e[t]=(e,t=!1,r=!1)=>(Us||Js(),n.schedule(e,t,r)),e},{}),Gs=qs.reduce((e,t)=>(e[t]=Ys[t].cancel,e),{});qs.reduce((e,t)=>(e[t]=()=>Ys[t].process(Hs),e),{});const Xs=e=>Ys[e].process(Hs),Ks=e=>{Us=!1,Hs.delta=$s?16.666666666666668:Math.max(Math.min(e-Hs.timestamp,40),1),Hs.timestamp=e,Ws=!0,qs.forEach(Xs),Ws=!1,Us&&($s=!1,zs(Ks))},Js=()=>{Us=!0,$s=!0,Ws||zs(Ks)};function Qs(e,t,n=0){return e-t-n}const el=e=>{const t=({delta:t})=>e(t);return{start:()=>Zs.update(t,!0),stop:()=>Gs.update(t)}};function tl(e){var t,n,{from:r,autoplay:o=!0,driver:a=el,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:m}=e,h=Eo(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,y,g,{to:b}=h,E=0,x=h.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return Vs;if(Bs[e.type])return Bs[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Vs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?es:Vs}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=Es([0,100],[r,b],{clamp:!1}),r=0,b=100);const _=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),v=a(function(e){if(k||(e=-e),i+=e,!w){const e=_.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===E&&(null!=x||(x=i)),E<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,c,k)&&(E++,"reverse"===l?(k=E%2==0,i=function(e,t,n=0,r=!0){return r?Qs(t+-e,t,n):t-(e-t)+n}(i,x,c,k)):(i=Qs(i,x,c),"mirror"===l&&_.flipTarget()),w=!1,f&&f()):(v.stop(),p&&p()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function nl(e,t){return t?e*(1e3/t):0}const rl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ol=e=>rl(e)&&e.hasOwnProperty("z"),al=(e,t)=>Math.abs(e-t);function il(e,t){if(ds(e)&&ds(t))return al(e,t);if(rl(e)&&rl(t)){const n=al(e.x,t.x),r=al(e.y,t.y),o=ol(e)&&ol(t)?al(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const sl=(e,t)=>1-3*t+3*e,ll=(e,t)=>3*t-6*e,cl=e=>3*e,ul=(e,t,n)=>((sl(t,n)*e+ll(t,n))*e+cl(t))*e,dl=(e,t,n)=>3*sl(t,n)*e*e+2*ll(t,n)*e+cl(t);var pl=new Set;function fl(e,t,n){e||pl.has(t)||(console.warn(t),n&&console.warn(n),pl.add(t))}var ml=new WeakMap,hl=new WeakMap,vl=function(e){var t;null===(t=ml.get(e.target))||void 0===t||t(e)},yl=function(e){e.forEach(vl)},gl={some:0,all:1};function bl(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;z.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:gl[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Eo(e,["root"]),r=t||document;hl.has(r)||hl.set(r,{});var o=hl.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(yl,bo({root:t},n))),o[a]}(r);return ml.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Si.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){ml.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function El(e,t,n,r){var o=r.fallback,a=void 0===o||o;z.useEffect(function(){e&&a&&("production"!==ko&&fl(!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(Si.InView,!0)}))},[e])}var xl=function(e){return function(t){return e(t),null}},wl={inView:xl(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=z.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?El:bl)(l,s.current,t,i)}),tap:xl(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=z.useRef(!1),s=z.useRef(null),l={passive:!(n||t||r||f)};function c(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function u(){var e;return c(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(Si.Tap,!1),!Hi()}function d(e,n){u()&&(Yi(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function f(e,t){var r;c(),i.current||(i.current=!0,s.current=fs(Bi(window,"pointerup",d,l),Bi(window,"pointercancel",p,l)),null===(r=o.animationState)||void 0===r||r.setActive(Si.Tap,!0),null==n||n(e,t))}Fi(o,"pointerdown",a?f:void 0,l),Zi(c)}),focus:xl(function(e){var t=e.whileFocus,n=e.visualElement;Ni(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Si.Focus,!0)}:void 0),Ni(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Si.Focus,!1)}:void 0)}),hover:xl(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Fi(o,"pointerenter",t||r?qi(o,!0,t):void 0,{passive:!t}),Fi(o,"pointerleave",n||r?qi(o,!1,n):void 0,{passive:!n})})},kl=0,Sl=function(){return kl++},_l=function(){return qo(Sl)};function Cl(){var e=z.useContext(Lo);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=_l();return z.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Ol(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 Nl=function(e){return 1e3*e},Al={linear:Ss,easeIn:_s,easeInOut:Os,easeOut:Cs,circIn:Ns,circInOut:Rs,circOut:As,backIn:Is,backInOut:Ls,backOut:Ts,anticipate:Ps,bounceIn:Ds,bounceInOut:e=>e<.5?.5*(1-Ms(1-2*e)):.5*Ms(2*e-1)+.5,bounceOut:Ms},Rl=function(e){if(Array.isArray(e)){Oo(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=xo(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ss;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=ul(.1*t,e,n);return a=>0===a||1===a?a:ul(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=dl(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=dl(t,n,r);if(0===o)return t;t-=(ul(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=ul(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Oo(void 0!==Al[e],"Invalid easing type '".concat(e,"'")),Al[e]):e},Il=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!$a.test(t)||t.startsWith("url(")))},Tl=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ll=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Pl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ml=function(e){return{type:"keyframes",duration:.8,values:e}},Dl={x:Tl,y:Tl,z:Tl,rotate:Tl,rotateX:Tl,rotateY:Tl,rotateZ:Tl,scaleX:Ll,scaleY:Ll,scale:Ll,opacity:Pl,backgroundColor:Pl,color:Pl,default:Ll},jl=bo(bo({},Za),{color:ja,backgroundColor:ja,outlineColor:ja,fill:ja,stroke:ja,borderColor:ja,borderTopColor:ja,borderRightColor:ja,borderBottomColor:ja,borderLeftColor:ja,filter:qa,WebkitFilter:qa}),Vl=function(e){return jl[e]};function Bl(e,t){var n,r=Vl(e);return r!==qa&&(r=$a),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Fl=!1;function zl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function $l(e){return"number"==typeof e?0:Bl("",e)}function Ul(e,t){return e[t]||e.default||e}function Wl(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=Ul(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Il(e,n);"none"===s&&l&&"string"==typeof n?s=Bl(e,n):zl(s)&&"string"==typeof n?s=$l(n):!Array.isArray(n)&&zl(n)&&"string"==typeof s&&(n=$l(s));var c=Il(e,s);return Co(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=tl(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:p,onStop:f}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(h(e))g({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=v(r),s=i===n?-1:1;let u,d;const p=e=>{u=d,d=e,t=nl(e-u,Hs.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(bo(bo({},r),i)):tl(bo(bo({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=wo([],xo(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Eo(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=bo(bo({},e),(o=n,i=gi(a=t.to)?Ml:Dl[o]||Dl.default,bo({to:a},i(a))))),bo(bo({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Eo(e,["ease","times","yoyo","flip","loop"]),s=bo({},i);return n&&(s.offset=n),i.duration&&(s.duration=Nl(i.duration)),i.repeatDelay&&(s.repeatDelay=Nl(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Rl):Rl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Co(!Fl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Fl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=bi(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Ul(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,Nl(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var Hl=function(e){return/^\-?\d*\.?\d+$/.test(e)},ql=function(e){return/^0[^.\s]+$/.test(e)};const Yl="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Zl="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Yl()),16.666666666666668);let Gl=!0,Xl=!1,Kl=!1;const Jl={delta:0,timestamp:0},Ql=["read","update","preRender","render","postRender"],ec=Ql.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,c=l?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>Xl=!0),e),{}),tc=Ql.reduce((e,t)=>{const n=ec[t];return e[t]=(e,t=!1,r=!1)=>(Xl||ic(),n.schedule(e,t,r)),e},{}),nc=Ql.reduce((e,t)=>(e[t]=ec[t].cancel,e),{}),rc=Ql.reduce((e,t)=>(e[t]=()=>ec[t].process(Jl),e),{}),oc=e=>ec[e].process(Jl),ac=e=>{Xl=!1,Jl.delta=Gl?16.666666666666668:Math.max(Math.min(e-Jl.timestamp,40),1),Jl.timestamp=e,Kl=!0,Ql.forEach(oc),Kl=!1,Xl&&(Gl=!1,Zl(ac))},ic=()=>{Xl=!0,Gl=!0,Kl||Zl(ac)},sc=()=>Jl;function lc(e,t){-1===e.indexOf(t)&&e.push(t)}function cc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var uc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return lc(this.subscriptions,e),function(){return cc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),dc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new uc,this.velocityUpdateSubscribers=new uc,this.renderSubscribers=new uc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=sc(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,tc.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 tc.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?nl(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 pc(e){return new dc(e)}var fc=function(e){return function(t){return t.test(e)}},mc=[Ea,Ca,_a,Sa,Na,Oa,{test:function(e){return"auto"===e},parse:function(e){return e}}],hc=function(e){return mc.find(fc(e))},vc=wo(wo([],xo(mc),!1),[ja,$a],!1),yc=function(e){return vc.find(fc(e))};function gc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pc(n))}function bc(e,t){if(t)return(t[e]||t.default||t).from}function Ec(e,t,n){var r;void 0===n&&(n={});var o=$o(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return xc(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(wc).forEach(function(e,r){i.push(Ec(e,t,bo(bo({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=xo("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function xc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=Eo(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in f){var y=e.getValue(v),g=f[v];if(!(!y||void 0===g||h&&kc(h,v))){var b=bo({delay:i},d);e.shouldReduceMotion&&ia(v)&&(b=bo(bo({},b),{type:!1,delay:0}));var E=Wl(v,y,g,b);m.push(E)}}return Promise.all(m).then(function(){p&&function(e,t){var n=$o(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Eo(r,["transitionEnd","transition"]);for(var s in i=bo(bo({},i),a))gc(e,s,bi(i[s]))}(e,p)})}function wc(e,t){return e.sortNodePosition(t)}function kc(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var Sc=[Si.Animate,Si.InView,Si.Focus,Si.Hover,Si.Tap,Si.Drag,Si.Exit],_c=wo([],xo(Sc),!1).reverse(),Cc=Sc.length;function Oc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Nc={animation:xl(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return Ec(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Ec(e,t,n);else{var a="function"==typeof t?$o(e,t,n.custom):t;r=xc(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[Si.Animate]=Oc(!0),t[Si.InView]=Oc(),t[Si.Hover]=Oc(),t[Si.Tap]=Oc(),t[Si.Drag]=Oc(),t[Si.Focus]=Oc(),t[Si.Exit]=Oc(),t),o={},a=!0,i=function(t,n){var r=$o(e,n);if(r){var o=r.transitionEnd,a=Eo(r,["transition","transitionEnd"]);t=bo(bo(bo({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=Infinity,h=function(n){var o=_c[n],h=r[o],v=null!==(l=c[o])&&void 0!==l?l:u[o],y=Fo(v),g=o===s?h.isActive:null;!1===g&&(m=n);var b=v===u[o]&&v!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=bo({},f),!h.isActive&&null===g||!v&&!h.prevProp||yi(v)||"boolean"==typeof v)return"continue";var E=function(e,t){return"string"==typeof t?t!==e:!!Bo(t)&&!Ol(t,e)}(h.prevProp,v),x=E||o===s&&h.isActive&&!b&&y||n>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(i,{});!1===g&&(k={});var S=h.prevResolvedValues,_=void 0===S?{}:S,C=bo(bo({},_),k),O=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var N in C){var A=k[N],R=_[N];f.hasOwnProperty(N)||(A!==R?gi(A)&&gi(R)?!Ol(A,R)||E?O(N):h.protectedKeys[N]=!0:void 0!==A?O(N):p.add(N):void 0!==A&&p.has(N)?O(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=k,h.isActive&&(f=bo(bo({},f),k)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,wo([],xo(w.map(function(e){return{animation:e,options:bo({type:o},t)}})),!1))},v=0;v<Cc;v++)h(v);if(o=bo({},f),p.size){var y={};p.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===c.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),yi(n)&&z.useEffect(function(){return n.subscribe(t)},[n])}),exit:xl(function(e){var t=e.custom,n=e.visualElement,r=xo(Cl(),2),o=r[0],a=r[1],i=z.useContext(Lo);z.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Si.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},Ac=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Tc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=il(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=sc().timestamp;r.history.push(bo(bo({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Rc(t,r.transformPagePoint),Ai(e)&&0===e.buttons?r.handlePointerUp(e,t):tc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Tc(Rc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Ri(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Rc(Pi(e),this.transformPagePoint),i=a.point,s=sc().timestamp;this.history=[bo(bo({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Tc(a,this.history)),this.removeListeners=fs(Bi(window,"pointermove",this.handlePointerMove),Bi(window,"pointerup",this.handlePointerUp),Bi(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),nc.update(this.updatePoint)},e}();function Rc(e,t){return t?{point:t(e.point)}:e}function Ic(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tc(e,t){var n=e.point;return{point:n,delta:Ic(n,Pc(t)),offset:Ic(n,Lc(t)),velocity:Mc(t,.1)}}function Lc(e){return e[0]}function Pc(e){return e[e.length-1]}function Mc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Pc(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>Nl(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Dc(e){return e.max-e.min}function jc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),il(e,t)<n}function Vc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=rs(t.min,t.max,e.origin),e.scale=Dc(n)/Dc(t),(jc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rs(n.min,n.max,e.origin)-e.originPoint,(jc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bc(e,t,n,r){Vc(e.x,t.x,n.x,null==r?void 0:r.originX),Vc(e.y,t.y,n.y,null==r?void 0:r.originY)}function Fc(e,t,n){e.min=n.min+t.min,e.max=e.min+Dc(t)}function zc(e,t,n){e.min=t.min-n.min,e.max=e.min+Dc(t)}function $c(e,t,n){zc(e.x,t.x,n.x),zc(e.y,t.y,n.y)}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 Wc(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=xo([o,r],2))[0],o=n[1]),{min:r,max:o}}function Hc(e,t,n){return{min:qc(e,t),max:qc(e,n)}}function qc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Yc(e){return[e("x"),e("y")]}function Zc(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function Gc(e){return void 0===e||1===e}function Xc(e){var t=e.scaleX,n=e.scaleY;return!Gc(e.scale)||!Gc(t)||!Gc(n)}function Kc(e){return Xc(e)||Jc(e.x)||Jc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Jc(e){return e&&"0%"!==e}function Qc(e,t,n){return n+t*(e-n)}function eu(e,t,n,r,o){return void 0!==o&&(e=Qc(e,o,r)),Qc(e,n,r)+t}function tu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=eu(e.min,t,n,r,o),e.max=eu(e.max,t,n,r,o)}function nu(e,t){var n=t.x,r=t.y;tu(e.x,n.translate,n.scale,n.originPoint),tu(e.y,r.translate,r.scale,r.originPoint)}function ru(e,t){e.min=e.min+t,e.max=e.max+t}function ou(e,t,n){var r=xo(n,3),o=r[0],a=r[1],i=r[2],s=rs(e.min,e.max,void 0!==t[i]?t[i]:.5);tu(e,t[o],t[a],s,t.scale)}var au=["x","scaleX","originX"],iu=["y","scaleY","originY"];function su(e,t){ou(e.x,t,au),ou(e.y,t,iu)}function lu(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 cu=new WeakMap,uu=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Ac(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Pi(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Wi(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Yc(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(_a.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=Dc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Si.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Si.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&du(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?rs(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?rs(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Vo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&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)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:Hc(e,"left","right"),y:Hc(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Yc(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Vo(t))return!1;var r=t.current;Oo(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=lu(e,n),o=t.scroll;return o&&(ru(r.x,o.x),ru(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Wc(e.x,t.x),y:Wc(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=Zc(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Yc(function(n){var l;if(du(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=bo(bo({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.startAxisValueAnimation(n,d)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Wl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Yc(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;Yc(function(n){if(du(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-rs(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Vo(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Yc(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r=t.constraints[e],o=.5,i=Dc(n={min:c,max:c}),(s=Dc(r))>i?o=ns(r.min,r.max-i,n.min):i>s&&(o=ns(n.min,n.max-s,r.min)),Gi(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Yc(function(e){if(du(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(rs(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;cu.set(this.visualElement,this);var n=Bi(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Vo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Oi(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Yc(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d;return bo(bo({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:p})},e}();function du(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var pu={pan:xl(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=z.useRef(null),l=z.useContext(Io).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};z.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),Fi(a,"pointerdown",i&&function(e){s.current=new Ac(e,c,{transformPagePoint:l})}),Zi(function(){return s.current&&s.current.end()})}),drag:xl(function(e){var t=e.dragControls,n=e.visualElement,r=qo(function(){return new uu(n)});z.useEffect(function(){return t&&t.subscribe(r)},[r,t]),z.useEffect(function(){return r.addListeners()},[r])})},fu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],mu=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,f=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,E=!1,x=v.latestValues,w=v.renderState,k=function(){var e=fu.map(function(){return new uc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){fu.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+fu[t]]=function(t){return e.add(t)},n["notify"+fu[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,wo([],xo(t),!1))}}),n}(),S=new Map,_=new Map,C={},O=bo({},x);function N(){g&&E&&(A(),s(g,w,f.style,j.projection))}function A(){r(j,w,x,t,f)}function R(){k.notifyUpdate(x)}function I(e,t){var n=t.onChange(function(t){x[e]=t,f.onUpdate&&tc.update(R,!1,!0)}),r=t.onRenderRequest(j.scheduleRender);_.set(e,function(){n(),r()})}var T=d(f);for(var L in T){var P=T[L];void 0!==x[L]&&ua(P)&&P.set(x[L],!1)}var M=Uo(f),D=Wo(f),j=bo(bo({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:D?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){E=!0,g=j.current=e,j.projection&&j.projection.mount(e),D&&p&&!M&&(b=null==p?void 0:p.addVariantChild(j)),S.forEach(function(e,t){return I(t,e)}),null==p||p.children.add(j),j.setProps(f)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),nc.update(R),nc.render(N),_.forEach(function(e){return e()}),null==b||b(),null==p||p.children.delete(j),k.clearAllListeners(),g=void 0,E=!1},addVariantChild:function(e){var t,n=j.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(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return D?j:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return f.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(j,e,f,t)},measureViewportBox:function(){return i(g,f)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=_.get(e))||void 0===t||t(),_.delete(e),delete x[e],c(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=pc(t),j.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(o){var t=o(f,e);if(void 0!==t&&!ua(t))return t}return O[e]}},k),{build:function(){return A(),w},scheduleRender:function(){tc.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||f.transformTemplate)&&j.scheduleRender(),f=e,k.updatePropListeners(e),C=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(ua(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&fl("6.5.1"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.5.1 may not work as expected."));else if(ua(i))e.addValue(o,pc(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,pc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,d(f),C)},getProps:function(){return f},getVariant:function(e){var t;return null===(t=f.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return f.transition},getTransformPagePoint:function(){return f.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!M){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==f.initial&&(t.initial=f.initial),t}for(var n={},r=0;r<vu;r++){var o=hu[r],a=f[o];(Fo(a)||!1===a)&&(n[o]=a)}return n}});return j}},hu=wo(["initial"],xo(Sc),!1),vu=hu.length;function yu(e){return"string"==typeof e&&e.startsWith("var(--")}var gu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bu(e,t,n){void 0===n&&(n=1),Oo(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=xo(function(e){var t=gu.exec(e);if(!t)return[,];var n=xo(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():yu(a)?bu(a,t,n+1):a}}var Eu,xu=new Set(["width","height","top","left","right","bottom","x","y"]),wu=function(e){return xu.has(e)},ku=function(e,t){e.set(t,!1),e.set(t)},Su=function(e){return e===Ea||e===Ca};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Eu||(Eu={}));var _u=function(e,t){return parseFloat(e.split(", ")[t])},Cu=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return _u(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?_u(i[1],e):0}},Ou=new Set(["x","y","z"]),Nu=ra.filter(function(e){return!Ou.has(e)}),Au={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:Cu(4,13),y:Cu(5,14)},Ru={treeType:"dom",readValueFromInstance:function(e,t){if(ia(t)){var n=Vl(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(pa(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 lu(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Eo(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=bc(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&(Hl(p)||ql(p))?p=parseFloat(p):!yc(p)&&$a.test(d)&&(p=Bl(u,d)),e.addValue(u,pc(p)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=Eo(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=bo({},n)),e.forEachValue(function(e){var t=e.get();if(yu(t)){var n=bu(t,a);n&&e.set(n)}}),o){var s=o[i];if(yu(s)){var l=bu(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(wu)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=bo({},t),r=bo({},r);var o=Object.keys(t).filter(wu),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=hc(u),p=t[o];if(gi(p)){var f=p.length,m=null===p[0]?1:0;d=hc(u=p[m]);for(var h=m;h<f;h++)c?Oo(hc(p[h])===c,"All keyframes must be of the same type"):(c=hc(p[h]),Oo(c===d||Su(d)&&Su(c),"Keyframes must be of the same dimension as the current value"))}else c=hc(p);if(d!==c)if(Su(d)&&Su(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof p?t[o]=parseFloat(p):Array.isArray(p)&&c===Ca&&(t[o]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===p)?0===u?l.set(c.transform(u)):t[o]=d.transform(p):(i||(a=function(e){var t=[];return Nu.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],ku(l,p))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Au[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);ku(r,i[n]),e[n]=Au[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=xo(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=c.transitionEnd,s=c.target}return bo({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:mi,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Ga(t,n,r,o.transformTemplate)},render:di},Iu=mu(Ru),Tu=mu(bo(bo({},Ru),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ia(t)?(null===(n=Vl(t))||void 0===n?void 0:n.default)||0:(t=pi.has(t)?t:ui(t),e.getAttribute(t))},scrapeMotionValuesFromProps:hi,build:function(e,t,n,r,o){ai(t,n,r,o.transformTemplate)},render:fi})),Lu=function(e,t){return ea(e)?Tu(t,{enableHardwareAcceleration:!1}):Iu(t,{enableHardwareAcceleration:!0})};function Pu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Mu={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ca.test(e))return e;e=parseFloat(e)}var n=Pu(e,t.target.x),r=Pu(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Du={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(gu,function(e){return i.push(e),"_$css"}));var s=$a.parse(e);if(s.length>5)return o;var l=$a.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=rs(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(a){var m=0;f=f.replace("_$css",function(){var e=i[m];return m++,e})}return f}},ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return go(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(ta,Vu),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(bo(bo({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),Yo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||tc.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}(z.Component),Vu={borderRadius:bo(bo({},Mu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Mu,borderTopRightRadius:Mu,borderBottomLeftRadius:Mu,borderBottomRightRadius:Mu,boxShadow:Du},Bu={measureLayout:function(e){var t=xo(Cl(),2),n=t[0],r=t[1],o=z.useContext(Go);return z.createElement(ju,bo({},e,{layoutGroup:o,switchLayoutGroup:z.useContext(Xo),isPresent:n,safeToRemove:r}))}},Fu=["TopLeft","TopRight","BottomLeft","BottomRight"],zu=Fu.length,$u=function(e){return"string"==typeof e?parseFloat(e):e},Uu=function(e){return"number"==typeof e||Ca.test(e)};function Wu(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Hu=Yu(0,.5,As),qu=Yu(.5,.95,Ss);function Yu(e,t,n){return function(r){return r<e?0:r>t?1:n(ns(e,t,r))}}function Zu(e,t){e.min=t.min,e.max=t.max}function Gu(e,t){Zu(e.x,t.x),Zu(e.y,t.y)}function Xu(e,t,n,r,o){return e=Qc(e-=t,1/n,r),void 0!==o&&(e=Qc(e,1/o,r)),e}function Ku(e,t,n,r,o){var a=xo(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),_a.test(t)&&(t=parseFloat(t),t=rs(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=rs(a.min,a.max,r);e===a&&(s-=t),e.min=Xu(e.min,t,n,s,o),e.max=Xu(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var Ju=["x","scaleX","originX"],Qu=["y","scaleY","originY"];function ed(e,t,n,r){Ku(e.x,t,Ju,null==n?void 0:n.x,null==r?void 0:r.x),Ku(e.y,t,Qu,null==n?void 0:n.y,null==r?void 0:r.y)}function td(e){return 0===e.translate&&1===e.scale}function nd(e){return td(e.x)&&td(e.y)}function rd(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 od=function(){function e(){this.members=[]}return e.prototype.add=function(e){lc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(cc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function ad(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}var id=function(e,t){return e.depth-t.depth},sd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){lc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){cc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(id),this.isDirty=!1,this.children.forEach(e)},e}();function ld(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(hd),o.nodes.forEach(vd)},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?wo(wo([],xo(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new sd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new uc),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,wo([],xo(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),Yo.hasAnimatedSinceResize&&(Yo.hasAnimatedSinceResize=!1,o.nodes.forEach(md))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:wd,f=l.getProps(),m=f.onLayoutAnimationStart,h=f.onLayoutAnimationComplete,v=!o.targetLayout||!rd(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=bo(bo({},Ul(p,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nc.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(yd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(pd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(kd),this.potentialNodes.clear()),this.nodes.forEach(fd),this.nodes.forEach(cd),this.nodes.forEach(ud),this.clearAllSnapshots(),rc.update(),rc.preRender(),rc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(dd),this.sharedNodes.forEach(gd)},e.prototype.scheduleUpdateProjection=function(){tc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;tc.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));_d(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();_d(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!nd(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||Kc(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&&(ru(t.x,n.x),ru(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Gu(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){Gu(t,e);var a=this.root.scroll;a&&(ru(t.x,-a.x),ru(t.y,-a.y))}ru(t.x,o.x),ru(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Gu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&su(n,{x:-o.scroll.x,y:-o.scroll.y}),Kc(o.latestValues)&&su(n,o.latestValues)}return Kc(this.latestValues)&&su(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Gu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Kc(o.latestValues)){Xc(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Gu(a,o.measure()),ed(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return Kc(this.latestValues)&&ed(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=bo(bo(bo({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},$c(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Gu(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)?(Fc((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),Fc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Gu(this.target,this.layout.actual),nu(this.target,this.targetDelta)):Gu(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}},$c(this.relativeTargetOrigin,this.target,this.relativeParent.target),Gu(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Kc(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Gu(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var c=0;c<i;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&su(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,nu(e,l)),r&&Kc(s.latestValues)&&su(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Bc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=ad(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=bo({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(xd));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;bd(s.x,e.x,o),bd(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&($c(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Ed(e.x,t.x,n.x,r),Ed(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),c&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,c;o?(e.opacity=rs(0,null!==(i=n.opacity)&&void 0!==i?i:1,Hu(r)),e.opacityExit=rs(null!==(s=t.opacity)&&void 0!==s?s:1,0,qu(r))):a&&(e.opacity=rs(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<zu;u++){var d="border".concat(Fu[u],"Radius"),p=Wu(t,d),f=Wu(n,d);void 0===p&&void 0===f||(p||(p=0),f||(f=0),0===p||0===f||Uu(p)===Uu(f)?(e[d]=Math.max(rs($u(p),$u(f),r),0),(_a.test(f)||_a.test(p))&&(e[d]+="%")):e[d]=f)}(t.rotate||n.rotate)&&(e.rotate=rs(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(nc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(function(){Yo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ua(0)?0:pc(0);return Wl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,bo(bo({},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&&(Gu(t,n),su(t,r),Bc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new od),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<na.length;r++)e.getStaticValue(o="rotate"+na[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ei(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=Ei(e.pointerEvents)||""),this.hasProjected&&!Kc(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=ad(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var p=this.projectionDelta,f=p.x,m=p.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,ta)if(void 0!==d[h]){var v=ta[h],y=v.applyTo,g=(0,v.correct)(d[h],c);if(y)for(var b=y.length,E=0;E<b;E++)s[y[E]]=g;else s[h]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Ei(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(pd),this.root.sharedNodes.clear()},e}()}function cd(e){e.updateLayout()}function ud(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Yc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Dc(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Yc(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Dc(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}};Bc(c,s,a.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Bc(u,e.applyTransform(l,!0),a.measured):Bc(u,s,a.layout);var d=!nd(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,m=f.snapshot,h=f.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};$c(v,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};$c(y,s,h.actual),rd(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function dd(e){e.clearSnapshot()}function pd(e){e.clearMeasurements()}function fd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function md(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function hd(e){e.resolveTargetDelta()}function vd(e){e.calcProjection()}function yd(e){e.resetRotation()}function gd(e){e.removeLeadSnapshot()}function bd(e,t,n){e.translate=rs(t.translate,0,n),e.scale=rs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ed(e,t,n,r){e.min=rs(t.min,n.min,r),e.max=rs(t.max,n.max,r)}function xd(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var wd={duration:.45,ease:[.4,0,.1,1]};function kd(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Sd(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function _d(e){Sd(e.x),Sd(e.y)}var Cd=ld({attachResizeListener:function(e,t){return Oi(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Od={current:void 0},Nd=ld({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Od.current){var e=new Cd(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Od.current=e}return Od.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ad=bo(bo(bo(bo({},Nc),wl),pu),Bu),Rd=/*@__PURE__*/Jo(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=ea(e)?_i:Ci;return bo(bo({},s),{preloadedFeatures:n,useRender:li(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Ad,Lu,Nd)});function Id(){var e=z.useRef(!1);return Mo(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Td=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=qo(Ld),l=_l(),c=z.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return z.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),z.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),z.createElement(Lo.Provider,{value:c},t)};function Ld(){return new Map}var Pd=function(e){return e.key||""},Md=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=xo(function(){var e=Id(),t=xo(z.useState(0),2),n=t[0],r=t[1],o=z.useCallback(function(){e.current&&r(n+1)},[n]);return[z.useCallback(function(){return tc.postRender(o)},[o]),n]}(),1),u=c[0],d=z.useContext(Go).forceRender;d&&(u=d);var p=Id(),f=function(e){var t=[];return z.Children.forEach(e,function(e){z.isValidElement(e)&&t.push(e)}),t}(t),m=f,h=new Set,v=z.useRef(m),y=z.useRef(new Map).current,g=z.useRef(!0);if(Mo(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Pd(e);t.set(n,e)})}(f,y),v.current=m}),Zi(function(){g.current=!0,y.clear(),h.clear()}),g.current)return z.createElement(z.Fragment,null,m.map(function(e){return z.createElement(Td,{key:Pd(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=wo([],xo(m),!1);for(var b=v.current.map(Pd),E=f.map(Pd),x=b.length,w=0;w<x;w++){var k=b[w];-1===E.indexOf(k)&&h.add(k)}return i&&h.size&&(m=[]),h.forEach(function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,z.createElement(Td,{key:Pd(t),isPresent:!1,onExitComplete:function(){y.delete(e),h.delete(e);var t=v.current.findIndex(function(t){return t.key===e});if(v.current.splice(t,1),!h.size){if(v.current=f,!1===p.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return h.has(e.key)?e:z.createElement(Td,{key:Pd(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==ko&&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."),z.createElement(z.Fragment,null,h.size?m:m.map(function(e){return z.cloneElement(e)}))},Dd=(...e)=>e.filter(Boolean).join(" "),jd={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Vd={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Bd={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Fd={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},zd={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function $d(e){switch((null==e?void 0:e.direction)??"right"){case"right":default:return Bd;case"left":return Vd;case"bottom":return zd;case"top":return Fd}}var Ud={enter:{duration:.2,ease:jd.easeOut},exit:{duration:.1,ease:jd.easeIn}},Wd=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),Hd=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),qd={exit:{height:{duration:.2,ease:jd.ease},opacity:{duration:.3,ease:jd.ease}},enter:{height:{duration:.3,ease:jd.ease},opacity:{duration:.4,ease:jd.ease}}},Yd={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:(null==n?void 0:n.exit)??Hd(qd.exit,o)};var a},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:(null==n?void 0:n.enter)??Wd(qd.enter,o)})},Zd=z.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:u,...d}=e,[p,f]=z.useState(!1);z.useEffect(()=>{const e=setTimeout(()=>{f(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:n}=e;t&&"production"!==process.env.NODE_ENV&&console.warn(n)})({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,h={startingHeight:a,endingHeight:i,animateOpacity:o,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:null==u?void 0:u.enter,exit:r?null==u?void 0:u.exit:{...null==u?void 0:u.exit,display:m?"block":"none"}}},v=n||r?"enter":"exit";/* @__PURE__ */
|
5
|
+
return z.createElement(Md,{initial:!1,custom:h},(!r||n)&&/* @__PURE__ */z.createElement(Rd.div,{ref:t,...d,className:Dd("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:h,variants:Yd,initial:!!r&&"exit",animate:v,exit:"exit"}))});Zd.displayName="Collapse";var Gd={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(null==e?void 0:e.enter)??Wd(Ud.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(null==e?void 0:e.exit)??Hd(Ud.exit,n),transitionEnd:null==t?void 0:t.exit})},Xd={initial:"exit",animate:"enter",exit:"exit",variants:Gd},Kd=z.forwardRef(function(e,t){const{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:i,delay:s,...l}=e,c=r||n?"enter":"exit",u={transition:a,transitionEnd:i,delay:s};/* @__PURE__ */
|
6
|
+
return z.createElement(Md,{custom:u},(!n||r&&n)&&/* @__PURE__ */z.createElement(Rd.div,{ref:t,className:Dd("chakra-fade",o),custom:u,...Xd,animate:c,...l}))});Kd.displayName="Fade";var Jd={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:(null==n?void 0:n.exit)??Hd(Ud.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(null==t?void 0:t.enter)??Wd(Ud.enter,n),transitionEnd:null==e?void 0:e.enter})},Qd={initial:"exit",animate:"enter",exit:"exit",variants:Jd},ep=z.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:s,transitionEnd:l,delay:c,...u}=e,d=r||n?"enter":"exit",p={initialScale:a,reverse:o,transition:s,transitionEnd:l,delay:c};/* @__PURE__ */
|
7
|
+
return z.createElement(Md,{custom:p},(!n||r&&n)&&/* @__PURE__ */z.createElement(Rd.div,{ref:t,className:Dd("chakra-offset-slide",i),...Qd,animate:d,custom:p,...u}))});ep.displayName="ScaleFade";var tp={exit:{duration:.15,ease:jd.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},np={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=$d({direction:e});return{...o,transition:(null==t?void 0:t.exit)??Hd(tp.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=$d({direction:e});return{...o,transition:(null==n?void 0:n.enter)??Wd(tp.enter,r),transitionEnd:null==t?void 0:t.enter}}},rp=z.forwardRef(function(e,t){const{direction:n="right",style:r,unmountOnExit:o,in:a,className:i,transition:s,transitionEnd:l,delay:c,motionProps:u,...d}=e,p=$d({direction:n}),f=Object.assign({position:"fixed"},p.position,r),m=a||o?"enter":"exit",h={transitionEnd:l,transition:s,direction:n,delay:c};/* @__PURE__ */
|
8
|
+
return z.createElement(Md,{custom:h},(!o||a&&o)&&/* @__PURE__ */z.createElement(Rd.div,{...d,ref:t,initial:"exit",className:Dd("chakra-slide",i),animate:m,exit:"exit",custom:h,variants:np,style:f,...u}))});rp.displayName="Slide";var op={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(null==n?void 0:n.exit)??Hd(Ud.exit,o),transitionEnd:null==r?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(null==e?void 0:e.enter)??Wd(Ud.enter,n),transitionEnd:null==t?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{const i={x:t,y:e};return{opacity:0,transition:(null==n?void 0:n.exit)??Hd(Ud.exit,a),...o?{...i,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...i,...null==r?void 0:r.exit}}}}},ap={initial:"initial",animate:"enter",exit:"exit",variants:op},ip=z.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:s=8,transition:l,transitionEnd:c,delay:u,...d}=e,p=r||n?"enter":"exit",f={offsetX:i,offsetY:s,reverse:o,transition:l,transitionEnd:c,delay:u};/* @__PURE__ */
|
9
|
+
return z.createElement(Md,{custom:f},(!n||r&&n)&&/* @__PURE__ */z.createElement(Rd.div,{ref:t,className:Dd("chakra-offset-slide",a),custom:f,...ap,animate:p,...d}))});ip.displayName="SlideFade";var sp=wr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),lp=Gr((e,t)=>{const n=Kr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=ht(e),c=((...e)=>e.filter(Boolean).join(" "))("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${sp} ${a} linear infinite`,...n};/* @__PURE__ */
|
10
|
+
return z.createElement(Qr.div,{ref:t,__css:u,className:c,...l},r&&/* @__PURE__ */z.createElement(Qr.span,{srOnly:!0},r))});function cp(e){return z.Children.toArray(e).filter(e=>z.isValidElement(e))}lp.displayName="Spinner";var up=(...e)=>e.filter(Boolean).join(" "),dp=e=>e?"":void 0,[pp,fp]=eo({strict:!1,name:"ButtonGroupContext"});function mp(e){const{children:t,className:n,...r}=e,o=z.isValidElement(t)?z.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=up("chakra-button__icon",n);/* @__PURE__ */
|
11
|
+
return z.createElement(Qr.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a},o)}function hp(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=/* @__PURE__ */z.createElement(lp,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=up("chakra-button__spinner",a),c="start"===n?"marginEnd":"marginStart",u=z.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,c,r]);/* @__PURE__ */
|
12
|
+
return z.createElement(Qr.div,{className:l,...s,__css:u},o)}mp.displayName="ButtonIcon",hp.displayName="ButtonSpinner";var vp=Gr((e,t)=>{const n=fp(),r=Kr("Button",{...n,...e}),{isDisabled:o=(null==n?void 0:n.isDisabled),isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:p,spinner:f,spinnerPlacement:m="start",className:h,as:v,...y}=ht(e),g=z.useMemo(()=>{const e={...null==r?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:e}}},[r,n]),{ref:b,type:E}=function(e){const[t,n]=z.useState(!e),r=z.useCallback(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:r,type:t?"button":void 0}}(v),x={rightIcon:c,leftIcon:l,iconSpacing:d,children:s};/* @__PURE__ */
|
13
|
+
return z.createElement(Qr.button,{disabled:o||a,ref:no(t,b),as:v,type:p??E,"data-active":dp(i),"data-loading":dp(a),__css:g,className:up("chakra-button",h),...y},a&&"start"===m&&/* @__PURE__ */z.createElement(hp,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d},f),a?u||/* @__PURE__ */z.createElement(Qr.span,{opacity:0},/* @__PURE__ */z.createElement(yp,{...x})):/* @__PURE__ */z.createElement(yp,{...x}),a&&"end"===m&&/* @__PURE__ */z.createElement(hp,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d},f))});function yp(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;/* @__PURE__ */
|
14
|
+
return z.createElement(z.Fragment,null,t&&/* @__PURE__ */z.createElement(mp,{marginEnd:o},t),r,n&&/* @__PURE__ */z.createElement(mp,{marginStart:o},n))}vp.displayName="Button",Gr(function(e,t){const{size:n,colorScheme:r,variant:o,className:a,spacing:i="0.5rem",isAttached:s,isDisabled:l,...c}=e,u=up("chakra-button__group",a),d=z.useMemo(()=>({size:n,colorScheme:r,variant:o,isDisabled:l}),[n,r,o,l]);let p={display:"inline-flex"};return p=s?{...p,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{...p,"& > *:not(style) ~ *:not(style)":{marginStart:i}},/* @__PURE__ */z.createElement(pp,{value:d},/* @__PURE__ */z.createElement(Qr.div,{ref:t,role:"group",__css:p,className:u,"data-attached":s?"":void 0,...c}))}).displayName="ButtonGroup";var gp=Gr((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":a,...i}=e,s=n||r,l=z.isValidElement(s)?z.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/* @__PURE__ */
|
15
|
+
return z.createElement(vp,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i},l)});gp.displayName="IconButton";var bp=(...e)=>e.filter(Boolean).join(" "),Ep=e=>e?"":void 0,xp=e=>!!e||void 0;function wp(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[kp,Sp]=eo({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[_p,Cp]=eo({strict:!1,name:"FormControlContext"}),Op=Gr(function(e,t){const n=Jr("Form",e),r=ht(e),{getRootProps:o,htmlProps:a,...i}=function(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...i}=e,s=z.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[p,f]=z.useState(!1),[m,h]=z.useState(!1),[v,y]=z.useState(!1),g=z.useCallback((e={},t=null)=>({id:d,...e,ref:to(t,e=>{e&&h(!0)})}),[d]),b=z.useCallback((e={},t=null)=>({...e,ref:t,"data-focus":Ep(v),"data-disabled":Ep(o),"data-invalid":Ep(r),"data-readonly":Ep(a),id:e.id??c,htmlFor:e.htmlFor??l}),[l,o,v,r,a,c]),E=z.useCallback((e={},t=null)=>({id:u,...e,ref:to(t,e=>{e&&f(!0)}),"aria-live":"polite"}),[u]),x=z.useCallback((e={},t=null)=>({...e,...i,ref:t,role:"group"}),[i]),w=z.useCallback((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:f,hasHelpText:m,setHasHelpText:h,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:i,getHelpTextProps:g,getErrorMessageProps:E,getRootProps:x,getLabelProps:b,getRequiredIndicatorProps:w}}(r),s=bp("chakra-form-control",e.className);/* @__PURE__ */
|
16
|
+
return z.createElement(_p,{value:i},/* @__PURE__ */z.createElement(kp,{value:n},/* @__PURE__ */z.createElement(Qr.div,{...o({},t),className:s,__css:n.container})))});Op.displayName="FormControl";var Np=Gr(function(e,t){const n=Cp(),r=Sp(),o=bp("chakra-form__helper-text",e.className);/* @__PURE__ */
|
17
|
+
return z.createElement(Qr.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});function Ap(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=Rp(e);return{...a,disabled:t,readOnly:r,required:o,"aria-invalid":xp(n),"aria-required":xp(o),"aria-readonly":xp(r)}}function Rp(e){const t=Cp(),{id:n,disabled:r,readOnly:o,required:a,isRequired:i,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...p}=e,f=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==t?void 0:t.hasFeedbackText)&&(null==t?void 0:t.isInvalid)&&f.push(t.feedbackId),(null==t?void 0:t.hasHelpText)&&f.push(t.helpTextId),{...p,"aria-describedby":f.join(" ")||void 0,id:n??(null==t?void 0:t.id),isDisabled:r??c??(null==t?void 0:t.isDisabled),isReadOnly:o??l??(null==t?void 0:t.isReadOnly),isRequired:a??i??(null==t?void 0:t.isRequired),isInvalid:s??(null==t?void 0:t.isInvalid),onFocus:wp(null==t?void 0:t.onFocus,u),onBlur:wp(null==t?void 0:t.onBlur,d)}}Np.displayName="FormHelperText";var[Ip,Tp]=eo({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),Lp=Gr((e,t)=>{const n=Jr("FormError",e),r=ht(e),o=Cp();return(null==o?void 0:o.isInvalid)?/* @__PURE__ */z.createElement(Ip,{value:n},/* @__PURE__ */z.createElement(Qr.div,{...null==o?void 0:o.getErrorMessageProps(r,t),className:bp("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Lp.displayName="FormErrorMessage",Gr((e,t)=>{const n=Tp(),r=Cp();if(!(null==r?void 0:r.isInvalid))return null;const o=bp("chakra-form__error-icon",e.className);/* @__PURE__ */
|
18
|
+
return z.createElement(fo,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o},/* @__PURE__ */z.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}).displayName="FormErrorIcon";var Pp=Gr(function(e,t){const n=Kr("FormLabel",e),r=ht(e),{className:o,children:a,requiredIndicator:i=/* @__PURE__ */z.createElement(Mp,null),optionalIndicator:s=null,...l}=r,c=Cp(),u=(null==c?void 0:c.getLabelProps(l,t))??{ref:t,...l};/* @__PURE__ */
|
19
|
+
return z.createElement(Qr.label,{...u,className:bp("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...n}},a,(null==c?void 0:c.isRequired)?i:s)});Pp.displayName="FormLabel";var Mp=Gr(function(e,t){const n=Cp(),r=Sp();if(!(null==n?void 0:n.isRequired))return null;const o=bp("chakra-form__required-indicator",e.className);/* @__PURE__ */
|
20
|
+
return z.createElement(Qr.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})});function Dp(e,t){const n=z.useRef(!1),r=z.useRef(!1);z.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),z.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}Mp.displayName="RequiredIndicator";var jp={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};Qr("span",{baseStyle:jp}).displayName="VisuallyHidden",Qr("input",{baseStyle:jp}).displayName="VisuallyHiddenInput";var Vp=!1,Bp=null,Fp=!1,zp=/* @__PURE__ */new Set,$p="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Up(e,t){zp.forEach(n=>n(e,t))}function Wp(e){Fp=!0,function(e){return!(e.metaKey||!$p&&e.altKey||e.ctrlKey)}(e)&&(Bp="keyboard",Up("keyboard",e))}function Hp(e){Bp="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Fp=!0,Up("pointer",e))}function qp(e){e.target!==window&&e.target!==document&&(Fp||(Bp="keyboard",Up("keyboard",e)),Fp=!1)}function Yp(){Fp=!1}function Zp(){return"pointer"!==Bp}function Gp(e){!function(){if("undefined"==typeof window||Vp)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Fp=!0,e.apply(this,t)},document.addEventListener("keydown",Wp,!0),document.addEventListener("keyup",Wp,!0),window.addEventListener("focus",qp,!0),window.addEventListener("blur",Yp,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Hp,!0),document.addEventListener("pointermove",Hp,!0),document.addEventListener("pointerup",Hp,!0)):(document.addEventListener("mousedown",Hp,!0),document.addEventListener("mousemove",Hp,!0),document.addEventListener("mouseup",Hp,!0)),Vp=!0}(),e(Zp());const t=()=>e(Zp());return zp.add(t),()=>{zp.delete(t)}}var[Xp,Kp]=eo({name:"CheckboxGroupContext",strict:!1}),Jp=(...e)=>e.filter(Boolean).join(" "),Qp=e=>e?"":void 0;function ef(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function tf(e){/* @__PURE__ */
|
21
|
+
return z.createElement(Qr.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e},/* @__PURE__ */z.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function nf(e){/* @__PURE__ */
|
22
|
+
return z.createElement(Qr.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e},/* @__PURE__ */z.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function rf(e){const{isIndeterminate:t,isChecked:n,...r}=e;return n||t?/* @__PURE__ */z.createElement(Qr.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},/* @__PURE__ */z.createElement(t?nf:tf,{...r})):null}function of(e={}){const t=Rp(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:p,onChange:f,isIndeterminate:m,name:h,value:v,tabIndex:y,"aria-label":g,"aria-labelledby":b,"aria-invalid":E,...x}=e,w=function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),k=ho(f),S=ho(s),_=ho(l),[C,O]=z.useState(!1),[N,A]=z.useState(!1),[R,I]=z.useState(!1),[T,L]=z.useState(!1);z.useEffect(()=>Gp(O),[]);const P=z.useRef(null),[M,D]=z.useState(!0),[j,V]=z.useState(!!u),B=void 0!==d,F=B?d:j,$=z.useCallback(e=>{r||n?e.preventDefault():(B||V(F?e.target.checked:!!m||e.target.checked),null==k||k(e))},[r,n,F,B,m,k]);U(()=>{P.current&&(P.current.indeterminate=Boolean(m))},[m]),Dp(()=>{n&&A(!1)},[n,A]),U(()=>{const e=P.current;(null==e?void 0:e.form)&&(e.form.onreset=()=>{V(!!u)})},[]);const W=n&&!p,H=z.useCallback(e=>{" "===e.key&&L(!0)},[L]),q=z.useCallback(e=>{" "===e.key&&L(!1)},[L]);U(()=>{P.current&&P.current.checked!==F&&V(P.current.checked)},[P.current]);const Y=z.useCallback((e={},t=null)=>({...e,ref:t,"data-active":Qp(T),"data-hover":Qp(R),"data-checked":Qp(F),"data-focus":Qp(N),"data-focus-visible":Qp(N&&C),"data-indeterminate":Qp(m),"data-disabled":Qp(n),"data-invalid":Qp(a),"data-readonly":Qp(r),"aria-hidden":!0,onMouseDown:ef(e.onMouseDown,e=>{N&&e.preventDefault(),L(!0)}),onMouseUp:ef(e.onMouseUp,()=>L(!1)),onMouseEnter:ef(e.onMouseEnter,()=>I(!0)),onMouseLeave:ef(e.onMouseLeave,()=>I(!1))}),[T,F,n,N,C,R,m,a,r]),Z=z.useCallback((e={},t=null)=>({...w,...e,ref:to(t,e=>{e&&D("LABEL"===e.tagName)}),onClick:ef(e.onClick,()=>{var e;M||(null==(e=P.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=P.current)||e.focus()}))}),"data-disabled":Qp(n),"data-checked":Qp(F),"data-invalid":Qp(a)}),[w,n,F,a,M]),G=z.useCallback((e={},t=null)=>({...e,ref:to(P,t),type:"checkbox",name:h,value:v,id:i,tabIndex:y,onChange:ef(e.onChange,$),onBlur:ef(e.onBlur,S,()=>A(!1)),onFocus:ef(e.onFocus,_,()=>A(!0)),onKeyDown:ef(e.onKeyDown,H),onKeyUp:ef(e.onKeyUp,q),required:o,checked:F,disabled:W,readOnly:r,"aria-label":g,"aria-labelledby":b,"aria-invalid":E?Boolean(E):a,"aria-describedby":c,"aria-disabled":n,style:jp}),[h,v,i,$,S,_,H,q,o,F,W,r,g,b,E,a,c,n,y]),X=z.useCallback((e={},t=null)=>({...e,ref:t,onMouseDown:ef(e.onMouseDown,af),onTouchStart:ef(e.onTouchStart,af),"data-disabled":Qp(n),"data-checked":Qp(F),"data-invalid":Qp(a)}),[F,n,a]);return{state:{isInvalid:a,isFocused:N,isChecked:F,isActive:T,isHovered:R,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Z,getCheckboxProps:Y,getInputProps:G,getLabelProps:X,htmlProps:w}}function af(e){e.preventDefault(),e.stopPropagation()}var sf={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},lf={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},cf=wr({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),uf=wr({from:{opacity:0},to:{opacity:1}}),df=wr({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),pf=Gr(function(e,t){const n=Kp(),r=Jr("Checkbox",{...n,...e}),o=ht(e),{spacing:a="0.5rem",className:i,children:s,iconColor:l,iconSize:c,icon:u=/* @__PURE__ */z.createElement(rf,null),isChecked:d,isDisabled:p=(null==n?void 0:n.isDisabled),onChange:f,inputProps:m,...h}=o;let v=d;(null==n?void 0:n.value)&&o.value&&(v=n.value.includes(o.value));let y=f;(null==n?void 0:n.onChange)&&o.value&&(y=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,f));const{state:g,getInputProps:b,getCheckboxProps:E,getLabelProps:x,getRootProps:w}=of({...h,isDisabled:p,isChecked:v,onChange:y}),k=z.useMemo(()=>({animation:g.isIndeterminate?`${uf} 20ms linear, ${df} 200ms linear`:`${cf} 200ms linear`,fontSize:c,color:l,...r.icon}),[l,c,,g.isIndeterminate,r.icon]),S=z.cloneElement(u,{__css:k,isIndeterminate:g.isIndeterminate,isChecked:g.isChecked});/* @__PURE__ */
|
23
|
+
return z.createElement(Qr.label,{__css:{...lf,...r.container},className:Jp("chakra-checkbox",i),...w()},/* @__PURE__ */z.createElement("input",{className:"chakra-checkbox__input",...b(m,t)}),/* @__PURE__ */z.createElement(Qr.span,{__css:{...sf,...r.control},className:"chakra-checkbox__control",...E()},S),s&&/* @__PURE__ */z.createElement(Qr.span,{className:"chakra-checkbox__label",...x(),__css:{marginStart:a,...r.label}},s))});function ff(e,t){let n=function(e){const t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function mf(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function hf(e={}){const{onChange:t,precision:n,defaultValue:r,value:o,step:a=1,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,keepWithinRange:l=!0}=e,c=ho(t),[u,d]=z.useState(()=>null==r?"":gf(r,a,n)??""),p=void 0!==o,f=p?o:u,m=yf(vf(f),a),h=n??m,v=z.useCallback(e=>{e!==f&&(p||d(e.toString()),null==c||c(e.toString(),vf(e)))},[c,p,f]),y=z.useCallback(e=>{let t=e;return l&&(t=function(e,t,n){return null==e?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}(t,i,s)),ff(t,h)},[h,l,s,i]),g=z.useCallback((e=a)=>{let t;t=""===f?vf(e):vf(f)+e,t=y(t),v(t)},[y,a,v,f]),b=z.useCallback((e=a)=>{let t;t=""===f?vf(-e):vf(f)-e,t=y(t),v(t)},[y,a,v,f]),E=z.useCallback(()=>{let e;e=null==r?"":gf(r,a,n)??i,v(e)},[r,n,a,v,i]),x=z.useCallback(e=>{const t=gf(e,a,h)??i;v(t)},[h,a,v,i]),w=vf(f);return{isOutOfRange:w>s||w<i,isAtMax:w===s,isAtMin:w===i,precision:h,value:f,valueAsNumber:w,update:v,reset:E,increment:g,decrement:b,clamp:y,cast:x,setValue:d}}function vf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function yf(e,t){return Math.max(mf(t),mf(e))}function gf(e,t,n){const r=vf(e);if(Number.isNaN(r))return;const o=yf(r,t);return ff(r,n??o)}function bf(e,t,n,r){const o=ho(n);return z.useEffect(()=>{const a="function"==typeof e?e():e??document;if(n&&a)return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const n="function"==typeof e?e():e??document;null==n||n.removeEventListener(t,o,r)}}function Ef(...e){return z.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})},e)}function xf(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}pf.displayName="Checkbox";var wf=Gr(function(e,t){const{htmlSize:n,...r}=e,o=Jr("Input",r),a=Ap(ht(r)),i=uo("chakra-input",e.className);/* @__PURE__ */
|
24
|
+
return z.createElement(Qr.input,{size:n,...a,__css:o.field,ref:t,className:i})});wf.displayName="Input",wf.id="Input";var[kf,Sf]=eo({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),_f=Gr(function(e,t){const n=Jr("Input",e),{children:r,className:o,...a}=ht(e),i=uo("chakra-input__group",o),s={},l=cp(r),c=n.field;l.forEach(e=>{n&&(c&&"InputLeftElement"===e.type.id&&(s.paddingStart=c.height??c.h),c&&"InputRightElement"===e.type.id&&(s.paddingEnd=c.height??c.h),"InputRightAddon"===e.type.id&&(s.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(s.borderStartRadius=0))});const u=l.map(t=>{var n,r;const o=xf({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return z.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,s,t.props))});/* @__PURE__ */
|
25
|
+
return z.createElement(Qr.div,{className:i,ref:t,__css:{width:"100%",display:"flex",position:"relative"},...a},/* @__PURE__ */z.createElement(kf,{value:n},u))});_f.displayName="InputGroup";var Cf={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Of=Qr("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Nf=Gr(function(e,t){const{placement:n="left",...r}=e,o=Cf[n]??{},a=Sf();/* @__PURE__ */
|
26
|
+
return z.createElement(Of,{ref:t,...r,__css:{...a.addon,...o}})});Nf.displayName="InputAddon";var Af=Gr(function(e,t){/* @__PURE__ */
|
27
|
+
return z.createElement(Nf,{ref:t,placement:"left",...e,className:uo("chakra-input__left-addon",e.className)})});Af.displayName="InputLeftAddon",Af.id="InputLeftAddon";var Rf=Gr(function(e,t){/* @__PURE__ */
|
28
|
+
return z.createElement(Nf,{ref:t,placement:"right",...e,className:uo("chakra-input__right-addon",e.className)})});Rf.displayName="InputRightAddon",Rf.id="InputRightAddon";var If=Qr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Tf=Gr(function(e,t){const{placement:n="left",...r}=e,o=Sf(),a=o.field,i={["left"===n?"insetStart":"insetEnd"]:"0",width:(null==a?void 0:a.height)??(null==a?void 0:a.h),height:(null==a?void 0:a.height)??(null==a?void 0:a.h),fontSize:null==a?void 0:a.fontSize,...o.element};/* @__PURE__ */
|
29
|
+
return z.createElement(If,{ref:t,__css:i,...r})});Tf.id="InputElement",Tf.displayName="InputElement";var Lf=Gr(function(e,t){const{className:n,...r}=e,o=uo("chakra-input__left-element",n);/* @__PURE__ */
|
30
|
+
return z.createElement(Tf,{ref:t,placement:"left",className:o,...r})});Lf.id="InputLeftElement",Lf.displayName="InputLeftElement";var Pf=Gr(function(e,t){const{className:n,...r}=e,o=uo("chakra-input__right-element",n);/* @__PURE__ */
|
31
|
+
return z.createElement(Tf,{ref:t,placement:"right",className:o,...r})});function Mf(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):function(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}Pf.id="InputRightElement",Pf.displayName="InputRightElement",Object.freeze(["base","sm","md","lg","xl","2xl"]);var Df=Gr(function(e,t){const{ratio:n=4/3,children:r,className:o,...a}=e,i=z.Children.only(r),s=uo("chakra-aspect-ratio",o);/* @__PURE__ */
|
32
|
+
return z.createElement(Qr.div,{ref:t,position:"relative",className:s,_before:{height:0,content:'""',display:"block",paddingBottom:Mf(n,e=>1/e*100+"%")},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a},i)});Df.displayName="AspectRatio",Gr(function(e,t){const n=Kr("Badge",e),{className:r,...o}=ht(e);/* @__PURE__ */
|
33
|
+
return z.createElement(Qr.span,{ref:t,className:uo("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}).displayName="Badge";var jf=Qr("div");jf.displayName="Box";var Vf=Gr(function(e,t){const{size:n,centerContent:r=!0,...o}=e;/* @__PURE__ */
|
34
|
+
return z.createElement(jf,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});Vf.displayName="Square",Gr(function(e,t){const{size:n,...r}=e;/* @__PURE__ */
|
35
|
+
return z.createElement(Vf,{size:n,ref:t,borderRadius:"9999px",...r})}).displayName="Circle",Qr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}).displayName="Center";var Bf={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Gr(function(e,t){const{axis:n="both",...r}=e;/* @__PURE__ */
|
36
|
+
return z.createElement(Qr.div,{ref:t,__css:Bf[n],...r,position:"absolute"})}),Gr(function(e,t){const n=Kr("Code",e),{className:r,...o}=ht(e);/* @__PURE__ */
|
37
|
+
return z.createElement(Qr.code,{ref:t,className:uo("chakra-code",e.className),...o,__css:{display:"inline-block",...n}})}).displayName="Code",Gr(function(e,t){const{className:n,centerContent:r,...o}=ht(e),a=Kr("Container",e);/* @__PURE__ */
|
38
|
+
return z.createElement(Qr.div,{ref:t,className:uo("chakra-container",n),...o,__css:{...a,...r&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}).displayName="Container",Gr(function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:a,borderWidth:i,borderStyle:s,borderColor:l,...c}=Kr("Divider",e),{className:u,orientation:d="horizontal",__css:p,...f}=ht(e);/* @__PURE__ */
|
39
|
+
return z.createElement(Qr.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...{vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}}[d],...p},className:uo("chakra-divider",u)})}).displayName="Divider";var Ff=Gr(function(e,t){const{direction:n,align:r,justify:o,wrap:a,basis:i,grow:s,shrink:l,...c}=e;/* @__PURE__ */
|
40
|
+
return z.createElement(Qr.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l},...c})});Ff.displayName="Flex";var zf=Gr(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:p,...f}=e;/* @__PURE__ */
|
41
|
+
return z.createElement(Qr.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p},...f})});function $f(e){return Mf(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}zf.displayName="Grid",Gr(function(e,t){const{area:n,colSpan:r,colStart:o,colEnd:a,rowEnd:i,rowSpan:s,rowStart:l,...c}=e,u=xf({gridArea:n,gridColumn:$f(r),gridRow:$f(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});/* @__PURE__ */
|
42
|
+
return z.createElement(Qr.div,{ref:t,__css:u,...c})}).displayName="GridItem",Gr(function(e,t){const n=Kr("Heading",e),{className:r,...o}=ht(e);/* @__PURE__ */
|
43
|
+
return z.createElement(Qr.h2,{ref:t,className:uo("chakra-heading",e.className),...o,__css:n})}).displayName="Heading",Gr(function(e,t){const n=Kr("Mark",e),r=ht(e);/* @__PURE__ */
|
44
|
+
return z.createElement(jf,{ref:t,...r,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...n}})}),Gr(function(e,t){const n=Kr("Kbd",e),{className:r,...o}=ht(e);/* @__PURE__ */
|
45
|
+
return z.createElement(Qr.kbd,{ref:t,className:uo("chakra-kbd",r),...o,__css:{fontFamily:"mono",...n}})}).displayName="Kbd",Gr(function(e,t){const n=Kr("Link",e),{className:r,isExternal:o,...a}=ht(e);/* @__PURE__ */
|
46
|
+
return z.createElement(Qr.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:uo("chakra-link",r),...a,__css:n})}).displayName="Link",Gr(function(e,t){const{isExternal:n,target:r,rel:o,className:a,...i}=e;/* @__PURE__ */
|
47
|
+
return z.createElement(Qr.a,{...i,ref:t,className:uo("chakra-linkbox__overlay",a),rel:n?"noopener noreferrer":o,target:n?"_blank":r,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),Gr(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
|
48
|
+
return z.createElement(Qr.div,{ref:t,position:"relative",...r,className:uo("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[Uf,Wf]=eo({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),Hf=Gr(function(e,t){const n=Jr("List",e),{children:r,styleType:o="none",stylePosition:a,spacing:i,...s}=ht(e),l=cp(r);/* @__PURE__ */
|
49
|
+
return z.createElement(Uf,{value:n},/* @__PURE__ */z.createElement(Qr.ul,{ref:t,listStyleType:o,listStylePosition:a,role:"list",__css:{...n.container,...i?{"& > *:not(style) ~ *:not(style)":{mt:i}}:{}},...s},l))});Hf.displayName="List",Gr((e,t)=>{const{as:n,...r}=e;/* @__PURE__ */
|
50
|
+
return z.createElement(Hf,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList",Gr(function(e,t){const{as:n,...r}=e;/* @__PURE__ */
|
51
|
+
return z.createElement(Hf,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})}).displayName="UnorderedList",Gr(function(e,t){const n=Wf();/* @__PURE__ */
|
52
|
+
return z.createElement(Qr.li,{ref:t,...e,__css:n.item})}).displayName="ListItem",Gr(function(e,t){const n=Wf();/* @__PURE__ */
|
53
|
+
return z.createElement(fo,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon";var qf=Gr(function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:a,minChildWidth:i,...s}=e,l=Wr(),c=i?function(e,t){return Mf(e,e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return e=>{const n=o.filter(Boolean),a=r.map((t,r)=>function(e,t,n){if(null==t)return t;const r=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return r(t)??r(n)??n}(e,`sizes.${t}`,n[r]??t));return Array.isArray(t)?a:a[0]}}(0,e,function(e){return"number"==typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(i,l):Mf(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);/* @__PURE__ */
|
54
|
+
return z.createElement(zf,{ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:c,...s})});qf.displayName="SimpleGrid",Qr("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}}).displayName="Spacer";var Yf="& > *:not(style) ~ *:not(style)",Zf=e=>/* @__PURE__ */z.createElement(Qr.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Zf.displayName="StackItem";var Gf=Gr((e,t)=>{const{isInline:n,direction:r,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:d,...p}=e,f=n?"row":r??"column",m=z.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[Yf]:Mf(n,e=>r[e])}}({direction:f,spacing:i}),[f,i]),h=z.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Mf(n,e=>r[e])}}({spacing:i,direction:f}),[i,f]),v=!!c,y=!d&&!v,g=z.useMemo(()=>{const e=cp(l);return y?e:e.map((t,n)=>{const r=void 0!==t.key?t.key:n,o=n+1===e.length,a=d?/* @__PURE__ */z.createElement(Zf,{key:r},t):t;if(!v)return a;const i=z.cloneElement(c,{__css:h});/* @__PURE__ */
|
55
|
+
return z.createElement(z.Fragment,{key:r},a,o?null:i)})},[c,h,v,y,d,l]),b=uo("chakra-stack",u);/* @__PURE__ */
|
56
|
+
return z.createElement(Qr.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:m.flexDirection,flexWrap:s,className:b,__css:v?{}:{[Yf]:m[Yf]},...p},g)});Gf.displayName="Stack";var Xf=Gr((e,t)=>/* @__PURE__ */z.createElement(Gf,{align:"center",...e,direction:"row",ref:t}));function Kf(e){return"number"==typeof e?`${e}px`:e}Xf.displayName="HStack",Gr((e,t)=>/* @__PURE__ */z.createElement(Gf,{align:"center",...e,direction:"column",ref:t})).displayName="VStack",Gr(function(e,t){const n=Kr("Text",e),{className:r,align:o,decoration:a,casing:i,...s}=ht(e),l=xf({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/* @__PURE__ */
|
57
|
+
return z.createElement(Qr.p,{ref:t,className:uo("chakra-text",e.className),...l,...s,__css:n})}).displayName="Text";var Jf=Gr(function(e,t){const{spacing:n="0.5rem",spacingX:r,spacingY:o,children:a,justify:i,direction:s,align:l,className:c,shouldWrapChildren:u,...d}=e,p=z.useMemo(()=>{const{spacingX:e=n,spacingY:t=n}={spacingX:r,spacingY:o};return{"--chakra-wrap-x-spacing":t=>Mf(e,e=>Kf(K("space",e)(t))),"--chakra-wrap-y-spacing":e=>Mf(t,t=>Kf(K("space",t)(e))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:i,alignItems:l,flexDirection:s,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[n,r,o,i,l,s]),f=z.useMemo(()=>u?z.Children.map(a,(e,t)=>/* @__PURE__ */z.createElement(Qf,{key:t},e)):a,[a,u]);/* @__PURE__ */
|
58
|
+
return z.createElement(Qr.div,{ref:t,className:uo("chakra-wrap",c),overflow:"hidden",...d},/* @__PURE__ */z.createElement(Qr.ul,{className:"chakra-wrap__list",__css:p},f))});Jf.displayName="Wrap";var Qf=Gr(function(e,t){const{className:n,...r}=e;/* @__PURE__ */
|
59
|
+
return z.createElement(Qr.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:uo("chakra-wrap__listitem",n),...r})});function em(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function tm(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function nm(e){return!!tm(e)&&e instanceof(e.ownerDocument.defaultView??window).HTMLElement}function rm(e){return tm(e)?e.ownerDocument:document}Qf.displayName="WrapItem";var om=e=>e.hasAttribute("tabindex");function am(e){return!(!e.parentElement||!am(e.parentElement))||e.hidden}function im(e){if(!nm(e)||am(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||om(e)}var sm="top",lm="bottom",cm="right",um="left",dm=[sm,lm,cm,um],pm=/*#__PURE__*/dm.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),fm=/*#__PURE__*/[].concat(dm,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),mm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function hm(e){return e?(e.nodeName||"").toLowerCase():null}function vm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ym(e){return e instanceof vm(e).Element||e instanceof Element}function gm(e){return e instanceof vm(e).HTMLElement||e instanceof HTMLElement}function bm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof vm(e).ShadowRoot||e instanceof ShadowRoot)}function Em(e){return e.split("-")[0]}var xm=Math.max,wm=Math.min,km=Math.round;function Sm(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(gm(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=km(n.width)/i||1),a>0&&(o=km(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function _m(e){var t=Sm(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 Cm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Om(e){return vm(e).getComputedStyle(e)}function Nm(e){return["table","td","th"].indexOf(hm(e))>=0}function Am(e){return((ym(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rm(e){return"html"===hm(e)?e:e.assignedSlot||e.parentNode||(bm(e)?e.host:null)||Am(e)}function Im(e){return gm(e)&&"fixed"!==Om(e).position?e.offsetParent:null}function Tm(e){for(var t=vm(e),n=Im(e);n&&Nm(n)&&"static"===Om(n).position;)n=Im(n);return n&&("html"===hm(n)||"body"===hm(n)&&"static"===Om(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&gm(e)&&"fixed"===Om(e).position)return null;var n=Rm(e);for(bm(n)&&(n=n.host);gm(n)&&["html","body"].indexOf(hm(n))<0;){var r=Om(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 Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pm(e,t,n){return xm(e,wm(t,n))}function Mm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Dm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function jm(e){return e.split("-")[1]}var Vm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=um,E=sm,x=window;if(c){var w=Tm(n),k="clientHeight",S="clientWidth";w===vm(n)&&"static"!==Om(w=Am(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===sm||(o===um||o===cm)&&"end"===a)&&(E=lm,h-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,h*=l?1:-1),o!==um&&(o!==sm&&o!==lm||"end"!==a)||(b=cm,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var _,C=Object.assign({position:s},c&&Vm),O=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:km(e.x*n)/n||0,y:km(t*n)/n||0}}({x:f,y:h}):{x:f,y:h};return f=O.x,h=O.y,Object.assign({},C,l?((_={})[E]=g?"0":"",_[b]=y?"0":"",_.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",_):((t={})[E]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}var Fm={passive:!0},zm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=vm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Fm)}),s&&l.addEventListener("resize",n.update,Fm),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Fm)}),s&&l.removeEventListener("resize",n.update,Fm)}},data:{}},$m={left:"right",right:"left",bottom:"top",top:"bottom"};function Um(e){return e.replace(/left|right|bottom|top/g,function(e){return $m[e]})}var Wm={start:"end",end:"start"};function Hm(e){return e.replace(/start|end/g,function(e){return Wm[e]})}function qm(e){var t=vm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ym(e){return Sm(Am(e)).left+qm(e).scrollLeft}function Zm(e){var t=Om(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Gm(e){return["html","body","#document"].indexOf(hm(e))>=0?e.ownerDocument.body:gm(e)&&Zm(e)?e:Gm(Rm(e))}function Xm(e,t){var n;void 0===t&&(t=[]);var r=Gm(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=vm(r),i=o?[a].concat(a.visualViewport||[],Zm(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Xm(Rm(i)))}function Km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jm(e,t){return"viewport"===t?Km(function(e){var t=vm(e),n=Am(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Ym(e),y:s}}(e)):ym(t)?function(e){var t=Sm(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):Km(function(e){var t,n=Am(e),r=qm(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=xm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=xm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ym(e),l=-r.scrollTop;return"rtl"===Om(o||n).direction&&(s+=xm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Am(e)))}function Qm(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Em(o):null,i=o?jm(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case sm:t={x:s,y:n.y-r.height};break;case lm:t={x:s,y:n.y+n.height};break;case cm:t={x:n.x+n.width,y:l};break;case um:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?Lm(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function eh(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,p=t.padding,f=void 0===p?0:p,m=Mm("number"!=typeof f?f:Dm(f,dm)),h=e.rects.popper,v=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=Xm(Rm(e)),n=["absolute","fixed"].indexOf(Om(e).position)>=0&&gm(e)?Tm(e):e;return ym(n)?t.filter(function(e){return ym(e)&&Cm(e,n)&&"body"!==hm(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=Jm(e,n);return t.top=xm(r.top,t.top),t.right=wm(r.right,t.right),t.bottom=wm(r.bottom,t.bottom),t.left=xm(r.left,t.left),t},Jm(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ym(v)?v:v.contextElement||Am(e.elements.popper),a,s),g=Sm(e.elements.reference),b=Qm({reference:g,element:h,strategy:"absolute",placement:r}),E=Km(Object.assign({},h,b)),x="popper"===c?E:g,w={top:y.top-x.top+m.top,bottom:x.bottom-y.bottom+m.bottom,left:y.left-x.left+m.left,right:x.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[cm,lm].indexOf(e)>=0?1:-1,n=[sm,lm].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function th(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?fm:i,l=jm(t.placement),c=l?a?pm:pm.filter(function(e){return jm(e)===l}):dm,u=c.filter(function(e){return s.indexOf(e)>=0});0===u.length&&(u=c,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce(function(t,a){return t[a]=eh(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[Em(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var nh={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,y=Em(v),g=l||(y!==v&&m?function(e){if("auto"===Em(e))return[];var t=Um(e);return[Hm(e),t,Hm(t)]}(v):[Um(v)]),b=[v].concat(g).reduce(function(e,n){return e.concat("auto"===Em(n)?th(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,S=b[0],_=0;_<b.length;_++){var C=b[_],O=Em(C),N="start"===jm(C),A=[sm,lm].indexOf(O)>=0,R=A?"width":"height",I=eh(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=A?N?cm:um:N?lm:sm;E[R]>x[R]&&(T=Um(T));var L=Um(T),P=[];if(a&&P.push(I[O]<=0),s&&P.push(I[T]<=0,I[L]<=0),P.every(function(e){return e})){S=C,k=!1;break}w.set(C,P)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},D=m?3:1;D>0&&"break"!==M(D);D--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rh(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 oh(e){return[sm,cm,lm,um].some(function(t){return e[t]>=0})}var ah={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=fm.reduce(function(e,n){return e[n]=function(e,t,n){var r=Em(e),o=[um,sm].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[um,cm].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},ih={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.tether,c=void 0===l||l,u=n.tetherOffset,d=void 0===u?0:u,p=eh(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),f=Em(t.placement),m=jm(t.placement),h=!m,v=Lm(f),y="x"===v?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,E=t.rects.popper,x="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var _,C="y"===v?sm:um,O="y"===v?lm:cm,N="y"===v?"height":"width",A=g[v],R=A+p[C],I=A-p[O],T=c?-E[N]/2:0,L="start"===m?b[N]:E[N],P="start"===m?-E[N]:-b[N],M=t.elements.arrow,D=c&&M?_m(M):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=j[C],B=j[O],F=Pm(0,b[N],D[N]),z=h?b[N]/2-T-F-V-w.mainAxis:L-F-V-w.mainAxis,$=h?-b[N]/2+T+F+B+w.mainAxis:P+F+B+w.mainAxis,U=t.elements.arrow&&Tm(t.elements.arrow),W=null!=(_=null==k?void 0:k[v])?_:0,H=A+$-W,q=Pm(c?wm(R,A+z-W-(U?"y"===v?U.clientTop||0:U.clientLeft||0:0)):R,A,c?xm(I,H):I);g[v]=q,S[v]=q-A}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+p["x"===v?sm:um],K=Z-p["x"===v?lm:cm],J=-1!==[sm,um].indexOf(f),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-E[G]-Q+w.altAxis,te=J?Z+b[G]+E[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Pm(e,t,n);return r>n?n:r}(ee,Z,te):Pm(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function sh(e,t,n){void 0===n&&(n=!1);var r=gm(t),o=gm(t)&&function(e){var t=e.getBoundingClientRect(),n=km(t.width)/e.offsetWidth||1,r=km(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Am(t),i=Sm(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==hm(t)||Zm(a))&&(s=function(e){return e!==vm(e)&&gm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:qm(e);var t}(t)),gm(t)?((l=Sm(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ym(a))),{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 o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function ch(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 uh='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',dh=["name","enabled","phase","fn","effect","requires","options"],ph="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",fh={placement:"bottom",modifiers:[],strategy:"absolute"};function mh(){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 hh(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?fh:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},fh,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:ym(e)?Xm(e):e.contextElement?Xm(e.contextElement):[],popper:Xm(t)};var i,c,p,f=function(e){var t=lh(e);return mm.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(f,s.options.modifiers),c=function(e){return e.name},p=new Set,i.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),dh).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(ch(uh,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(ch(uh,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":mm.indexOf(t.phase)<0&&console.error(ch(uh,t.name,'"phase"',"either "+mm.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(ch(uh,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(ch(uh,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(ch(uh,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(ch(uh,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 '+dh.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(ch('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===Em(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var h=Om(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:u,options:void 0===t?{}:t});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(mh(t,n)){s.rects={reference:sh(t,Tm(n),"fixed"===s.options.strategy),popper:_m(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(ph)}},update:(a=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(a())})})),i}),destroy:function(){d(),c=!0}};if(!mh(e,t))return"production"!==process.env.NODE_ENV&&console.error(ph),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 vh=/*#__PURE__*/hh({defaultModifiers:[zm,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Qm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Om(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:Em(t.placement),variation:jm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Bm(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,Bm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];gm(o)&&hm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});gm(r)&&hm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},ah,nh,ih,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Em(n.placement),l=Lm(s),c=[um,cm].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Mm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Dm(e,dm))}(o.padding,n),d=_m(a),p="y"===l?sm:um,f="y"===l?lm:cm,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=Tm(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=y/2-d[c]/2+(m/2-h/2),b=Pm(u[p],g,y-d[c]-u[f]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(gm(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(" "))),Cm(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=eh(t,{elementContext:"reference"}),s=eh(t,{altBoundary:!0}),l=rh(i,r),c=rh(s,o,a),u=oh(l),d=oh(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})}}]}),yh=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),gh={arrowShadowColor:yh("--popper-arrow-shadow-color"),arrowSize:yh("--popper-arrow-size","8px"),arrowSizeHalf:yh("--popper-arrow-size-half"),arrowBg:yh("--popper-arrow-bg"),transformOrigin:yh("--popper-transform-origin"),arrowOffset:yh("--popper-arrow-offset")},bh={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"},Eh={scroll:!0,resize:!0};function xh(e){let t;return t="object"==typeof e?{enabled:!0,options:{...Eh,...e}}:{enabled:e,options:Eh},t}var wh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},kh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Sh(e)},effect:({state:e})=>()=>{Sh(e)}},Sh=e=>{e.elements.popper.style.setProperty(gh.transformOrigin.var,bh[e.placement])},_h={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Ch(e)}},Ch=e=>{var t;if(!e.placement)return;const n=Oh(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:gh.arrowSize.varRef,height:gh.arrowSize.varRef,zIndex:-1});const t={[gh.arrowSizeHalf.var]:`calc(${gh.arrowSize.varRef} / 2)`,[gh.arrowOffset.var]:`calc(${gh.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},Oh=e=>e.startsWith("top")?{property:"bottom",value:gh.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:gh.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:gh.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:gh.arrowOffset.varRef}:void 0,Nh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Ah(e)},effect:({state:e})=>()=>{Ah(e)}},Ah=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");var n;t&&Object.assign(t.style,{transform:"rotate(45deg)",background:gh.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(n=e.placement,n.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})},Rh={"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"}},Ih={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Th(e){const{size:t,shadowColor:n,bg:r,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function Lh(e,t){var n;const r=e.target;return!(e.button>0||r&&!Ph(r).contains(r)||(null==(n=t.current)?void 0:n.contains(r)))}function Ph(e){return(null==e?void 0:e.ownerDocument)??document}var Mh=(...e)=>e.filter(Boolean).join(" ");function Dh(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function jh(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}var[Vh,Bh,Fh,zh]=co(),[$h,Uh]=eo({strict:!1,name:"MenuContext"});function Wh(e){return(null==e?void 0:e.ownerDocument)??document}function Hh(e){return Wh(e).activeElement===e}function qh(e){var t,n;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(n=e)&&n instanceof(n.ownerDocument.defaultView??window).HTMLElement&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function Yh(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:a,isDisabled:i,isFocusable:s,closeOnSelect:l,type:c,...u}=e,d=Uh(),{setFocusedIndex:p,focusedIndex:f,closeOnSelect:m,onClose:h,menuRef:v,isOpen:y,menuId:g}=d,b=z.useRef(null),E=`${g}-menuitem-${z.useId()}`,{index:x,register:w}=zh({disabled:i&&!s}),k=z.useCallback(e=>{null==n||n(e),i||p(x)},[p,x,i,n]),S=z.useCallback(e=>{null==r||r(e),b.current&&!Hh(b.current)&&k(e)},[k,r]),_=z.useCallback(e=>{null==o||o(e),i||p(-1)},[p,i,o]),C=z.useCallback(e=>{null==a||a(e),qh(e.currentTarget)&&(l??m)&&h()},[h,a,m,l]),O=x===f,N=i&&!s;Dp(()=>{y&&(O&&!N&&b.current?requestAnimationFrame(()=>{var e;null==(e=b.current)||e.focus()}):v.current&&!Hh(v.current)&&v.current.focus())},[O,N,v,y]);const A=function(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:p,onMouseLeave:f,...m}=e,[h,v]=z.useState(!0),[y,g]=z.useState(!1),b=function(){const e=z.useRef(/* @__PURE__ */new Map),t=e.current,n=z.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=z.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return z.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=h?d:d||0,x=n&&!r,w=z.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),k=z.useCallback(e=>{y&&em(e)&&(e.preventDefault(),e.stopPropagation(),g(!1),b.remove(document,"keyup",k,!1))},[y,b]),S=z.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!em(e.nativeEvent)||h)return;const t=o&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),g(!0)),t&&(e.preventDefault(),e.currentTarget.click()),b.add(document,"keyup",k,!1)},[n,h,c,o,a,b,k]),_=z.useCallback(e=>{null==u||u(e),n||e.defaultPrevented||e.metaKey||em(e.nativeEvent)&&!h&&a&&" "===e.key&&(e.preventDefault(),g(!1),e.currentTarget.click())},[a,h,n,u]),C=z.useCallback(e=>{0===e.button&&(g(!1),b.remove(document,"mouseup",C,!1))},[b]),O=z.useCallback(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();h||g(!0),e.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",C,!1),null==i||i(e)}},[n,h,i,b,C]),N=z.useCallback(e=>{0===e.button&&(h||g(!1),null==s||s(e))},[s,h]),A=z.useCallback(e=>{n?e.preventDefault():null==p||p(e)},[n,p]),R=z.useCallback(e=>{y&&(e.preventDefault(),g(!1)),null==f||f(e)},[y,f]),I=to(t,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return h?{...m,ref:I,type:"button","aria-disabled":x?void 0:n,disabled:x,onClick:w,onMouseDown:i,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:p,onMouseLeave:f}:{...m,ref:I,role:"button","data-active":(T=y,T?"":void 0),"aria-disabled":n?"true":void 0,tabIndex:x?void 0:E,onClick:w,onMouseDown:O,onMouseUp:N,onKeyUp:_,onKeyDown:S,onMouseOver:A,onMouseLeave:R};var T}({onClick:C,onMouseEnter:k,onMouseMove:S,onMouseLeave:_,ref:to(w,b,t),isDisabled:i,isFocusable:s});return{...u,...A,type:c??A.type,id:E,role:"menuitem",tabIndex:O?0:-1}}var[Zh,Gh]=eo({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),Xh=e=>{const{children:t}=e,n=Jr("Menu",e),r=ht(e),{direction:o}=Wr(),{descendants:a,...i}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:a,isOpen:i,defaultIsOpen:s,onClose:l,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:f=!1,...m}=e,h=z.useRef(null),v=z.useRef(null),y=Fh(),g=z.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!1})})},[]),b=z.useCallback(()=>{const e=setTimeout(()=>{const e=y.firstEnabled();e&&N(e.index)});L.current.add(e)},[y]),E=z.useCallback(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&N(e.index)});L.current.add(e)},[y]),x=z.useCallback(()=>{null==c||c(),o?b():g()},[o,b,g,c]),{isOpen:w,onOpen:k,onClose:S,onToggle:_}=function(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=ho(n),i=ho(t),[s,l]=z.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=z.useId(),p=o??`disclosure-${d}`,f=z.useCallback(()=>{u||l(!1),null==i||i()},[u,i]),m=z.useCallback(()=>{u||l(!0),null==a||a()},[u,a]),h=z.useCallback(()=>{c?f():m()},[c,m,f]);return{isOpen:c,onOpen:m,onClose:f,onToggle:h,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),h()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}({isOpen:i,defaultIsOpen:s,onClose:l,onOpen:x});!function(e){const{ref:t,handler:n,enabled:r=!0}=e,o=ho(n),a=z.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;z.useEffect(()=>{if(!r)return;const e=e=>{Lh(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&Lh(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Lh(e,t)&&(a.isPointerDown=!1,o(e))},l=Ph(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,a,r])}({enabled:w&&r,ref:h,handler:e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||S()}});const C=function(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:p,direction:f="ltr"}=e,m=z.useRef(null),h=z.useRef(null),v=z.useRef(null),y=function(e,t="ltr"){var n;const r=(null==(n=Rh[e])?void 0:n[t])||e;return"ltr"===t?r:Ih[e]??r}(r,f),g=z.useRef(()=>{}),b=z.useCallback(()=>{var e;t&&m.current&&h.current&&(null==(e=g.current)||e.call(g),v.current=vh(m.current,h.current,{placement:y,modifiers:[Nh,_h,kh,{...wh,enabled:!!p},{name:"eventListeners",...xh(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...n??[]],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)},[y,t,n,p,i,a,s,l,c,d,u,o]);z.useEffect(()=>()=>{var e;m.current||h.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const E=z.useCallback(e=>{m.current=e,b()},[b]),x=z.useCallback((e={},t=null)=>({...e,ref:to(E,t)}),[E]),w=z.useCallback(e=>{h.current=e,b()},[b]),k=z.useCallback((e={},t=null)=>({...e,ref:to(w,t),style:{...e.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,w,p]),S=z.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:a,...i}=e;return{...i,ref:t,"data-popper-arrow":"",style:Th(e)}},[]),_=z.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:gh.transformOrigin.varRef,referenceRef:E,popperRef:w,getPopperProps:k,getArrowProps:S,getArrowInnerProps:_,getReferenceProps:x}}({...m,enabled:w||f,placement:u,direction:p}),[O,N]=z.useState(-1);Dp(()=>{w||N(-1)},[w]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,a=n&&!r;Dp(()=>{if(!a)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return rm(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&nm(r)&&im(r))||(e=>om(e)&&-1===e.tabIndex)(r)));var r}(e))return;const t=(null==o?void 0:o.current)||e.current;t&&requestAnimationFrame(()=>{t.focus()})},[a,e,o])}(h,{focusRef:v,visible:w,shouldFocus:!0});const A=function(e){const{isOpen:t,ref:n}=e,[r,o]=z.useState(t),[a,i]=z.useState(!1);return z.useEffect(()=>{a||(o(t),i(!0))},[t,a,r]),bf(()=>n.current,"animationend",()=>{o(t)}),{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t;return(null==(t=rm(e))?void 0:t.defaultView)??window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:w,ref:h}),[R,I]=function(e,...t){const n=z.useId(),r=e||n;return z.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(t,"menu-button","menu-list"),T=z.useCallback(()=>{k(),g()},[k,g]),L=z.useRef(/* @__PURE__ */new Set([]));!function(e,t=[]){z.useEffect(()=>()=>e(),t)}(()=>{L.current.forEach(e=>clearTimeout(e)),L.current.clear()});const P=z.useCallback(()=>{k(),b()},[b,k]),M=z.useCallback(()=>{k(),E()},[k,E]),D=z.useCallback(()=>{var e,t;const n=Wh(h.current),r=null==(e=h.current)?void 0:e.contains(n.activeElement);if(!w||r)return;const o=null==(t=y.item(O))?void 0:t.node;null==o||o.focus()},[w,O,y]);return{openAndFocusMenu:T,openAndFocusFirstItem:P,openAndFocusLastItem:M,onTransitionEnd:D,unstable__animationState:A,descendants:y,popper:C,buttonId:R,menuId:I,forceUpdate:C.forceUpdate,orientation:"vertical",isOpen:w,onToggle:_,onOpen:k,onClose:S,menuRef:h,buttonRef:v,focusedIndex:O,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:N,isLazy:a,lazyBehavior:d}}({...r,direction:o}),s=z.useMemo(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:u}=s;/* @__PURE__ */
|
60
|
+
return z.createElement(Vh,{value:a},/* @__PURE__ */z.createElement($h,{value:s},/* @__PURE__ */z.createElement(Zh,{value:n},function(e,...t){return"function"==typeof e?e(...t):e}(t,{isOpen:l,onClose:c,forceUpdate:u}))))};Xh.displayName="Menu";var Kh=Gr((e,t)=>{const n=Gh();/* @__PURE__ */
|
61
|
+
return z.createElement(Qr.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),Jh=Gr((e,t)=>{const{children:n,as:r,...o}=e,a=function(e={},t=null){const n=Uh(),{onToggle:r,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=n,s=z.useCallback(e=>{const t={Enter:a,ArrowDown:a,ArrowUp:i}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,i]);return{...e,ref:to(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(l=n.isOpen,l?"":void 0),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Dh(e.onClick,r),onKeyDown:Dh(e.onKeyDown,s)};var l}(o,t);/* @__PURE__ */
|
62
|
+
return z.createElement(r||Kh,{...a,className:Mh("chakra-menu__menu-button",e.className)},/* @__PURE__ */z.createElement(Qr.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});Jh.displayName="MenuButton";var Qh=Gr((e,t)=>{const n=Gh();/* @__PURE__ */
|
63
|
+
return z.createElement(Qr.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});Qh.displayName="MenuCommand";var ev=Gr((e,t)=>{const{title:n,children:r,className:o,...a}=e,i=Mh("chakra-menu__group__title",o),s=Gh();/* @__PURE__ */
|
64
|
+
return z.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/* @__PURE__ */z.createElement(Qr.p,{className:i,...a,__css:s.groupTitle},n),r)});ev.displayName="MenuGroup";var tv=e=>{const{className:t,children:n,...r}=e,o=z.Children.only(n),a=z.isValidElement(o)?z.cloneElement(o,{focusable:"false","aria-hidden":!0,className:Mh("chakra-menu__icon",o.props.className)}):null,i=Mh("chakra-menu__icon-wrapper",t);/* @__PURE__ */
|
65
|
+
return z.createElement(Qr.span,{className:i,...r,__css:{flexShrink:0}},a)};tv.displayName="MenuIcon";var nv=Gr((e,t)=>{const{type:n,...r}=e,o=Gh(),a=r.as||n?n??void 0:"button",i=z.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);/* @__PURE__ */
|
66
|
+
return z.createElement(Qr.button,{ref:t,type:a,...r,__css:i})}),rv=e=>/* @__PURE__ */z.createElement("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e},/* @__PURE__ */z.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"})),ov=Gr((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",...o}=e,a=function(e={},t=null){const{type:n="radio",isChecked:r,...o}=e;return{...Yh(o,t),role:`menuitem${n}`,"aria-checked":r}}(o,t);/* @__PURE__ */
|
67
|
+
return z.createElement(nv,{...a,className:Mh("chakra-menu__menuitem-option",o.className)},null!==n&&/* @__PURE__ */z.createElement(tv,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||/* @__PURE__ */z.createElement(rv,null)),/* @__PURE__ */z.createElement("span",{style:{flex:1}},a.children))});ov.id="MenuItemOption",ov.displayName="MenuItemOption",Gr((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:a="0.75rem",children:i,...s}=e,l=Yh(s,t),c=n||o?/* @__PURE__ */z.createElement("span",{style:{pointerEvents:"none",flex:1}},i):i;/* @__PURE__ */
|
68
|
+
return z.createElement(nv,{...l,className:Mh("chakra-menu__menuitem",l.className)},n&&/* @__PURE__ */z.createElement(tv,{fontSize:"0.8em",marginEnd:r},n),c,o&&/* @__PURE__ */z.createElement(Qh,{marginStart:a},o))}).displayName="MenuItem";var av={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"}}},iv=Qr(Rd.div),sv=Gr(function(e,t){var n;const{rootProps:r,motionProps:o,...a}=e,{isOpen:i,onTransitionEnd:s,unstable__animationState:l}=Uh(),c=function(e={},t=null){const n=Uh();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:o,menuRef:a,isOpen:i,onClose:s,menuId:l,isLazy:c,lazyBehavior:u,unstable__animationState:d}=n,p=Bh(),f=function(e={}){const{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=z.useState([]),a=z.useRef(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return z.useEffect(()=>i,[]),function(e){return s=>{if("Backspace"===s.key){const e=[...r];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){const l=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(l),e(l.join("")),i(),a.current=setTimeout(()=>{o([]),a.current=null},t)}}}}({preventDefault:e=>" "!==e.key&&qh(e.target)}),m=z.useCallback(e=>{const t={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{const e=p.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{const e=p.prevEnabled(r);e&&o(e.index)}},n=t[e.key];if(n)return e.preventDefault(),void n(e);const a=f(e=>{const t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(r)?(t=o.indexOf(r)+1,t===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return r}(p.values(),e,e=>{var t;return(null==(t=null==e?void 0:e.node)?void 0:t.textContent)??""},p.item(r));if(t){const e=p.indexOf(t.node);o(e)}});qh(e.target)&&a(e)},[p,r,f,s,o]),h=z.useRef(!1);i&&(h.current=!0);const v=function(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!n||!!r||!("keepMounted"!==o||!t)}({wasSelected:h.current,enabled:c,mode:u,isSelected:d.present});return{...e,ref:to(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Dh(e.onKeyDown,m)}}(a,t),u=function(e={}){const{popper:t,isOpen:n}=Uh();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(r),d=Gh();/* @__PURE__ */
|
69
|
+
return z.createElement(Qr.div,{...u,__css:{zIndex:e.zIndex??(null==(n=d.list)?void 0:n.zIndex)}},/* @__PURE__ */z.createElement(iv,{variants:av,initial:!1,animate:i?"enter":"exit",__css:{outline:0,...d.list},...o,className:Mh("chakra-menu__menu-list",c.className),...c,onUpdate:s,onAnimationComplete:jh(l.onComplete,c.onAnimationComplete)}))});sv.displayName="MenuList";var lv=e=>{const{className:t,title:n,...r}=e,o=function(e={}){const{children:t,type:n="radio",value:r,defaultValue:o,onChange:a,...i}=e,s="radio"===n?"":[],[l,c]=vo({defaultValue:o??s,value:r,onChange:a}),u=z.useCallback(e=>{if("radio"===n&&"string"==typeof l&&c(e),"checkbox"===n&&Array.isArray(l)){const t=l.includes(e)?l.filter(t=>t!==e):l.concat(e);c(t)}},[l,c,n]);return{...i,children:cp(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;const t="radio"===n?e.props.value===l:l.includes(e.props.value);return z.cloneElement(e,{type:n,onClick:t=>{var n,r;u(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})})}}(r);/* @__PURE__ */
|
70
|
+
return z.createElement(ev,{title:n,className:Mh("chakra-menu__option-group",t),...o})};lv.displayName="MenuOptionGroup";var cv=(...e)=>e.filter(Boolean).join(" "),uv=e=>!!e||void 0;function dv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var pv=e=>/* @__PURE__ */z.createElement(fo,{viewBox:"0 0 24 24",...e},/* @__PURE__ */z.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"})),fv=e=>/* @__PURE__ */z.createElement(fo,{viewBox:"0 0 24 24",...e},/* @__PURE__ */z.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 mv(e,t,n,r){z.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,a=Array.isArray(t)?t:[t],i=new o.MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&n(t)});return i.observe(e.current,{attributes:!0,attributeFilter:a}),()=>i.disconnect()})}var hv=/^[Ee0-9+\-.]$/;function vv(e){return hv.test(e)}var[yv,gv]=eo({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<NumberInput />\" "}),[bv,Ev]=eo({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),xv=Gr(function(e,t){const n=Jr("NumberInput",e),r=Rp(ht(e)),{htmlProps:o,...a}=function(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:i=1,isReadOnly:s,isDisabled:l,isRequired:c,isInvalid:u,pattern:d="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:f,id:m,onChange:h,precision:v,name:y,"aria-describedby":g,"aria-label":b,"aria-labelledby":E,onFocus:x,onBlur:w,onInvalid:k,getAriaValueText:S,isValidCharacter:_,format:C,parse:O,...N}=e,A=ho(x),R=ho(w),I=ho(k),T=ho(_??vv),L=ho(S),P=hf(e),{update:M,increment:D,decrement:j}=P,[V,B]=z.useState(!1),F=!(s||l),$=z.useRef(null),W=z.useRef(null),H=z.useRef(null),q=z.useRef(null),Y=z.useCallback(e=>e.split("").filter(T).join(""),[T]),Z=z.useCallback(e=>(null==O?void 0:O(e))??e,[O]),G=z.useCallback(e=>((null==C?void 0:C(e))??e).toString(),[C]);Dp(()=>{(P.valueAsNumber>a||P.valueAsNumber<o)&&(null==I||I("rangeOverflow",G(P.value),P.valueAsNumber))},[P.valueAsNumber,P.value,G,I]),U(()=>{if($.current&&$.current.value!=P.value){const e=Z($.current.value);P.setValue(Y(e))}},[Z,Y]);const X=z.useCallback((e=i)=>{F&&D(e)},[D,F,i]),K=z.useCallback((e=i)=>{F&&j(e)},[j,F,i]),J=function(e,t){const[n,r]=z.useState(!1),[o,a]=z.useState(null),[i,s]=z.useState(!0),l=z.useRef(null),c=()=>clearTimeout(l.current);!function(n,r){const a=ho(()=>{"increment"===o&&e(),"decrement"===o&&t()});z.useEffect(()=>{let e=null;return null!==r&&(e=window.setInterval(()=>a(),r)),()=>{e&&window.clearInterval(e)}},[r,a])}(0,n?50:null);const u=z.useCallback(()=>{i&&e(),l.current=setTimeout(()=>{s(!1),r(!0),a("increment")},300)},[e,i]),d=z.useCallback(()=>{i&&t(),l.current=setTimeout(()=>{s(!1),r(!0),a("decrement")},300)},[t,i]),p=z.useCallback(()=>{s(!0),r(!1),c()},[]);return z.useEffect(()=>()=>c(),[]),{up:u,down:d,stop:p,isSpinning:n}}(X,K);mv(H,"disabled",J.stop,J.isSpinning),mv(q,"disabled",J.stop,J.isSpinning);const Q=z.useCallback(e=>{if(e.nativeEvent.isComposing)return;const t=Z(e.currentTarget.value);M(Y(t)),W.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}},[M,Y,Z]),ee=z.useCallback(e=>{var t;null==A||A(e),W.current&&(e.target.selectionStart=W.current.start??(null==(t=e.currentTarget.value)?void 0:t.length),e.currentTarget.selectionEnd=W.current.end??e.currentTarget.selectionStart)},[A]),te=z.useCallback(e=>{if(e.nativeEvent.isComposing)return;(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,T)||e.preventDefault();const t=ne(e)*i,n={ArrowUp:()=>X(t),ArrowDown:()=>K(t),Home:()=>M(o),End:()=>M(a)}[e.key];n&&(e.preventDefault(),n(e))},[T,i,X,K,M,o,a]),ne=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},re=z.useMemo(()=>{const e=null==L?void 0:L(P.value);return null!=e?e:P.value.toString()||void 0},[P.value,L]),oe=z.useCallback(()=>{let e=P.value;""!==P.value&&(/^[eE]/.test(P.value.toString())?P.setValue(""):(P.valueAsNumber<o&&(e=o),P.valueAsNumber>a&&(e=a),P.cast(e)))},[P,a,o]),ae=z.useCallback(()=>{B(!1),n&&oe()},[n,B,oe]),ie=z.useCallback(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=$.current)||e.focus()})},[t]),se=z.useCallback(e=>{e.preventDefault(),J.up(),ie()},[ie,J]),le=z.useCallback(e=>{e.preventDefault(),J.down(),ie()},[ie,J]);bf(()=>$.current,"wheel",e=>{var t;const n=(null==(t=$.current)?void 0:t.ownerDocument)??document;if(!f||n.activeElement!==$.current)return;e.preventDefault();const r=ne(e)*i,o=Math.sign(e.deltaY);-1===o?X(r):1===o&&K(r)},{passive:!1});const ce=z.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMax;return{...e,ref:to(t,H),role:"button",tabIndex:-1,onPointerDown:dv(e.onPointerDown,e=>{0!==e.button||n||se(e)}),onPointerLeave:dv(e.onPointerLeave,J.stop),onPointerUp:dv(e.onPointerUp,J.stop),disabled:n,"aria-disabled":uv(n)}},[P.isAtMax,r,se,J.stop,l]),ue=z.useCallback((e={},t=null)=>{const n=l||r&&P.isAtMin;return{...e,ref:to(t,q),role:"button",tabIndex:-1,onPointerDown:dv(e.onPointerDown,e=>{0!==e.button||n||le(e)}),onPointerLeave:dv(e.onPointerLeave,J.stop),onPointerUp:dv(e.onPointerUp,J.stop),disabled:n,"aria-disabled":uv(n)}},[P.isAtMin,r,le,J.stop,l]),de=z.useCallback((e={},t=null)=>({name:y,inputMode:p,type:"text",pattern:d,"aria-labelledby":E,"aria-label":b,"aria-describedby":g,id:m,disabled:l,...e,readOnly:e.readOnly??s,"aria-readonly":e.readOnly??s,"aria-required":e.required??c,required:e.required??c,ref:to($,t),value:G(P.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Number.isNaN(P.valueAsNumber)?void 0:P.valueAsNumber,"aria-invalid":uv(u??P.isOutOfRange),"aria-valuetext":re,autoComplete:"off",autoCorrect:"off",onChange:dv(e.onChange,Q),onKeyDown:dv(e.onKeyDown,te),onFocus:dv(e.onFocus,ee,()=>B(!0)),onBlur:dv(e.onBlur,R,ae)}),[y,p,d,E,b,G,g,m,l,c,s,u,P.value,P.valueAsNumber,P.isOutOfRange,o,a,re,Q,te,ee,R,ae]);return{value:G(P.value),valueAsNumber:P.valueAsNumber,isFocused:V,isDisabled:l,isReadOnly:s,getIncrementButtonProps:ce,getDecrementButtonProps:ue,getInputProps:de,htmlProps:N}}(r),i=z.useMemo(()=>a,[a]);/* @__PURE__ */
|
71
|
+
return z.createElement(bv,{value:i},/* @__PURE__ */z.createElement(yv,{value:n},/* @__PURE__ */z.createElement(Qr.div,{...o,ref:t,className:cv("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...n.root}})))});xv.displayName="NumberInput";var wv=Gr(function(e,t){const n=gv();/* @__PURE__ */
|
72
|
+
return z.createElement(Qr.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});wv.displayName="NumberInputStepper";var kv=Gr(function(e,t){const{getInputProps:n}=Ev(),r=n(e,t),o=gv();/* @__PURE__ */
|
73
|
+
return z.createElement(Qr.input,{...r,className:cv("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});kv.displayName="NumberInputField";var Sv=Qr("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),_v=Gr(function(e,t){const n=gv(),{getDecrementButtonProps:r}=Ev(),o=r(e,t);/* @__PURE__ */
|
74
|
+
return z.createElement(Sv,{...o,__css:n.stepper},e.children??/* @__PURE__ */z.createElement(pv,null))});_v.displayName="NumberDecrementStepper";var Cv=Gr(function(e,t){const{getIncrementButtonProps:n}=Ev(),r=n(e,t),o=gv();/* @__PURE__ */
|
75
|
+
return z.createElement(Sv,{...r,__css:o.stepper},e.children??/* @__PURE__ */z.createElement(fv,null))});Cv.displayName="NumberIncrementStepper";var Ov=(...e)=>e.filter(Boolean).join(" ");function Nv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[Av,Rv,Iv,Tv]=co(),[Lv,Pv]=eo({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),Mv=e=>null==e?void 0:e.split("");function Dv(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}function jv(e){const t=Kr("PinInput",e),{children:n,...r}=ht(e),{descendants:o,...a}=function(e={}){const{autoFocus:t,value:n,defaultValue:r,onChange:o,onComplete:a,placeholder:i="○",manageFocus:s=!0,otp:l=!1,id:c,isDisabled:u,isInvalid:d,type:p="number",mask:f}=e,m=z.useId(),h=c??`pin-input-${m}`,v=Iv(),[y,g]=z.useState(!0),[b,E]=z.useState(-1),[x,w]=vo({defaultValue:Mv(r)||[],value:Mv(n),onChange:e=>null==o?void 0:o(e.join(""))});z.useEffect(()=>{if(t){const e=v.first();e&&requestAnimationFrame(()=>{e.node.focus()})}},[v]);const k=z.useCallback(e=>{if(!y||!s)return;const t=v.next(e,!1);t&&requestAnimationFrame(()=>{t.node.focus()})},[v,y,s]),S=z.useCallback((e,t,n=!0)=>{const r=[...x];r[t]=e,w(r),""!==e&&r.length===v.count()&&r.every(e=>null!=e&&""!==e)?null==a||a(r.join("")):n&&k(t)},[x,w,k,a,v]),_=z.useCallback(()=>{var e;const t=Array(v.count()).fill("");w(t);const n=v.first();null==(e=null==n?void 0:n.node)||e.focus()},[v,w]),C=z.useCallback((e,t)=>{let n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]);return{getInputProps:z.useCallback(e=>{const{index:t,...n}=e,r=b===t;return{"aria-label":"Please enter your pin code",inputMode:"number"===p?"numeric":"text",type:f?"password":"number"===p?"tel":"text",...n,id:`${h}-${t}`,disabled:u,"aria-invalid":(o=d,!!o||void 0),onChange:Nv(n.onChange,e=>{const n=e.target.value,r=C(x[t],n);if(""!==r)if(n.length>2){if(Dv(n,p)){const e=n.split("").filter((e,t)=>t<v.count());w(e),e.length===v.count()&&(null==a||a(e.join("")))}}else Dv(r,p)&&S(r,t),g(!0);else S("",t)}),onKeyDown:Nv(n.onKeyDown,e=>{var n;if("Backspace"===e.key&&s)if(""===e.target.value){const e=v.prev(t,!1);e&&(S("",t-1,!1),null==(n=e.node)||n.focus(),g(!0))}else g(!1)}),onFocus:Nv(n.onFocus,()=>{E(t)}),onBlur:Nv(n.onBlur,()=>{E(-1)}),value:x[t]||"",autoComplete:l?"one-time-code":"off",placeholder:r?"":i};var o},[v,b,C,h,u,f,d,s,a,l,i,S,w,p,x]),id:h,descendants:v,values:x,setValue:S,setValues:w,clear:_}}(r),i=cp(n).map(e=>z.cloneElement(e,{__css:t}));/* @__PURE__ */
|
76
|
+
return z.createElement(Av,{value:o},/* @__PURE__ */z.createElement(Lv,{value:a},i))}jv.displayName="PinInput";var Vv=Gr(function(e,t){const n=function(e={},t=null){const{getInputProps:n}=Pv(),{index:r,register:o}=Tv();return n({...e,ref:to(o,t),index:r})}(e,t);/* @__PURE__ */
|
77
|
+
return z.createElement(Qr.input,{...n,className:Ov("chakra-pin-input",e.className)})});Vv.displayName="PinInputField";var Bv=(...e)=>e.filter(Boolean).join(" ");function Fv(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var zv=e=>e?"":void 0,$v=e=>!!e||void 0;function Uv(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var[Wv,Hv]=eo({name:"RadioGroupContext",strict:!1}),qv=Gr((e,t)=>{const{colorScheme:n,size:r,variant:o,children:a,className:i,isDisabled:s,isFocusable:l,...c}=e,{value:u,onChange:d,getRootProps:p,name:f,htmlProps:m}=function(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:a,isFocusable:i,isNative:s,...l}=e,[c,u]=z.useState(r||""),d=void 0!==n,p=d?n:c,f=z.useRef(null),m=z.useCallback(()=>{const e=f.current;if(!e)return;let t="input:not(:disabled):checked";const n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";const r=e.querySelector(t);null==r||r.focus()},[]),h=z.useId(),v=o||`radio-${h}`,y=z.useCallback(e=>{const n=function(e){return e&&Fv(e)&&Fv(e.target)}(e)?e.target.value:e;d||u(n),null==t||t(String(n))},[t,d]);return{getRootProps:z.useCallback((e={},t=null)=>({...e,ref:to(t,f),role:"radiogroup"}),[]),getRadioProps:z.useCallback((e={},t=null)=>{const n=s?"checked":"isChecked";return{...e,ref:t,name:v,[n]:null!=p?e.value===p:void 0,onChange(e){y(e)},"data-radiogroup":!0}},[s,v,y,p]),name:v,ref:f,focus:m,setValue:u,value:p,onChange:y,isDisabled:a,isFocusable:i,htmlProps:l}}(c),h=z.useMemo(()=>({name:f,size:r,onChange:d,colorScheme:n,value:u,variant:o,isDisabled:s,isFocusable:l}),[f,r,d,n,u,o,s,l]);/* @__PURE__ */
|
78
|
+
return z.createElement(Wv,{value:h},/* @__PURE__ */z.createElement(Qr.div,{...p(m,t),className:Bv("chakra-radio-group",i)},a))});qv.displayName="RadioGroup";var Yv={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Zv(e){e.preventDefault(),e.stopPropagation()}var Gv=Gr((e,t)=>{const n=Hv(),{onChange:r,value:o}=e,a=Jr("Radio",{...n,...e}),i=ht(e),{spacing:s="0.5rem",children:l,isDisabled:c=(null==n?void 0:n.isDisabled),isFocusable:u=(null==n?void 0:n.isFocusable),inputProps:d,...p}=i;let f=e.isChecked;null!=(null==n?void 0:n.value)&&null!=o&&(f=n.value===o);let m=r;(null==n?void 0:n.onChange)&&null!=o&&(m=function(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}(n.onChange,r));const h=(null==e?void 0:e.name)??(null==n?void 0:n.name),{getInputProps:v,getCheckboxProps:y,getLabelProps:g,getRootProps:b,htmlProps:E}=function(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:a,isRequired:i,onChange:s,isInvalid:l,name:c,value:u,id:d,"data-radiogroup":p,"aria-describedby":f,...m}=e,h=`radio-${z.useId()}`,v=Cp(),y=Hv();let g=!v||y||p?h:v.id;g=d??g;const b=o??(null==v?void 0:v.isDisabled),E=a??(null==v?void 0:v.isReadOnly),x=i??(null==v?void 0:v.isRequired),w=l??(null==v?void 0:v.isInvalid),[k,S]=z.useState(!1),[_,C]=z.useState(!1),[O,N]=z.useState(!1),[A,R]=z.useState(!1),[I,T]=z.useState(Boolean(t)),L=void 0!==n,P=L?n:I;z.useEffect(()=>Gp(S),[]);const M=z.useCallback(e=>{E||b?e.preventDefault():(L||T(e.target.checked),null==s||s(e))},[L,b,E,s]),D=z.useCallback(e=>{" "===e.key&&R(!0)},[R]),j=z.useCallback(e=>{" "===e.key&&R(!1)},[R]),V=z.useCallback((e={},t=null)=>({...e,ref:t,"data-active":zv(A),"data-hover":zv(O),"data-disabled":zv(b),"data-invalid":zv(w),"data-checked":zv(P),"data-focus":zv(_),"data-focus-visible":zv(_&&k),"data-readonly":zv(E),"aria-hidden":!0,onMouseDown:Uv(e.onMouseDown,()=>R(!0)),onMouseUp:Uv(e.onMouseUp,()=>R(!1)),onMouseEnter:Uv(e.onMouseEnter,()=>N(!0)),onMouseLeave:Uv(e.onMouseLeave,()=>N(!1))}),[A,O,b,w,P,_,E,k]),{onFocus:B,onBlur:F}=v??{},$=z.useCallback((e={},t=null)=>{const n=b&&!r;return{...e,id:g,ref:t,type:"radio",name:c,value:u,onChange:Uv(e.onChange,M),onBlur:Uv(F,e.onBlur,()=>C(!1)),onFocus:Uv(B,e.onFocus,()=>C(!0)),onKeyDown:Uv(e.onKeyDown,D),onKeyUp:Uv(e.onKeyUp,j),checked:P,disabled:n,readOnly:E,required:x,"aria-invalid":$v(w),"aria-disabled":$v(n),"aria-required":$v(x),"data-readonly":zv(E),"aria-describedby":f,style:Yv}},[b,r,g,c,u,M,F,B,D,j,P,E,x,w,f]);return{state:{isInvalid:w,isFocused:_,isChecked:P,isActive:A,isHovered:O,isDisabled:b,isReadOnly:E,isRequired:x},getCheckboxProps:V,getInputProps:$,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:Uv(e.onMouseDown,Zv),onTouchStart:Uv(e.onTouchStart,Zv),"data-disabled":zv(b),"data-checked":zv(P),"data-invalid":zv(w)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":zv(b),"data-checked":zv(P),"data-invalid":zv(w)}),htmlProps:m}}({...p,isChecked:f,isFocusable:u,isDisabled:c,onChange:m,name:h}),[x,w]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(E,lt),k=y(w),S=v(d,t),_=g(),C=Object.assign({},x,b()),O={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},N={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},A={userSelect:"none",marginStart:s,...a.label};/* @__PURE__ */
|
79
|
+
return z.createElement(Qr.label,{className:"chakra-radio",...C,__css:O},/* @__PURE__ */z.createElement("input",{className:"chakra-radio__input",...S}),/* @__PURE__ */z.createElement(Qr.span,{className:"chakra-radio__control",...k,__css:N}),l&&/* @__PURE__ */z.createElement(Qr.span,{className:"chakra-radio__label",..._,__css:A},l))});Gv.displayName="Radio";var Xv=(...e)=>e.filter(Boolean).join(" "),Kv=Gr(function(e,t){const{children:n,placeholder:r,className:o,...a}=e;/* @__PURE__ */
|
80
|
+
return z.createElement(Qr.select,{...a,ref:t,className:Xv("chakra-select",o)},r&&/* @__PURE__ */z.createElement("option",{value:""},r),n)});Kv.displayName="SelectField";var Jv=Gr((e,t)=>{var n;const r=Jr("Select",e),{rootProps:o,placeholder:a,icon:i,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:p,iconSize:f,...m}=ht(e),[h,v]=function(e,t){const n={},r={};for(const[o,a]of Object.entries(e))t.includes(o)?n[o]=a:r[o]=a;return[n,r]}(m,lt),y=Ap(v),g={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...null==(n=r.field)?void 0:n._focus}};/* @__PURE__ */
|
81
|
+
return z.createElement(Qr.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:s},...h,...o},/* @__PURE__ */z.createElement(Kv,{ref:t,height:c??l,minH:u??d,placeholder:a,...y,__css:g},e.children),/* @__PURE__ */z.createElement(ty,{"data-disabled":(b=y.disabled,b?"":void 0),...(p||s)&&{color:p||s},__css:r.icon,...f&&{fontSize:f}},i));var b});Jv.displayName="Select";var Qv=e=>/* @__PURE__ */z.createElement("svg",{viewBox:"0 0 24 24",...e},/* @__PURE__ */z.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),ey=Qr("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),ty=e=>{const{children:t=/* @__PURE__ */z.createElement(Qv,null),...n}=e,r=z.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/* @__PURE__ */
|
82
|
+
return z.createElement(ey,{...n,className:"chakra-select__icon-wrapper"},z.isValidElement(t)?r:null)};ty.displayName="SelectIcon";var ny=(...e)=>e.filter(Boolean).join(" "),ry=e=>e?"":void 0,oy=Gr(function(e,t){const n=Jr("Switch",e),{spacing:r="0.5rem",children:o,...a}=ht(e),{state:i,getInputProps:s,getCheckboxProps:l,getRootProps:c,getLabelProps:u}=of(a),d=z.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=z.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),f=z.useMemo(()=>({userSelect:"none",marginStart:r,...n.label}),[r,n.label]);/* @__PURE__ */
|
83
|
+
return z.createElement(Qr.label,{...c(),className:ny("chakra-switch",e.className),__css:d},/* @__PURE__ */z.createElement("input",{className:"chakra-switch__input",...s({},t)}),/* @__PURE__ */z.createElement(Qr.span,{...l(),className:"chakra-switch__track",__css:p},/* @__PURE__ */z.createElement(Qr.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":ry(i.isChecked),"data-hover":ry(i.isHovered)})),o&&/* @__PURE__ */z.createElement(Qr.span,{className:"chakra-switch__label",...u(),__css:f},o))});oy.displayName="Switch";var ay=(...e)=>e.filter(Boolean).join(" "),iy=["h","minH","height","minHeight"],sy=Gr((e,t)=>{const n=Kr("Textarea",e),{className:r,rows:o,...a}=ht(e),i=Ap(a),s=o?function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(n,iy):n;/* @__PURE__ */
|
84
|
+
return z.createElement(Qr.textarea,{ref:t,rows:o,...i,className:ay("chakra-textarea",r),__css:s})});function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(this,arguments)}sy.displayName="Textarea";var cy=["hideStepper","incrementIcon","decrementIcon"],uy=Gr(function(e,t){var n=e.hideStepper,r=e.incrementIcon,o=e.decrementIcon,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,cy);return z.createElement(xv,ly({},a,{ref:t}),/*#__PURE__*/z.createElement(kv,null),!n&&/*#__PURE__*/z.createElement(wv,null,/*#__PURE__*/z.createElement(Cv,{children:r}),/*#__PURE__*/z.createElement(_v,{children:o})))});uy.defaultProps={hideStepper:!1},t.__DEV__&&(uy.displayName="NumberInput"),mo({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"}),mo({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"}),mo({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"}),mo({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"}),mo({displayName:"SunIcon",path:/* @__PURE__ */z.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/* @__PURE__ */z.createElement("circle",{cx:"12",cy:"12",r:"5"}),/* @__PURE__ */z.createElement("path",{d:"M12 1v2"}),/* @__PURE__ */z.createElement("path",{d:"M12 21v2"}),/* @__PURE__ */z.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/* @__PURE__ */z.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/* @__PURE__ */z.createElement("path",{d:"M1 12h2"}),/* @__PURE__ */z.createElement("path",{d:"M21 12h2"}),/* @__PURE__ */z.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/* @__PURE__ */z.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var dy=mo({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"});mo({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/* @__PURE__ */z.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"})}),mo({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"}),mo({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"}),mo({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"}),mo({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 py=mo({displayName:"ViewIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),fy=mo({displayName:"ViewOffIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))});mo({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"}),mo({displayName:"DeleteIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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"}))}),mo({displayName:"RepeatIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({displayName:"RepeatClockIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({displayName:"EditIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.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__ */z.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),mo({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),mo({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var my=mo({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});mo({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),mo({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),mo({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),mo({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),mo({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"}),mo({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),mo({displayName:"ExternalLinkIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/* @__PURE__ */z.createElement("path",{d:"M15 3h6v6"}),/* @__PURE__ */z.createElement("path",{d:"M10 14L21 3"}))}),mo({displayName:"LinkIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({displayName:"PlusSquareIcon",path:/* @__PURE__ */z.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/* @__PURE__ */z.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/* @__PURE__ */z.createElement("path",{d:"M12 8v8"}),/* @__PURE__ */z.createElement("path",{d:"M8 12h8"}))}),mo({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"}),mo({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"}),mo({displayName:"TimeIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({displayName:"ArrowRightIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({displayName:"ArrowLeftIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({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"}),mo({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"}),mo({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"}),mo({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"}),mo({displayName:"EmailIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.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__ */z.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"}))}),mo({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"}),mo({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"}),mo({displayName:"SpinnerIcon",path:/* @__PURE__ */z.createElement(z.Fragment,null,/* @__PURE__ */z.createElement("defs",null,/* @__PURE__ */z.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/* @__PURE__ */z.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/* @__PURE__ */z.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/* @__PURE__ */z.createElement("g",{transform:"translate(2)",fill:"none"},/* @__PURE__ */z.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/* @__PURE__ */z.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/* @__PURE__ */z.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),mo({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"}),mo({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/* @__PURE__ */z.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"})}),mo({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"}),mo({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"}),mo({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"}),mo({displayName:"InfoOutlineIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/* @__PURE__ */z.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/* @__PURE__ */z.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/* @__PURE__ */z.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),mo({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"}),mo({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"}),mo({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"}),mo({displayName:"QuestionOutlineIcon",path:/* @__PURE__ */z.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/* @__PURE__ */z.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__ */z.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__ */z.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),mo({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"}),mo({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 hy=mo({viewBox:"0 0 14 14",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),vy=mo({displayName:"MinusIcon",path:/* @__PURE__ */z.createElement("g",{fill:"currentColor"},/* @__PURE__ */z.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function yy(){return yy=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},yy.apply(this,arguments)}mo({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 gy=["label","children"],by=Gr(function(e,t){var n=e.label,r=e.children,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,gy);return z.createElement(vp,yy({ref:t},o),r||n)});function Ey(){return Ey=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},Ey.apply(this,arguments)}t.__DEV__&&(by.displayName="Button");var xy=Gr(function(e,t){/*#__PURE__*/return z.createElement(Pf,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/z.createElement(by,Ey({ref:t,height:"auto"},e)))});function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wy.apply(this,arguments)}xy.id="InputRightElement",t.__DEV__&&(xy.displayName="InputRightButton");var ky=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],Sy=Gr(function(e,t){var n,r=e.viewIcon,o=e.viewOffIcon,a=e.autoComplete,i=e.w,s=e.width,l=e.size,c=e.variant,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,ky),d=z.useState(!1),p=d[0],f=d[1],m=p?"Hide password":"Show password";return n=p?r||/*#__PURE__*/z.createElement(py,null):o||/*#__PURE__*/z.createElement(fy,null),/*#__PURE__*/z.createElement(_f,{width:i||s,size:l,variant:c},/*#__PURE__*/z.createElement(wf,wy({},u,{ref:t,type:p?"text":"password",autoComplete:p?"off":a})),/*#__PURE__*/z.createElement(xy,{onClick:function(){return f(!p)},"aria-label":m,variant:"ghost"},n))});function _y(){return _y=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},_y.apply(this,arguments)}function Cy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(Sy.displayName="PasswordInput");var Oy=["options","spacing","direction"],Ny=["onBlur","onChange"],Ay=["value","label"],Ry=Gr(function(e,t){var n=e.options,r=e.spacing,o=e.direction,a=Cy(e,Oy),i=a.onBlur,s=a.onChange,l=Cy(a,Ny);return z.createElement(qv,_y({onChange:s},l),/*#__PURE__*/z.createElement(Gf,{spacing:r,direction:o},n.map(function(e,n){var r=e.value,o=e.label,a=Cy(e,Ay);return z.createElement(Gv,_y({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function Iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ty(){return Ty=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},Ty.apply(this,arguments)}function Ly(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(Ry.displayName="RadioInput");var Py=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],My=["value","label"],Dy=Gr(function(e,t){var n=Jr("Input",e),r=n.field._focusVisible,o=Ty({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return z.createElement(Jh,Ty({as:vp},e,{ref:t,sx:o}))});t.__DEV__&&(Dy.displayName="SelectButton");var jy=Gr(function(e,n){var r=e.name,o=e.options,a=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/z.createElement(my,null):p,m=e.multiple,h=e.size,v=e.variant,y=e.menuListProps,g=e.renderValue,b=void 0===g?function(e){return null==e?void 0:e.join(", ")}:g,E=ht(Ly(e,Py)),x=z.useState(l||s),w=x[0],k=x[1],S=Ap({name:r}),_={isDisabled:u,leftIcon:d,rightIcon:f,size:h,variant:v},C=z.useCallback(function(e){if(!o)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 Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);!(t=n()).done;){var r=t.value;if(r.label&&r.value===e)return r.label}return e},[o]),O=w?(Array.isArray(w)?w:[w]).map(C):[];return z.createElement(Xh,Ty({},E,{closeOnSelect:!m}),/*#__PURE__*/z.createElement(Qr.div,{className:t.cx("saas-select")},/*#__PURE__*/z.createElement(Dy,Ty({ref:n},_),b(O)||c),/*#__PURE__*/z.createElement(sv,Ty({maxH:"60vh",overflowY:"auto"},y),/*#__PURE__*/z.createElement(lv,{defaultValue:s||l,onChange:function(e){k(e),null==i||i(e)},type:m?"checkbox":"radio"},o?o.map(function(e,t){var n=e.value,r=e.label,o=Ly(e,My);return z.createElement(ov,Ty({key:t,value:n},o),r||n)}):a)),/*#__PURE__*/z.createElement(Qr.input,Ty({},S,{name:r,type:"hidden",value:w,className:"saas-select__input"}))))});t.__DEV__&&(jy.displayName="Select");var Vy=["options","children"],By=Gr(function(e,t){var n=e.options,r=e.children,o=Ly(e,Vy);return z.createElement(Jv,Ty({ref:t},o),r||(null==n?void 0:n.map(function(e){var t=e.value;/*#__PURE__*/return z.createElement("option",{key:t,value:t},e.label||t)})))});function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fy.apply(this,arguments)}function zy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(By.displayName="NativeSelect");var $y=Ar({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),Uy=$y[0],Wy=$y[1];function Hy(e){var t=e.step,n=e.onChange,r=z.useState(-1),o=r[0],a=r[1],i=z.useRef([]),s=z.useState(Date.now())[1],l=z.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&&a(t)};return z.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?a(t):-1===o&&a(0)},[t]),z.useEffect(function(){null==n||n(o)},[o,n]),{stepsRef:i,activeStep:i.current[o],activeIndex:o,isFirstStep:0===o,isLastStep:o===i.current.length-1,isCompleted:o>=i.current.length,setIndex:a,setStep:c,nextStep:function(){a(o+1)},prevStep:function(){a(o-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var qy=["orientation","children"],Yy=["children","orientation","step","onChange"],Zy=["children","orientation","stepComponent"],Gy=["children","isOpen"],Xy=["icon","isActive","isCompleted","className"],Ky=["name","title","icon","isActive","isCompleted"],Jy=["isActive"],Qy=Ar({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),eg=Qy[0],tg=Qy[1],ng=Gr(function(e,t){var n=e.orientation,r=e.children,o=zy(e,qy);return z.createElement(rg,Fy({ref:t,orientation:n},o),/*#__PURE__*/z.createElement(og,{orientation:n},r))});t.__DEV__&&(ng.displayName="Stepper");var rg=Gr(function(e,n){var r=e.children,o=e.orientation,a=void 0===o?"horizontal":o,i=zy(e,Yy),s=Jr("Stepper",Fy({},i,{orientation:a})),l=ht(i),c=Hy(e),u=Fy({display:"flex",flexDirection:"column"},s.container);return z.createElement(eg,{value:s},/*#__PURE__*/z.createElement(Uy,{value:c},/*#__PURE__*/z.createElement(Qr.div,Fy({ref:n,__css:u},l,{className:t.cx("saas-stepper",e.className)}),r)))});t.__DEV__&&(rg.displayName="StepperContainer");var og=function(e){var n,r,o=e.children,a=e.orientation,i=void 0===a?"horizontal":a,s=e.stepComponent,l=zy(e,Zy),c=tg(),u=Wy().activeIndex,d=Fy({display:"flex",flexDirection:"row",alignItems:"center"},c.steps),p="vertical"===i,f=s||sg,m=function(e,t){return z.Children.toArray(e).filter(function(e){return Array.isArray(t)?t.some(function(t){return t===e.type}):e.type===t})}(o,f),h=m.reduce(function(e,t,n,r){return e.push(/*#__PURE__*/z.createElement(f,Fy({key:n},t.props,{icon:t.props.icon||n+1,isActive:u===n,isCompleted:t.props.isCompleted||u>n}))),p&&e.push(/*#__PURE__*/z.createElement(ag,{key:"content-"+n,isOpen:u===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/z.createElement(lg,{key:"separator-"+n,isActive:n<u})),e},[]),v=function(e,t){return z.Children.toArray(e).find(function(e){return e.type===t})}(o,ug),y=u>=m.length?v:p?null:/*#__PURE__*/z.createElement(ag,null,null==(n=m[u])||null==(r=n.props)?void 0:r.children);return z.createElement(z.Fragment,null,/*#__PURE__*/z.createElement(Qr.div,Fy({__css:d},l,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&(og.displayName="StepperSteps");var ag=function(e){var n=e.children,r=e.isOpen,o=void 0===r||r,a=zy(e,Gy),i=tg();return z.createElement(Qr.div,Fy({__css:i.content},a,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/z.createElement(Zd,{in:o},n))};t.__DEV__&&(ag.displayName="StepperContent");var ig=function(e){var n,r=e.icon,o=e.isCompleted,a=e.className,i=zy(e,Xy),s=Fy({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},tg().icon);return n=o?/*#__PURE__*/z.createElement(fo,{as:hy}):r,/*#__PURE__*/z.createElement(Qr.div,Fy({__css:s},i,{className:t.cx("saas-stepper__icon",a)}),n)};t.__DEV__&&(ig.displayName="StepperIcon");var sg=function(e){var n=e.title,r=e.icon,o=e.isActive,a=e.isCompleted,i=zy(e,Ky),s=function(e){var t=e.name,n=e.isActive,r=e.isCompleted,o=Wy(),a=o.registerStep,i=o.unregisterStep,s=o.activeStep;return z.useEffect(function(){if(t)return a(t),function(){i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}(e),l=Fy({display:"flex",alignItems:"center",flexDirection:"row"},tg().step);return z.createElement(Qr.div,Fy({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/z.createElement(ig,{icon:r,isActive:o,isCompleted:a}),n&&/*#__PURE__*/z.createElement(cg,null,n))};t.__DEV__&&(sg.displayName="StepperStep");var lg=function(e){var n=e.isActive,r=zy(e,Jy),o=Fy({flex:1,mx:2},tg().separator);return z.createElement(Qr.div,Fy({},r,{"data-active":t.dataAttr(n),className:t.cx("saas-stepper__separator",e.className),__css:o}))};t.__DEV__&&(lg.displayName="StepperSeparator");var cg=function(e){var n=tg();return z.createElement(Qr.p,Fy({},e,{__css:n.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(cg.displayName="StepperStepTitle");var ug=function(e){var n=tg();return z.createElement(Qr.div,Fy({__css:n.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function dg(){return dg=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},dg.apply(this,arguments)}function pg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}t.__DEV__&&(ug.displayName="StepperCompleted");var fg=["name","label","help","hideLabel","children"],mg=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],hg=["name","rules"],vg=["ref"],yg=["name","rules"],gg=["ref"],bg=["type","leftAddon","rightAddon","size"],Eg=["type"],xg=["label","type"],wg=["pinLength","pinType","spacing"],kg={},Sg=function(e){var t=e.name,r=e.label,o=e.help,a=e.hideLabel,i=e.children,s=pg(e,fg),l=function(e,t){return n.get(t.errors,e)}(t,n.useFormContext().formState);return z.createElement(Op,dg({},s,{isInvalid:!!l}),r&&!a?/*#__PURE__*/z.createElement(Pp,null,r):null,/*#__PURE__*/z.createElement(jf,null,i,!o||null!=l&&l.message?null:/*#__PURE__*/z.createElement(Np,null,o),(null==l?void 0:l.message)&&/*#__PURE__*/z.createElement(Lp,null,null==l?void 0:l.message)))};t.__DEV__&&(Sg.displayName="BaseField");var _g=z.forwardRef(function(e,t){var n=e.type;return z.createElement(kg[void 0===n?"text":n]||kg.text,dg({ref:t},e))}),Cg=function(e,r,o){var a;a=null!=o&&o.isControlled?function(e){return Gr(function(r,o){var a=r.name,i=r.rules,s=pg(r,hg),l=n.useFormContext();return z.createElement(n.Controller,{name:a,control:l.control,rules:i,render:function(n){var r=n.field.ref,a=pg(n.field,vg);return z.createElement(e,dg({},a,s,{onChange:t.callAllHandlers(s.onChange,a.onChange),onBlur:t.callAllHandlers(s.onBlur,a.onBlur),ref:Ef(o,r)}))}})})}(r):function(e){return Gr(function(r,o){var a=r.name,i=r.rules,s=pg(r,yg),l=(0,n.useFormContext().register)(a,i),c=l.ref,u=pg(l,gg);return z.createElement(e,dg({},u,s,{onChange:t.callAllHandlers(s.onChange,u.onChange),onBlur:t.callAllHandlers(s.onBlur,u.onBlur),ref:Ef(o,c)}))})}(r);var i=function(e,t){var n=t.displayName,r=t.hideLabel,o=t.BaseField,a=Gr(function(t,n){var a=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=pg(t,mg),h=dg({required:p},f);return z.createElement(o,{id:a,name:i,label:s,help:l,hideLabel:r,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p},/*#__PURE__*/z.createElement(e,dg({ref:n,id:a,name:i,label:r?s:void 0,rules:h},m)))});return a.displayName=n,a}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==o?void 0:o.hideLabel,BaseField:(null==o?void 0:o.BaseField)||Sg});return kg[e]=i,i};Cg("text",Gr(function(e,t){var n=e.type,r=void 0===n?"text":n,o=e.leftAddon,a=e.rightAddon,i=e.size,s=pg(e,bg),l=/*#__PURE__*/z.createElement(wf,dg({type:r,size:i},s,{ref:t}));return o||a?/*#__PURE__*/z.createElement(_f,{size:i},o,l,a):l})),Cg("number",uy,{isControlled:!0}),Cg("password",Gr(function(e,t){/*#__PURE__*/return z.createElement(Sy,dg({ref:t},e))})),Cg("textarea",sy),Cg("switch",Gr(function(e,t){var n=pg(e,Eg);return z.createElement(oy,dg({},n,{ref:t}))}),{isControlled:!0}),Cg("select",jy,{isControlled:!0}),Cg("checkbox",Gr(function(e,t){var n=e.label,r=pg(e,xg);return z.createElement(pf,dg({ref:t},r),n)}),{hideLabel:!0}),Cg("radio",Ry,{isControlled:!0}),Cg("native-select",By,{isControlled:!0}),Cg("pin",Gr(function(e,t){for(var n=e.pinLength,r=void 0===n?4:n,o=e.pinType,a=e.spacing,i=pg(e,wg),s=[],l=0;l<r;l++)s.push(/*#__PURE__*/z.createElement(Vv,{key:l,ref:t}));return z.createElement(Xf,{spacing:a},/*#__PURE__*/z.createElement(jv,dg({},i,{type:o}),s))}),{isControlled:!0});var Og=["items","label","title"],Ng=function(e){return e&&Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n.label,o=n.title;return dg({},pg(n,Og),{name:t,label:r||o})})},Ag=function(e){return{getFields:function(){return Ng(e)},getNestedFields:function(n){var r,o=t.get(e,n);return o?"object"===(null==(r=o.items)?void 0:r.type)?Ng(o.items.properties):"object"===o.type?Ng(o.properties):[o.items]:[]}}},Rg=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],Ig=Gr(function(e,r){var o=e.mode,a=void 0===o?"all":o,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,h=e.onChange,v=e.onSubmit,y=e.onError,g=e.formRef,b=e.children,E=pg(e,Rg),x={mode:a,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==Ig.getResolver?void 0:Ig.getResolver(f));var w=n.useForm(x),k=w.handleSubmit;return z.useImperativeHandle(r,function(){return w},[r,w]),z.useEffect(function(){var e;return h&&(e=w.watch(h)),function(){var t;return null==(t=e)?void 0:t.unsubscribe()}},[w,h]),/*#__PURE__*/z.createElement(n.FormProvider,w,/*#__PURE__*/z.createElement(Qr.form,dg({ref:g,onSubmit:k(v,y)},E,{className:t.cx("saas-form",e.className)}),t.runIfFn(b,w)))});Ig.getFieldResolver=Ag,t.__DEV__&&(Ig.displayName="Form");var Tg=["children"],Lg=function(e){/*#__PURE__*/return z.createElement(Qr.div,null,e.children)};t.__DEV__&&(Lg.displayName="FormLayoutItem");var Pg=function(e){var n,r,o,a=e.children,i=pg(e,Tg),s=dg({},null!=(n=null==(r=Wr().components)||null==(o=r.FormLayout)?void 0:o.defaultProps)?n:{spacing:4},i);return z.createElement(qf,dg({},s,{className:t.cx("saas-form__layout",i.className)}),z.Children.map(a,function(e){return z.isValidElement(e)?/*#__PURE__*/z.createElement(Lg,null,e):e}))};t.__DEV__&&(Pg.displayName="FormLayout");var Mg=function(e,t){return z.Children.map(t,function(t){return z.isValidElement(t)&&t.props.name?z.cloneElement(t,dg({},t.props,{name:e+"."+t.props.name})):t})},Dg=Ar({name:"ArrayFieldContext"}),jg=Dg[0],Vg=Dg[1],Bg=Ar({name:"ArrayFieldRowContext"}),Fg=Bg[0],zg=Bg[1],$g=["children","index"],Ug=["children"],Wg=["children"],Hg=["name","defaultValue","keyName","min","max","children"],qg=function(e){var t=e.children,n=e.index,r=pg(e,$g);return z.createElement(Zg,{index:n},/*#__PURE__*/z.createElement(Yg,r,t),/*#__PURE__*/z.createElement(Gg,null))};t.__DEV__&&(qg.displayName="ArrayFieldRow");var Yg=function(e){var t=e.children,n=pg(e,Ug),r=zg().name;return z.createElement(Pg,dg({flex:"1",mr:"2"},n),Mg(r,t))};t.__DEV__&&(Yg.displayName="ArrayFieldRowFields");var Zg=function(e){var t=e.children,r=function(e){var t=e.index,r=n.useFormContext().clearErrors,o=Vg(),a=o.name,i=o.remove,s=o.fields;return z.useEffect(function(){r(a)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:a+"."+t,remove:z.useCallback(function(){r(a),i(t)},[t])}}({index:e.index});return z.createElement(Fg,{value:r},/*#__PURE__*/z.createElement(Qr.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(Zg.displayName="ArrayFieldRowContainer");var Gg=function(e){/*#__PURE__*/return z.createElement(gp,dg({icon:/*#__PURE__*/z.createElement(vy,null),"aria-label":"Remove row"},function(){var e=zg(),t=e.isFirst,n=e.remove,r=Vg(),o=r.min;return{onClick:function(){return n()},isDisabled:t&&!!(o&&r.fields.length<=o)}}(),e))};t.__DEV__&&(Gg.displayName="ArrayFieldRemoveButton");var Xg=function(e){/*#__PURE__*/return z.createElement(gp,dg({icon:/*#__PURE__*/z.createElement(dy,null),"aria-label":"Add row",float:"right"},function(){var e=Vg(),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__&&(Xg.displayName="ArrayFieldAddButton");var Kg=Gr(function(e,t){var n=e.children,r=pg(e,Wg);return z.createElement(Qg,dg({ref:t},r),/*#__PURE__*/z.createElement(Jg,null,function(e){/*#__PURE__*/return z.createElement(z.Fragment,null,e.map(function(e,t){/*#__PURE__*/return z.createElement(qg,{key:e.id,index:t},n)}))}),/*#__PURE__*/z.createElement(Xg,null))});t.__DEV__&&(Kg.displayName="ArrayField");var Jg=function(e){return(0,e.children)(Vg().fields)};t.__DEV__&&(Jg.displayName="ArrayFieldRows");var Qg=z.forwardRef(function(e,t){var r=e.name,o=e.defaultValue,a=e.keyName,i=e.min,s=e.max,l=e.children,c=pg(e,Hg),u=function(e){var t=e.name,r=e.defaultValue,o=void 0===r?{}:r,a=e.keyName,i=e.min,s=e.max,l=n.useFormContext();return dg({},n.useFieldArray({control:l.control,name:t,keyName:a}),{name:t,defaultValue:o,min:i,max:s})}({name:r,defaultValue:o,keyName:a,min:i,max:s});return z.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/z.createElement(jg,{value:u},/*#__PURE__*/z.createElement(Sg,dg({name:r},c),l))});t.__DEV__&&(Qg.displayName="ArrayFieldContainer");var eb=["name","label","hideLabel","children","columns","spacing"],tb=function(e){var t=Kr("FormLegend");return z.createElement(Pp,dg({as:"legend",sx:t},e))},nb=function(e){var t=e.name,n=e.label,r=e.hideLabel,o=e.children,a=e.columns,i=e.spacing,s=pg(e,eb);return z.createElement(Op,dg({name:t,as:"fieldset"},s),/*#__PURE__*/z.createElement(tb,{display:r?"none":"block"},n),/*#__PURE__*/z.createElement(Pg,{columns:a,gridGap:i},Mg(t,o)))};t.__DEV__&&(nb.displayName="ObjectField");var rb=["name","type"],ob=["schema","fieldResolver","focusFirstField"],ab=["name","type","defaultValue"],ib=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,o=pg(e,rb);return z.createElement(_g,dg({key:n||t,name:n,type:r},o))})},sb=function(e){var t=e.schema,r=e.fieldResolver,o=e.focusFirstField,a=pg(e,ob),i=z.useMemo(function(){return r||Ig.getFieldResolver(t)},[t,r]),s=z.useMemo(function(){return i.getFields()},[i]),l=n.useFormContext();return z.useEffect(function(){var e;o&&null!=(e=s[0])&&e.name&&l.setFocus(s[0].name)},[t,r,o]),/*#__PURE__*/z.createElement(Pg,a,s.map(function(e){var t=e.name,n=e.type,r=pg(e,ab);return"array"===n?/*#__PURE__*/z.createElement(Kg,dg({key:t,name:t},r),ib(i,t)):"object"===n?/*#__PURE__*/z.createElement(nb,dg({key:t,name:t},r),ib(i,t)):/*#__PURE__*/z.createElement(_g,dg({key:t,name:t,type:n},r))}))};t.__DEV__&&(sb.displayName="Fields");var lb=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],cb=z.forwardRef(function(e,t){var r=e.children,o=e.disableIfUntouched,a=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=pg(e,lb),c=n.useFormContext().formState;return z.createElement(by,dg({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:o&&!c.isDirty||a&&!c.isValid||i}),r)});cb.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(cb.displayName="SubmitButton");var ub=["schema","submitLabel","fieldResolver","children"],db=Gr(function(e,t){var n=e.schema,r=e.submitLabel,o=void 0===r?"Submit":r,a=e.fieldResolver,i=e.children,s=pg(e,ub);return z.createElement(Ig,dg({},s,{schema:n,ref:t}),/*#__PURE__*/z.createElement(Pg,null,/*#__PURE__*/z.createElement(sb,{schema:n,fieldResolver:a}),o&&/*#__PURE__*/z.createElement(cb,null,o),i))});t.__DEV__&&(db.displayName="AutoForm");var pb=["onChange"],fb=Ar({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],mb=["children"],hb=["getFormProps"];z.forwardRef(function(e,n){var r=e.children,o=pg(e,mb),a=function(e){var t=Hy(pg(e,pb)),n=t.activeStep,r=t.isLastStep,o=t.nextStep,a=z.useState({}),i=a[0],s=a[1],l=z.useCallback(function(a){var s;return Promise.resolve(function(l,c){try{var d=function(){function l(e){return s?e:Promise.resolve(null==c.onSubmit?void 0:c.onSubmit(a,t)).then(function(){o()})}var c=i[n],d=function(){if(r)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(a)).then(function(){var e=(u(dg({},c,{isCompleted:!0})),void o());return s=1,e})}();return d&&d.then?d.then(l):l(d)}()}catch(e){return}return d&&d.then?d.then(void 0,function(){}):d}())},[i,n,r]),c=z.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=z.useCallback(function(e){s(function(t){var n;return dg({},t,((n={})[e.name]=e,n))})},[i]);return dg({getFormProps:c,updateStep:u,steps:i},t)}(e),i=a.getFormProps,s=pg(a,hb),l=z.useMemo(function(){return s},[s]);return z.createElement(Uy,{value:l},/*#__PURE__*/z.createElement(fb,{value:l},/*#__PURE__*/z.createElement(Ig,dg({ref:n},o,i()),t.runIfFn(r,a))))});var vb=function(e){return Ag(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:vb(t),resolver:e.ajvResolver(t)}};
|
87
85
|
//# sourceMappingURL=index.js.map
|