@saas-ui/forms 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/ajv/index.js +22 -22
- package/dist/ajv/index.js.map +1 -1
- package/dist/ajv/index.modern.js +82 -82
- package/dist/ajv/index.modern.js.map +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/src/field.tsx +5 -1
package/dist/ajv/index.modern.js
CHANGED
@@ -1,97 +1,97 @@
|
|
1
|
-
import{ajvResolver as e}from"@hookform/resolvers/ajv";import{isFunction as t,isBrowser as n,runIfFn as r,getOwnerWindow as o,callAllHandlers as a,focus as i,getOwnerDocument as s,getActiveElement as l,contains as c,isTabbable as u,__DEV__ as d,isObject as f,objectKeys as p,mergeWith as m,isString as v,isNumber as h,isCssVar as y,memoizedGet as g,isArray as b,toMediaQueryString as x,omit as E,filterUndefined as w,objectFilter as k,cx as S,warn as C,dataAttr as O,ariaAttr as _,callAll as N,clampValue as R,toPrecision as A,countDecimalPlaces as I,minSafeInteger as P,maxSafeInteger as T,mapResponsive as L,isNull as M,isRightClick as j,normalizeEventKey as D,determineLazyBehavior as V,removeItem as B,addItem as F,isHTMLElement as z,getNextItemFromSearch as W,isActiveElement as U,split as $,isInputEvent as H,get as q}from"@chakra-ui/utils";import{useFormContext as Y,get as Z,useFieldArray as G,useForm as X,FormProvider as K,Controller as J}from"react-hook-form";function Q(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function ee(e){var t={exports:{}};return e(t,t.exports),t.exports}var te=Symbol.for("react.element"),ne=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),se=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ue=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.iterator,pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,ve={};function he(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}function ye(){}function ge(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}he.prototype.isReactComponent={},he.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},he.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ye.prototype=he.prototype;var be=ge.prototype=new ye;be.constructor=ge,me(be,he.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,Ee=Object.prototype.hasOwnProperty,we={current:null},ke={key:!0,ref:!0,__self:!0,__source:!0};function Se(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)Ee.call(t,r)&&!ke.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:te,type:e,key:a,ref:i,props:o,_owner:we.current}}function Ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===te}var Oe=/\/+/g;function _e(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function Ne(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case te:case ne:i=!0}}if(i)return o=o(i=e),e=""===r?"."+_e(i,0):r,xe(o)?(n="",null!=e&&(n=e.replace(Oe,"$&/")+"/"),Ne(o,t,n,"",function(e){return e})):null!=o&&(Ce(o)&&(o=function(e,t){return{$$typeof:te,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Oe,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",xe(e))for(var s=0;s<e.length;s++){var l=r+_e(a=e[s],s);i+=Ne(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Ne(a=a.value,t,n,l=r+_e(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Re(e,t,n){if(null==e)return e;var r=[],o=0;return Ne(e,r,"","",function(e){return t.call(n,e,o++)}),r}function Ae(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Ie={current:null},Pe={transition:null},Te={map:Re,forEach:function(e,t,n){Re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Re(e,function(){t++}),t},toArray:function(e){return Re(e,function(e){return e})||[]},only:function(e){if(!Ce(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Le={Children:Te,Component:he,Fragment:re,Profiler:ae,PureComponent:ge,StrictMode:oe,Suspense:ce,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:Pe,ReactCurrentOwner:we},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=me({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=we.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ee.call(t,l)&&!ke.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:te,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:se,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:ie,_context:e},e.Consumer=e},createElement:Se,createFactory:function(e){var t=Se.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:le,render:e}},isValidElement:Ce,lazy:function(e){return{$$typeof:de,_payload:{_status:-1,_result:e},_init:Ae}},memo:function(e,t){return{$$typeof:ue,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=Pe.transition;Pe.transition={};try{e()}finally{Pe.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return Ie.current.useCallback(e,t)},useContext:function(e){return Ie.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return Ie.current.useDeferredValue(e)},useEffect:function(e,t){return Ie.current.useEffect(e,t)},useId:function(){return Ie.current.useId()},useImperativeHandle:function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return Ie.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return Ie.current.useLayoutEffect(e,t)},useMemo:function(e,t){return Ie.current.useMemo(e,t)},useReducer:function(e,t,n){return Ie.current.useReducer(e,t,n)},useRef:function(e){return Ie.current.useRef(e)},useState:function(e){return Ie.current.useState(e)},useSyncExternalStore:function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)},useTransition:function(){return Ie.current.useTransition()},version:"18.2.0"},Me=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},E={},w=null;function k(e){w=e}E.setExtraStackFrame=function(e){w=e},E.getCurrentStack=null,E.getStackAddendum=function(){var e="";w&&(e+=w);var t=E.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:x};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("warn",e,n)}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=E,S.ReactCurrentActQueue=b;var N={};function R(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(O("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),N[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){R(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){R(e,"replaceState")},enqueueSetState:function(e,t,n,r){R(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in L)L.hasOwnProperty(j)&&M(j,L[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}D.prototype=T.prototype;var B=V.prototype=new D;B.constructor=V,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function U(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function $(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return $(e)+".Consumer";case s:return $(e._context)+".Provider";case 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 f:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return H(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=H(x.current.type);Z[t]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,o,a,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);var 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 f=e.defaultProps;for(r in f)void 0===o[r]&&(o[r]=f[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,p),i&&ee(o,p)}return ne(e,a,i,s,l,x.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=I({},e.props),i=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,u=x.current),J(t)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];a.children=f}return ne(e.type,i,s,l,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 f=e,p=i(f),m=""===a?"."+ue(f,0):a;if(z(p)){var v="";null!=m&&(v=ce(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(ae(p)&&(!p.key||f&&f.key===p.key||U(p.key),l=p,c=o+(!p.key||f&&f.key===p.key?"":ce(""+p.key)+"/")+m,p=ne(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===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 x=h(e);if("function"==typeof x){var E=e;x===E.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=x.call(E),S=0;!(w=k.next()).done;)y+=de(u=w.value,t,o,g+ue(u,S++),i)}else if("object"===s){var O=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===u||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&O("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,xe,Ee,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,Oe=S.ReactCurrentDispatcher;function _e(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Re=!1,Ae="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Re)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Re=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Oe.current,Oe.current=null,function(){if(0===ke){he=console.log,ye=console.info,ge=console.warn,be=console.error,xe=console.group,Ee=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),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{Re=!1,Oe.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:xe}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:we})})}ke<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?_e(f):"";return"function"==typeof e&&Ne.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return _e(e);switch(e){case u:return _e("Suspense");case d:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,o=e._init;try{return Pe(o(r),t,n)}catch(e){}}return""}Ne=new Ae;var Te,Le={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Pe(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(x.current){var e=H(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==x.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),De(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&ze(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function Ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(je(o),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),je(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,je(o),O("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $e(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,O("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var c=re.apply(this,arguments);if(null==c)return c;if(a)for(var u=2;u<arguments.length;u++)We(arguments[u],e);return e===o?$e(c):Ue(c),c}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&O("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var o=b.current;if(null!==o)try{et(o),function(a){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&O("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===o.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=He,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=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++)We(arguments[o],r.type);return Ue(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,O("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,O("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?O("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?O("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&O("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||O("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof: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:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){O("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){O("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||O("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,O("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var c=b.current;return null!==c&&(et(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?O("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&O("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),je=ee(function(e){e.exports="production"===process.env.NODE_ENV?Le:Me}),De=/*#__PURE__*/Q({__proto__:null,default:je},[je]),Ve=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Be="-ms-",Fe="-webkit-",ze=Math.abs,We=String.fromCharCode,Ue=Object.assign;function $e(e){return e.trim()}function He(e,t,n){return e.replace(t,n)}function qe(e,t){return e.indexOf(t)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,n){return e.slice(t,n)}function Ge(e){return e.length}function Xe(e){return e.length}function Ke(e,t){return t.push(e),e}var Je=1,Qe=1,et=0,tt=0,nt=0,rt="";function ot(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Je,column:Qe,length:i,return:""}}function at(e,t){return Ue(ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function it(){return nt=tt>0?Ye(rt,--tt):0,Qe--,10===nt&&(Qe=1,Je--),nt}function st(){return nt=tt<et?Ye(rt,tt++):0,Qe++,10===nt&&(Qe=1,Je++),nt}function lt(){return Ye(rt,tt)}function ct(){return tt}function ut(e,t){return Ze(rt,e,t)}function dt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ft(e){return Je=Qe=1,et=Ge(rt=e),tt=0,[]}function pt(e){return rt="",e}function mt(e){return $e(ut(tt-1,yt(91===e?e+2:40===e?e+1:e)))}function vt(e){for(;(nt=lt())&&nt<33;)st();return dt(e)>2||dt(nt)>3?"":" "}function ht(e,t){for(;--t&&st()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return ut(e,ct()+(t<6&&32==lt()&&32==st()))}function yt(e){for(;st();)switch(nt){case e:return tt;case 34:case 39:34!==e&&39!==e&&yt(nt);break;case 40:41===e&&yt(e);break;case 92:st()}return tt}function gt(e,t){for(;st()&&e+nt!==57&&(e+nt!==84||47!==lt()););return"/*"+ut(t,tt-1)+"*"+We(47===e?e:st())}function bt(e){for(;!dt(lt());)st();return ut(e,tt)}function xt(e){return pt(Et("",null,null,null,[""],e=ft(e),0,[0],e))}function Et(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",x=o,E=a,w=r,k=b;h;)switch(m=g,g=st()){case 40:if(108!=m&&58==k.charCodeAt(d-1)){-1!=qe(k+=He(mt(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=mt(g);break;case 9:case 10:case 13:case 32:k+=vt(m);break;case 92:k+=ht(ct()-1,7);continue;case 47:switch(lt()){case 42:case 47:Ke(kt(gt(st(),ct()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Ge(k)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+u:p>0&&Ge(k)-d&&Ke(p>32?St(k+";",r,n,d-1):St(He(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ke(w=wt(k,t,n,c,u,o,s,b,x=[],E=[],d),a),123===g)if(0===u)Et(k,t,w,w,x,a,d,s,E);else switch(f){case 100:case 109:case 115:Et(e,w,w,r&&Ke(wt(e,w,w,0,0,o,s,b,o,x=[],d),E),o,E,d,s,r?x:E);break;default:Et(k,w,w,w,[""],E,0,s,E)}}c=u=p=0,v=y=1,b=k="",d=i;break;case 58:d=1+Ge(k),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==it())continue;switch(k+=We(g),g*v){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ge(k)-1)*y,y=1;break;case 64:45===lt()&&(k+=mt(st())),f=lt(),u=d=Ge(b=k+=bt(ct())),g++;break;case 45:45===m&&2==Ge(k)&&(v=0)}}return a}function wt(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=Xe(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=Ze(e,d+1,d=ze(v=i[m])),b=e;y<p;++y)(b=$e(v>0?f[y]+" "+g:He(g,/&\f/g,f[y])))&&(l[h++]=b);return ot(e,t,n,0===o?"rule":s,l,c,u)}function kt(e,t,n){return ot(e,t,n,"comm",We(nt),Ze(e,2,-2),0)}function St(e,t,n,r){return ot(e,t,n,"decl",Ze(e,0,r),Ze(e,r+1,-1),r)}function Ct(e,t){switch(function(e,t){return(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3)}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+"-moz-"+e+Be+e+e;case 6828:case 4268:return Fe+e+Be+e+e;case 6165:return Fe+e+Be+"flex-"+e+e;case 5187:return Fe+e+He(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Fe+e+Be+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Fe+e+Be+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+Be+He(e,"shrink","negative")+e;case 5292:return Fe+e+Be+He(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+He(e,"-grow","")+Fe+e+Be+He(e,"grow","positive")+e;case 4554:return Fe+He(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ge(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qe(e,"stretch")?Ct(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Ge(e)-3-(~qe(e,"!important")&&10))){case 107:return He(e,":",":"+Fe)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+Be+e+e}return e}function Ot(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _t(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Ot(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Ge(n=Ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Rt=function(e,t,n){for(var r=0,o=0;r=o,o=lt(),38===r&&12===o&&(t[n]=1),!dt(o);)st();return ut(e,tt)},At=/* #__PURE__ */new WeakMap,It=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||At.get(n))&&!r){At.set(e,!0);for(var o=[],a=function(e,t){return pt(function(e,t){var n=-1,r=44;do{switch(dt(r)){case 0:38===r&&12===lt()&&(t[n]=1),e[n]+=Rt(tt-1,t,n);break;case 2:e[n]+=mt(r);break;case 4:if(44===r){e[++n]=58===lt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=We(r)}}while(r=st());return e}(ft(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Pt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Tt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Lt=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mt=function(e,t,n){Tt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Lt(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Tt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Lt(e)))},jt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ct(e.value,e.length);break;case"@keyframes":return Ot([at(e,{value:He(e.value,"@","@"+Fe)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ot([at(e,{props:[He(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ot([at(e,{props:[He(t,/:(plac\w+)/,":-webkit-input-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,":-moz-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,Be+"input-$1")]})],r)}return""})}}],Dt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||jt;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[It,Pt];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var o,a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((o=i.children).length?o[o.length-1]:null))return;a.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Mt);var c,u,d=[_t,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?c.insert(e.return):e.value&&"comm"!==e.type&&c.insert(e.value+"{}"))}:(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=Xe(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=function(e,t,n,r){c=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(c={insert:function(e){n.insert(e+t.map)}}),Ot(xt(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ve({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return p.sheet.hydrate(s),p};function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}var Bt="function"==typeof Symbol&&Symbol.for,Ft=Bt?Symbol.for("react.element"):60103,zt=Bt?Symbol.for("react.portal"):60106,Wt=Bt?Symbol.for("react.fragment"):60107,Ut=Bt?Symbol.for("react.strict_mode"):60108,$t=Bt?Symbol.for("react.profiler"):60114,Ht=Bt?Symbol.for("react.provider"):60109,qt=Bt?Symbol.for("react.context"):60110,Yt=Bt?Symbol.for("react.async_mode"):60111,Zt=Bt?Symbol.for("react.concurrent_mode"):60111,Gt=Bt?Symbol.for("react.forward_ref"):60112,Xt=Bt?Symbol.for("react.suspense"):60113,Kt=Bt?Symbol.for("react.suspense_list"):60120,Jt=Bt?Symbol.for("react.memo"):60115,Qt=Bt?Symbol.for("react.lazy"):60116,en=Bt?Symbol.for("react.block"):60121,tn=Bt?Symbol.for("react.fundamental"):60117,nn=Bt?Symbol.for("react.responder"):60118,rn=Bt?Symbol.for("react.scope"):60119;function on(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ft:switch(e=e.type){case Yt:case Zt:case Wt:case $t:case Ut:case Xt:return e;default:switch(e=e&&e.$$typeof){case qt:case Gt:case Qt:case Jt:case Ht:return e;default:return t}}case zt:return t}}}function an(e){return on(e)===Zt}var sn={AsyncMode:Yt,ConcurrentMode:Zt,ContextConsumer:qt,ContextProvider:Ht,Element:Ft,ForwardRef:Gt,Fragment:Wt,Lazy:Qt,Memo:Jt,Portal:zt,Profiler:$t,StrictMode:Ut,Suspense:Xt,isAsyncMode:function(e){return an(e)||on(e)===Yt},isConcurrentMode:an,isContextConsumer:function(e){return on(e)===qt},isContextProvider:function(e){return on(e)===Ht},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft},isForwardRef:function(e){return on(e)===Gt},isFragment:function(e){return on(e)===Wt},isLazy:function(e){return on(e)===Qt},isMemo:function(e){return on(e)===Jt},isPortal:function(e){return on(e)===zt},isProfiler:function(e){return on(e)===$t},isStrictMode:function(e){return on(e)===Ut},isSuspense:function(e){return on(e)===Xt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Wt||e===Zt||e===$t||e===Ut||e===Xt||e===Kt||"object"==typeof e&&null!==e&&(e.$$typeof===Qt||e.$$typeof===Jt||e.$$typeof===Ht||e.$$typeof===qt||e.$$typeof===Gt||e.$$typeof===tn||e.$$typeof===nn||e.$$typeof===rn||e.$$typeof===en)},typeOf:on},ln=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case o:case i:case a:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var E=u,w=l,k=s,S=n,C=d,O=o,_=v,N=m,R=r,A=i,I=a,P=f,T=!1;function L(e){return x(e)===u}t.AsyncMode=c,t.ConcurrentMode=E,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=O,t.Lazy=_,t.Memo=N,t.Portal=R,t.Profiler=A,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===c},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=x}()});function cn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}ee(function(e){e.exports="production"===process.env.NODE_ENV?sn:ln});var un=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dn=function(e,t,n){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)}},fn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",mn=/[A-Z]|^ms/g,vn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(e){return 45===e.charCodeAt(1)},yn=function(e){return null!=e&&"boolean"!=typeof e},gn=/* #__PURE__ */Nt(function(e){return hn(e)?e:e.replace(mn,"-$&").toLowerCase()}),bn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vn,function(e,t,n){return Rn={name:t,styles:n,next:Rn},t})}return 1===fn[e]||hn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var xn=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,En=["normal","none","initial","inherit","unset"],wn=bn,kn=/^-ms-/,Sn=/-(.)/g,Cn={};bn=function(e,t){if("content"===e&&("string"!=typeof t||-1===En.indexOf(t)&&!xn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=wn(e,t);return""===n||hn(e)||-1===e.indexOf("-")||void 0!==Cn[e]||(Cn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(kn,"ms-").replace(Sn,function(e,t){return t.toUpperCase()})+"?")),n}}var On="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _n(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(On);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_n(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":yn(i)&&(r+=gn(a)+":"+bn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(On);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=_n(e,t,i);switch(a){case"animation":case"animationName":r+=gn(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)yn(i[l])&&(r+=gn(a)+":"+bn(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Rn,i=n(e);return Rn=a,_n(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(vn,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Nn,Rn,An=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Nn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var In=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Rn=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=_n(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pn),o+=i[0]);for(var s=1;s<e.length;s++)o+=_n(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(pn),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Nn,function(e){return a=e,""})),An.lastIndex=0;for(var l,c="";null!==(l=An.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:Rn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Rn}},Pn={}.hasOwnProperty,Tn=/* #__PURE__ */je.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Dt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Tn.displayName="EmotionCacheContext");var Ln=function(e){/*#__PURE__*/
|
2
|
-
return je.forwardRef(function(t,n){var r=je.useContext(Tn);return e(t,r,n)})},Mn=/* #__PURE__ */je.createContext({});"production"!==process.env.NODE_ENV&&(Mn.displayName="EmotionThemeContext");var jn=De.useInsertionEffect?De.useInsertionEffect:function(e){e()};function Dn(e){jn(e)}var Vn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return
|
3
|
-
return je.isValidElement(e)})}var er=n?je.useLayoutEffect:je.useEffect;function tr(e,t){void 0===t&&(t=[]);var n=je.useRef(e);return er(function(){n.current=e}),je.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function nr(e,t,n,o){var a=tr(t);return je.useEffect(function(){var i,s=null!=(i=r(n))?i:document;if(t)return s.addEventListener(e,a,o),function(){s.removeEventListener(e,a,o)}},[e,n,o,a,t]),function(){var t;(null!=(t=r(n))?t:document).removeEventListener(e,a,o)}}function rr(e){void 0===e&&(e=!1);var t=je.useState(e),n=t[0],r=t[1],o=je.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,o]}function or(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function ar(e){var t=e.value,n=e.defaultValue,o=e.shouldUpdate,a=void 0===o?function(e,t){return e!==t}:o,i=tr(e.onChange),s=tr(a),l=je.useState(n),c=l[1],u=void 0!==t,d=u?t:l[0],f=je.useCallback(function(e){var t=r(e,d);s(d,t)&&(u||c(t),i(t))},[u,i,d,s]);return[d,f]}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function sr(e,t){var n=je.useId();return je.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var lr=function(e,t){var n=je.useRef(!1),r=je.useRef(!1);je.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),je.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function cr(e,t){return void 0===t&&(t=[]),je.useEffect(function(){return function(){return e()}},t)}function ur(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return je.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&ur(t,e)})}},t)}function fr(e,t){var n,r=e.target;return!(e.button>0||r&&!s(r).contains(r)||null!=(n=t.current)&&n.contains(r))}var pr=/*#__PURE__*/je.createContext({});function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}d&&(pr.displayName="ColorModeContext");var vr,hr,yr=function(e){return v(e)?e.replace(/!(important)?$/,"").trim():e},gr=function(e,t){return function(n){var r=String(t),o=function(e){return/!(important)?$/.test(e)}(r),a=yr(r),i=e?e+"."+a:a,s=f(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=yr(s),o?s+" !important":s}};function br(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,o){var a,i=gr(t,e)(o),s=null!=(a=null==n?void 0:n(i,o))?a:i;return r&&(s=r(s,o)),s}}function xr(e,t){return function(n){var r={property:n,scale:e};return r.transform=br({scale:e,transform:t}),r}}var Er=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],wr={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},kr={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Sr={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Cr=((vr={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},vr),Or=((hr={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},hr);function _r(e,t){return _r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_r(e,t)}function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_r(e,t)}function Rr(){Rr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),_r(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Nr(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Rr.apply(this,arguments)}var Ar={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Ir=new Set(Object.values(Ar)),Pr=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Tr=function(e){return e.trim()},Lr=function(e){return v(e)&&e.includes("(")&&e.includes(")")},Mr=function(e){return function(t){return e+"("+t+")"}},jr={filter:function(e){return"auto"!==e?e:wr},backdropFilter:function(e){return"auto"!==e?e:kr},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(jr.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Er).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Er).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||h(e)?e+"px":e},fraction:function(e){return!h(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(y(e)||null==e)return e;var t=v(e)&&!e.endsWith("deg");return h(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Pr.has(e))return e;var o=null!=(n=null==(r=/*#__PURE__*/Rr(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},a=o.type,i=o.values;if(!a||!i)return e;var s=a.includes("-gradient")?a:a+"-gradient",l=i.split(",").map(Tr).filter(Boolean),c=l[0],u=l.slice(1);if(0===(null==u?void 0:u.length))return e;u.unshift(c in Ar?Ar[c]:c);var d=u.map(function(e){if(Ir.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=r[0],a=r[1],i=Lr(a)?a:a&&a.split(" "),s="colors."+o,l=s in t.__cssMap?t.__cssMap[s].varRef:o;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Mr("blur"),opacity:Mr("opacity"),brightness:Mr("brightness"),contrast:Mr("contrast"),dropShadow:Mr("drop-shadow"),grayscale:Mr("grayscale"),hueRotate:Mr("hue-rotate"),invert:Mr("invert"),saturate:Mr("saturate"),sepia:Mr("sepia"),bgImage:function(e){return null==e||Lr(e)||Pr.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=Sr[e])?t:{},r=n.space,o=n.divide,a={flexDirection:e};return r&&(a[r]=1),o&&(a[o]=1),a}},Dr={borderWidths:xr("borderWidths"),borderStyles:xr("borderStyles"),colors:xr("colors"),borders:xr("borders"),radii:xr("radii",jr.px),space:xr("space",jr.px),spaceT:xr("space",jr.px),degreeT:function(e){return{property:e,transform:jr.degree}},prop:function(e,t,n){return mr({property:e,scale:t},t&&{transform:br({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:xr("sizes",jr.px),sizesT:xr("sizes",jr.fraction),shadows:xr("shadows"),logical:function(e){var t,n,r,o=e.scale,a=e.transform;return{scale:o,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:o?br({scale:o,compose:a}):a}},blur:xr("blur",jr.blur)},Vr={background:Dr.colors("background"),backgroundColor:Dr.colors("backgroundColor"),backgroundImage:Dr.propT("backgroundImage",jr.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:jr.bgClip},bgSize:Dr.prop("backgroundSize"),bgPosition:Dr.prop("backgroundPosition"),bg:Dr.colors("background"),bgColor:Dr.colors("backgroundColor"),bgPos:Dr.prop("backgroundPosition"),bgRepeat:Dr.prop("backgroundRepeat"),bgAttachment:Dr.prop("backgroundAttachment"),bgGradient:Dr.propT("backgroundImage",jr.gradient),bgClip:{transform:jr.bgClip}};Object.assign(Vr,{bgImage:Vr.backgroundImage,bgImg:Vr.backgroundImage});var Br={border:Dr.borders("border"),borderWidth:Dr.borderWidths("borderWidth"),borderStyle:Dr.borderStyles("borderStyle"),borderColor:Dr.colors("borderColor"),borderRadius:Dr.radii("borderRadius"),borderTop:Dr.borders("borderTop"),borderBlockStart:Dr.borders("borderBlockStart"),borderTopLeftRadius:Dr.radii("borderTopLeftRadius"),borderStartStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Dr.radii("borderTopRightRadius"),borderStartEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Dr.borders("borderRight"),borderInlineEnd:Dr.borders("borderInlineEnd"),borderBottom:Dr.borders("borderBottom"),borderBlockEnd:Dr.borders("borderBlockEnd"),borderBottomLeftRadius:Dr.radii("borderBottomLeftRadius"),borderBottomRightRadius:Dr.radii("borderBottomRightRadius"),borderLeft:Dr.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Dr.borders(["borderLeft","borderRight"]),borderInline:Dr.borders("borderInline"),borderY:Dr.borders(["borderTop","borderBottom"]),borderBlock:Dr.borders("borderBlock"),borderTopWidth:Dr.borderWidths("borderTopWidth"),borderBlockStartWidth:Dr.borderWidths("borderBlockStartWidth"),borderTopColor:Dr.colors("borderTopColor"),borderBlockStartColor:Dr.colors("borderBlockStartColor"),borderTopStyle:Dr.borderStyles("borderTopStyle"),borderBlockStartStyle:Dr.borderStyles("borderBlockStartStyle"),borderBottomWidth:Dr.borderWidths("borderBottomWidth"),borderBlockEndWidth:Dr.borderWidths("borderBlockEndWidth"),borderBottomColor:Dr.colors("borderBottomColor"),borderBlockEndColor:Dr.colors("borderBlockEndColor"),borderBottomStyle:Dr.borderStyles("borderBottomStyle"),borderBlockEndStyle:Dr.borderStyles("borderBlockEndStyle"),borderLeftWidth:Dr.borderWidths("borderLeftWidth"),borderInlineStartWidth:Dr.borderWidths("borderInlineStartWidth"),borderLeftColor:Dr.colors("borderLeftColor"),borderInlineStartColor:Dr.colors("borderInlineStartColor"),borderLeftStyle:Dr.borderStyles("borderLeftStyle"),borderInlineStartStyle:Dr.borderStyles("borderInlineStartStyle"),borderRightWidth:Dr.borderWidths("borderRightWidth"),borderInlineEndWidth:Dr.borderWidths("borderInlineEndWidth"),borderRightColor:Dr.colors("borderRightColor"),borderInlineEndColor:Dr.colors("borderInlineEndColor"),borderRightStyle:Dr.borderStyles("borderRightStyle"),borderInlineEndStyle:Dr.borderStyles("borderInlineEndStyle"),borderTopRadius:Dr.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Dr.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Dr.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Dr.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Br,{rounded:Br.borderRadius,roundedTop:Br.borderTopRadius,roundedTopLeft:Br.borderTopLeftRadius,roundedTopRight:Br.borderTopRightRadius,roundedTopStart:Br.borderStartStartRadius,roundedTopEnd:Br.borderStartEndRadius,roundedBottom:Br.borderBottomRadius,roundedBottomLeft:Br.borderBottomLeftRadius,roundedBottomRight:Br.borderBottomRightRadius,roundedBottomStart:Br.borderEndStartRadius,roundedBottomEnd:Br.borderEndEndRadius,roundedLeft:Br.borderLeftRadius,roundedRight:Br.borderRightRadius,roundedStart:Br.borderInlineStartRadius,roundedEnd:Br.borderInlineEndRadius,borderStart:Br.borderInlineStart,borderEnd:Br.borderInlineEnd,borderTopStartRadius:Br.borderStartStartRadius,borderTopEndRadius:Br.borderStartEndRadius,borderBottomStartRadius:Br.borderEndStartRadius,borderBottomEndRadius:Br.borderEndEndRadius,borderStartRadius:Br.borderInlineStartRadius,borderEndRadius:Br.borderInlineEndRadius,borderStartWidth:Br.borderInlineStartWidth,borderEndWidth:Br.borderInlineEndWidth,borderStartColor:Br.borderInlineStartColor,borderEndColor:Br.borderInlineEndColor,borderStartStyle:Br.borderInlineStartStyle,borderEndStyle:Br.borderInlineEndStyle});var Fr={color:Dr.colors("color"),textColor:Dr.colors("color"),fill:Dr.colors("fill"),stroke:Dr.colors("stroke")},zr={boxShadow:Dr.shadows("boxShadow"),mixBlendMode:!0,blendMode:Dr.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Dr.prop("backgroundBlendMode"),opacity:!0};Object.assign(zr,{shadow:zr.boxShadow});var Wr={filter:{transform:jr.filter},blur:Dr.blur("--chakra-blur"),brightness:Dr.propT("--chakra-brightness",jr.brightness),contrast:Dr.propT("--chakra-contrast",jr.contrast),hueRotate:Dr.degreeT("--chakra-hue-rotate"),invert:Dr.propT("--chakra-invert",jr.invert),saturate:Dr.propT("--chakra-saturate",jr.saturate),dropShadow:Dr.propT("--chakra-drop-shadow",jr.dropShadow),backdropFilter:{transform:jr.backdropFilter},backdropBlur:Dr.blur("--chakra-backdrop-blur"),backdropBrightness:Dr.propT("--chakra-backdrop-brightness",jr.brightness),backdropContrast:Dr.propT("--chakra-backdrop-contrast",jr.contrast),backdropHueRotate:Dr.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Dr.propT("--chakra-backdrop-invert",jr.invert),backdropSaturate:Dr.propT("--chakra-backdrop-saturate",jr.saturate)},Ur={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:jr.flexDirection},experimental_spaceX:{static:Cr,transform:br({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Or,transform:br({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Dr.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Dr.space("gap"),rowGap:Dr.space("rowGap"),columnGap:Dr.space("columnGap")};Object.assign(Ur,{flexDir:Ur.flexDirection});var $r={gridGap:Dr.space("gridGap"),gridColumnGap:Dr.space("gridColumnGap"),gridRowGap:Dr.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Hr={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:jr.outline},outlineOffset:!0,outlineColor:Dr.colors("outlineColor")},qr={width:Dr.sizesT("width"),inlineSize:Dr.sizesT("inlineSize"),height:Dr.sizes("height"),blockSize:Dr.sizes("blockSize"),boxSize:Dr.sizes(["width","height"]),minWidth:Dr.sizes("minWidth"),minInlineSize:Dr.sizes("minInlineSize"),minHeight:Dr.sizes("minHeight"),minBlockSize:Dr.sizes("minBlockSize"),maxWidth:Dr.sizes("maxWidth"),maxInlineSize:Dr.sizes("maxInlineSize"),maxHeight:Dr.sizes("maxHeight"),maxBlockSize:Dr.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Dr.propT("float",jr.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var Yr={listStyleType:!0,listStylePosition:!0,listStylePos:Dr.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Dr.prop("listStyleImage")},Zr={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Gr={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Xr=function(e,t,n){var r={},o=g(e,t,{});for(var a in o)a in n&&null!=n[a]||(r[a]=o[a]);return r},Kr={srOnly:{transform:function(e){return!0===e?Zr:"focusable"===e?Gr:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return Xr(t,e,n)}}},Jr={position:!0,pos:Dr.prop("position"),zIndex:Dr.prop("zIndex","zIndices"),inset:Dr.spaceT("inset"),insetX:Dr.spaceT(["left","right"]),insetInline:Dr.spaceT("insetInline"),insetY:Dr.spaceT(["top","bottom"]),insetBlock:Dr.spaceT("insetBlock"),top:Dr.spaceT("top"),insetBlockStart:Dr.spaceT("insetBlockStart"),bottom:Dr.spaceT("bottom"),insetBlockEnd:Dr.spaceT("insetBlockEnd"),left:Dr.spaceT("left"),insetInlineStart:Dr.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Dr.spaceT("right"),insetInlineEnd:Dr.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jr,{insetStart:Jr.insetInlineStart,insetEnd:Jr.insetInlineEnd});var Qr={ring:{transform:jr.ring},ringColor:Dr.colors("--chakra-ring-color"),ringOffset:Dr.prop("--chakra-ring-offset-width"),ringOffsetColor:Dr.colors("--chakra-ring-offset-color"),ringInset:Dr.prop("--chakra-ring-inset")},eo={margin:Dr.spaceT("margin"),marginTop:Dr.spaceT("marginTop"),marginBlockStart:Dr.spaceT("marginBlockStart"),marginRight:Dr.spaceT("marginRight"),marginInlineEnd:Dr.spaceT("marginInlineEnd"),marginBottom:Dr.spaceT("marginBottom"),marginBlockEnd:Dr.spaceT("marginBlockEnd"),marginLeft:Dr.spaceT("marginLeft"),marginInlineStart:Dr.spaceT("marginInlineStart"),marginX:Dr.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Dr.spaceT("marginInline"),marginY:Dr.spaceT(["marginTop","marginBottom"]),marginBlock:Dr.spaceT("marginBlock"),padding:Dr.space("padding"),paddingTop:Dr.space("paddingTop"),paddingBlockStart:Dr.space("paddingBlockStart"),paddingRight:Dr.space("paddingRight"),paddingBottom:Dr.space("paddingBottom"),paddingBlockEnd:Dr.space("paddingBlockEnd"),paddingLeft:Dr.space("paddingLeft"),paddingInlineStart:Dr.space("paddingInlineStart"),paddingInlineEnd:Dr.space("paddingInlineEnd"),paddingX:Dr.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Dr.space("paddingInline"),paddingY:Dr.space(["paddingTop","paddingBottom"]),paddingBlock:Dr.space("paddingBlock")};Object.assign(eo,{m:eo.margin,mt:eo.marginTop,mr:eo.marginRight,me:eo.marginInlineEnd,marginEnd:eo.marginInlineEnd,mb:eo.marginBottom,ml:eo.marginLeft,ms:eo.marginInlineStart,marginStart:eo.marginInlineStart,mx:eo.marginX,my:eo.marginY,p:eo.padding,pt:eo.paddingTop,py:eo.paddingY,px:eo.paddingX,pb:eo.paddingBottom,pl:eo.paddingLeft,ps:eo.paddingInlineStart,paddingStart:eo.paddingInlineStart,pr:eo.paddingRight,pe:eo.paddingInlineEnd,paddingEnd:eo.paddingInlineEnd});var to={textDecorationColor:Dr.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Dr.shadows("textShadow")},no={clipPath:!0,transform:Dr.propT("transform",jr.transform),transformOrigin:!0,translateX:Dr.spaceT("--chakra-translate-x"),translateY:Dr.spaceT("--chakra-translate-y"),skewX:Dr.degreeT("--chakra-skew-x"),skewY:Dr.degreeT("--chakra-skew-y"),scaleX:Dr.prop("--chakra-scale-x"),scaleY:Dr.prop("--chakra-scale-y"),scale:Dr.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Dr.degreeT("--chakra-rotate")},ro={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Dr.prop("transitionDuration","transition.duration"),transitionProperty:Dr.prop("transitionProperty","transition.property"),transitionTimingFunction:Dr.prop("transitionTimingFunction","transition.easing")},oo={fontFamily:Dr.prop("fontFamily","fonts"),fontSize:Dr.prop("fontSize","fontSizes",jr.px),fontWeight:Dr.prop("fontWeight","fontWeights"),lineHeight:Dr.prop("lineHeight","lineHeights"),letterSpacing:Dr.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ao={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Dr.spaceT("scrollMargin"),scrollMarginTop:Dr.spaceT("scrollMarginTop"),scrollMarginBottom:Dr.spaceT("scrollMarginBottom"),scrollMarginLeft:Dr.spaceT("scrollMarginLeft"),scrollMarginRight:Dr.spaceT("scrollMarginRight"),scrollMarginX:Dr.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Dr.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Dr.spaceT("scrollPadding"),scrollPaddingTop:Dr.spaceT("scrollPaddingTop"),scrollPaddingBottom:Dr.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Dr.spaceT("scrollPaddingLeft"),scrollPaddingRight:Dr.spaceT("scrollPaddingRight"),scrollPaddingX:Dr.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Dr.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function io(e){return f(e)&&e.reference?e.reference:String(e)}var so=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(io).join(" "+e+" ").replace(/calc/g,"")},lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["+"].concat(t))+")"},co=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["-"].concat(t))+")"},uo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["*"].concat(t))+")"},fo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["/"].concat(t))+")"},po=function(e){var t=io(e);return null==t||Number.isNaN(parseFloat(t))?uo(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},mo=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(lo.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(co.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(uo.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(fo.apply(void 0,[e].concat(n)))},negate:function(){return mo(po(e))},toString:function(){return e.toString()}}},{add:lo,subtract:co,multiply:uo,divide:fo,negate:po}),vo=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},ho=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},yo=function(e,t){return e+":focus-visible "+t},go=function(e,t){return e+":focus-within "+t},bo=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},xo=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Eo=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},wo=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},ko=function(e){return Co(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},So=function(e){return Co(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Co=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Oo={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ko(vo),_peerHover:So(vo),_groupFocus:ko(ho),_peerFocus:So(ho),_groupFocusVisible:ko(yo),_peerFocusVisible:So(yo),_groupActive:ko(bo),_peerActive:So(bo),_groupDisabled:ko(xo),_peerDisabled:So(xo),_groupInvalid:ko(Eo),_peerInvalid:So(Eo),_groupChecked:ko(wo),_peerChecked:So(wo),_groupFocusWithin:ko(go),_peerFocusWithin:So(go),_peerPlaceholderShown:So(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},_o=p(Oo);function No(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ro(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?No(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ao=m({},Vr,Br,Fr,Ur,qr,Wr,Qr,Hr,$r,Kr,Jr,zr,eo,ao,oo,to,no,Yr,ro),Io=p(Object.assign({},eo,qr,Ur,$r,Jr)),Po=[].concat(p(Ao),_o),To=mr({},Ao,Oo),Lo=function(e){return e in To},Mo=function(e,t){return e.startsWith("--")&&v(t)&&!y(t)},jo=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},a=function(e){var t;return null!=(t=o(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=o(i[0]))?r:a(s))?n:a(t)},Do=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vo=/* #__PURE__ */Nt(function(e){return Do.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Bo=function(e){return"theme"!==e},Fo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Vo:Bo},zo=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wo=De.useInsertionEffect?De.useInsertionEffect:function(e){e()},Uo="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return un(t,n,r),Wo(function(){return dn(t,n,r)}),null},Ho=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=zo(t,n,a),l=s||Fo(i),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(Uo),d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===u[0][p]&&console.error(Uo),d.push(u[p],u[0][p])}var m=Ln(function(e,t,n){var r=c&&e.as||i,a="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=je.useContext(Mn)}"string"==typeof e.className?a=cn(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=In(d.concat(u),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var v=c&&void 0===s?Fo(r):l,h={};for(var y in e)c&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=a,h.ref=n,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement($o,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/je.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Vt({},n,r,{shouldForwardProp:zo(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ho[e]=Ho(e)});var qo="undefined"!=typeof Element,Yo="function"==typeof Map,Zo="function"==typeof Set,Go="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Xo(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Xo(e[r],t[r]))return!1;return!0}if(Yo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Zo&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Go&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(qo&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Xo(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Ko=function(e,t){try{return Xo(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function Qo(){var e=je.useContext(Mn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Jn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ea=function(e){return Jn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function ta(e){return E(e,["styleConfig","size","variant","colorScheme"])}function na(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var ra=new Set([].concat(Po,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),oa=new Set(["htmlWidth","htmlHeight","htmlSize"]),aa=function(e){return oa.has(e)||!ra.has(e)},ia=["theme","css","__css","sx"],sa=["baseStyle"];function la(e,t){var n=null!=t?t:{},o=n.baseStyle,a=na(n,sa);a.shouldForwardProp||(a.shouldForwardProp=aa);var i=function(e){var t=e.baseStyle;return function(e){var n,o=e.css,a=e.__css,i=e.sx,s=na(e,ia),l=k(s,function(e,t){return Lo(t)}),c=r(t,e),u=Object.assign({},a,c,w(l),i),d=(n=u,function(e){return function(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,a=void 0===o?{}:o,i=e.theme;return function e(t,o){void 0===o&&(o=!1);var s=r(t,i),l=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,a=n.toArrayValue,i=n.media,s={};for(var l in e){var c=r(e[l],t);if(null!=c)if(c=f(c)&&o(c)?a(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=c[d]&&(s[p][l]=c[d])):s[l]=c[d]}else s[l]=c}return s}}(s)(i),c={};for(var u in l){var d,p,v,h,y,g=r(l[u],i);u in a&&(u=a[u]),Mo(u,g)&&(g=jo(i,g));var b=n[u];if(!0===b&&(b={property:u}),f(g)){var x;c[u]=null!=(x=c[u])?x:{},c[u]=m({},c[u],e(g,!0))}else{var E=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(g,i,s))?d:g;E=null!=(v=b)&&v.processResult?e(E,!0):E;var w=r(null==(h=b)?void 0:h.property,i);if(!o&&null!=(y=b)&&y.static){var k=r(b.static,i);c=m({},c,k)}if(w&&Array.isArray(w))for(var S,C=Ro(w);!(S=C()).done;)c[S.value]=E;else w?"&"===w&&f(E)?c=m({},c,E):c[w]=E:f(E)?c=m({},c,E):c[u]=E}}return c}}({theme:e,pseudos:Oo,configs:Ao})(n)})(e.theme);return o?[d,o]:d}}({baseStyle:o});return Ho(e,a)(i)}function ca(e){/*#__PURE__*/
|
4
|
-
return je.forwardRef(e)}var
|
5
|
-
return je.createElement(va.div,ba({ref:t,__css:v,className:m},p),a&&/*#__PURE__*/je.createElement(ya,null,a))});function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka.apply(this,arguments)}d&&(wa.displayName="Spinner");var Sa=["as","viewBox","color","focusable","children","className","__css"],Ca={path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Oa=/*#__PURE__*/
|
1
|
+
import{ajvResolver as e}from"@hookform/resolvers/ajv";import{isFunction as t,isBrowser as n,runIfFn as r,getOwnerWindow as o,callAllHandlers as a,focus as i,getOwnerDocument as s,getActiveElement as l,contains as u,isTabbable as c,__DEV__ as d,isObject as f,objectKeys as p,mergeWith as m,isString as v,isNumber as h,isCssVar as y,memoizedGet as g,isArray as b,toMediaQueryString as x,omit as E,filterUndefined as w,objectFilter as k,cx as S,warn as C,dataAttr as O,ariaAttr as _,callAll as N,clampValue as R,toPrecision as A,countDecimalPlaces as I,minSafeInteger as P,maxSafeInteger as T,mapResponsive as L,isNull as M,isRightClick as j,normalizeEventKey as D,determineLazyBehavior as V,removeItem as B,addItem as F,isHTMLElement as z,getNextItemFromSearch as W,isActiveElement as U,split as $,isInputEvent as H,get as q}from"@chakra-ui/utils";import{useFormContext as Y,get as Z,useFieldArray as G,useForm as X,FormProvider as K,Controller as J}from"react-hook-form";function Q(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),e}function ee(e){var t={exports:{}};return e(t,t.exports),t.exports}var te=Symbol.for("react.element"),ne=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),se=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.iterator,pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,ve={};function he(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}function ye(){}function ge(e,t,n){this.props=e,this.context=t,this.refs=ve,this.updater=n||pe}he.prototype.isReactComponent={},he.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},he.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ye.prototype=he.prototype;var be=ge.prototype=new ye;be.constructor=ge,me(be,he.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,Ee=Object.prototype.hasOwnProperty,we={current:null},ke={key:!0,ref:!0,__self:!0,__source:!0};function Se(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)Ee.call(t,r)&&!ke.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:te,type:e,key:a,ref:i,props:o,_owner:we.current}}function Ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===te}var Oe=/\/+/g;function _e(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function Ne(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case te:case ne:i=!0}}if(i)return o=o(i=e),e=""===r?"."+_e(i,0):r,xe(o)?(n="",null!=e&&(n=e.replace(Oe,"$&/")+"/"),Ne(o,t,n,"",function(e){return e})):null!=o&&(Ce(o)&&(o=function(e,t){return{$$typeof:te,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Oe,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",xe(e))for(var s=0;s<e.length;s++){var l=r+_e(a=e[s],s);i+=Ne(a,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(a=e.next()).done;)i+=Ne(a=a.value,t,n,l=r+_e(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Re(e,t,n){if(null==e)return e;var r=[],o=0;return Ne(e,r,"","",function(e){return t.call(n,e,o++)}),r}function Ae(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Ie={current:null},Pe={transition:null},Te={map:Re,forEach:function(e,t,n){Re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Re(e,function(){t++}),t},toArray:function(e){return Re(e,function(e){return e})||[]},only:function(e){if(!Ce(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Le={Children:Te,Component:he,Fragment:re,Profiler:ae,PureComponent:ge,StrictMode:oe,Suspense:ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:Pe,ReactCurrentOwner:we},cloneElement:function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=me({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=we.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ee.call(t,l)&&!ke.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:te,type:e.type,key:o,ref:a,props:r,_owner:i}},createContext:function(e){return(e={$$typeof:se,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:ie,_context:e},e.Consumer=e},createElement:Se,createFactory:function(e){var t=Se.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:le,render:e}},isValidElement:Ce,lazy:function(e){return{$$typeof:de,_payload:{_status:-1,_result:e},_init:Ae}},memo:function(e,t){return{$$typeof:ce,type:e,compare:void 0===t?null:t}},startTransition:function(e){var t=Pe.transition;Pe.transition={};try{e()}finally{Pe.transition=t}},unstable_act:function(){throw Error("act(...) is not supported in production builds of React.")},useCallback:function(e,t){return Ie.current.useCallback(e,t)},useContext:function(e){return Ie.current.useContext(e)},useDebugValue:function(){},useDeferredValue:function(e){return Ie.current.useDeferredValue(e)},useEffect:function(e,t){return Ie.current.useEffect(e,t)},useId:function(){return Ie.current.useId()},useImperativeHandle:function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)},useInsertionEffect:function(e,t){return Ie.current.useInsertionEffect(e,t)},useLayoutEffect:function(e,t){return Ie.current.useLayoutEffect(e,t)},useMemo:function(e,t){return Ie.current.useMemo(e,t)},useReducer:function(e,t,n){return Ie.current.useReducer(e,t,n)},useRef:function(e){return Ie.current.useRef(e)},useState:function(e){return Ie.current.useState(e)},useSyncExternalStore:function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)},useTransition:function(){return Ie.current.useTransition()},version:"18.2.0"},Me=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var y={current:null},g={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},E={},w=null;function k(e){w=e}E.setExtraStackFrame=function(e){w=e},E.getCurrentStack=null,E.getStackAddendum=function(){var e="";w&&(e+=w);var t=E.getCurrentStack;return t&&(e+=t()||""),e};var S={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:g,ReactCurrentOwner:x};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("warn",e,n)}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){var r=S.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}S.ReactDebugCurrentFrame=E,S.ReactCurrentActQueue=b;var N={};function R(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;N[o]||(O("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),N[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){R(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){R(e,"replaceState")},enqueueSetState:function(e,t,n,r){R(e,"setState")}},I=Object.assign,P={};function T(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}Object.freeze(P),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var j in L)L.hasOwnProperty(j)&&M(j,L[j]);function D(){}function V(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||A}D.prototype=T.prototype;var B=V.prototype=new D;B.constructor=V,I(B,T.prototype),B.isPureReactComponent=!0;var F=Array.isArray;function z(e){return F(e)}function W(e){return""+e}function U(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function $(e){return e.displayName||"Context"}function H(e){if(null==e)return null;if("number"==typeof e.tag&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return $(e)+".Consumer";case s:return $(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?"ForwardRef("+o+")":"ForwardRef"}(e,e.render);case f:var t=e.displayName||null;return null!==t?t:H(e.type)||"Memo";case p:var n=e._payload,m=e._init;try{return H(m(n))}catch(e){return null}}return null}var q,Y,Z,G=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Q(e,t){var n=function(){q||(q=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=H(x.current.type);Z[t]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),Z[t]=!0)}}Z={};var ne=function(e,t,r,o,a,i,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function re(e,t,n){var r,o={},a=null,i=null,s=null,l=null;if(null!=t)for(r in K(t)&&(i=t.ref,te(t)),J(t)&&(U(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)G.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===o[r]&&(o[r]=f[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Q(o,p),i&&ee(o,p)}return ne(e,a,i,s,l,x.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=I({},e.props),i=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in K(t)&&(s=t.ref,c=x.current),J(t)&&(U(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)G.call(t,r)&&!X.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==o?o[r]:t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];a.children=f}return ne(e.type,i,s,l,u,c,a)}function ae(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ie,se=!1,le=/\/+/g;function ue(e){return e.replace(le,"$&/")}function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(U(e.key),n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function de(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),m=""===a?"."+ce(f,0):a;if(z(p)){var v="";null!=m&&(v=ue(m)+"/"),de(p,t,v,"",function(e){return e})}else null!=p&&(ae(p)&&(!p.key||f&&f.key===p.key||U(p.key),l=p,u=o+(!p.key||f&&f.key===p.key?"":ue(""+p.key)+"/")+m,p=ne(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var y=0,g=""===a?".":a+":";if(z(e))for(var b=0;b<e.length;b++)y+=de(c=e[b],t,o,g+ce(c,b),i);else{var x=h(e);if("function"==typeof x){var E=e;x===E.entries&&(se||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),se=!0);for(var w,k=x.call(E),S=0;!(w=k.next()).done;)y+=de(c=w.value,t,o,g+ce(c,S++),i)}else if("object"===s){var O=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}}return y}function fe(e,t,n){if(null==e)return e;var r=[],o=0;return de(e,r,"","",function(e){return t.call(n,e,o++)}),r}function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||O("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function me(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===c||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===ie||void 0!==e.getModuleId)}function ve(){var e=y.current;return null===e&&O("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ie=Symbol.for("react.module.reference");var he,ye,ge,be,xe,Ee,we,ke=0;function Se(){}Se.__reactDisabledLog=!0;var Ce,Oe=S.ReactCurrentDispatcher;function _e(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Ne,Re=!1,Ae="function"==typeof WeakMap?WeakMap:Map;function Ie(e,t){if(!e||Re)return"";var n,r=Ne.get(e);if(void 0!==r)return r;Re=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Oe.current,Oe.current=null,function(){if(0===ke){he=console.log,ye=console.info,ge=console.warn,be=console.error,xe=console.group,Ee=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ke++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Re=!1,Oe.current=o,function(){if(0==--ke){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:he}),info:I({},e,{value:ye}),warn:I({},e,{value:ge}),error:I({},e,{value:be}),group:I({},e,{value:xe}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:we})})}ke<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?_e(f):"";return"function"==typeof e&&Ne.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return Ie(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return _e(e);switch(e){case c:return _e("Suspense");case d:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Ie(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e._payload,o=e._init;try{return Pe(o(r),t,n)}catch(e){}}return""}Ne=new Ae;var Te,Le={},Me=S.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;k(Pe(e.type,e._source,t?t.type:null))}else k(null)}function Ve(){if(x.current){var e=H(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Be(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Te=!1;var Fe={};function ze(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ve();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==x.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),De(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function We(e,t){if("object"==typeof e)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];ae(r)&&ze(r,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ae(a.value)&&ze(a.value,t)}}function Ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=H(n);!function(e,t,n,r,o){var a=Function.call.bind(G);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": prop type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(je(o),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),je(null)),s instanceof Error&&!(s.message in Le)&&(Le[s.message]=!0,je(o),O("Failed %s type: %s",n,s.message),je(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Te||(Te=!0,O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $e(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function He(e,t,r){var a=me(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=Be(t);i+=l||Ve(),null===e?s="null":z(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(H(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,O("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var u=re.apply(this,arguments);if(null==u)return u;if(a)for(var c=2;c<arguments.length;c++)We(arguments[c],e);return e===o?$e(u):Ue(u),u}var qe=!1,Ye=!1,Ze=null,Ge=0,Xe=!1;function Ke(e){e!==Ge-1&&O("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=e}function Je(t,n,r){var o=b.current;if(null!==o)try{et(o),function(a){if(null===Ze)try{var i=("require"+Math.random()).slice(0,7);Ze=(e&&e[i]).call(e,"timers").setImmediate}catch(e){Ze=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&O("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(function(){0===o.length?(b.current=null,n(t)):Je(t,n,r)})}()}catch(e){r(e)}else n(t)}var Qe=!1;function et(e){if(!Qe){Qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Qe=!1}}}var tt=He,nt={map:fe,forEach:function(e,t,n){fe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fe(e,function(){t++}),t},toArray:function(e){return fe(e,function(e){return e})||[]},only:function(e){if(!ae(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=nt,t.Component=T,t.Fragment=o,t.Profiler=i,t.PureComponent=V,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,t.cloneElement=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)We(arguments[o],r.type);return Ue(r),r},t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,O("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,O("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=function(e){var t=He.bind(null,e);return t.type=e,qe||(qe=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?O("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?O("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&O("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||O("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ae,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){O("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){O("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){me(e)||O("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=g.transition;g.transition={};var r=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=Ge;Ge++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Ke(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,s={then:function(e,n){i=!0,a.then(function(r){Ke(t),0===Ge?Je(r,e,n):e(r)},function(e){Ke(t),n(e)})}};return Xe||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){i||(Xe=!0,O("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),s}var l=n;if(Ke(t),0===Ge){var u=b.current;return null!==u&&(et(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Je(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?O("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&O("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}),je=ee(function(e){e.exports="production"===process.env.NODE_ENV?Le:Me}),De=/*#__PURE__*/Q({__proto__:null,default:je},[je]),Ve=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Be="-ms-",Fe="-webkit-",ze=Math.abs,We=String.fromCharCode,Ue=Object.assign;function $e(e){return e.trim()}function He(e,t,n){return e.replace(t,n)}function qe(e,t){return e.indexOf(t)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,n){return e.slice(t,n)}function Ge(e){return e.length}function Xe(e){return e.length}function Ke(e,t){return t.push(e),e}var Je=1,Qe=1,et=0,tt=0,nt=0,rt="";function ot(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Je,column:Qe,length:i,return:""}}function at(e,t){return Ue(ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function it(){return nt=tt>0?Ye(rt,--tt):0,Qe--,10===nt&&(Qe=1,Je--),nt}function st(){return nt=tt<et?Ye(rt,tt++):0,Qe++,10===nt&&(Qe=1,Je++),nt}function lt(){return Ye(rt,tt)}function ut(){return tt}function ct(e,t){return Ze(rt,e,t)}function dt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ft(e){return Je=Qe=1,et=Ge(rt=e),tt=0,[]}function pt(e){return rt="",e}function mt(e){return $e(ct(tt-1,yt(91===e?e+2:40===e?e+1:e)))}function vt(e){for(;(nt=lt())&&nt<33;)st();return dt(e)>2||dt(nt)>3?"":" "}function ht(e,t){for(;--t&&st()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return ct(e,ut()+(t<6&&32==lt()&&32==st()))}function yt(e){for(;st();)switch(nt){case e:return tt;case 34:case 39:34!==e&&39!==e&&yt(nt);break;case 40:41===e&&yt(e);break;case 92:st()}return tt}function gt(e,t){for(;st()&&e+nt!==57&&(e+nt!==84||47!==lt()););return"/*"+ct(t,tt-1)+"*"+We(47===e?e:st())}function bt(e){for(;!dt(lt());)st();return ct(e,tt)}function xt(e){return pt(Et("",null,null,null,[""],e=ft(e),0,[0],e))}function Et(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,m=0,v=1,h=1,y=1,g=0,b="",x=o,E=a,w=r,k=b;h;)switch(m=g,g=st()){case 40:if(108!=m&&58==k.charCodeAt(d-1)){-1!=qe(k+=He(mt(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=mt(g);break;case 9:case 10:case 13:case 32:k+=vt(m);break;case 92:k+=ht(ut()-1,7);continue;case 47:switch(lt()){case 42:case 47:Ke(kt(gt(st(),ut()),t,n),l);break;default:k+="/"}break;case 123*v:s[u++]=Ge(k)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+c:p>0&&Ge(k)-d&&Ke(p>32?St(k+";",r,n,d-1):St(He(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ke(w=wt(k,t,n,u,c,o,s,b,x=[],E=[],d),a),123===g)if(0===c)Et(k,t,w,w,x,a,d,s,E);else switch(f){case 100:case 109:case 115:Et(e,w,w,r&&Ke(wt(e,w,w,0,0,o,s,b,o,x=[],d),E),o,E,d,s,r?x:E);break;default:Et(k,w,w,w,[""],E,0,s,E)}}u=c=p=0,v=y=1,b=k="",d=i;break;case 58:d=1+Ge(k),p=m;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==it())continue;switch(k+=We(g),g*v){case 38:y=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ge(k)-1)*y,y=1;break;case 64:45===lt()&&(k+=mt(st())),f=lt(),c=d=Ge(b=k+=bt(ut())),g++;break;case 45:45===m&&2==Ge(k)&&(v=0)}}return a}function wt(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=Xe(f),m=0,v=0,h=0;m<r;++m)for(var y=0,g=Ze(e,d+1,d=ze(v=i[m])),b=e;y<p;++y)(b=$e(v>0?f[y]+" "+g:He(g,/&\f/g,f[y])))&&(l[h++]=b);return ot(e,t,n,0===o?"rule":s,l,u,c)}function kt(e,t,n){return ot(e,t,n,"comm",We(nt),Ze(e,2,-2),0)}function St(e,t,n,r){return ot(e,t,n,"decl",Ze(e,0,r),Ze(e,r+1,-1),r)}function Ct(e,t){switch(function(e,t){return(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3)}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+"-moz-"+e+Be+e+e;case 6828:case 4268:return Fe+e+Be+e+e;case 6165:return Fe+e+Be+"flex-"+e+e;case 5187:return Fe+e+He(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Fe+e+Be+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Fe+e+Be+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+Be+He(e,"shrink","negative")+e;case 5292:return Fe+e+Be+He(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+He(e,"-grow","")+Fe+e+Be+He(e,"grow","positive")+e;case 4554:return Fe+He(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ge(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qe(e,"stretch")?Ct(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Ge(e)-3-(~qe(e,"!important")&&10))){case 107:return He(e,":",":"+Fe)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Be+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+Be+e+e}return e}function Ot(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _t(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Ot(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Ge(n=Ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Rt=function(e,t,n){for(var r=0,o=0;r=o,o=lt(),38===r&&12===o&&(t[n]=1),!dt(o);)st();return ct(e,tt)},At=/* #__PURE__ */new WeakMap,It=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||At.get(n))&&!r){At.set(e,!0);for(var o=[],a=function(e,t){return pt(function(e,t){var n=-1,r=44;do{switch(dt(r)){case 0:38===r&&12===lt()&&(t[n]=1),e[n]+=Rt(tt-1,t,n);break;case 2:e[n]+=mt(r);break;case 4:if(44===r){e[++n]=58===lt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=We(r)}}while(r=st());return e}(ft(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Pt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Tt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Lt=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mt=function(e,t,n){Tt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Lt(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Tt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Lt(e)))},jt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Ct(e.value,e.length);break;case"@keyframes":return Ot([at(e,{value:He(e.value,"@","@"+Fe)})],r);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ot([at(e,{props:[He(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ot([at(e,{props:[He(t,/:(plac\w+)/,":-webkit-input-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,":-moz-$1")]}),at(e,{props:[He(t,/:(plac\w+)/,Be+"input-$1")]})],r)}return""})}}],Dt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||jt;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l=[It,Pt];"production"!==process.env.NODE_ENV&&l.push(function(e){return function(t,n,r){if("rule"===t.type){var o,a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a&&!0!==e.compat){var i=n>0?r[n-1]:null;if(i&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((o=i.children).length?o[o.length-1]:null))return;a.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),Mt);var u,c,d=[_t,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=Xe(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(l.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),Ot(xt(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ve({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return p.sheet.hydrate(s),p};function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}var Bt="function"==typeof Symbol&&Symbol.for,Ft=Bt?Symbol.for("react.element"):60103,zt=Bt?Symbol.for("react.portal"):60106,Wt=Bt?Symbol.for("react.fragment"):60107,Ut=Bt?Symbol.for("react.strict_mode"):60108,$t=Bt?Symbol.for("react.profiler"):60114,Ht=Bt?Symbol.for("react.provider"):60109,qt=Bt?Symbol.for("react.context"):60110,Yt=Bt?Symbol.for("react.async_mode"):60111,Zt=Bt?Symbol.for("react.concurrent_mode"):60111,Gt=Bt?Symbol.for("react.forward_ref"):60112,Xt=Bt?Symbol.for("react.suspense"):60113,Kt=Bt?Symbol.for("react.suspense_list"):60120,Jt=Bt?Symbol.for("react.memo"):60115,Qt=Bt?Symbol.for("react.lazy"):60116,en=Bt?Symbol.for("react.block"):60121,tn=Bt?Symbol.for("react.fundamental"):60117,nn=Bt?Symbol.for("react.responder"):60118,rn=Bt?Symbol.for("react.scope"):60119;function on(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ft:switch(e=e.type){case Yt:case Zt:case Wt:case $t:case Ut:case Xt:return e;default:switch(e=e&&e.$$typeof){case qt:case Gt:case Qt:case Jt:case Ht:return e;default:return t}}case zt:return t}}}function an(e){return on(e)===Zt}var sn={AsyncMode:Yt,ConcurrentMode:Zt,ContextConsumer:qt,ContextProvider:Ht,Element:Ft,ForwardRef:Gt,Fragment:Wt,Lazy:Qt,Memo:Jt,Portal:zt,Profiler:$t,StrictMode:Ut,Suspense:Xt,isAsyncMode:function(e){return an(e)||on(e)===Yt},isConcurrentMode:an,isContextConsumer:function(e){return on(e)===qt},isContextProvider:function(e){return on(e)===Ht},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft},isForwardRef:function(e){return on(e)===Gt},isFragment:function(e){return on(e)===Wt},isLazy:function(e){return on(e)===Qt},isMemo:function(e){return on(e)===Jt},isPortal:function(e){return on(e)===zt},isProfiler:function(e){return on(e)===$t},isStrictMode:function(e){return on(e)===Ut},isSuspense:function(e){return on(e)===Xt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Wt||e===Zt||e===$t||e===Ut||e===Xt||e===Kt||"object"==typeof e&&null!==e&&(e.$$typeof===Qt||e.$$typeof===Jt||e.$$typeof===Ht||e.$$typeof===qt||e.$$typeof===Gt||e.$$typeof===tn||e.$$typeof===nn||e.$$typeof===rn||e.$$typeof===en)},typeOf:on},ln=ee(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case o:case i:case a:case f:return p;default:var h=p&&p.$$typeof;switch(h){case l:case d:case v:case m:case s:return h;default:return t}}case r:return t}}}var E=c,w=l,k=s,S=n,C=d,O=o,_=v,N=m,R=r,A=i,I=a,P=f,T=!1;function L(e){return x(e)===c}t.AsyncMode=u,t.ConcurrentMode=E,t.ContextConsumer=w,t.ContextProvider=k,t.Element=S,t.ForwardRef=C,t.Fragment=O,t.Lazy=_,t.Memo=N,t.Portal=R,t.Profiler=A,t.StrictMode=I,t.Suspense=P,t.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===u},t.isConcurrentMode=L,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},t.typeOf=x}()});function un(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}ee(function(e){e.exports="production"===process.env.NODE_ENV?sn:ln});var cn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dn=function(e,t,n){cn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},fn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",mn=/[A-Z]|^ms/g,vn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(e){return 45===e.charCodeAt(1)},yn=function(e){return null!=e&&"boolean"!=typeof e},gn=/* #__PURE__ */Nt(function(e){return hn(e)?e:e.replace(mn,"-$&").toLowerCase()}),bn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vn,function(e,t,n){return Rn={name:t,styles:n,next:Rn},t})}return 1===fn[e]||hn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var xn=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,En=["normal","none","initial","inherit","unset"],wn=bn,kn=/^-ms-/,Sn=/-(.)/g,Cn={};bn=function(e,t){if("content"===e&&("string"!=typeof t||-1===En.indexOf(t)&&!xn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=wn(e,t);return""===n||hn(e)||-1===e.indexOf("-")||void 0!==Cn[e]||(Cn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(kn,"ms-").replace(Sn,function(e,t){return t.toUpperCase()})+"?")),n}}var On="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _n(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(On);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_n(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":yn(i)&&(r+=gn(a)+":"+bn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(On);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=_n(e,t,i);switch(a){case"animation":case"animationName":r+=gn(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)yn(i[l])&&(r+=gn(a)+":"+bn(a,i[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Rn,i=n(e);return Rn=a,_n(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=n.replace(vn,function(e,t,n){var r="animation"+s.length;return s.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var Nn,Rn,An=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Nn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var In=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Rn=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=_n(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pn),o+=i[0]);for(var s=1;s<e.length;s++)o+=_n(n,t,e[s]),r&&("production"!==process.env.NODE_ENV&&void 0===i[s]&&console.error(pn),o+=i[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Nn,function(e){return a=e,""})),An.lastIndex=0;for(var l,u="";null!==(l=An.exec(o));)u+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:o,map:a,next:Rn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:o,next:Rn}},Pn={}.hasOwnProperty,Tn=/* #__PURE__ */je.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */Dt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Tn.displayName="EmotionCacheContext");var Ln=function(e){/*#__PURE__*/
|
2
|
+
return je.forwardRef(function(t,n){var r=je.useContext(Tn);return e(t,r,n)})},Mn=/* #__PURE__ */je.createContext({});"production"!==process.env.NODE_ENV&&(Mn.displayName="EmotionThemeContext");var jn=De.useInsertionEffect?De.useInsertionEffect:function(e){e()};function Dn(e){jn(e)}var Vn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cn(t,n,r),Dn(function(){return dn(t,n,r)}),null},Bn=/* #__PURE__ */Ln(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,a=[r],i="";"string"==typeof e.className?i=un(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=In(a,void 0,je.useContext(Mn));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var l=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;l&&(s=In([s,"label:"+l+";"]))}i+=t.key+"-"+s.name;var u={};for(var c in e)!Pn.call(e,c)||"css"===c||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===c||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===c||(u[c]=e[c]);return u.ref=n,u.className=i,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(Vn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),/*#__PURE__*/je.createElement(o,u))});"production"!==process.env.NODE_ENV&&(Bn.displayName="EmotionCssPropInternal");var Fn=De.useInsertionEffect?De.useInsertionEffect:je.useLayoutEffect,zn=!1,Wn=/* #__PURE__ */Ln(function(e,t){"production"===process.env.NODE_ENV||zn||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),zn=!0);var n=In([e.styles],void 0,je.useContext(Mn)),r=je.useRef();return Fn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Fn(function(){var e=r.current,o=e[0];e[1]?e[1]=!1:(void 0!==n.next&&dn(t,n.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",n,o,!1))},[t,n.name]),null});function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return In(t)}"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionGlobal");var $n=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function Hn(e,t,n){var r=[],o=un(e,r,n);return r.length<2?n:o+t(r)}var qn=function(e){var t=e.cache,n=e.serializedArr;return Dn(function(){for(var e=0;e<n.length;e++)dn(t,n[e],!1)}),null},Yn=/* #__PURE__ */Ln(function(e,t){var n=!1,r=[],o=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=In(o,t.registered);return r.push(i),cn(t,i,!1),t.key+"-"+i.name},a={css:o,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return Hn(t.registered,o,$n(r))},theme:je.useContext(Mn)},i=e.children(a);return n=!0,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(qn,{cache:t,serializedArr:r}),i)});if("production"!==process.env.NODE_ENV&&(Yn.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV&&"undefined"==typeof jest){var Zn="undefined"!=typeof globalThis?globalThis:window,Gn="__EMOTION_REACT_"+"11.9.3".split(".")[0]+"__";Zn[Gn]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Zn[Gn]=!0}function Xn(e,n){if(null!=e)if(t(e))e(n);else try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){return Xn(t,e)})}}function Jn(e){void 0===e&&(e={});var t=e.strict,n=void 0===t||t,r=e.errorMessage,o=void 0===r?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":r,a=e.name,i=/*#__PURE__*/je.createContext(void 0);return i.displayName=a,[i.Provider,function e(){var t=je.useContext(i);if(!t&&n){var r=new Error(o);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},i]}function Qn(e){return je.Children.toArray(e).filter(function(e){/*#__PURE__*/
|
3
|
+
return je.isValidElement(e)})}var er=n?je.useLayoutEffect:je.useEffect;function tr(e,t){void 0===t&&(t=[]);var n=je.useRef(e);return er(function(){n.current=e}),je.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)},t)}function nr(e,t,n,o){var a=tr(t);return je.useEffect(function(){var i,s=null!=(i=r(n))?i:document;if(t)return s.addEventListener(e,a,o),function(){s.removeEventListener(e,a,o)}},[e,n,o,a,t]),function(){var t;(null!=(t=r(n))?t:document).removeEventListener(e,a,o)}}function rr(e){void 0===e&&(e=!1);var t=je.useState(e),n=t[0],r=t[1],o=je.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(e){return!e})}}},[]);return[n,o]}function or(e,t){var n=void 0!==e;return[n,n&&void 0!==e?e:t]}function ar(e){var t=e.value,n=e.defaultValue,o=e.shouldUpdate,a=void 0===o?function(e,t){return e!==t}:o,i=tr(e.onChange),s=tr(a),l=je.useState(n),u=l[1],c=void 0!==t,d=c?t:l[0],f=je.useCallback(function(e){var t=r(e,d);s(d,t)&&(c||u(t),i(t))},[c,i,d,s]);return[d,f]}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function sr(e,t){var n=je.useId();return je.useMemo(function(){return e||[t,n].filter(Boolean).join("-")},[e,t,n])}var lr=function(e,t){var n=je.useRef(!1),r=je.useRef(!1);je.useEffect(function(){if(n.current&&r.current)return e();r.current=!0},t),je.useEffect(function(){return n.current=!0,function(){n.current=!1}},[])};function ur(e,t){return void 0===t&&(t=[]),je.useEffect(function(){return function(){return e()}},t)}function cr(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return je.useMemo(function(){return t.every(function(e){return null==e})?null:function(e){t.forEach(function(t){t&&cr(t,e)})}},t)}function fr(e,t){var n,r=e.target;return!(e.button>0||r&&!s(r).contains(r)||null!=(n=t.current)&&n.contains(r))}var pr=/*#__PURE__*/je.createContext({});function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}d&&(pr.displayName="ColorModeContext");var vr,hr,yr=function(e){return v(e)?e.replace(/!(important)?$/,"").trim():e},gr=function(e,t){return function(n){var r=String(t),o=function(e){return/!(important)?$/.test(e)}(r),a=yr(r),i=e?e+"."+a:a,s=f(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=yr(s),o?s+" !important":s}};function br(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,o){var a,i=gr(t,e)(o),s=null!=(a=null==n?void 0:n(i,o))?a:i;return r&&(s=r(s,o)),s}}function xr(e,t){return function(n){var r={property:n,scale:e};return r.transform=br({scale:e,transform:t}),r}}var Er=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],wr={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},kr={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Sr={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Cr=((vr={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},vr),Or=((hr={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},hr);function _r(e,t){return _r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_r(e,t)}function Nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_r(e,t)}function Rr(){Rr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),_r(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Nr(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Rr.apply(this,arguments)}var Ar={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Ir=new Set(Object.values(Ar)),Pr=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Tr=function(e){return e.trim()},Lr=function(e){return v(e)&&e.includes("(")&&e.includes(")")},Mr=function(e){return function(t){return e+"("+t+")"}},jr={filter:function(e){return"auto"!==e?e:wr},backdropFilter:function(e){return"auto"!==e?e:kr},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(jr.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(Er).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(Er).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||h(e)?e+"px":e},fraction:function(e){return!h(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(y(e)||null==e)return e;var t=v(e)&&!e.endsWith("deg");return h(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||Pr.has(e))return e;var o=null!=(n=null==(r=/*#__PURE__*/Rr(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},a=o.type,i=o.values;if(!a||!i)return e;var s=a.includes("-gradient")?a:a+"-gradient",l=i.split(",").map(Tr).filter(Boolean),u=l[0],c=l.slice(1);if(0===(null==c?void 0:c.length))return e;c.unshift(u in Ar?Ar[u]:u);var d=c.map(function(e){if(Ir.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=r[0],a=r[1],i=Lr(a)?a:a&&a.split(" "),s="colors."+o,l=s in t.__cssMap?t.__cssMap[s].varRef:o;return i?[l].concat(Array.isArray(i)?i:[i]).join(" "):l});return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:Mr("blur"),opacity:Mr("opacity"),brightness:Mr("brightness"),contrast:Mr("contrast"),dropShadow:Mr("drop-shadow"),grayscale:Mr("grayscale"),hueRotate:Mr("hue-rotate"),invert:Mr("invert"),saturate:Mr("saturate"),sepia:Mr("sepia"),bgImage:function(e){return null==e||Lr(e)||Pr.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=Sr[e])?t:{},r=n.space,o=n.divide,a={flexDirection:e};return r&&(a[r]=1),o&&(a[o]=1),a}},Dr={borderWidths:xr("borderWidths"),borderStyles:xr("borderStyles"),colors:xr("colors"),borders:xr("borders"),radii:xr("radii",jr.px),space:xr("space",jr.px),spaceT:xr("space",jr.px),degreeT:function(e){return{property:e,transform:jr.degree}},prop:function(e,t,n){return mr({property:e,scale:t},t&&{transform:br({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:xr("sizes",jr.px),sizesT:xr("sizes",jr.fraction),shadows:xr("shadows"),logical:function(e){var t,n,r,o=e.scale,a=e.transform;return{scale:o,property:(t=e.property,n=t.rtl,r=t.ltr,function(e){return"rtl"===e.direction?n:r}),transform:o?br({scale:o,compose:a}):a}},blur:xr("blur",jr.blur)},Vr={background:Dr.colors("background"),backgroundColor:Dr.colors("backgroundColor"),backgroundImage:Dr.propT("backgroundImage",jr.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:jr.bgClip},bgSize:Dr.prop("backgroundSize"),bgPosition:Dr.prop("backgroundPosition"),bg:Dr.colors("background"),bgColor:Dr.colors("backgroundColor"),bgPos:Dr.prop("backgroundPosition"),bgRepeat:Dr.prop("backgroundRepeat"),bgAttachment:Dr.prop("backgroundAttachment"),bgGradient:Dr.propT("backgroundImage",jr.gradient),bgClip:{transform:jr.bgClip}};Object.assign(Vr,{bgImage:Vr.backgroundImage,bgImg:Vr.backgroundImage});var Br={border:Dr.borders("border"),borderWidth:Dr.borderWidths("borderWidth"),borderStyle:Dr.borderStyles("borderStyle"),borderColor:Dr.colors("borderColor"),borderRadius:Dr.radii("borderRadius"),borderTop:Dr.borders("borderTop"),borderBlockStart:Dr.borders("borderBlockStart"),borderTopLeftRadius:Dr.radii("borderTopLeftRadius"),borderStartStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Dr.radii("borderTopRightRadius"),borderStartEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Dr.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Dr.borders("borderRight"),borderInlineEnd:Dr.borders("borderInlineEnd"),borderBottom:Dr.borders("borderBottom"),borderBlockEnd:Dr.borders("borderBlockEnd"),borderBottomLeftRadius:Dr.radii("borderBottomLeftRadius"),borderBottomRightRadius:Dr.radii("borderBottomRightRadius"),borderLeft:Dr.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Dr.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Dr.borders(["borderLeft","borderRight"]),borderInline:Dr.borders("borderInline"),borderY:Dr.borders(["borderTop","borderBottom"]),borderBlock:Dr.borders("borderBlock"),borderTopWidth:Dr.borderWidths("borderTopWidth"),borderBlockStartWidth:Dr.borderWidths("borderBlockStartWidth"),borderTopColor:Dr.colors("borderTopColor"),borderBlockStartColor:Dr.colors("borderBlockStartColor"),borderTopStyle:Dr.borderStyles("borderTopStyle"),borderBlockStartStyle:Dr.borderStyles("borderBlockStartStyle"),borderBottomWidth:Dr.borderWidths("borderBottomWidth"),borderBlockEndWidth:Dr.borderWidths("borderBlockEndWidth"),borderBottomColor:Dr.colors("borderBottomColor"),borderBlockEndColor:Dr.colors("borderBlockEndColor"),borderBottomStyle:Dr.borderStyles("borderBottomStyle"),borderBlockEndStyle:Dr.borderStyles("borderBlockEndStyle"),borderLeftWidth:Dr.borderWidths("borderLeftWidth"),borderInlineStartWidth:Dr.borderWidths("borderInlineStartWidth"),borderLeftColor:Dr.colors("borderLeftColor"),borderInlineStartColor:Dr.colors("borderInlineStartColor"),borderLeftStyle:Dr.borderStyles("borderLeftStyle"),borderInlineStartStyle:Dr.borderStyles("borderInlineStartStyle"),borderRightWidth:Dr.borderWidths("borderRightWidth"),borderInlineEndWidth:Dr.borderWidths("borderInlineEndWidth"),borderRightColor:Dr.colors("borderRightColor"),borderInlineEndColor:Dr.colors("borderInlineEndColor"),borderRightStyle:Dr.borderStyles("borderRightStyle"),borderInlineEndStyle:Dr.borderStyles("borderInlineEndStyle"),borderTopRadius:Dr.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Dr.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Dr.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Dr.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Br,{rounded:Br.borderRadius,roundedTop:Br.borderTopRadius,roundedTopLeft:Br.borderTopLeftRadius,roundedTopRight:Br.borderTopRightRadius,roundedTopStart:Br.borderStartStartRadius,roundedTopEnd:Br.borderStartEndRadius,roundedBottom:Br.borderBottomRadius,roundedBottomLeft:Br.borderBottomLeftRadius,roundedBottomRight:Br.borderBottomRightRadius,roundedBottomStart:Br.borderEndStartRadius,roundedBottomEnd:Br.borderEndEndRadius,roundedLeft:Br.borderLeftRadius,roundedRight:Br.borderRightRadius,roundedStart:Br.borderInlineStartRadius,roundedEnd:Br.borderInlineEndRadius,borderStart:Br.borderInlineStart,borderEnd:Br.borderInlineEnd,borderTopStartRadius:Br.borderStartStartRadius,borderTopEndRadius:Br.borderStartEndRadius,borderBottomStartRadius:Br.borderEndStartRadius,borderBottomEndRadius:Br.borderEndEndRadius,borderStartRadius:Br.borderInlineStartRadius,borderEndRadius:Br.borderInlineEndRadius,borderStartWidth:Br.borderInlineStartWidth,borderEndWidth:Br.borderInlineEndWidth,borderStartColor:Br.borderInlineStartColor,borderEndColor:Br.borderInlineEndColor,borderStartStyle:Br.borderInlineStartStyle,borderEndStyle:Br.borderInlineEndStyle});var Fr={color:Dr.colors("color"),textColor:Dr.colors("color"),fill:Dr.colors("fill"),stroke:Dr.colors("stroke")},zr={boxShadow:Dr.shadows("boxShadow"),mixBlendMode:!0,blendMode:Dr.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Dr.prop("backgroundBlendMode"),opacity:!0};Object.assign(zr,{shadow:zr.boxShadow});var Wr={filter:{transform:jr.filter},blur:Dr.blur("--chakra-blur"),brightness:Dr.propT("--chakra-brightness",jr.brightness),contrast:Dr.propT("--chakra-contrast",jr.contrast),hueRotate:Dr.degreeT("--chakra-hue-rotate"),invert:Dr.propT("--chakra-invert",jr.invert),saturate:Dr.propT("--chakra-saturate",jr.saturate),dropShadow:Dr.propT("--chakra-drop-shadow",jr.dropShadow),backdropFilter:{transform:jr.backdropFilter},backdropBlur:Dr.blur("--chakra-backdrop-blur"),backdropBrightness:Dr.propT("--chakra-backdrop-brightness",jr.brightness),backdropContrast:Dr.propT("--chakra-backdrop-contrast",jr.contrast),backdropHueRotate:Dr.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Dr.propT("--chakra-backdrop-invert",jr.invert),backdropSaturate:Dr.propT("--chakra-backdrop-saturate",jr.saturate)},Ur={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:jr.flexDirection},experimental_spaceX:{static:Cr,transform:br({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:Or,transform:br({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Dr.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Dr.space("gap"),rowGap:Dr.space("rowGap"),columnGap:Dr.space("columnGap")};Object.assign(Ur,{flexDir:Ur.flexDirection});var $r={gridGap:Dr.space("gridGap"),gridColumnGap:Dr.space("gridColumnGap"),gridRowGap:Dr.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Hr={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:jr.outline},outlineOffset:!0,outlineColor:Dr.colors("outlineColor")},qr={width:Dr.sizesT("width"),inlineSize:Dr.sizesT("inlineSize"),height:Dr.sizes("height"),blockSize:Dr.sizes("blockSize"),boxSize:Dr.sizes(["width","height"]),minWidth:Dr.sizes("minWidth"),minInlineSize:Dr.sizes("minInlineSize"),minHeight:Dr.sizes("minHeight"),minBlockSize:Dr.sizes("minBlockSize"),maxWidth:Dr.sizes("maxWidth"),maxInlineSize:Dr.sizes("maxInlineSize"),maxHeight:Dr.sizes("maxHeight"),maxBlockSize:Dr.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Dr.propT("float",jr.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var Yr={listStyleType:!0,listStylePosition:!0,listStylePos:Dr.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Dr.prop("listStyleImage")},Zr={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Gr={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Xr=function(e,t,n){var r={},o=g(e,t,{});for(var a in o)a in n&&null!=n[a]||(r[a]=o[a]);return r},Kr={srOnly:{transform:function(e){return!0===e?Zr:"focusable"===e?Gr:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return Xr(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return Xr(t,e,n)}}},Jr={position:!0,pos:Dr.prop("position"),zIndex:Dr.prop("zIndex","zIndices"),inset:Dr.spaceT("inset"),insetX:Dr.spaceT(["left","right"]),insetInline:Dr.spaceT("insetInline"),insetY:Dr.spaceT(["top","bottom"]),insetBlock:Dr.spaceT("insetBlock"),top:Dr.spaceT("top"),insetBlockStart:Dr.spaceT("insetBlockStart"),bottom:Dr.spaceT("bottom"),insetBlockEnd:Dr.spaceT("insetBlockEnd"),left:Dr.spaceT("left"),insetInlineStart:Dr.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Dr.spaceT("right"),insetInlineEnd:Dr.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jr,{insetStart:Jr.insetInlineStart,insetEnd:Jr.insetInlineEnd});var Qr={ring:{transform:jr.ring},ringColor:Dr.colors("--chakra-ring-color"),ringOffset:Dr.prop("--chakra-ring-offset-width"),ringOffsetColor:Dr.colors("--chakra-ring-offset-color"),ringInset:Dr.prop("--chakra-ring-inset")},eo={margin:Dr.spaceT("margin"),marginTop:Dr.spaceT("marginTop"),marginBlockStart:Dr.spaceT("marginBlockStart"),marginRight:Dr.spaceT("marginRight"),marginInlineEnd:Dr.spaceT("marginInlineEnd"),marginBottom:Dr.spaceT("marginBottom"),marginBlockEnd:Dr.spaceT("marginBlockEnd"),marginLeft:Dr.spaceT("marginLeft"),marginInlineStart:Dr.spaceT("marginInlineStart"),marginX:Dr.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Dr.spaceT("marginInline"),marginY:Dr.spaceT(["marginTop","marginBottom"]),marginBlock:Dr.spaceT("marginBlock"),padding:Dr.space("padding"),paddingTop:Dr.space("paddingTop"),paddingBlockStart:Dr.space("paddingBlockStart"),paddingRight:Dr.space("paddingRight"),paddingBottom:Dr.space("paddingBottom"),paddingBlockEnd:Dr.space("paddingBlockEnd"),paddingLeft:Dr.space("paddingLeft"),paddingInlineStart:Dr.space("paddingInlineStart"),paddingInlineEnd:Dr.space("paddingInlineEnd"),paddingX:Dr.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Dr.space("paddingInline"),paddingY:Dr.space(["paddingTop","paddingBottom"]),paddingBlock:Dr.space("paddingBlock")};Object.assign(eo,{m:eo.margin,mt:eo.marginTop,mr:eo.marginRight,me:eo.marginInlineEnd,marginEnd:eo.marginInlineEnd,mb:eo.marginBottom,ml:eo.marginLeft,ms:eo.marginInlineStart,marginStart:eo.marginInlineStart,mx:eo.marginX,my:eo.marginY,p:eo.padding,pt:eo.paddingTop,py:eo.paddingY,px:eo.paddingX,pb:eo.paddingBottom,pl:eo.paddingLeft,ps:eo.paddingInlineStart,paddingStart:eo.paddingInlineStart,pr:eo.paddingRight,pe:eo.paddingInlineEnd,paddingEnd:eo.paddingInlineEnd});var to={textDecorationColor:Dr.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Dr.shadows("textShadow")},no={clipPath:!0,transform:Dr.propT("transform",jr.transform),transformOrigin:!0,translateX:Dr.spaceT("--chakra-translate-x"),translateY:Dr.spaceT("--chakra-translate-y"),skewX:Dr.degreeT("--chakra-skew-x"),skewY:Dr.degreeT("--chakra-skew-y"),scaleX:Dr.prop("--chakra-scale-x"),scaleY:Dr.prop("--chakra-scale-y"),scale:Dr.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Dr.degreeT("--chakra-rotate")},ro={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Dr.prop("transitionDuration","transition.duration"),transitionProperty:Dr.prop("transitionProperty","transition.property"),transitionTimingFunction:Dr.prop("transitionTimingFunction","transition.easing")},oo={fontFamily:Dr.prop("fontFamily","fonts"),fontSize:Dr.prop("fontSize","fontSizes",jr.px),fontWeight:Dr.prop("fontWeight","fontWeights"),lineHeight:Dr.prop("lineHeight","lineHeights"),letterSpacing:Dr.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ao={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Dr.spaceT("scrollMargin"),scrollMarginTop:Dr.spaceT("scrollMarginTop"),scrollMarginBottom:Dr.spaceT("scrollMarginBottom"),scrollMarginLeft:Dr.spaceT("scrollMarginLeft"),scrollMarginRight:Dr.spaceT("scrollMarginRight"),scrollMarginX:Dr.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Dr.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Dr.spaceT("scrollPadding"),scrollPaddingTop:Dr.spaceT("scrollPaddingTop"),scrollPaddingBottom:Dr.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Dr.spaceT("scrollPaddingLeft"),scrollPaddingRight:Dr.spaceT("scrollPaddingRight"),scrollPaddingX:Dr.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Dr.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function io(e){return f(e)&&e.reference?e.reference:String(e)}var so=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(io).join(" "+e+" ").replace(/calc/g,"")},lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["+"].concat(t))+")"},uo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["-"].concat(t))+")"},co=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["*"].concat(t))+")"},fo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+so.apply(void 0,["/"].concat(t))+")"},po=function(e){var t=io(e);return null==t||Number.isNaN(parseFloat(t))?co(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},mo=Object.assign(function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(lo.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(uo.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(co.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mo(fo.apply(void 0,[e].concat(n)))},negate:function(){return mo(po(e))},toString:function(){return e.toString()}}},{add:lo,subtract:uo,multiply:co,divide:fo,negate:po}),vo=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},ho=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},yo=function(e,t){return e+":focus-visible "+t},go=function(e,t){return e+":focus-within "+t},bo=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},xo=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},Eo=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},wo=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},ko=function(e){return Co(function(t){return e(t,"&")},"[role=group]","[data-group]",".group")},So=function(e){return Co(function(t){return e(t,"~ &")},"[data-peer]",".peer")},Co=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},Oo={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ko(vo),_peerHover:So(vo),_groupFocus:ko(ho),_peerFocus:So(ho),_groupFocusVisible:ko(yo),_peerFocusVisible:So(yo),_groupActive:ko(bo),_peerActive:So(bo),_groupDisabled:ko(xo),_peerDisabled:So(xo),_groupInvalid:ko(Eo),_peerInvalid:So(Eo),_groupChecked:ko(wo),_peerChecked:So(wo),_groupFocusWithin:ko(go),_peerFocusWithin:So(go),_peerPlaceholderShown:So(function(e,t){return e+":placeholder-shown "+t}),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},_o=p(Oo);function No(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ro(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?No(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ao=m({},Vr,Br,Fr,Ur,qr,Wr,Qr,Hr,$r,Kr,Jr,zr,eo,ao,oo,to,no,Yr,ro),Io=p(Object.assign({},eo,qr,Ur,$r,Jr)),Po=[].concat(p(Ao),_o),To=mr({},Ao,Oo),Lo=function(e){return e in To},Mo=function(e,t){return e.startsWith("--")&&v(t)&&!y(t)},jo=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},a=function(e){var t;return null!=(t=o(e))?t:e},i=t.split(",").map(function(e){return e.trim()}),s=i[1];return null!=(n=null!=(r=o(i[0]))?r:a(s))?n:a(t)},Do=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vo=/* #__PURE__ */Nt(function(e){return Do.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Bo=function(e){return"theme"!==e},Fo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Vo:Bo},zo=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wo=De.useInsertionEffect?De.useInsertionEffect:function(e){e()},Uo="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cn(t,n,r),Wo(function(){return dn(t,n,r)}),null},Ho=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=zo(t,n,a),l=s||Fo(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{"production"!==process.env.NODE_ENV&&void 0===c[0][0]&&console.error(Uo),d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)"production"!==process.env.NODE_ENV&&void 0===c[0][p]&&console.error(Uo),d.push(c[p],c[0][p])}var m=Ln(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=je.useContext(Mn)}"string"==typeof e.className?a=un(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var m=In(d.concat(c),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var v=u&&void 0===s?Fo(r):l,h={};for(var y in e)u&&"as"===y||v(y)&&(h[y]=e[y]);return h.className=a,h.ref=n,/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement($o,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/*#__PURE__*/je.createElement(r,h))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,Vt({},n,r,{shouldForwardProp:zo(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ho[e]=Ho(e)});var qo="undefined"!=typeof Element,Yo="function"==typeof Map,Zo="function"==typeof Set,Go="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Xo(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Xo(e[r],t[r]))return!1;return!0}if(Yo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Zo&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Go&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(qo&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Xo(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Ko=function(e,t){try{return Xo(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function Qo(){var e=je.useContext(Mn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}Jn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var ea=function(e){return Jn({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})};function ta(e){return E(e,["styleConfig","size","variant","colorScheme"])}function na(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var ra=new Set([].concat(Po,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),oa=new Set(["htmlWidth","htmlHeight","htmlSize"]),aa=function(e){return oa.has(e)||!ra.has(e)},ia=["theme","css","__css","sx"],sa=["baseStyle"];function la(e,t){var n=null!=t?t:{},o=n.baseStyle,a=na(n,sa);a.shouldForwardProp||(a.shouldForwardProp=aa);var i=function(e){var t=e.baseStyle;return function(e){var n,o=e.css,a=e.__css,i=e.sx,s=na(e,ia),l=k(s,function(e,t){return Lo(t)}),u=r(t,e),c=Object.assign({},a,u,w(l),i),d=(n=c,function(e){return function(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,a=void 0===o?{}:o,i=e.theme;return function e(t,o){void 0===o&&(o=!1);var s=r(t,i),l=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,a=n.toArrayValue,i=n.media,s={};for(var l in e){var u=r(e[l],t);if(null!=u)if(u=f(u)&&o(u)?a(u):u,Array.isArray(u))for(var c=u.slice(0,i.length).length,d=0;d<c;d+=1){var p=null==i?void 0:i[d];p?(s[p]=s[p]||{},null!=u[d]&&(s[p][l]=u[d])):s[l]=u[d]}else s[l]=u}return s}}(s)(i),u={};for(var c in l){var d,p,v,h,y,g=r(l[c],i);c in a&&(c=a[c]),Mo(c,g)&&(g=jo(i,g));var b=n[c];if(!0===b&&(b={property:c}),f(g)){var x;u[c]=null!=(x=u[c])?x:{},u[c]=m({},u[c],e(g,!0))}else{var E=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(g,i,s))?d:g;E=null!=(v=b)&&v.processResult?e(E,!0):E;var w=r(null==(h=b)?void 0:h.property,i);if(!o&&null!=(y=b)&&y.static){var k=r(b.static,i);u=m({},u,k)}if(w&&Array.isArray(w))for(var S,C=Ro(w);!(S=C()).done;)u[S.value]=E;else w?"&"===w&&f(E)?u=m({},u,E):u[w]=E:f(E)?u=m({},u,E):u[c]=E}}return u}}({theme:e,pseudos:Oo,configs:Ao})(n)})(e.theme);return o?[d,o]:d}}({baseStyle:o});return Ho(e,a)(i)}function ua(e){/*#__PURE__*/
|
4
|
+
return je.forwardRef(e)}var ca=["styleConfig"];function da(e,t){var n;void 0===t&&(t={});var o,a=t.styleConfig,i=na(t,ca),s=Jo({},function(){var e=je.useContext(pr);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:Qo()}),l=s.theme,u=s.colorMode,c=g(l,"components."+e),d=a||c,p=m({theme:l,colorMode:u},null!=(n=null==d?void 0:d.defaultProps)?n:{},w(E(i,["children"]))),v=je.useRef({});if(d){var h=(o=d,function(e){var t,n=e.variant,a=e.size,i=function(e){var t=e.__breakpoints;return function(e,n,o,a){if(t){var i={},s=function(e,t){return b(e)?e:f(e)?t(e):null!=e?[e]:void 0}(o,t.toArrayValue);if(!s)return i;for(var l=s.length,u=1===l,c=!!e.parts,d=function(o){var l,d,f=t.details[o],p=t.details[function(e,t){for(var n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}(s,o)],v=x(f.minW,null==p?void 0:p._minW),h=r(null==(l=e[n])?void 0:l[s[o]],a);return h?c?(null==(d=e.parts)||d.forEach(function(e){var t,n;m(i,((n={})[e]=u?h[e]:((t={})[v]=h[e],t),n))}),"continue"):c?void(i[v]=h):(u?m(i,h):i[v]=h,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return m({},r(null!=(t=o.baseStyle)?t:{},e),i(o,"sizes",a,e),i(o,"variants",n,e))}),y=h(p);Ko(v.current,y)||(v.current=y)}return v.current}function fa(e,t){return void 0===t&&(t={}),da(e,t)}function pa(e,t){return void 0===t&&(t={}),da(e,t)}var ma,va=(ma=new Map,new Proxy(la,{apply:function(e,t,n){return la.apply(void 0,n)},get:function(e,t){return ma.has(t)||ma.set(t,la(t)),ma.get(t)}})),ha={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ya=va("span",{baseStyle:ha});d&&(ya.displayName="VisuallyHidden");var ga=va("input",{baseStyle:ha});function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(this,arguments)}d&&(ga.displayName="VisuallyHiddenInput");var xa=["label","thickness","speed","emptyColor","className"],Ea=function(){var e=Un.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),wa=/*#__PURE__*/ua(function(e,t){var n=fa("Spinner",e),r=ta(e),o=r.label,a=void 0===o?"Loading...":o,i=r.thickness,s=void 0===i?"2px":i,l=r.speed,u=void 0===l?"0.45s":l,c=r.emptyColor,d=void 0===c?"transparent":c,f=r.className,p=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,xa),m=S("chakra-spinner",f),v=ba({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:d,borderLeftColor:d,animation:Ea+" "+u+" linear infinite"},n);/*#__PURE__*/
|
5
|
+
return je.createElement(va.div,ba({ref:t,__css:v,className:m},p),a&&/*#__PURE__*/je.createElement(ya,null,a))});function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka.apply(this,arguments)}d&&(wa.displayName="Spinner");var Sa=["as","viewBox","color","focusable","children","className","__css"],Ca={path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Oa=/*#__PURE__*/ua(function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,u=e.className,c=e.__css,d=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Sa),f={ref:t,focusable:s,className:S("chakra-icon",u),__css:ka({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},c)},p=null!=r?r:Ca.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
|
6
6
|
return je.createElement(va.svg,ka({as:n},f,d));var m=null!=l?l:Ca.path;/*#__PURE__*/
|
7
|
-
return je.createElement(va.svg,ka({verticalAlign:"middle",viewBox:p},f,d),m)});d&&(Oa.displayName="Icon");var _a=Oa,Na=function(e,t){return Na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Na(e,t)};function Ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Aa=function(){return Aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Aa.apply(this,arguments)};function Ia(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ta(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var La="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Ma=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},ja={measureLayout:Ma(["layout","layoutId","drag"]),animation:Ma(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ma(["exit"]),drag:Ma(["drag","dragControls"]),focus:Ma(["whileFocus"]),hover:Ma(["whileHover","onHoverStart","onHoverEnd"]),tap:Ma(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ma(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ma(["whileInView","onViewportEnter","onViewportLeave"])},Da=function(){},Va=function(){};"production"!==process.env.NODE_ENV&&(Da=function(e,t){e||"undefined"==typeof console||console.warn(t)},Va=function(e,t){if(!e)throw new Error(t)});var Ba=je.createContext({strict:!1}),Fa=Object.keys(ja),za=Fa.length,Wa=je.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ua=je.createContext({}),$a=je.createContext(null),Ha="undefined"!=typeof document,qa=Ha?je.useLayoutEffect:je.useEffect,Ya={current:null},Za=!1;function Ga(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xa(e){return Array.isArray(e)}function Ka(e){return"string"==typeof e||Xa(e)}function Ja(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Qa(e,t,n){var r=e.getProps();return Ja(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ei(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ka(e.initial)||Ka(e.animate)||Ka(e.whileHover)||Ka(e.whileDrag)||Ka(e.whileTap)||Ka(e.whileFocus)||Ka(e.exit)}function ti(e){return Boolean(ei(e)||e.variants)}function ni(e){return Array.isArray(e)?e.join(" "):e}function ri(e){var t=je.useRef(null);return null===t.current&&(t.current=e()),t.current}const oi="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ai="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(oi()),16.666666666666668);let ii=!0,si=!1,li=!1;const ci={delta:0,timestamp:0},ui=["read","update","preRender","render","postRender"],di=ui.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),si=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),fi=ui.reduce((e,t)=>{const n=di[t];return e[t]=(e,t=!1,r=!1)=>(si||yi(),n.schedule(e,t,r)),e},{}),pi=ui.reduce((e,t)=>(e[t]=di[t].cancel,e),{}),mi=ui.reduce((e,t)=>(e[t]=()=>di[t].process(ci),e),{}),vi=e=>di[e].process(ci),hi=e=>{si=!1,ci.delta=ii?16.666666666666668:Math.max(Math.min(e-ci.timestamp,40),1),ci.timestamp=e,li=!0,ui.forEach(vi),li=!1,si&&(ii=!1,ai(hi))},yi=()=>{si=!0,ii=!0,li||ai(hi)},gi=()=>ci,bi=(e,t,n)=>Math.min(Math.max(n,e),t);function xi(e,t){return e*Math.sqrt(1-t*t)}const Ei=["duration","bounce"],wi=["stiffness","damping","mass"];function ki(e,t){return t.some(t=>void 0!==e[t])}function Si(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Ia(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ki(e,wi)&&ki(e,Ei)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Da(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=bi(.05,1,i),e=bi(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/xi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),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),p=Ci,m=Ci;function v(){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);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{u=-u,[t,n]=[n,t],v()}}}Si.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ci=e=>0,Oi=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},_i=(e,t,n)=>-n*e+n*t+e,Ni=(e,t)=>n=>Math.max(Math.min(n,t),e),Ri=e=>e%1?Number(e.toFixed(5)):e,Ai=/(-)?([\d]*\.?[\d])+/g,Ii=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Pi=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ti(e){return"string"==typeof e}const Li={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Mi=Object.assign(Object.assign({},Li),{transform:Ni(0,1)}),ji=Object.assign(Object.assign({},Li),{default:1}),Di=e=>({test:t=>Ti(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Vi=Di("deg"),Bi=Di("%"),Fi=Di("px"),zi=Di("vh"),Wi=Di("vw"),Ui=Object.assign(Object.assign({},Bi),{parse:e=>Bi.parse(e)/100,transform:e=>Bi.transform(100*e)}),$i=(e,t)=>n=>Boolean(Ti(n)&&Pi.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hi=(e,t,n)=>r=>{if(!Ti(r))return r;const[o,a,i,s]=r.match(Ai);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},qi={test:$i("hsl","hue"),parse:Hi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bi.transform(Ri(t))+", "+Bi.transform(Ri(n))+", "+Ri(Mi.transform(r))+")"},Yi=Ni(0,255),Zi=Object.assign(Object.assign({},Li),{transform:e=>Math.round(Yi(e))}),Gi={test:$i("rgb","red"),parse:Hi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zi.transform(e)+", "+Zi.transform(t)+", "+Zi.transform(n)+", "+Ri(Mi.transform(r))+")"},Xi={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Gi.transform},Ki={test:e=>Gi.test(e)||Xi.test(e)||qi.test(e),parse:e=>Gi.test(e)?Gi.parse(e):qi.test(e)?qi.parse(e):Xi.parse(e),transform:e=>Ti(e)?e:e.hasOwnProperty("red")?Gi.transform(e):qi.transform(e)};function Ji(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ii);r&&(n=r.length,e=e.replace(Ii,"${c}"),t.push(...r.map(Ki.parse)));const o=e.match(Ai);return o&&(e=e.replace(Ai,"${n}"),t.push(...o.map(Li.parse))),{values:t,numColors:n,tokenised:e}}function Qi(e){return Ji(e).values}function es(e){const{values:t,numColors:n,tokenised:r}=Ji(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ki.transform(e[r]):Ri(e[r]));return t}}const ts=e=>"number"==typeof e?0:e,ns={test:function(e){var t,n,r,o;return isNaN(e)&&Ti(e)&&(null!==(n=null===(t=e.match(Ai))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ii))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qi,createTransformer:es,getAnimatableNone:function(e){const t=Qi(e);return es(e)(t.map(ts))}},rs=new Set(["brightness","contrast","saturate","opacity"]);function os(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ai)||[];if(!r)return e;const o=n.replace(r,"");let a=rs.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const as=/([a-z-]*)\(.*?\)/g,is=Object.assign(Object.assign({},ns),{getAnimatableNone:e=>{const t=e.match(as);return t?t.map(os).join(" "):e}});function ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ls({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ss(s,r,e+1/3),a=ss(s,r,e),i=ss(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const cs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},us=[Xi,Gi,qi],ds=e=>us.find(t=>t.test(e)),fs=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ps=(e,t)=>{let n=ds(e),r=ds(t);Va(!!n,fs(e)),Va(!!r,fs(t));let o=n.parse(e),a=r.parse(t);n===qi&&(o=ls(o),n=Gi),r===qi&&(a=ls(a),r=Gi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=cs(o[t],a[t],e));return i.alpha=_i(o.alpha,a.alpha,e),n.transform(i)}},ms=e=>"number"==typeof e,vs=(e,t)=>n=>t(e(n)),hs=(...e)=>e.reduce(vs);function ys(e,t){return ms(e)?n=>_i(e,t,n):Ki.test(e)?ps(e,t):Es(e,t)}const gs=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>ys(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},bs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ys(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function xs(e){const t=ns.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Es=(e,t)=>{const n=ns.createTransformer(t),r=xs(e),o=xs(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?hs(gs(r.parsed,o.parsed),n):(Da(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ws=(e,t)=>n=>_i(e,t,n);function ks(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Va(a===t.length,"Both input and output ranges must be the same length"),Va(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ws:"string"==typeof e?Ki.test(e)?ps:Es:Array.isArray(e)?gs:"object"==typeof e?bs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=hs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Oi(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Oi(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(bi(e[0],e[a-1],t)):s}const Ss=e=>t=>1-e(1-t),Cs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Os=e=>t=>t*t*((e+1)*t-e),_s=e=>e,Ns=e=>Math.pow(e,2),Rs=Ss(Ns),As=Cs(Ns),Is=e=>1-Math.sin(Math.acos(e)),Ps=Ss(Is),Ts=Cs(Ps),Ls=Os(1.525),Ms=Ss(Ls),js=Cs(Ls),Ds=(e=>{const t=Os(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Vs=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Bs=Ss(Vs);function Fs(e,t){return e.map(()=>t||As).splice(0,e.length-1)}function zs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return ks(s,i,{ease:Array.isArray(n)?n:Fs(i,n)})}let c=l();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}const Ws={keyframes:zs,spring:Si,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,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:()=>{}}}},Us="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),$s="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Us()),16.666666666666668);let Hs=!0,qs=!1,Ys=!1;const Zs={delta:0,timestamp:0},Gs=["read","update","preRender","render","postRender"],Xs=Gs.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,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}(()=>qs=!0),e),{}),Ks=Gs.reduce((e,t)=>{const n=Xs[t];return e[t]=(e,t=!1,r=!1)=>(qs||tl(),n.schedule(e,t,r)),e},{}),Js=Gs.reduce((e,t)=>(e[t]=Xs[t].cancel,e),{});Gs.reduce((e,t)=>(e[t]=()=>Xs[t].process(Zs),e),{});const Qs=e=>Xs[e].process(Zs),el=e=>{qs=!1,Zs.delta=Hs?16.666666666666668:Math.max(Math.min(e-Zs.timestamp,40),1),Zs.timestamp=e,Ys=!0,Gs.forEach(Qs),Ys=!1,qs&&(Hs=!1,$s(el))},tl=()=>{qs=!0,Hs=!0,Ys||$s(el)};function nl(e,t,n=0){return e-t-n}const rl=e=>{const t=({delta:t})=>e(t);return{start:()=>Ks.update(t,!0),stop:()=>Js.update(t)}};function ol(e){var t,n,{from:r,autoplay:o=!0,driver:a=rl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=Ia(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,x=0,E=v.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return zs;if(Ws[e.type])return Ws[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Si:zs}(v);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=ks([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},v),{from:r,to:b}));return o&&(null==u||u(),h=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===x&&(null!=E||(E=i)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,E,c,k)&&(x++,"reverse"===l?(k=x%2==0,i=function(e,t,n=0,r=!0){return r?nl(t+-e,t,n):t-(e-t)+n}(i,E,c,k)):(i=nl(i,E,c),"mirror"===l&&C.flipTarget()),w=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function al(e,t){return t?e*(1e3/t):0}const il=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),sl=e=>il(e)&&e.hasOwnProperty("z"),ll=(e,t)=>Math.abs(e-t);function cl(e,t){if(ms(e)&&ms(t))return ll(e,t);if(il(e)&&il(t)){const n=ll(e.x,t.x),r=ll(e.y,t.y),o=sl(e)&&sl(t)?ll(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const ul=(e,t)=>1-3*t+3*e,dl=(e,t)=>3*t-6*e,fl=e=>3*e,pl=(e,t,n)=>((ul(t,n)*e+dl(t,n))*e+fl(t))*e,ml=(e,t,n)=>3*ul(t,n)*e*e+2*dl(t,n)*e+fl(t);function vl(e,t){-1===e.indexOf(t)&&e.push(t)}function hl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yl=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return vl(this.subscriptions,e),function(){return hl(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),gl=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new yl,this.velocityUpdateSubscribers=new yl,this.renderSubscribers=new yl,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=gi(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,fi.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return fi.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?al(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function bl(e){return new gl(e)}var xl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},El=function(e){return 1e3*e},wl={linear:_s,easeIn:Ns,easeInOut:As,easeOut:Rs,circIn:Is,circInOut:Ts,circOut:Ps,backIn:Ls,backInOut:js,backOut:Ms,anticipate:Ds,bounceIn:Bs,bounceInOut:e=>e<.5?.5*(1-Vs(1-2*e)):.5*Vs(2*e-1)+.5,bounceOut:Vs},kl=function(e){if(Array.isArray(e)){Va(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Pa(e,4);return function(e,t,n,r){if(e===t&&n===r)return _s;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=pl(.1*t,e,n);return a=>0===a||1===a?a:pl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=ml(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=ml(t,n,r);if(0===o)return t;t-=(pl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=pl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Va(void 0!==wl[e],"Invalid easing type '".concat(e,"'")),wl[e]):e},Sl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ns.test(t)||t.startsWith("url(")))},Cl=function(e){return Array.isArray(e)},Ol=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},_l=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Nl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Rl=function(e){return{type:"keyframes",duration:.8,values:e}},Al={x:Ol,y:Ol,z:Ol,rotate:Ol,rotateX:Ol,rotateY:Ol,rotateZ:Ol,scaleX:_l,scaleY:_l,scale:_l,opacity:Nl,backgroundColor:Nl,color:Nl,default:_l},Il=Aa(Aa({},Li),{transform:Math.round}),Pl={borderWidth:Fi,borderTopWidth:Fi,borderRightWidth:Fi,borderBottomWidth:Fi,borderLeftWidth:Fi,borderRadius:Fi,radius:Fi,borderTopLeftRadius:Fi,borderTopRightRadius:Fi,borderBottomRightRadius:Fi,borderBottomLeftRadius:Fi,width:Fi,maxWidth:Fi,height:Fi,maxHeight:Fi,size:Fi,top:Fi,right:Fi,bottom:Fi,left:Fi,padding:Fi,paddingTop:Fi,paddingRight:Fi,paddingBottom:Fi,paddingLeft:Fi,margin:Fi,marginTop:Fi,marginRight:Fi,marginBottom:Fi,marginLeft:Fi,rotate:Vi,rotateX:Vi,rotateY:Vi,rotateZ:Vi,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:Vi,skewX:Vi,skewY:Vi,distance:Fi,translateX:Fi,translateY:Fi,translateZ:Fi,x:Fi,y:Fi,z:Fi,perspective:Fi,transformPerspective:Fi,opacity:Mi,originX:Ui,originY:Ui,originZ:Fi,zIndex:Il,fillOpacity:Mi,strokeOpacity:Mi,numOctaves:Il},Tl=Aa(Aa({},Pl),{color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:is,WebkitFilter:is}),Ll=function(e){return Tl[e]};function Ml(e,t){var n,r=Ll(e);return r!==is&&(r=ns),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var jl=function(e){return Cl(e)?e[e.length-1]||0:e},Dl=!1;function Vl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Bl(e){return"number"==typeof e?0:Ml("",e)}function Fl(e,t){return e[t]||e.default||e}function zl(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=Fl(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Sl(e,n);"none"===s&&l&&"string"==typeof n?s=Ml(e,n):Vl(s)&&"string"==typeof n?s=Bl(n):!Array.isArray(n)&&Vl(n)&&"string"==typeof s&&(n=Bl(s));var c=Sl(e,s);return Da(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:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=ol(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const i=h(r),s=i===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=al(e-u,Zs.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:c,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Aa(Aa({},r),i)):ol(Aa(Aa({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ta([],Pa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Ia(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Aa(Aa({},e),(o=n,i=Cl(a=t.to)?Rl:Al[o]||Al.default,Aa({to:a},i(a))))),Aa(Aa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Ia(e,["ease","times","yoyo","flip","loop"]),s=Aa({},i);return n&&(s.offset=n),i.duration&&(s.duration=El(i.duration)),i.repeatDelay&&(s.repeatDelay=El(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kl):kl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Da(!Dl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Dl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=jl(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Fl(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return i=s()};return l?a=window.setTimeout(c,El(l)):c(),function(){clearTimeout(a),null==i||i.stop()}})}var Wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ul=Wl.length,$l=function(e){return"string"==typeof e?parseFloat(e):e},Hl=function(e){return"number"==typeof e||Fi.test(e)};function ql(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Yl=Gl(0,.5,Ps),Zl=Gl(.5,.95,_s);function Gl(e,t,n){return function(r){return r<e?0:r>t?1:n(Oi(e,t,r))}}function Xl(e,t){e.min=t.min,e.max=t.max}function Kl(e,t){Xl(e.x,t.x),Xl(e.y,t.y)}function Jl(e){return void 0===e||1===e}function Ql(e){var t=e.scaleX,n=e.scaleY;return!Jl(e.scale)||!Jl(t)||!Jl(n)}function ec(e){return Ql(e)||tc(e.x)||tc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function tc(e){return e&&"0%"!==e}function nc(e,t,n){return n+t*(e-n)}function rc(e,t,n,r,o){return void 0!==o&&(e=nc(e,o,r)),nc(e,n,r)+t}function oc(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=rc(e.min,t,n,r,o),e.max=rc(e.max,t,n,r,o)}function ac(e,t){var n=t.x,r=t.y;oc(e.x,n.translate,n.scale,n.originPoint),oc(e.y,r.translate,r.scale,r.originPoint)}function ic(e,t){e.min=e.min+t,e.max=e.max+t}function sc(e,t,n){var r=Pa(n,3),o=r[0],a=r[1],i=r[2],s=_i(e.min,e.max,void 0!==t[i]?t[i]:.5);oc(e,t[o],t[a],s,t.scale)}var lc=["x","scaleX","originX"],cc=["y","scaleY","originY"];function uc(e,t){sc(e.x,t,lc),sc(e.y,t,cc)}function dc(e){return e.max-e.min}function fc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),cl(e,t)<n}function pc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=_i(t.min,t.max,e.origin),e.scale=dc(n)/dc(t),(fc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_i(n.min,n.max,e.origin)-e.originPoint,(fc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mc(e,t,n,r){pc(e.x,t.x,n.x,null==r?void 0:r.originX),pc(e.y,t.y,n.y,null==r?void 0:r.originY)}function vc(e,t,n){e.min=n.min+t.min,e.max=e.min+dc(t)}function hc(e,t,n){e.min=t.min-n.min,e.max=e.min+dc(t)}function yc(e,t,n){hc(e.x,t.x,n.x),hc(e.y,t.y,n.y)}function gc(e,t,n,r,o){return e=nc(e-=t,1/n,r),void 0!==o&&(e=nc(e,1/o,r)),e}function bc(e,t,n,r,o){var a=Pa(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Bi.test(t)&&(t=parseFloat(t),t=_i(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=_i(a.min,a.max,r);e===a&&(s-=t),e.min=gc(e.min,t,n,s,o),e.max=gc(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var xc=["x","scaleX","originX"],Ec=["y","scaleY","originY"];function wc(e,t,n,r){bc(e.x,t,xc,null==n?void 0:n.x,null==r?void 0:r.x),bc(e.y,t,Ec,null==n?void 0:n.y,null==r?void 0:r.y)}function kc(e){return 0===e.translate&&1===e.scale}function Sc(e){return kc(e.x)&&kc(e.y)}function Cc(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 Oc=function(){function e(){this.members=[]}return e.prototype.add=function(e){vl(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(hl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),_c={};function Nc(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}function Rc(e){return[e("x"),e("y")]}var Ac=["","X","Y","Z"],Ic=["transformPerspective","x","y","z"];function Pc(e,t){return Ic.indexOf(e)-Ic.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Ac.forEach(function(t){return Ic.push(e+t)})});var Tc=new Set(Ic);function Lc(e){return Tc.has(e)}var Mc=new Set(["originX","originY","originZ"]);function jc(e){return Mc.has(e)}var Dc=function(e,t){return e.depth-t.depth},Vc=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){vl(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){hl(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Dc),this.isDirty=!1,this.children.forEach(e)},e}();function Bc(e){var t=xl(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zc(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(Zc),o.nodes.forEach(Gc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ta(Ta([],Pa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vc)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yl),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ta([],Pa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),Fc.hasAnimatedSinceResize&&(Fc.hasAnimatedSinceResize=!1,o.nodes.forEach(Yc))})}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 f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:tu,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!o.targetLayout||!Cc(o.targetLayout,d)||u,y=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||c&&(h||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Aa(Aa({},Fl(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else 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,pi.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xc))},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(Hc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nu),this.potentialNodes.clear()),this.nodes.forEach(qc),this.nodes.forEach(Wc),this.nodes.forEach(Uc),this.clearAllSnapshots(),mi.update(),mi.preRender(),mi.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach($c),this.sharedNodes.forEach(Kc)},e.prototype.scheduleUpdateProjection=function(){fi.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;fi.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ou(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();ou(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&&!Sc(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||ec(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&&(ic(t.x,n.x),ic(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Kl(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){Kl(t,e);var a=this.root.scroll;a&&(ic(t.x,-a.x),ic(t.y,-a.y))}ic(t.x,o.x),ic(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uc(n,{x:-o.scroll.x,y:-o.scroll.y}),ec(o.latestValues)&&uc(n,o.latestValues)}return ec(this.latestValues)&&uc(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&ec(o.latestValues)){Ql(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Kl(a,o.measure()),wc(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return ec(this.latestValues)&&wc(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Aa(Aa(Aa({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Kl(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(vc((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),vc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Kl(this.target,this.layout.actual),ac(this.target,this.targetDelta)):Kl(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yc(this.relativeTargetOrigin,this.target,this.relativeParent.target),Kl(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!ec(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Kl(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var 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&&uc(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,ac(e,l)),r&&ec(s.latestValues)&&uc(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;mc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Nc(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Aa({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},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(eu));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Jc(s.x,e.x,o),Jc(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)&&(yc(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Qc(e.x,t.x,n.x,r),Qc(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=_i(0,null!==(i=n.opacity)&&void 0!==i?i:1,Yl(r)),e.opacityExit=_i(null!==(s=t.opacity)&&void 0!==s?s:1,0,Zl(r))):a&&(e.opacity=_i(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Ul;u++){var d="border".concat(Wl[u],"Radius"),f=ql(t,d),p=ql(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Hl(f)===Hl(p)?(e[d]=Math.max(_i($l(f),$l(p),r),0),(Bi.test(p)||Bi.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=_i(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,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&&(pi.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fi.update(function(){Fc.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=xl(0)?0:bl(0);return zl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Aa(Aa({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(Kl(t,n),uc(t,r),mc(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 Oc),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<Ac.length;r++)e.getStaticValue(o="rotate"+Ac[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=Bc(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=Bc(e.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Nc(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=c.animationValues?c===this?null!==(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,_c)if(void 0!==d[v]){var h=_c[v],y=h.applyTo,g=(0,h.correct)(d[v],c);if(y)for(var b=y.length,x=0;x<b;x++)s[y[x]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=c===this?Bc(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(Hc),this.root.sharedNodes.clear()},e}()}function Wc(e){e.updateLayout()}function Uc(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?Rc(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&&Rc(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}};mc(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?mc(u,e.applyTransform(l,!0),a.measured):mc(u,s,a.layout);var d=!Sc(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};yc(h,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};yc(y,s,v.actual),Cc(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function $c(e){e.clearSnapshot()}function Hc(e){e.clearMeasurements()}function qc(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Yc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zc(e){e.resolveTargetDelta()}function Gc(e){e.calcProjection()}function Xc(e){e.resetRotation()}function Kc(e){e.removeLeadSnapshot()}function Jc(e,t,n){e.translate=_i(t.translate,0,n),e.scale=_i(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qc(e,t,n,r){e.min=_i(t.min,n.min,r),e.max=_i(t.max,n.max,r)}function eu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var tu={duration:.45,ease:[.4,0,.1,1]};function nu(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 ru(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ou(e){ru(e.x),ru(e.y)}var au=1,iu=je.createContext({}),su=je.createContext({}),lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(je.Component);function cu(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?ja.projectionNodeConstructor=e[t]:ja[t].Component=e[t])}(t),je.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=je.useContext(iu))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Aa(Aa({},e),{layoutId:l});var c=je.useContext(Wa),u=null,d=function(e){var t=function(e,t){if(ei(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Ka(n)?n:void 0,animate:Ka(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,je.useContext(Ua)),n=t.initial,r=t.animate;return je.useMemo(function(){return{initial:n,animate:r}},[ni(n),ni(r)])}(e),f=c.isStatic?void 0:ri(function(){if(Fc.hasEverUpdated)return au++}),p=a(e,c.isStatic);return!c.isStatic&&Ha&&(d.visualElement=function(e,t,n,r){var o,a,i=je.useContext(Ba),s=je.useContext(Ua).visualElement,l=je.useContext($a),c=(!Za&&function(){if(Za=!0,Ha)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ya.current=e.matches};e.addListener(t),t()}else Ya.current=!1}(),o=Pa(je.useState(Ya.current),1)[0],"never"!==(a=je.useContext(Wa).reducedMotion)&&("always"===a||o)),u=je.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 qa(function(){null==d||d.syncRender()}),je.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),qa(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,Aa(Aa({},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=je.useContext(su);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Ga(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:u,layoutScroll:c}))}(f,e,d.visualElement,r||ja.projectionNodeConstructor),u=function(e,t,n){var r=[],o=je.useContext(Ba);if(!t)return null;"production"!==La&&n&&o.strict&&Va(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<za;a++){var i=Fa[a],s=ja[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(je.createElement(l,Aa({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),je.createElement(lu,{visualElement:d.visualElement,props:Aa(Aa({},c),e)},u,je.createElement(Ua.Provider,{value:d},o(i,e,f,function(e,t,n){return je.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ga(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,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 uu=["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 du(e){return"string"==typeof e&&!e.includes("-")&&!!(uu.indexOf(e)>-1||/[A-Z]/.test(e))}function fu(e,t){var n=t.layout,r=t.layoutId;return Lc(e)||jc(e)||(n||void 0!==r)&&(!!_c[e]||"opacity"===e)}var pu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function mu(e){return e.startsWith("--")}var vu=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function hu(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,f=!0;for(var p in t){var m=t[p];if(mu(p))i[p]=m;else{var v=Pl[p],h=vu(m,v);if(Lc(p)){if(u=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(o=v.default)&&void 0!==o?o:0)&&(f=!1)}else jc(p)?(c[p]=h,d=!0):a[p]=h}}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(Pc);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];u+="".concat(pu[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,f,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(c))}function yu(e,t,n){for(var r in t)xl(t[r])||fu(r,n)||(e[r]=t[r])}function gu(e,t,n){var r={},o=function(e,t,n){var r={};return yu(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return je.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};hu(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Aa(Aa({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var bu=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 xu(e){return bu.has(e)}var Eu,wu=function(e){return!xu(e)};try{(Eu=require("@emotion/is-prop-valid").default)&&(wu=function(e){return e.startsWith("on")?!xu(e):Eu(e)})}catch(e){}function ku(e,t,n){return"string"==typeof e?e:Fi.transform(t+n*e)}var Su={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cu={offset:"strokeDashoffset",array:"strokeDasharray"};function Ou(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,f=void 0===d?0:d;hu(e,Ia(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=ku(t,e.x,e.width),o=ku(n,e.y,e.height);return"".concat(r," ").concat(o)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Su:Cu;e[a.offset]=Fi.transform(-r);var i=Fi.transform(t),s=Fi.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,u,f,!1)}var _u=function(){return Aa(Aa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Nu(e,t){var n=je.useMemo(function(){var n=_u();return Ou(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Aa(Aa({},n.attrs),{style:Aa({},n.style)})},[t]);if(e.style){var r={};yu(r,e.style,e),n.style=Aa(Aa({},r),n.style)}return n}function Ru(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(du(t)?Nu:gu)(n,s,i),c=function(e,t,n){var r={};for(var o in e)(wu(o)||!0===n&&xu(o)||!t&&!xu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=Aa(Aa(Aa({},c),l),{ref:o});return r&&(u["data-projection-id"]=r),je.createElement(t,u)}}var Au=/([a-z])([A-Z])/g,Iu=function(e){return e.replace(Au,"$1-$2").toLowerCase()};function Pu(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 Tu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Lu(e,t,n,r){for(var o in Pu(e,t,void 0,r),t.attrs)e.setAttribute(Tu.has(o)?o:Iu(o),t.attrs[o])}function Mu(e){var t=e.style,n={};for(var r in t)(xl(t[r])||fu(r,e))&&(n[r]=t[r]);return n}function ju(e){var t=Mu(e);for(var n in e)xl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Du(e){return"object"==typeof e&&"function"==typeof e.start}function Vu(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Fu(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var Bu=function(e){return function(t,n){var r=je.useContext(Ua),o=je.useContext($a);return n?Vu(e,t,r,o):ri(function(){return Vu(e,t,r,o)})}};function Fu(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bc(i[s]);var l=e.initial,c=e.animate,u=ei(e),d=ti(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=a||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!Du(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=Ja(e,t);if(n){var r=n.transitionEnd,a=Ia(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var zu,Wu={useVisualState:Bu({scrapeMotionValuesFromProps:ju,createRenderState:_u,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}}Ou(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Lu(t,r)}})},Uu={useVisualState:Bu({scrapeMotionValuesFromProps:Mu,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function $u(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Hu(e,t,n,r){je.useEffect(function(){var o=e.current;if(n&&o)return $u(o,t,n,r)},[e,t,n,r])}function qu(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Yu(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"}(zu||(zu={}));var Zu={pageX:0,pageY:0};function Gu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Zu;return{x:n[t+"X"],y:n[t+"Y"]}}function Xu(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ku(e,t){return void 0===t&&(t="page"),{point:Yu(e)?Gu(e,t):Xu(e,t)}}var Ju=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Ku(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Qu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ed={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function td(e){return Ha&&null===window.onpointerdown?e:Ha&&null===window.ontouchstart?ed[e]:Ha&&null===window.onmousedown?Qu[e]:e}function nd(e,t,n,r){return $u(e,td(t),Ju(n,"pointerdown"===t),r)}function rd(e,t,n,r){return Hu(e,td(t),n&&Ju(n,"pointerdown"===t),r)}function od(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ad=od("dragHorizontal"),id=od("dragVertical");function sd(e){var t=!1;if("y"===e)t=id();else if("x"===e)t=ad();else{var n=ad(),r=id();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function ld(){var e=sd(!0);return!e||(e(),!1)}function cd(e,t,n){return function(r,o){var a;qu(r)&&!ld()&&(null===(a=e.animationState)||void 0===a||a.setActive(zu.Hover,t),null==n||n(r,o))}}var ud=function(e,t){return!!t&&(e===t||ud(e,t.parentElement))};function dd(e){return je.useEffect(function(){return function(){return e()}},[])}var fd=new Set;function pd(e,t,n){e||fd.has(t)||(console.warn(t),n&&console.warn(n),fd.add(t))}var md=new WeakMap,vd=new WeakMap,hd=function(e){var t;null===(t=md.get(e.target))||void 0===t||t(e)},yd=function(e){e.forEach(hd)},gd={some:0,all:1};function bd(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;je.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:gd[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Ia(e,["root"]),r=t||document;vd.has(r)||vd.set(r,{});var o=vd.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(yd,Aa({root:t},n))),o[a]}(r);return md.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(zu.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){md.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function xd(e,t,n,r){var o=r.fallback,a=void 0===o||o;je.useEffect(function(){e&&a&&("production"!==La&&pd(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(zu.InView,!0)}))},[e])}var Ed=function(e){return function(t){return e(t),null}},wd={inView:Ed(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=je.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?xd:bd)(l,s.current,t,i)}),tap:Ed(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=je.useRef(!1),s=je.useRef(null),l={passive:!(n||t||r||p)};function 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(zu.Tap,!1),!ld()}function d(e,n){u()&&(ud(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){u()&&(null==r||r(e,t))}function p(e,t){var r;c(),i.current||(i.current=!0,s.current=hs(nd(window,"pointerup",d,l),nd(window,"pointercancel",f,l)),null===(r=o.animationState)||void 0===r||r.setActive(zu.Tap,!0),null==n||n(e,t))}rd(o,"pointerdown",a?p:void 0,l),dd(c)}),focus:Ed(function(e){var t=e.whileFocus,n=e.visualElement;Hu(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zu.Focus,!0)}:void 0),Hu(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zu.Focus,!1)}:void 0)}),hover:Ed(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;rd(o,"pointerenter",t||r?cd(o,!0,t):void 0,{passive:!t}),rd(o,"pointerleave",n||r?cd(o,!1,n):void 0,{passive:!n})})},kd=0,Sd=function(){return kd++},Cd=function(){return ri(Sd)};function Od(){var e=je.useContext($a);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Cd();return je.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function _d(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Nd=function(e){return/^\-?\d*\.?\d+$/.test(e)},Rd=function(e){return/^0[^.\s]+$/.test(e)},Ad=function(e){return function(t){return t.test(e)}},Id=[Li,Fi,Bi,Vi,Wi,zi,{test:function(e){return"auto"===e},parse:function(e){return e}}],Pd=function(e){return Id.find(Ad(e))},Td=Ta(Ta([],Pa(Id),!1),[Ki,ns],!1),Ld=function(e){return Td.find(Ad(e))};function Md(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bl(n))}function jd(e,t){if(t)return(t[e]||t.default||t).from}function Dd(e,t,n){var r;void 0===n&&(n={});var o=Qa(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Vd(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Bd).forEach(function(e,r){i.push(Dd(e,t,Aa(Aa({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},c=i.when;if(c){var u=Pa("beforeChildren"===c?[s,l]:[l,s],2),d=u[1];return(0,u[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Vd(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=Ia(c,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Fd(v,h))){var b=Aa({delay:i},d);e.shouldReduceMotion&&Lc(h)&&(b=Aa(Aa({},b),{type:!1,delay:0}));var x=zl(h,y,g,b);m.push(x)}}return Promise.all(m).then(function(){f&&function(e,t){var n=Qa(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Ia(r,["transitionEnd","transition"]);for(var s in i=Aa(Aa({},i),a))Md(e,s,jl(i[s]))}(e,f)})}function Bd(e,t){return e.sortNodePosition(t)}function Fd(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var zd=[zu.Animate,zu.InView,zu.Focus,zu.Hover,zu.Tap,zu.Drag,zu.Exit],Wd=Ta([],Pa(zd),!1).reverse(),Ud=zd.length;function $d(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Hd={animation:Ed(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return Dd(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Dd(e,t,n);else{var a="function"==typeof t?Qa(e,t,n.custom):t;r=Vd(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[zu.Animate]=$d(!0),t[zu.InView]=$d(),t[zu.Hover]=$d(),t[zu.Tap]=$d(),t[zu.Drag]=$d(),t[zu.Focus]=$d(),t[zu.Exit]=$d(),t),o={},a=!0,i=function(t,n){var r=Qa(e,n);if(r){var o=r.transitionEnd,a=Ia(r,["transition","transitionEnd"]);t=Aa(Aa(Aa({},t),a),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var o=Wd[n],v=r[o],h=null!==(l=c[o])&&void 0!==l?l:u[o],y=Ka(h),g=o===s?v.isActive:null;!1===g&&(m=n);var b=h===u[o]&&h!==c[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=Aa({},p),!v.isActive&&null===g||!h&&!v.prevProp||Du(h)||"boolean"==typeof h)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Xa(t)&&!_d(t,e)}(v.prevProp,h),E=x||o===s&&v.isActive&&!b&&y||n>m&&y,w=Array.isArray(h)?h:[h],k=w.reduce(i,{});!1===g&&(k={});var S=v.prevResolvedValues,C=void 0===S?{}:S,O=Aa(Aa({},C),k),_=function(e){E=!0,f.delete(e),v.needsAnimating[e]=!0};for(var N in O){var R=k[N],A=C[N];p.hasOwnProperty(N)||(R!==A?Cl(R)&&Cl(A)?!_d(R,A)||x?_(N):v.protectedKeys[N]=!0:void 0!==R?_(N):f.add(N):void 0!==R&&f.has(N)?_(N):v.protectedKeys[N]=!0)}v.prevProp=h,v.prevResolvedValues=k,v.isActive&&(p=Aa(Aa({},p),k)),a&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Ta([],Pa(w.map(function(e){return{animation:e,options:Aa({type:o},t)}})),!1))},h=0;h<Ud;h++)v(h);if(o=Aa({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===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)),Du(n)&&je.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ed(function(e){var t=e.custom,n=e.visualElement,r=Pa(Od(),2),o=r[0],a=r[1],i=je.useContext($a);je.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(zu.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},qd=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Gd(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=cl(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=gi().timestamp;r.history.push(Aa(Aa({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Yd(t,r.transformPagePoint),qu(e)&&0===e.buttons?r.handlePointerUp(e,t):fi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Gd(Yd(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Yu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Yd(Ku(e),this.transformPagePoint),i=a.point,s=gi().timestamp;this.history=[Aa(Aa({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Gd(a,this.history)),this.removeListeners=hs(nd(window,"pointermove",this.handlePointerMove),nd(window,"pointerup",this.handlePointerUp),nd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),pi.update(this.updatePoint)},e}();function Yd(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gd(e,t){var n=e.point;return{point:n,delta:Zd(n,Kd(t)),offset:Zd(n,Xd(t)),velocity:Jd(t,.1)}}function Xd(e){return e[0]}function Kd(e){return e[e.length-1]}function Jd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Kd(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>El(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Qd(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ef(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Pa([o,r],2))[0],o=n[1]),{min:r,max:o}}function tf(e,t,n){return{min:nf(e,t),max:nf(e,n)}}function nf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function rf(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function of(e,t){return rf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var af=new WeakMap,sf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new qd(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Ku(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=sd(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Rc(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Bi.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=dc(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(zu.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(zu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&lf(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?_i(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?_i(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ga(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:Qd(e.x,t.left,t.right),y:Qd(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:tf(e,"left","right"),y:tf(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Rc(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ga(t))return!1;var r=t.current;Va(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=of(e,n),o=t.scroll;return o&&(ic(r.x,o.x),ic(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=rf(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Rc(function(n){var l;if(lf(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=Aa(Aa({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 zl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Rc(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;Rc(function(n){if(lf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-_i(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Ga(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Rc(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=Oi(r.min,r.max-i,n.min):i>s&&(o=Oi(n.min,n.max-s,r.min)),bi(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Rc(function(e){if(lf(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(_i(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;af.set(this.visualElement,this);var n=nd(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Ga(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=$u(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Rc(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,f=void 0===d||d;return Aa(Aa({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function lf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var cf={pan:Ed(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=je.useRef(null),l=je.useContext(Wa).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};je.useEffect(function(){null!==s.current&&s.current.updateHandlers(c)}),rd(a,"pointerdown",i&&function(e){s.current=new qd(e,c,{transformPagePoint:l})}),dd(function(){return s.current&&s.current.end()})}),drag:Ed(function(e){var t=e.dragControls,n=e.visualElement,r=ri(function(){return new sf(n)});je.useEffect(function(){return t&&t.subscribe(r)},[r,t]),je.useEffect(function(){return r.addListeners()},[r])})},uf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],df=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,x=!1,E=h.latestValues,w=h.renderState,k=function(){var e=uf.map(function(){return new yl}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){uf.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"+uf[t]]=function(t){return e.add(t)},n["notify"+uf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ta([],Pa(t),!1))}}),n}(),S=new Map,C=new Map,O={},_=Aa({},E);function N(){g&&x&&(R(),s(g,w,p.style,D.projection))}function R(){r(D,w,E,t,p)}function A(){k.notifyUpdate(E)}function I(e,t){var n=t.onChange(function(t){E[e]=t,p.onUpdate&&fi.update(A,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==E[T]&&xl(L)&&L.set(E[T],!1)}var M=ei(p),j=ti(p),D=Aa(Aa({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){x=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&f&&!M&&(b=null==f?void 0:f.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),pi.update(A),pi.render(N),C.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(D),k.clearAllListeners(),g=void 0,x=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),E[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete E[e],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=bl(t),D.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!xl(t))return t}return _[e]}},k),{build:function(){return R(),w},scheduleRender:function(){fi.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,k.updatePropListeners(e),O=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(xl(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&pd("6.3.16"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.3.16 may not work as expected."));else if(xl(i))e.addValue(o,bl(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,bl(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!M){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<pf;r++){var o=ff[r],a=p[o];(Ka(a)||!1===a)&&(n[o]=a)}return n}});return D}},ff=Ta(["initial"],Pa(zd),!1),pf=ff.length;function mf(e){return"string"==typeof e&&e.startsWith("var(--")}var vf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hf(e,t,n){void 0===n&&(n=1),Va(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Pa(function(e){var t=vf.exec(e);if(!t)return[,];var n=Pa(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():mf(a)?hf(a,t,n+1):a}}var yf,gf=new Set(["width","height","top","left","right","bottom","x","y"]),bf=function(e){return gf.has(e)},xf=function(e,t){e.set(t,!1),e.set(t)},Ef=function(e){return e===Li||e===Fi};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(yf||(yf={}));var wf=function(e,t){return parseFloat(e.split(", ")[t])},kf=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return wf(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?wf(i[1],e):0}},Sf=new Set(["x","y","z"]),Cf=Ic.filter(function(e){return!Sf.has(e)}),Of={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:kf(4,13),y:kf(5,14)},_f={treeType:"dom",readValueFromInstance:function(e,t){if(Lc(t)){var n=Ll(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(mu(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return of(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Ia(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=jd(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&(Nd(f)||Rd(f))?f=parseFloat(f):!Ld(f)&&ns.test(d)&&(f=Ml(u,d)),e.addValue(u,bl(f)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=Ia(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Aa({},n)),e.forEachValue(function(e){var t=e.get();if(mf(t)){var n=hf(t,a);n&&e.set(n)}}),o){var s=o[i];if(mf(s)){var l=hf(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(bf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Aa({},t),r=Aa({},r);var o=Object.keys(t).filter(bf),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=Pd(u),f=t[o];if(Cl(f)){var p=f.length,m=null===f[0]?1:0;d=Pd(u=f[m]);for(var v=m;v<p;v++)c?Va(Pd(f[v])===c,"All keyframes must be of the same type"):(c=Pd(f[v]),Va(c===d||Ef(d)&&Ef(c),"Keyframes must be of the same dimension as the current value"))}else c=Pd(f);if(d!==c)if(Ef(d)&&Ef(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&c===Fi&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[o]=d.transform(f):(i||(a=function(e){var t=[];return Cf.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],xf(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,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]=Of[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);xf(r,i[n]),e[n]=Of[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=Pa(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target: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 Aa({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Mu,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),hu(t,n,r,o.transformTemplate)},render:Pu},Nf=df(_f),Rf=df(Aa(Aa({},_f),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Lc(t)?(null===(n=Ll(t))||void 0===n?void 0:n.default)||0:(t=Tu.has(t)?t:Iu(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ju,build:function(e,t,n,r,o){Ou(t,n,r,o.transformTemplate)},render:Lu})),Af=function(e,t){return du(e)?Rf(t,{enableHardwareAcceleration:!1}):Nf(t,{enableHardwareAcceleration:!0})};function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Pf={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Fi.test(e))return e;e=parseFloat(e)}var n=If(e,t.target.x),r=If(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Tf={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(vf,function(e){return i.push(e),"_$css"}));var s=ns.parse(e);if(s.length>5)return o;var l=ns.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=_i(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(a){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},Lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(_c,Mf),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Aa(Aa({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),Fc.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||fi.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(je.Component),Mf={borderRadius:Aa(Aa({},Pf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pf,borderTopRightRadius:Pf,borderBottomLeftRadius:Pf,borderBottomRightRadius:Pf,boxShadow:Tf},jf={measureLayout:function(e){var t=Pa(Od(),2),n=t[0],r=t[1],o=je.useContext(iu);return je.createElement(Lf,Aa({},e,{layoutGroup:o,switchLayoutGroup:je.useContext(su),isPresent:n,safeToRemove:r}))}},Df=zc({attachResizeListener:function(e,t){return $u(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Vf={current:void 0},Bf=zc({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Vf.current){var e=new Df(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Vf.current=e}return Vf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ff=Aa(Aa(Aa(Aa({},Hd),wd),cf),jf),zf=/*@__PURE__*/cu(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=du(e)?Wu:Uu;return Aa(Aa({},s),{preloadedFeatures:n,useRender:Ru(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Ff,Af,Bf)});function Wf(){var e=je.useRef(!1);return qa(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Uf=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=ri($f),l=Cd(),c=je.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return je.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),je.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),je.createElement($a.Provider,{value:c},t)};function $f(){return new Map}var Hf=function(e){return e.key||""},qf=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=Pa(function(){var e=Wf(),t=Pa(je.useState(0),2),n=t[0],r=t[1],o=je.useCallback(function(){e.current&&r(n+1)},[n]);return[je.useCallback(function(){return fi.postRender(o)},[o]),n]}(),1),u=c[0],d=je.useContext(iu).forceRender;d&&(u=d);var f=Wf(),p=function(e){var t=[];return je.Children.forEach(e,function(e){je.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=je.useRef(m),y=je.useRef(new Map).current,g=je.useRef(!0);if(qa(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Hf(e);t.set(n,e)})}(p,y),h.current=m}),dd(function(){g.current=!0,y.clear(),v.clear()}),g.current)return je.createElement(je.Fragment,null,m.map(function(e){return je.createElement(Uf,{key:Hf(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=Ta([],Pa(m),!1);for(var b=h.current.map(Hf),x=p.map(Hf),E=b.length,w=0;w<E;w++){var k=b[w];-1===x.indexOf(k)&&v.add(k)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,je.createElement(Uf,{key:Hf(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;u(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:je.createElement(Uf,{key:Hf(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==La&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),je.createElement(je.Fragment,null,v.size?m:m.map(function(e){return je.cloneElement(e)}))};function Yf(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}var Gf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Xf={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Kf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Jf={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Qf={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function ep(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Kf;case"left":return Xf;case"bottom":return Qf;case"top":return Jf}}var tp={enter:{duration:.2,ease:Gf.easeOut},exit:{duration:.1,ease:Gf.easeIn}},np=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.enter})},rp=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.exit})},op=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],ap={exit:{height:{duration:.2,ease:Gf.ease},opacity:{duration:.3,ease:Gf.ease}},enter:{height:{duration:.3,ease:Gf.ease},opacity:{duration:.4,ease:Gf.ease}}},ip={exit:function(e){var t,n,r=e.startingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return Zf({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:rp(ap.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return Zf({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:np(ap.enter,e.delay)})}},sp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.in,r=e.unmountOnExit,o=e.animateOpacity,a=void 0===o||o,i=e.startingHeight,s=void 0===i?0:i,l=e.endingHeight,c=void 0===l?"auto":l,u=e.style,d=e.className,f=e.transition,p=e.transitionEnd,v=Yf(e,op),h=je.useState(!1),y=h[0],g=h[1];je.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),C({condition:Boolean(s>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(s.toString())>0,x={startingHeight:s,endingHeight:c,animateOpacity:a,transition:y?f:{enter:{duration:0}},transitionEnd:m(p,{exit:r?void 0:{display:b?"block":"none"}})},E=n||r?"enter":"exit";/*#__PURE__*/
|
8
|
-
return je.createElement(qf,{initial:!1,custom:x},(!r||n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t},v,{className:S("chakra-collapse",d),style:Zf({overflow:"hidden",display:"block"},
|
9
|
-
return je.createElement(qf,{custom:
|
10
|
-
return je.createElement(qf,{custom:m},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",l)},mp,{animate:p,custom:m},f)))});d&&(vp.displayName="ScaleFade");var hp=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],yp={exit:{duration:.15,ease:Gf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},gp={exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return Zf({},ep({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:rp(yp.exit,o),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return Zf({},ep({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:np(yp.enter,o),transitionEnd:null==n?void 0:n.enter})}},bp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.direction,r=void 0===n?"right":n,o=e.style,a=e.unmountOnExit,i=e.in,s=e.className,l=e.transition,
|
11
|
-
return je.createElement(qf,{custom:v},(!a||i&&a)&&/*#__PURE__*/je.createElement(zf.div,Zf({},d,{ref:t,initial:"exit",className:S("chakra-slide",s),animate:m,exit:"exit",custom:v,variants:gp,style:p})))});d&&(bp.displayName="Slide");var xp=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Ep={initial:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay),transitionEnd:null==r?void 0:r.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:np(tp.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.reverse,a={x:e.offsetX,y:e.offsetY};return Zf({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay)},o?Zf({},a,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:Zf({},a,null==r?void 0:r.exit)})}},wp={initial:"initial",animate:"enter",exit:"exit",variants:Ep},kp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,
|
12
|
-
return je.createElement(qf,{custom:h},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",i),custom:h},wp,{animate:v},m)))});function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function Cp(e){return e.sort(function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Op(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function _p(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}d&&(kp.displayName="SlideFade");var Np="undefined"!=typeof window?je.useLayoutEffect:je.useEffect,Rp=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=Cp(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,n){void 0===n&&(n=!0);var r=Op(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=Op(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=_p(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=_p(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=Cp(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var o=Sp({node:t,index:-1},n);e.descendants.set(t,o),e.assignIndex(r)}}},Ap=Jn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Ip=Ap[0],Pp=Ap[1];function Tp(){return[Ip,function(){return Pp()},function(){return e=je.useRef(new Rp),Np(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=Pp(),n=je.useState(-1),r=n[0],o=n[1],a=je.useRef(null);Np(function(){return function(){a.current&&t.unregister(a.current)}},[]),Np(function(){if(a.current){var e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(a.current),register:Kn(i,a)}}(e)}]}function Lp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}var jp=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Dp=Jn({strict:!1,name:"ButtonGroupContext"}),Vp=Dp[0],Bp=Dp[1];d&&(/*#__PURE__*/
|
13
|
-
return je.createElement(va.div,Mp({className:
|
14
|
-
return je.createElement(va.span,Mp({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:a}),o)};d&&(Up.displayName="ButtonIcon");var $p=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Hp=/*#__PURE__*/
|
15
|
-
return je.createElement(va.button,Mp({disabled:
|
16
|
-
return je.createElement(je.Fragment,null,t&&/*#__PURE__*/je.createElement(Up,{marginEnd:o},t),r,n&&/*#__PURE__*/je.createElement(Up,{marginStart:o},n))}d&&(Hp.displayName="Button");var Yp=["icon","children","isRound","aria-label"],Zp=/*#__PURE__*/
|
17
|
-
return je.createElement(Hp,Mp({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)});function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gp.apply(this,arguments)}function Xp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Zp.displayName="IconButton");var Kp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Jp=["getRootProps","htmlProps"],Qp=ea("FormControl"),em=Qp[0],tm=Qp[1],nm=tm,rm=Jn({strict:!1,name:"FormControlContext"}),om=rm[0],am=rm[1],im=/*#__PURE__*/
|
18
|
-
return je.createElement(om,{value:a},/*#__PURE__*/je.createElement(em,{value:n},/*#__PURE__*/je.createElement(va.div,Gp({},o({},t),{className:i,__css:n.container}))))});d&&(im.displayName="FormControl");var sm=/*#__PURE__*/
|
19
|
-
return je.createElement(va.div,Gp({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:o}))});d&&(sm.displayName="FormHelperText");var lm=["isDisabled","isInvalid","isReadOnly","isRequired"],
|
20
|
-
return je.createElement(_a,Gp({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:o}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}).displayName="FormErrorIcon");var hm=["className","children","requiredIndicator","optionalIndicator"],ym=/*#__PURE__*/
|
21
|
-
return je.createElement(va.label,Gp({},f,{className:S("chakra-form__label",o.className),__css:Gp({display:"block",textAlign:"start"},r)}),a,null!=d&&d.isRequired?s:
|
7
|
+
return je.createElement(va.svg,ka({verticalAlign:"middle",viewBox:p},f,d),m)});d&&(Oa.displayName="Icon");var _a=Oa,Na=function(e,t){return Na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Na(e,t)};function Ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Aa=function(){return Aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Aa.apply(this,arguments)};function Ia(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ta(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var La="undefined"==typeof process||void 0===process.env?"production":process.env.NODE_ENV||"production",Ma=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},ja={measureLayout:Ma(["layout","layoutId","drag"]),animation:Ma(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ma(["exit"]),drag:Ma(["drag","dragControls"]),focus:Ma(["whileFocus"]),hover:Ma(["whileHover","onHoverStart","onHoverEnd"]),tap:Ma(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ma(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ma(["whileInView","onViewportEnter","onViewportLeave"])},Da=function(){},Va=function(){};"production"!==process.env.NODE_ENV&&(Da=function(e,t){e||"undefined"==typeof console||console.warn(t)},Va=function(e,t){if(!e)throw new Error(t)});var Ba=je.createContext({strict:!1}),Fa=Object.keys(ja),za=Fa.length,Wa=je.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ua=je.createContext({}),$a=je.createContext(null),Ha="undefined"!=typeof document,qa=Ha?je.useLayoutEffect:je.useEffect,Ya={current:null},Za=!1;function Ga(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xa(e){return Array.isArray(e)}function Ka(e){return"string"==typeof e||Xa(e)}function Ja(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Qa(e,t,n){var r=e.getProps();return Ja(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ei(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ka(e.initial)||Ka(e.animate)||Ka(e.whileHover)||Ka(e.whileDrag)||Ka(e.whileTap)||Ka(e.whileFocus)||Ka(e.exit)}function ti(e){return Boolean(ei(e)||e.variants)}function ni(e){return Array.isArray(e)?e.join(" "):e}function ri(e){var t=je.useRef(null);return null===t.current&&(t.current=e()),t.current}const oi="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ai="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(oi()),16.666666666666668);let ii=!0,si=!1,li=!1;const ui={delta:0,timestamp:0},ci=["read","update","preRender","render","postRender"],di=ci.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:e=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),i.has(r)&&(s.schedule(r),si=!0)}o=!1,a&&(a=!1,s.process(e))}}};return s}(),e),{}),fi=ci.reduce((e,t)=>{const n=di[t];return e[t]=(e,t=!1,r=!1)=>(si||yi(),n.schedule(e,t,r)),e},{}),pi=ci.reduce((e,t)=>(e[t]=di[t].cancel,e),{}),mi=ci.reduce((e,t)=>(e[t]=()=>di[t].process(ui),e),{}),vi=e=>di[e].process(ui),hi=e=>{si=!1,ui.delta=ii?16.666666666666668:Math.max(Math.min(e-ui.timestamp,40),1),ui.timestamp=e,li=!0,ci.forEach(vi),li=!1,si&&(ii=!1,ai(hi))},yi=()=>{si=!0,ii=!0,li||ai(hi)},gi=()=>ui,bi=(e,t,n)=>Math.min(Math.max(n,e),t);function xi(e,t){return e*Math.sqrt(1-t*t)}const Ei=["duration","bounce"],wi=["stiffness","damping","mass"];function ki(e,t){return t.some(t=>void 0!==e[t])}function Si(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Ia(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ki(e,wi)&&ki(e,Ei)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;Da(e<=1e4,"Spring duration must be 10 seconds or less");let i=1-t;i=bi(.05,1,i),e=bi(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/xi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=xi(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=Ci,m=Ci;function v(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=xi(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}Si.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ci=e=>0,Oi=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},_i=(e,t,n)=>-n*e+n*t+e,Ni=(e,t)=>n=>Math.max(Math.min(n,t),e),Ri=e=>e%1?Number(e.toFixed(5)):e,Ai=/(-)?([\d]*\.?[\d])+/g,Ii=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Pi=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ti(e){return"string"==typeof e}const Li={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Mi=Object.assign(Object.assign({},Li),{transform:Ni(0,1)}),ji=Object.assign(Object.assign({},Li),{default:1}),Di=e=>({test:t=>Ti(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Vi=Di("deg"),Bi=Di("%"),Fi=Di("px"),zi=Di("vh"),Wi=Di("vw"),Ui=Object.assign(Object.assign({},Bi),{parse:e=>Bi.parse(e)/100,transform:e=>Bi.transform(100*e)}),$i=(e,t)=>n=>Boolean(Ti(n)&&Pi.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hi=(e,t,n)=>r=>{if(!Ti(r))return r;const[o,a,i,s]=r.match(Ai);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},qi={test:$i("hsl","hue"),parse:Hi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bi.transform(Ri(t))+", "+Bi.transform(Ri(n))+", "+Ri(Mi.transform(r))+")"},Yi=Ni(0,255),Zi=Object.assign(Object.assign({},Li),{transform:e=>Math.round(Yi(e))}),Gi={test:$i("rgb","red"),parse:Hi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zi.transform(e)+", "+Zi.transform(t)+", "+Zi.transform(n)+", "+Ri(Mi.transform(r))+")"},Xi={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Gi.transform},Ki={test:e=>Gi.test(e)||Xi.test(e)||qi.test(e),parse:e=>Gi.test(e)?Gi.parse(e):qi.test(e)?qi.parse(e):Xi.parse(e),transform:e=>Ti(e)?e:e.hasOwnProperty("red")?Gi.transform(e):qi.transform(e)};function Ji(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ii);r&&(n=r.length,e=e.replace(Ii,"${c}"),t.push(...r.map(Ki.parse)));const o=e.match(Ai);return o&&(e=e.replace(Ai,"${n}"),t.push(...o.map(Li.parse))),{values:t,numColors:n,tokenised:e}}function Qi(e){return Ji(e).values}function es(e){const{values:t,numColors:n,tokenised:r}=Ji(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?"${c}":"${n}",r<n?Ki.transform(e[r]):Ri(e[r]));return t}}const ts=e=>"number"==typeof e?0:e,ns={test:function(e){var t,n,r,o;return isNaN(e)&&Ti(e)&&(null!==(n=null===(t=e.match(Ai))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ii))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qi,createTransformer:es,getAnimatableNone:function(e){const t=Qi(e);return es(e)(t.map(ts))}},rs=new Set(["brightness","contrast","saturate","opacity"]);function os(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ai)||[];if(!r)return e;const o=n.replace(r,"");let a=rs.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const as=/([a-z-]*)\(.*?\)/g,is=Object.assign(Object.assign({},ns),{getAnimatableNone:e=>{const t=e.match(as);return t?t.map(os).join(" "):e}});function ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ls({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ss(s,r,e+1/3),a=ss(s,r,e),i=ss(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const us=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},cs=[Xi,Gi,qi],ds=e=>cs.find(t=>t.test(e)),fs=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ps=(e,t)=>{let n=ds(e),r=ds(t);Va(!!n,fs(e)),Va(!!r,fs(t));let o=n.parse(e),a=r.parse(t);n===qi&&(o=ls(o),n=Gi),r===qi&&(a=ls(a),r=Gi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=us(o[t],a[t],e));return i.alpha=_i(o.alpha,a.alpha,e),n.transform(i)}},ms=e=>"number"==typeof e,vs=(e,t)=>n=>t(e(n)),hs=(...e)=>e.reduce(vs);function ys(e,t){return ms(e)?n=>_i(e,t,n):Ki.test(e)?ps(e,t):Es(e,t)}const gs=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>ys(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},bs=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ys(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function xs(e){const t=ns.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const Es=(e,t)=>{const n=ns.createTransformer(t),r=xs(e),o=xs(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?hs(gs(r.parsed,o.parsed),n):(Da(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ws=(e,t)=>n=>_i(e,t,n);function ks(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Va(a===t.length,"Both input and output ranges must be the same length"),Va(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ws:"string"==typeof e?Ki.test(e)?ps:Es:Array.isArray(e)?gs:"object"==typeof e?bs:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=hs(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Oi(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Oi(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(bi(e[0],e[a-1],t)):s}const Ss=e=>t=>1-e(1-t),Cs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Os=e=>t=>t*t*((e+1)*t-e),_s=e=>e,Ns=e=>Math.pow(e,2),Rs=Ss(Ns),As=Cs(Ns),Is=e=>1-Math.sin(Math.acos(e)),Ps=Ss(Is),Ts=Cs(Ps),Ls=Os(1.525),Ms=Ss(Ls),js=Cs(Ls),Ds=(e=>{const t=Os(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Vs=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Bs=Ss(Vs);function Fs(e,t){return e.map(()=>t||As).splice(0,e.length-1)}function zs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(i),o);function l(){return ks(s,i,{ease:Array.isArray(n)?n:Fs(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Ws={keyframes:zs,spring:Si,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}},Us="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),$s="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Us()),16.666666666666668);let Hs=!0,qs=!1,Ys=!1;const Zs={delta:0,timestamp:0},Gs=["read","update","preRender","render","postRender"],Xs=Gs.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}(()=>qs=!0),e),{}),Ks=Gs.reduce((e,t)=>{const n=Xs[t];return e[t]=(e,t=!1,r=!1)=>(qs||tl(),n.schedule(e,t,r)),e},{}),Js=Gs.reduce((e,t)=>(e[t]=Xs[t].cancel,e),{});Gs.reduce((e,t)=>(e[t]=()=>Xs[t].process(Zs),e),{});const Qs=e=>Xs[e].process(Zs),el=e=>{qs=!1,Zs.delta=Hs?16.666666666666668:Math.max(Math.min(e-Zs.timestamp,40),1),Zs.timestamp=e,Ys=!0,Gs.forEach(Qs),Ys=!1,qs&&(Hs=!1,$s(el))},tl=()=>{qs=!0,Hs=!0,Ys||$s(el)};function nl(e,t,n=0){return e-t-n}const rl=e=>{const t=({delta:t})=>e(t);return{start:()=>Ks.update(t,!0),stop:()=>Js.update(t)}};function ol(e){var t,n,{from:r,autoplay:o=!0,driver:a=rl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,v=Ia(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let h,y,g,{to:b}=v,x=0,E=v.duration,w=!1,k=!0;const S=function(e){if(Array.isArray(e.to))return zs;if(Ws[e.type])return Ws[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Si:zs}(v);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(g=ks([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=S(Object.assign(Object.assign({},v),{from:r,to:b}));return o&&(null==c||c(),h=a(function(e){if(k||(e=-e),i+=e,!w){const e=C.next(Math.max(0,i));y=e.value,g&&(y=g(y)),w=k?e.done:i<=0}null==m||m(y),w&&(0===x&&(null!=E||(E=i)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,E,u,k)&&(x++,"reverse"===l?(k=x%2==0,i=function(e,t,n=0,r=!0){return r?nl(t+-e,t,n):t-(e-t)+n}(i,E,u,k)):(i=nl(i,E,u),"mirror"===l&&C.flipTarget()),w=!1,p&&p()):(h.stop(),f&&f()))}),h.start()),{stop:()=>{null==d||d(),h.stop()}}}function al(e,t){return t?e*(1e3/t):0}const il=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),sl=e=>il(e)&&e.hasOwnProperty("z"),ll=(e,t)=>Math.abs(e-t);function ul(e,t){if(ms(e)&&ms(t))return ll(e,t);if(il(e)&&il(t)){const n=ll(e.x,t.x),r=ll(e.y,t.y),o=sl(e)&&sl(t)?ll(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const cl=(e,t)=>1-3*t+3*e,dl=(e,t)=>3*t-6*e,fl=e=>3*e,pl=(e,t,n)=>((cl(t,n)*e+dl(t,n))*e+fl(t))*e,ml=(e,t,n)=>3*cl(t,n)*e*e+2*dl(t,n)*e+fl(t);function vl(e,t){-1===e.indexOf(t)&&e.push(t)}function hl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yl=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return vl(this.subscriptions,e),function(){return hl(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),gl=function(){function e(e){var t=this;this.version="6.3.16",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new yl,this.velocityUpdateSubscribers=new yl,this.renderSubscribers=new yl,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=gi(),o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=r.delta,t.lastUpdated=o,fi.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return fi.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?al(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function bl(e){return new gl(e)}var xl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},El=function(e){return 1e3*e},wl={linear:_s,easeIn:Ns,easeInOut:As,easeOut:Rs,circIn:Is,circInOut:Ts,circOut:Ps,backIn:Ls,backInOut:js,backOut:Ms,anticipate:Ds,bounceIn:Bs,bounceInOut:e=>e<.5?.5*(1-Vs(1-2*e)):.5*Vs(2*e-1)+.5,bounceOut:Vs},kl=function(e){if(Array.isArray(e)){Va(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Pa(e,4);return function(e,t,n,r){if(e===t&&n===r)return _s;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=pl(.1*t,e,n);return a=>0===a||1===a?a:pl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=.1;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*.1,s=ml(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=ml(t,n,r);if(0===o)return t;t-=(pl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=pl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+.1,e,n)}(a),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Va(void 0!==wl[e],"Invalid easing type '".concat(e,"'")),wl[e]):e},Sl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ns.test(t)||t.startsWith("url(")))},Cl=function(e){return Array.isArray(e)},Ol=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},_l=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Nl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Rl=function(e){return{type:"keyframes",duration:.8,values:e}},Al={x:Ol,y:Ol,z:Ol,rotate:Ol,rotateX:Ol,rotateY:Ol,rotateZ:Ol,scaleX:_l,scaleY:_l,scale:_l,opacity:Nl,backgroundColor:Nl,color:Nl,default:_l},Il=Aa(Aa({},Li),{transform:Math.round}),Pl={borderWidth:Fi,borderTopWidth:Fi,borderRightWidth:Fi,borderBottomWidth:Fi,borderLeftWidth:Fi,borderRadius:Fi,radius:Fi,borderTopLeftRadius:Fi,borderTopRightRadius:Fi,borderBottomRightRadius:Fi,borderBottomLeftRadius:Fi,width:Fi,maxWidth:Fi,height:Fi,maxHeight:Fi,size:Fi,top:Fi,right:Fi,bottom:Fi,left:Fi,padding:Fi,paddingTop:Fi,paddingRight:Fi,paddingBottom:Fi,paddingLeft:Fi,margin:Fi,marginTop:Fi,marginRight:Fi,marginBottom:Fi,marginLeft:Fi,rotate:Vi,rotateX:Vi,rotateY:Vi,rotateZ:Vi,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:Vi,skewX:Vi,skewY:Vi,distance:Fi,translateX:Fi,translateY:Fi,translateZ:Fi,x:Fi,y:Fi,z:Fi,perspective:Fi,transformPerspective:Fi,opacity:Mi,originX:Ui,originY:Ui,originZ:Fi,zIndex:Il,fillOpacity:Mi,strokeOpacity:Mi,numOctaves:Il},Tl=Aa(Aa({},Pl),{color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:is,WebkitFilter:is}),Ll=function(e){return Tl[e]};function Ml(e,t){var n,r=Ll(e);return r!==is&&(r=ns),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var jl=function(e){return Cl(e)?e[e.length-1]||0:e},Dl=!1;function Vl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Bl(e){return"number"==typeof e?0:Ml("",e)}function Fl(e,t){return e[t]||e.default||e}function zl(e,t,n,r){return void 0===r&&(r={}),t.start(function(o){var a,i,s=function(e,t,n,r,o){var a,i=Fl(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Sl(e,n);"none"===s&&l&&"string"==typeof n?s=Ml(e,n):Vl(s)&&"string"==typeof n?s=Bl(n):!Array.isArray(n)&&Vl(n)&&"string"==typeof s&&(n=Bl(s));var u=Sl(e,s);return Da(u===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function h(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null==m||m.stop(),m=ol(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(v(e))g({from:e,velocity:t,to:h(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const i=h(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=al(e-c,Zs.delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:v(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Aa(Aa({},r),i)):ol(Aa(Aa({},function(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ta([],Pa(e.to),!1),e.to[0]=e.from)}(t),function(e){var t=Ia(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Aa(Aa({},e),(o=n,i=Cl(a=t.to)?Rl:Al[o]||Al.default,Aa({to:a},i(a))))),Aa(Aa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Ia(e,["ease","times","yoyo","flip","loop"]),s=Aa({},i);return n&&(s.offset=n),i.duration&&(s.duration=El(i.duration)),i.repeatDelay&&(s.repeatDelay=El(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kl):kl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(Da(!Dl,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Dl=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=jl(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Fl(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=window.setTimeout(u,El(l)):u(),function(){clearTimeout(a),null==i||i.stop()}})}var Wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ul=Wl.length,$l=function(e){return"string"==typeof e?parseFloat(e):e},Hl=function(e){return"number"==typeof e||Fi.test(e)};function ql(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Yl=Gl(0,.5,Ps),Zl=Gl(.5,.95,_s);function Gl(e,t,n){return function(r){return r<e?0:r>t?1:n(Oi(e,t,r))}}function Xl(e,t){e.min=t.min,e.max=t.max}function Kl(e,t){Xl(e.x,t.x),Xl(e.y,t.y)}function Jl(e){return void 0===e||1===e}function Ql(e){var t=e.scaleX,n=e.scaleY;return!Jl(e.scale)||!Jl(t)||!Jl(n)}function eu(e){return Ql(e)||tu(e.x)||tu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function tu(e){return e&&"0%"!==e}function nu(e,t,n){return n+t*(e-n)}function ru(e,t,n,r,o){return void 0!==o&&(e=nu(e,o,r)),nu(e,n,r)+t}function ou(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ru(e.min,t,n,r,o),e.max=ru(e.max,t,n,r,o)}function au(e,t){var n=t.x,r=t.y;ou(e.x,n.translate,n.scale,n.originPoint),ou(e.y,r.translate,r.scale,r.originPoint)}function iu(e,t){e.min=e.min+t,e.max=e.max+t}function su(e,t,n){var r=Pa(n,3),o=r[0],a=r[1],i=r[2],s=_i(e.min,e.max,void 0!==t[i]?t[i]:.5);ou(e,t[o],t[a],s,t.scale)}var lu=["x","scaleX","originX"],uu=["y","scaleY","originY"];function cu(e,t){su(e.x,t,lu),su(e.y,t,uu)}function du(e){return e.max-e.min}function fu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ul(e,t)<n}function pu(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=_i(t.min,t.max,e.origin),e.scale=du(n)/du(t),(fu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_i(n.min,n.max,e.origin)-e.originPoint,(fu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mu(e,t,n,r){pu(e.x,t.x,n.x,null==r?void 0:r.originX),pu(e.y,t.y,n.y,null==r?void 0:r.originY)}function vu(e,t,n){e.min=n.min+t.min,e.max=e.min+du(t)}function hu(e,t,n){e.min=t.min-n.min,e.max=e.min+du(t)}function yu(e,t,n){hu(e.x,t.x,n.x),hu(e.y,t.y,n.y)}function gu(e,t,n,r,o){return e=nu(e-=t,1/n,r),void 0!==o&&(e=nu(e,1/o,r)),e}function bu(e,t,n,r,o){var a=Pa(n,3);!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Bi.test(t)&&(t=parseFloat(t),t=_i(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=_i(a.min,a.max,r);e===a&&(s-=t),e.min=gu(e.min,t,n,s,o),e.max=gu(e.max,t,n,s,o)}}(e,t[a[0]],t[a[1]],t[a[2]],t.scale,r,o)}var xu=["x","scaleX","originX"],Eu=["y","scaleY","originY"];function wu(e,t,n,r){bu(e.x,t,xu,null==n?void 0:n.x,null==r?void 0:r.x),bu(e.y,t,Eu,null==n?void 0:n.y,null==r?void 0:r.y)}function ku(e){return 0===e.translate&&1===e.scale}function Su(e){return ku(e.x)&&ku(e.y)}function Cu(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Ou=function(){function e(){this.members=[]}return e.prototype.add=function(e){vl(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(hl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),_u={};function Nu(e,t,n){var r=e.y.translate/t.y,o="translate3d(".concat(e.x.translate/t.x,"px, ").concat(r,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,i=n.rotateX,s=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),i&&(o+="rotateX(".concat(i,"deg) ")),s&&(o+="rotateY(".concat(s,"deg) "))}var l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(e.x.scale*t.x,", ").concat(l,")"))?"none":o}function Ru(e){return[e("x"),e("y")]}var Au=["","X","Y","Z"],Iu=["transformPerspective","x","y","z"];function Pu(e,t){return Iu.indexOf(e)-Iu.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Au.forEach(function(t){return Iu.push(e+t)})});var Tu=new Set(Iu);function Lu(e){return Tu.has(e)}var Mu=new Set(["originX","originY","originZ"]);function ju(e){return Mu.has(e)}var Du=function(e,t){return e.depth-t.depth},Vu=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){vl(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){hl(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Du),this.isDirty=!1,this.children.forEach(e)},e}();function Bu(e){var t=xl(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}var Fu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zu(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Zu),o.nodes.forEach(Gu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Ta(Ta([],Pa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vu)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yl),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Ta([],Pa(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Fu.hasAnimatedSinceResize&&(Fu.hasAnimatedSinceResize=!1,o.nodes.forEach(Yu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,a,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:tc,p=l.getProps(),m=p.onLayoutAnimationStart,v=p.onLayoutAnimationComplete,h=!o.targetLayout||!Cu(o.targetLayout,d)||c,y=!u&&c;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(h||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,y);var g=Aa(Aa({},Fl(f,"layout")),{onPlay:m,onComplete:v});l.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else u||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,pi.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xu))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options;if(void 0!==i.layoutId||i.layout){var s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hu);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nc),this.potentialNodes.clear()),this.nodes.forEach(qu),this.nodes.forEach(Wu),this.nodes.forEach(Uu),this.clearAllSnapshots(),mi.update(),mi.preRender(),mi.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach($u),this.sharedNodes.forEach(Ku)},e.prototype.scheduleUpdateProjection=function(){fi.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;fi.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));oc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();oc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Su(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||eu(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(iu(t.x,n.x),iu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Kl(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll;if(r!==this.root&&o&&r.options.layoutScroll){if(r.isScrollRoot){Kl(t,e);var a=this.root.scroll;a&&(iu(t.x,-a.x),iu(t.y,-a.y))}iu(t.x,o.x),iu(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&cu(n,{x:-o.scroll.x,y:-o.scroll.y}),eu(o.latestValues)&&cu(n,o.latestValues)}return eu(this.latestValues)&&cu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Kl(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&eu(o.latestValues)){Ql(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Kl(a,o.measure()),wu(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return eu(this.latestValues)&&wu(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Aa(Aa(Aa({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options;this.layout&&(o.layout||o.layoutId)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Kl(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(vu((t=this.target).x,(n=this.relativeTarget).x,(r=this.relativeParent.target).x),vu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Kl(this.target,this.layout.actual),au(this.target,this.targetDelta)):Kl(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},yu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Kl(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!eu(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Kl(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&cu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,au(e,l)),r&&eu(s.latestValues)&&cu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;mu(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Nu(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Aa({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(ec));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;Ju(s.x,e.x,o),Ju(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(yu(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Qu(e.x,t.x,n.x,r),Qu(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,o)),u&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,u;o?(e.opacity=_i(0,null!==(i=n.opacity)&&void 0!==i?i:1,Yl(r)),e.opacityExit=_i(null!==(s=t.opacity)&&void 0!==s?s:1,0,Zl(r))):a&&(e.opacity=_i(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ul;c++){var d="border".concat(Wl[c],"Radius"),f=ql(t,d),p=ql(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Hl(f)===Hl(p)?(e[d]=Math.max(_i($l(f),$l(p),r),0),(Bi.test(p)||Bi.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=_i(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(pi.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fi.update(function(){Fu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=xl(0)?0:bl(0);return zl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Aa(Aa({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.latestValues;t&&n&&e.layout&&(Kl(t,n),cu(t,r),mu(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ou),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Au.length;r++)e.getStaticValue(o="rotate"+Au[r])&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0));if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Bu(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Bu(e.pointerEvents)||""),this.hasProjected&&!eu(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Nu(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),s.opacity=u.animationValues?u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,_u)if(void 0!==d[v]){var h=_u[v],y=h.applyTo,g=(0,h.correct)(d[v],u);if(y)for(var b=y.length,x=0;x<b;x++)s[y[x]]=g;else s[v]=g}return this.options.layoutId&&(s.pointerEvents=u===this?Bu(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Hu),this.root.sharedNodes.clear()},e}()}function Wu(e){e.updateLayout()}function Uu(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Ru(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=du(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Ru(function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=du(s[e]);t.max=t.min+n});var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};mu(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?mu(c,e.applyTransform(l,!0),a.measured):mu(c,s,a.layout);var d=!Su(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,v=p.layout;if(m&&v){var h={x:{min:0,max:0},y:{min:0,max:0}};yu(h,a.layout,m.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};yu(y,s,v.actual),Cu(h,y)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function $u(e){e.clearSnapshot()}function Hu(e){e.clearMeasurements()}function qu(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Yu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zu(e){e.resolveTargetDelta()}function Gu(e){e.calcProjection()}function Xu(e){e.resetRotation()}function Ku(e){e.removeLeadSnapshot()}function Ju(e,t,n){e.translate=_i(t.translate,0,n),e.scale=_i(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qu(e,t,n,r){e.min=_i(t.min,n.min,r),e.max=_i(t.max,n.max,r)}function ec(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var tc={duration:.45,ease:[.4,0,.1,1]};function nc(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function rc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function oc(e){rc(e.x),rc(e.y)}var ac=1,ic=je.createContext({}),sc=je.createContext({}),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement;t&&t.setProps(e.props)},t.prototype.render=function(){return this.props.children},t}(je.Component);function uc(e){function t(t,n){return void 0===n&&(n={}),function(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?ja.projectionNodeConstructor=e[t]:ja[t].Component=e[t])}(t),je.forwardRef(function(e,s){var l=function(e){var t,n=e.layoutId,r=null===(t=je.useContext(ic))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Aa(Aa({},e),{layoutId:l});var u=je.useContext(Wa),c=null,d=function(e){var t=function(e,t){if(ei(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Ka(n)?n:void 0,animate:Ka(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,je.useContext(Ua)),n=t.initial,r=t.animate;return je.useMemo(function(){return{initial:n,animate:r}},[ni(n),ni(r)])}(e),f=u.isStatic?void 0:ri(function(){if(Fu.hasEverUpdated)return ac++}),p=a(e,u.isStatic);return!u.isStatic&&Ha&&(d.visualElement=function(e,t,n,r){var o,a,i=je.useContext(Ba),s=je.useContext(Ua).visualElement,l=je.useContext($a),u=(!Za&&function(){if(Za=!0,Ha)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ya.current=e.matches};e.addListener(t),t()}else Ya.current=!1}(),o=Pa(je.useState(Ya.current),1)[0],"never"!==(a=je.useContext(Wa).reducedMotion)&&("always"===a||o)),c=je.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:u}));var d=c.current;return qa(function(){null==d||d.syncRender()}),je.useEffect(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),qa(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(i,p,Aa(Aa({},u),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=je.useContext(sc);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||l&&Ga(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:c,layoutScroll:u}))}(f,e,d.visualElement,r||ja.projectionNodeConstructor),c=function(e,t,n){var r=[],o=je.useContext(Ba);if(!t)return null;"production"!==La&&n&&o.strict&&Va(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<za;a++){var i=Fa[a],s=ja[i],l=s.Component;(0,s.isEnabled)(e)&&l&&r.push(je.createElement(l,Aa({key:i},e,{visualElement:t})))}return r}(e,d.visualElement,t)),je.createElement(lc,{visualElement:d.visualElement,props:Aa(Aa({},u),e)},c,je.createElement(Ua.Provider,{value:d},o(i,e,f,function(e,t,n){return je.useCallback(function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ga(n)&&(n.current=r))},[t])}(p,d.visualElement,s),p,u.isStatic,d.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var cc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function dc(e){return"string"==typeof e&&!e.includes("-")&&!!(cc.indexOf(e)>-1||/[A-Z]/.test(e))}function fc(e,t){var n=t.layout,r=t.layoutId;return Lu(e)||ju(e)||(n||void 0!==r)&&(!!_u[e]||"opacity"===e)}var pc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function mc(e){return e.startsWith("--")}var vc=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function hc(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(mc(p))i[p]=m;else{var v=Pl[p],h=vc(m,v);if(Lu(p)){if(c=!0,s[p]=h,l.push(p),!f)continue;m!==(null!==(o=v.default)&&void 0!==o?o:0)&&(f=!1)}else ju(p)?(u[p]=h,d=!0):a[p]=h}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(Pu);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];c+="".concat(pc[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=e.originY,r=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(void 0===t?"50%":t," ").concat(r," ").concat(a)}(u))}function yc(e,t,n){for(var r in t)xl(t[r])||fc(r,n)||(e[r]=t[r])}function gc(e,t,n){var r={},o=function(e,t,n){var r={};return yc(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return je.useMemo(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};hc(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Aa(Aa({},e.vars),o)},[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var bc=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function xc(e){return bc.has(e)}var Ec,wc=function(e){return!xc(e)};try{(Ec=require("@emotion/is-prop-valid").default)&&(wc=function(e){return e.startsWith("on")?!xc(e):Ec(e)})}catch(e){}function kc(e,t,n){return"string"==typeof e?e:Fi.transform(t+n*e)}var Sc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cc={offset:"strokeDashoffset",array:"strokeDasharray"};function Oc(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;hc(e,Ia(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,v=e.dimensions;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=kc(t,e.x,e.width),o=kc(n,e.y,e.height);return"".concat(r," ").concat(o)}(v,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Sc:Cc;e[a.offset]=Fi.transform(-r);var i=Fi.transform(t),s=Fi.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var _c=function(){return Aa(Aa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Nc(e,t){var n=je.useMemo(function(){var n=_c();return Oc(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Aa(Aa({},n.attrs),{style:Aa({},n.style)})},[t]);if(e.style){var r={};yc(r,e.style,e),n.style=Aa(Aa({},r),n.style)}return n}function Rc(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,l=(dc(t)?Nc:gc)(n,s,i),u=function(e,t,n){var r={};for(var o in e)(wc(o)||!0===n&&xc(o)||!t&&!xc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=Aa(Aa(Aa({},u),l),{ref:o});return r&&(c["data-projection-id"]=r),je.createElement(t,c)}}var Ac=/([a-z])([A-Z])/g,Ic=function(e){return e.replace(Ac,"$1-$2").toLowerCase()};function Pc(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Tc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Lc(e,t,n,r){for(var o in Pc(e,t,void 0,r),t.attrs)e.setAttribute(Tc.has(o)?o:Ic(o),t.attrs[o])}function Mc(e){var t=e.style,n={};for(var r in t)(xl(t[r])||fc(r,e))&&(n[r]=t[r]);return n}function jc(e){var t=Mc(e);for(var n in e)xl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Dc(e){return"object"==typeof e&&"function"==typeof e.start}function Vc(e,t,n,r){var o=e.createRenderState,a=e.onMount,i={latestValues:Fc(t,n,r,e.scrapeMotionValuesFromProps),renderState:o()};return a&&(i.mount=function(e){return a(t,e,i)}),i}var Bc=function(e){return function(t,n){var r=je.useContext(Ua),o=je.useContext($a);return n?Vc(e,t,r,o):ri(function(){return Vc(e,t,r,o)})}};function Fc(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bu(i[s]);var l=e.initial,u=e.animate,c=ei(e),d=ti(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Dc(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=Ja(e,t);if(n){var r=n.transitionEnd,a=Ia(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}}),o}var zc,Wc={useVisualState:Bc({scrapeMotionValuesFromProps:jc,createRenderState:_c,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Oc(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Lc(t,r)}})},Uc={useVisualState:Bc({scrapeMotionValuesFromProps:Mc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function $c(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Hc(e,t,n,r){je.useEffect(function(){var o=e.current;if(n&&o)return $c(o,t,n,r)},[e,t,n,r])}function qc(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Yc(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(zc||(zc={}));var Zc={pageX:0,pageY:0};function Gc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Zc;return{x:n[t+"X"],y:n[t+"Y"]}}function Xc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Kc(e,t){return void 0===t&&(t="page"),{point:Yc(e)?Gc(e,t):Xc(e,t)}}var Jc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Kc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Qc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ed={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function td(e){return Ha&&null===window.onpointerdown?e:Ha&&null===window.ontouchstart?ed[e]:Ha&&null===window.onmousedown?Qc[e]:e}function nd(e,t,n,r){return $c(e,td(t),Jc(n,"pointerdown"===t),r)}function rd(e,t,n,r){return Hc(e,td(t),n&&Jc(n,"pointerdown"===t),r)}function od(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ad=od("dragHorizontal"),id=od("dragVertical");function sd(e){var t=!1;if("y"===e)t=id();else if("x"===e)t=ad();else{var n=ad(),r=id();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function ld(){var e=sd(!0);return!e||(e(),!1)}function ud(e,t,n){return function(r,o){var a;qc(r)&&!ld()&&(null===(a=e.animationState)||void 0===a||a.setActive(zc.Hover,t),null==n||n(r,o))}}var cd=function(e,t){return!!t&&(e===t||cd(e,t.parentElement))};function dd(e){return je.useEffect(function(){return function(){return e()}},[])}var fd=new Set;function pd(e,t,n){e||fd.has(t)||(console.warn(t),n&&console.warn(n),fd.add(t))}var md=new WeakMap,vd=new WeakMap,hd=function(e){var t;null===(t=md.get(e.target))||void 0===t||t(e)},yd=function(e){e.forEach(hd)},gd={some:0,all:1};function bd(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,l=r.once;je.useEffect(function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:gd[s]};return function(e,r,o){var a=function(e){var t=e.root,n=Ia(e,["root"]),r=t||document;vd.has(r)||vd.set(r,{});var o=vd.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(yd,Aa({root:t},n))),o[a]}(r);return md.set(e,function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(zc.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}),a.observe(e),function(){md.delete(e),a.unobserve(e)}}(n.getInstance(),r)}},[e,o,a,s])}function xd(e,t,n,r){var o=r.fallback,a=void 0===o||o;je.useEffect(function(){e&&a&&("production"!==La&&pd(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(zc.InView,!0)}))},[e])}var Ed=function(e){return function(t){return e(t),null}},wd={inView:Ed(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=je.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?xd:bd)(l,s.current,t,i)}),tap:Ed(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.visualElement,a=t||n||r||e.whileTap,i=je.useRef(!1),s=je.useRef(null),l={passive:!(n||t||r||p)};function u(){var e;null===(e=s.current)||void 0===e||e.call(s),s.current=null}function c(){var e;return u(),i.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(zc.Tap,!1),!ld()}function d(e,n){c()&&(cd(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){c()&&(null==r||r(e,t))}function p(e,t){var r;u(),i.current||(i.current=!0,s.current=hs(nd(window,"pointerup",d,l),nd(window,"pointercancel",f,l)),null===(r=o.animationState)||void 0===r||r.setActive(zc.Tap,!0),null==n||n(e,t))}rd(o,"pointerdown",a?p:void 0,l),dd(u)}),focus:Ed(function(e){var t=e.whileFocus,n=e.visualElement;Hc(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zc.Focus,!0)}:void 0),Hc(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(zc.Focus,!1)}:void 0)}),hover:Ed(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;rd(o,"pointerenter",t||r?ud(o,!0,t):void 0,{passive:!t}),rd(o,"pointerleave",n||r?ud(o,!1,n):void 0,{passive:!n})})},kd=0,Sd=function(){return kd++},Cd=function(){return ri(Sd)};function Od(){var e=je.useContext($a);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Cd();return je.useEffect(function(){return r(o)},[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function _d(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Nd=function(e){return/^\-?\d*\.?\d+$/.test(e)},Rd=function(e){return/^0[^.\s]+$/.test(e)},Ad=function(e){return function(t){return t.test(e)}},Id=[Li,Fi,Bi,Vi,Wi,zi,{test:function(e){return"auto"===e},parse:function(e){return e}}],Pd=function(e){return Id.find(Ad(e))},Td=Ta(Ta([],Pa(Id),!1),[Ki,ns],!1),Ld=function(e){return Td.find(Ad(e))};function Md(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bl(n))}function jd(e,t){if(t)return(t[e]||t.default||t).from}function Dd(e,t,n){var r;void 0===n&&(n={});var o=Qa(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Vd(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Bd).forEach(function(e,r){i.push(Dd(e,t,Aa(Aa({},a),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(i)}(e,t,(void 0===o?0:o)+r,i.staggerChildren,i.staggerDirection,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Pa("beforeChildren"===u?[s,l]:[l,s],2),d=c[1];return(0,c[0])().then(d)}return Promise.all([s(),l(n.delay)])}function Vd(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Ia(u,["transition","transitionEnd"]);s&&(d=s);var m=[],v=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var h in p){var y=e.getValue(h),g=p[h];if(!(!y||void 0===g||v&&Fd(v,h))){var b=Aa({delay:i},d);e.shouldReduceMotion&&Lu(h)&&(b=Aa(Aa({},b),{type:!1,delay:0}));var x=zl(h,y,g,b);m.push(x)}}return Promise.all(m).then(function(){f&&function(e,t){var n=Qa(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o,i=Ia(r,["transitionEnd","transition"]);for(var s in i=Aa(Aa({},i),a))Md(e,s,jl(i[s]))}(e,f)})}function Bd(e,t){return e.sortNodePosition(t)}function Fd(e,t){var n=e.needsAnimating,r=e.protectedKeys.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}var zd=[zc.Animate,zc.InView,zc.Focus,zc.Hover,zc.Tap,zc.Drag,zc.Exit],Wd=Ta([],Pa(zd),!1).reverse(),Ud=zd.length;function $d(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Hd={animation:Ed(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(e){return function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map(function(t){return Dd(e,t,n)});r=Promise.all(o)}else if("string"==typeof t)r=Dd(e,t,n);else{var a="function"==typeof t?Qa(e,t,n.custom):t;r=Vd(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))}}(e),r=((t={})[zc.Animate]=$d(!0),t[zc.InView]=$d(),t[zc.Hover]=$d(),t[zc.Tap]=$d(),t[zc.Drag]=$d(),t[zc.Focus]=$d(),t[zc.Exit]=$d(),t),o={},a=!0,i=function(t,n){var r=Qa(e,n);if(r){var o=r.transitionEnd,a=Ia(r,["transition","transitionEnd"]);t=Aa(Aa(Aa({},t),a),o)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=Infinity,v=function(n){var o=Wd[n],v=r[o],h=null!==(l=u[o])&&void 0!==l?l:c[o],y=Ka(h),g=o===s?v.isActive:null;!1===g&&(m=n);var b=h===c[o]&&h!==u[o]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=Aa({},p),!v.isActive&&null===g||!h&&!v.prevProp||Dc(h)||"boolean"==typeof h)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Xa(t)&&!_d(t,e)}(v.prevProp,h),E=x||o===s&&v.isActive&&!b&&y||n>m&&y,w=Array.isArray(h)?h:[h],k=w.reduce(i,{});!1===g&&(k={});var S=v.prevResolvedValues,C=void 0===S?{}:S,O=Aa(Aa({},C),k),_=function(e){E=!0,f.delete(e),v.needsAnimating[e]=!0};for(var N in O){var R=k[N],A=C[N];p.hasOwnProperty(N)||(R!==A?Cl(R)&&Cl(A)?!_d(R,A)||x?_(N):v.protectedKeys[N]=!0:void 0!==R?_(N):f.add(N):void 0!==R&&f.has(N)?_(N):v.protectedKeys[N]=!0)}v.prevProp=h,v.prevResolvedValues=k,v.isActive&&(p=Aa(Aa({},p),k)),a&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Ta([],Pa(w.map(function(e){return{animation:e,options:Aa({type:o},t)}})),!1))},h=0;h<Ud;h++)v(h);if(o=Aa({},p),f.size){var y={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)}),d.push({animation:y})}var g=Boolean(d.length);return a&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;var i=s(o,t);for(var l in r)r[l].protectedKeys={};return i},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),Dc(n)&&je.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ed(function(e){var t=e.custom,n=e.visualElement,r=Pa(Od(),2),o=r[0],a=r[1],i=je.useContext($a);je.useEffect(function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(zc.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))},[o])})},qd=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Gd(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ul(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=gi().timestamp;r.history.push(Aa(Aa({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Yd(t,r.transformPagePoint),qc(e)&&0===e.buttons?r.handlePointerUp(e,t):fi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Gd(Yd(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Yc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Yd(Kc(e),this.transformPagePoint),i=a.point,s=gi().timestamp;this.history=[Aa(Aa({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Gd(a,this.history)),this.removeListeners=hs(nd(window,"pointermove",this.handlePointerMove),nd(window,"pointerup",this.handlePointerUp),nd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),pi.update(this.updatePoint)},e}();function Yd(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gd(e,t){var n=e.point;return{point:n,delta:Zd(n,Kd(t)),offset:Zd(n,Xd(t)),velocity:Jd(t,.1)}}function Xd(e){return e[0]}function Kd(e){return e[e.length-1]}function Jd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Kd(e);n>=0&&!(o.timestamp-(r=e[n]).timestamp>El(t));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return Infinity===i.x&&(i.x=0),Infinity===i.y&&(i.y=0),i}function Qd(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ef(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Pa([o,r],2))[0],o=n[1]),{min:r,max:o}}function tf(e,t,n){return{min:nf(e,t),max:nf(e,n)}}function nf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function rf(e){return{x:{min:e.left,max:e.right},y:{min:e.top,max:e.bottom}}}function of(e,t){return rf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var af=new WeakMap,sf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new qd(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Kc(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.onDragStart;(!a||o.dragPropagation||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=sd(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ru(function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Bi.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=du(a)*(parseFloat(o)/100))}n.originPoint[e]=o}),null==i||i(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(zc.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.onDirectionLock,a=r.onDrag;if(r.dragPropagation||n.openGlobalLock){var i=t.offset;if(r.dragDirectionLock&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,i),n.updateAxis("y",t.point,i),n.visualElement.syncRender(),null==a||a(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){this.startAnimation(t.velocity);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(zc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&lf(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?_i(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?_i(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ga(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.bottom;return{x:Qd(e.x,t.left,t.right),y:Qd(e.y,n,r)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=.35),!1===e?e=0:!0===e&&(e=.35),{x:tf(e,"left","right"),y:tf(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ru(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ga(t))return!1;var r=t.current;Va(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=of(e,n),o=t.scroll;return o&&(iu(r.x,o.x),iu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ef(e.x,t.x),y:ef(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=rf(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ru(function(n){var l;if(lf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=Aa(Aa({type:"inertia",velocity:o?e[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,d)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return zl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ru(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ru(function(n){if(lf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n];o.set(e[n]-_i(a.min,a.max,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=this.visualElement.projection;if(Ga(n.dragConstraints)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Ru(function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(r=t.constraints[e],o=.5,i=du(n={min:u,max:u}),(s=du(r))>i?o=Oi(r.min,r.max-i,n.min):i>s&&(o=Oi(n.min,n.max-s,r.min)),bi(0,1,o))}});var i=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ru(function(e){if(lf(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e];n.set(_i(o.min,o.max,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;af.set(this.visualElement,this);var n=nd(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.dragListener;n.drag&&(void 0===r||r)&&t.start(e)}),r=function(){Ga(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=$c(window,"resize",function(){return t.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(e){var n=e.delta;t.isDragging&&e.hasLayoutChanged&&(Ru(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?.35:u,d=e.dragMomentum,f=void 0===d||d;return Aa(Aa({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function lf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var uf={pan:Ed(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=je.useRef(null),l=je.useContext(Wa).transformPagePoint,u={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};je.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),rd(a,"pointerdown",i&&function(e){s.current=new qd(e,u,{transformPagePoint:l})}),dd(function(){return s.current&&s.current.end()})}),drag:Ed(function(e){var t=e.dragControls,n=e.visualElement,r=ri(function(){return new sf(n)});je.useEffect(function(){return t&&t.subscribe(r)},[r,t]),je.useEffect(function(){return r.addListeners()},[r])})},cf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],df=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,v=e.blockInitialAnimation,h=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,x=!1,E=h.latestValues,w=h.renderState,k=function(){var e=cf.map(function(){return new yl}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){cf.forEach(function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))})}};return e.forEach(function(e,t){n["on"+cf[t]]=function(t){return e.add(t)},n["notify"+cf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ta([],Pa(t),!1))}}),n}(),S=new Map,C=new Map,O={},_=Aa({},E);function N(){g&&x&&(R(),s(g,w,p.style,D.projection))}function R(){r(D,w,E,t,p)}function A(){k.notifyUpdate(E)}function I(e,t){var n=t.onChange(function(t){E[e]=t,p.onUpdate&&fi.update(A,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var P=d(p);for(var T in P){var L=P[T];void 0!==E[T]&&xl(L)&&L.set(E[T],!1)}var M=ei(p),j=ti(p),D=Aa(Aa({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(e){x=!0,g=D.current=e,D.projection&&D.projection.mount(e),j&&f&&!M&&(b=null==f?void 0:f.addVariantChild(D)),S.forEach(function(e,t){return I(t,e)}),null==f||f.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),pi.update(A),pi.render(N),C.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(D),k.clearAllListeners(),g=void 0,x=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?D:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(D,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),S.set(e,t),E[e]=t.get(),I(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete E[e],u(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=bl(t),D.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!xl(t))return t}return _[e]}},k),{build:function(){return R(),w},scheduleRender:function(){fi.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,k.updatePropListeners(e),O=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(xl(a))e.addValue(o,a),"development"===process.env.NODE_ENV&&pd("6.3.16"===a.version,"Attempting to mix Framer Motion versions ".concat(a.version," with 6.3.16 may not work as expected."));else if(xl(i))e.addValue(o,bl(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,bl(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(D,d(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!M){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<pf;r++){var o=ff[r],a=p[o];(Ka(a)||!1===a)&&(n[o]=a)}return n}});return D}},ff=Ta(["initial"],Pa(zd),!1),pf=ff.length;function mf(e){return"string"==typeof e&&e.startsWith("var(--")}var vf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hf(e,t,n){void 0===n&&(n=1),Va(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Pa(function(e){var t=vf.exec(e);if(!t)return[,];var n=Pa(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():mf(a)?hf(a,t,n+1):a}}var yf,gf=new Set(["width","height","top","left","right","bottom","x","y"]),bf=function(e){return gf.has(e)},xf=function(e,t){e.set(t,!1),e.set(t)},Ef=function(e){return e===Li||e===Fi};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(yf||(yf={}));var wf=function(e,t){return parseFloat(e.split(", ")[t])},kf=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return wf(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?wf(i[1],e):0}},Sf=new Set(["x","y","z"]),Cf=Iu.filter(function(e){return!Sf.has(e)}),Of={width:function(e,t){var n=e.x,r=t.paddingLeft,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(void 0===r?"0":r)-parseFloat(a)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:kf(4,13),y:kf(5,14)},_f={treeType:"dom",readValueFromInstance:function(e,t){if(Lu(t)){var n=Ll(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(mc(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return of(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.style;delete t.vars[e],delete n[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=Ia(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=jd(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(Nd(f)||Rd(f))?f=parseFloat(f):!Ld(f)&&ns.test(d)&&(f=Ml(c,d)),e.addValue(c,bl(f)),null!==(a=(i=n)[c])&&void 0!==a||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=Ia(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Aa({},n)),e.forEachValue(function(e){var t=e.get();if(mf(t)){var n=hf(t,a);n&&e.set(n)}}),o){var s=o[i];if(mf(s)){var l=hf(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(bf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Aa({},t),r=Aa({},r);var o=Object.keys(t).filter(bf),a=[],i=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=Pd(c),f=t[o];if(Cl(f)){var p=f.length,m=null===f[0]?1:0;d=Pd(c=f[m]);for(var v=m;v<p;v++)u?Va(Pd(f[v])===u,"All keyframes must be of the same type"):(u=Pd(f[v]),Va(u===d||Ef(d)&&Ef(u),"Keyframes must be of the same dimension as the current value"))}else u=Pd(f);if(d!==u)if(Ef(d)&&Ef(u)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===Fi&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(i||(a=function(e){var t=[];return Cf.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],xf(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i={};"none"===a.display&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){i[e]=Of[e](r,a)}),t.syncRender();var s=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);xf(r,i[n]),e[n]=Of[n](s,a)}),e}(t,e,s);return a.length&&a.forEach(function(t){var n=Pa(t,2),r=n[1];e.getValue(n[0]).set(r)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return Aa({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Mc,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),hc(t,n,r,o.transformTemplate)},render:Pc},Nf=df(_f),Rf=df(Aa(Aa({},_f),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Lu(t)?(null===(n=Ll(t))||void 0===n?void 0:n.default)||0:(t=Tc.has(t)?t:Ic(t),e.getAttribute(t))},scrapeMotionValuesFromProps:jc,build:function(e,t,n,r,o){Oc(t,n,r,o.transformTemplate)},render:Lc})),Af=function(e,t){return dc(e)?Rf(t,{enableHardwareAcceleration:!1}):Nf(t,{enableHardwareAcceleration:!0})};function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Pf={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Fi.test(e))return e;e=parseFloat(e)}var n=If(e,t.target.x),r=If(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Tf={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(vf,function(e){return i.push(e),"_$css"}));var s=ns.parse(e);if(s.length>5)return o;var l=ns.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=_i(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var m=0;p=p.replace("_$css",function(){var e=i[m];return m++,e})}return p}},Lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.layoutGroup,r=t.switchLayoutGroup,o=t.layoutId,a=t.visualElement.projection;Object.assign(_u,Mf),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==r?void 0:r.register)&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions(Aa(Aa({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),Fu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.drag,a=n.isPresent,i=n.visualElement.projection;return i?(i.isPresent=a,o||e.layoutDependency!==r||void 0===r?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||fi.postRender(function(){var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.layoutGroup,n=e.switchLayoutGroup,r=e.visualElement.projection;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(je.Component),Mf={borderRadius:Aa(Aa({},Pf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pf,borderTopRightRadius:Pf,borderBottomLeftRadius:Pf,borderBottomRightRadius:Pf,boxShadow:Tf},jf={measureLayout:function(e){var t=Pa(Od(),2),n=t[0],r=t[1],o=je.useContext(ic);return je.createElement(Lf,Aa({},e,{layoutGroup:o,switchLayoutGroup:je.useContext(sc),isPresent:n,safeToRemove:r}))}},Df=zu({attachResizeListener:function(e,t){return $c(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Vf={current:void 0},Bf=zu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Vf.current){var e=new Df(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Vf.current=e}return Vf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ff=Aa(Aa(Aa(Aa({},Hd),wd),uf),jf),zf=/*@__PURE__*/uc(function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=dc(e)?Wc:Uc;return Aa(Aa({},s),{preloadedFeatures:n,useRender:Rc(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Ff,Af,Bf)});function Wf(){var e=je.useRef(!1);return qa(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Uf=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=ri($f),l=Cd(),u=je.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}},i?void 0:[r]);return je.useMemo(function(){s.forEach(function(e,t){return s.set(t,!1)})},[r]),je.useEffect(function(){!r&&!s.size&&(null==o||o())},[r]),je.createElement($a.Provider,{value:u},t)};function $f(){return new Map}var Hf=function(e){return e.key||""},qf=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,u=Pa(function(){var e=Wf(),t=Pa(je.useState(0),2),n=t[0],r=t[1],o=je.useCallback(function(){e.current&&r(n+1)},[n]);return[je.useCallback(function(){return fi.postRender(o)},[o]),n]}(),1),c=u[0],d=je.useContext(ic).forceRender;d&&(c=d);var f=Wf(),p=function(e){var t=[];return je.Children.forEach(e,function(e){je.isValidElement(e)&&t.push(e)}),t}(t),m=p,v=new Set,h=je.useRef(m),y=je.useRef(new Map).current,g=je.useRef(!0);if(qa(function(){g.current=!1,function(e,t){e.forEach(function(e){var n=Hf(e);t.set(n,e)})}(p,y),h.current=m}),dd(function(){g.current=!0,y.clear(),v.clear()}),g.current)return je.createElement(je.Fragment,null,m.map(function(e){return je.createElement(Uf,{key:Hf(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)}));m=Ta([],Pa(m),!1);for(var b=h.current.map(Hf),x=p.map(Hf),E=b.length,w=0;w<E;w++){var k=b[w];-1===x.indexOf(k)&&v.add(k)}return i&&v.size&&(m=[]),v.forEach(function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=b.indexOf(e);m.splice(r,0,je.createElement(Uf,{key:Hf(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=h.current.findIndex(function(t){return t.key===e});if(h.current.splice(t,1),!v.size){if(h.current=p,!1===f.current)return;c(),a&&a()}},custom:n,presenceAffectsLayout:l},t))}}}),m=m.map(function(e){return v.has(e.key)?e:je.createElement(Uf,{key:Hf(e),isPresent:!0,presenceAffectsLayout:l},e)}),"production"!==La&&i&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),je.createElement(je.Fragment,null,v.size?m:m.map(function(e){return je.cloneElement(e)}))};function Yf(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}var Gf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Xf={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},Kf={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},Jf={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},Qf={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function ep(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return Kf;case"left":return Xf;case"bottom":return Qf;case"top":return Jf}}var tp={enter:{duration:.2,ease:Gf.easeOut},exit:{duration:.1,ease:Gf.easeIn}},np=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.enter})},rp=function(e,t){return Zf({},e,{delay:h(t)?t:null==t?void 0:t.exit})},op=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],ap={exit:{height:{duration:.2,ease:Gf.ease},opacity:{duration:.3,ease:Gf.ease}},enter:{height:{duration:.3,ease:Gf.ease},opacity:{duration:.4,ease:Gf.ease}}},ip={exit:function(e){var t,n,r=e.startingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return Zf({},e.animateOpacity&&{opacity:(n=r,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:r,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:rp(ap.exit,i)})},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return Zf({},e.animateOpacity&&{opacity:1},{height:e.endingHeight,transitionEnd:null==r?void 0:r.enter,transition:null!=(t=null==n?void 0:n.enter)?t:np(ap.enter,e.delay)})}},sp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.in,r=e.unmountOnExit,o=e.animateOpacity,a=void 0===o||o,i=e.startingHeight,s=void 0===i?0:i,l=e.endingHeight,u=void 0===l?"auto":l,c=e.style,d=e.className,f=e.transition,p=e.transitionEnd,v=Yf(e,op),h=je.useState(!1),y=h[0],g=h[1];je.useEffect(function(){var e=setTimeout(function(){g(!0)});return function(){return clearTimeout(e)}},[]),C({condition:Boolean(s>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var b=parseFloat(s.toString())>0,x={startingHeight:s,endingHeight:u,animateOpacity:a,transition:y?f:{enter:{duration:0}},transitionEnd:m(p,{exit:r?void 0:{display:b?"block":"none"}})},E=n||r?"enter":"exit";/*#__PURE__*/
|
8
|
+
return je.createElement(qf,{initial:!1,custom:x},(!r||n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t},v,{className:S("chakra-collapse",d),style:Zf({overflow:"hidden",display:"block"},c),custom:x,variants:ip,initial:!!r&&"exit",animate:E,exit:"exit"})))});d&&(sp.displayName="Collapse");var lp=["unmountOnExit","in","className","transition","transitionEnd","delay"],up={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:np(tp.enter,n.delay),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:rp(tp.exit,n.delay),transitionEnd:null==o?void 0:o.exit}}},cp={initial:"exit",animate:"enter",exit:"exit",variants:up},dp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.className,a=e.transition,i=e.transitionEnd,s=e.delay,l=Yf(e,lp),u=r||n?"enter":"exit",c={transition:a,transitionEnd:i,delay:s};/*#__PURE__*/
|
9
|
+
return je.createElement(qf,{custom:c},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-fade",o),custom:c},cp,{animate:u},l)))});d&&(dp.displayName="Fade");var fp=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],pp={exit:function(e){var t,n=e.initialScale,r=e.transition,o=e.transitionEnd,a=e.delay;return Zf({opacity:0},e.reverse?{scale:n,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:Zf({scale:n},null==o?void 0:o.exit)},{transition:null!=(t=null==r?void 0:r.exit)?t:rp(tp.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:np(tp.enter,e.delay),transitionEnd:null==n?void 0:n.enter}}},mp={initial:"exit",animate:"enter",exit:"exit",variants:pp},vp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.initialScale,s=void 0===i?.95:i,l=e.className,u=e.transition,c=e.transitionEnd,d=e.delay,f=Yf(e,fp),p=r||n?"enter":"exit",m={initialScale:s,reverse:a,transition:u,transitionEnd:c,delay:d};/*#__PURE__*/
|
10
|
+
return je.createElement(qf,{custom:m},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",l)},mp,{animate:p,custom:m},f)))});d&&(vp.displayName="ScaleFade");var hp=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],yp={exit:{duration:.15,ease:Gf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},gp={exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return Zf({},ep({direction:e.direction}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:rp(yp.exit,o),transitionEnd:null==r?void 0:r.exit})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return Zf({},ep({direction:e.direction}).enter,{transition:null!=(t=null==r?void 0:r.enter)?t:np(yp.enter,o),transitionEnd:null==n?void 0:n.enter})}},bp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.direction,r=void 0===n?"right":n,o=e.style,a=e.unmountOnExit,i=e.in,s=e.className,l=e.transition,u=e.transitionEnd,c=e.delay,d=Yf(e,hp),f=ep({direction:r}),p=Object.assign({position:"fixed"},f.position,o),m=i||a?"enter":"exit",v={transitionEnd:u,transition:l,direction:r,delay:c};/*#__PURE__*/
|
11
|
+
return je.createElement(qf,{custom:v},(!a||i&&a)&&/*#__PURE__*/je.createElement(zf.div,Zf({},d,{ref:t,initial:"exit",className:S("chakra-slide",s),animate:m,exit:"exit",custom:v,variants:gp,style:p})))});d&&(bp.displayName="Slide");var xp=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],Ep={initial:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:0,x:e.offsetX,y:e.offsetY,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay),transitionEnd:null==r?void 0:r.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:np(tp.enter,e.delay),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.reverse,a={x:e.offsetX,y:e.offsetY};return Zf({opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:rp(tp.exit,e.delay)},o?Zf({},a,{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:Zf({},a,null==r?void 0:r.exit)})}},wp={initial:"initial",animate:"enter",exit:"exit",variants:Ep},kp=/*#__PURE__*/je.forwardRef(function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,u=e.offsetY,c=void 0===u?8:u,d=e.transition,f=e.transitionEnd,p=e.delay,m=Yf(e,xp),v=r||n?"enter":"exit",h={offsetX:l,offsetY:c,reverse:a,transition:d,transitionEnd:f,delay:p};/*#__PURE__*/
|
12
|
+
return je.createElement(qf,{custom:h},(!n||r&&n)&&/*#__PURE__*/je.createElement(zf.div,Zf({ref:t,className:S("chakra-offset-slide",i),custom:h},wp,{animate:v},m)))});function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function Cp(e){return e.sort(function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Op(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function _p(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}d&&(kp.displayName="SlideFade");var Np="undefined"!=typeof window?je.useLayoutEffect:je.useEffect,Rp=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=Cp(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach(function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort(function(e,t){return e.index-t.index})},this.enabledValues=function(){return e.values().filter(function(e){return!e.disabled})},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex(function(e){return e.node.isSameNode(t)})},this.next=function(t,n){void 0===n&&(n=!0);var r=Op(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=Op(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=_p(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=_p(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=Cp(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var o=Sp({node:t,index:-1},n);e.descendants.set(t,o),e.assignIndex(r)}}},Ap=Jn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),Ip=Ap[0],Pp=Ap[1];function Tp(){return[Ip,function(){return Pp()},function(){return e=je.useRef(new Rp),Np(function(){return function(){return e.current.destroy()}}),e.current;var e},function(e){return function(e){var t=Pp(),n=je.useState(-1),r=n[0],o=n[1],a=je.useRef(null);Np(function(){return function(){a.current&&t.unregister(a.current)}},[]),Np(function(){if(a.current){var e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)}});var i=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(a.current),register:Kn(i,a)}}(e)}]}function Lp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}var jp=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Dp=Jn({strict:!1,name:"ButtonGroupContext"}),Vp=Dp[0],Bp=Dp[1];d&&(/*#__PURE__*/ua(function(e,t){var n=e.size,r=e.colorScheme,o=e.variant,a=e.className,i=e.spacing,s=void 0===i?"0.5rem":i,l=e.isAttached,u=e.isDisabled,c=Lp(e,jp),d=S("chakra-button__group",a),f=je.useMemo(function(){return{size:n,colorScheme:r,variant:o,isDisabled:u}},[n,r,o,u]),p={display:"inline-flex"};return p=Mp({},p,l?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:s}}),/*#__PURE__*/je.createElement(Vp,{value:f},/*#__PURE__*/je.createElement(va.div,Mp({ref:t,role:"group",__css:p,className:d,"data-attached":l?"":void 0},c)))}).displayName="ButtonGroup");var Fp=["label","placement","spacing","children","className","__css"],zp=function(e){var t=e.label,n=e.placement,r=e.spacing,o=void 0===r?"0.5rem":r,a=e.children,i=void 0===a?/*#__PURE__*/je.createElement(wa,{color:"currentColor",width:"1em",height:"1em"}):a,s=e.className,l=e.__css,u=Lp(e,Fp),c=S("chakra-button__spinner",s),d="start"===n?"marginEnd":"marginStart",f=je.useMemo(function(){var e;return Mp(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[d]=t?o:0,e.fontSize="1em",e.lineHeight="normal",e),l)},[l,t,d,o]);/*#__PURE__*/
|
13
|
+
return je.createElement(va.div,Mp({className:c},u,{__css:f}),i)};d&&(zp.displayName="ButtonSpinner");var Wp=["children","className"],Up=function(e){var t=e.children,n=e.className,r=Lp(e,Wp),o=/*#__PURE__*/je.isValidElement(t)?/*#__PURE__*/je.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=S("chakra-button__icon",n);/*#__PURE__*/
|
14
|
+
return je.createElement(va.span,Mp({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:a}),o)};d&&(Up.displayName="ButtonIcon");var $p=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Hp=/*#__PURE__*/ua(function(e,t){var n,r,o,a,i=Bp(),s=fa("Button",Mp({},i,e)),l=ta(e),u=l.isDisabled,c=void 0===u?null==i?void 0:i.isDisabled:u,d=l.isLoading,f=l.isActive,p=l.children,v=l.leftIcon,h=l.rightIcon,y=l.loadingText,g=l.iconSpacing,b=void 0===g?"0.5rem":g,x=l.type,E=l.spinner,w=l.spinnerPlacement,k=void 0===w?"start":w,C=l.className,_=l.as,N=Lp(l,$p),R=je.useMemo(function(){var e,t=m({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return Mp({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},s,!!i&&{_focus:t})},[s,i]),A=(r=(n=je.useState(!_))[0],o=n[1],a=je.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:a,type:r?"button":void 0}),I=A.type,P={rightIcon:h,leftIcon:v,iconSpacing:b,children:p};/*#__PURE__*/
|
15
|
+
return je.createElement(va.button,Mp({disabled:c||d,ref:dr(t,A.ref),as:_,type:null!=x?x:I,"data-active":O(f),"data-loading":O(d),__css:R,className:S("chakra-button",C)},N),d&&"start"===k&&/*#__PURE__*/je.createElement(zp,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:b},E),d?y||/*#__PURE__*/je.createElement(va.span,{opacity:0},/*#__PURE__*/je.createElement(qp,P)):/*#__PURE__*/je.createElement(qp,P),d&&"end"===k&&/*#__PURE__*/je.createElement(zp,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:b},E))});function qp(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,o=e.iconSpacing;/*#__PURE__*/
|
16
|
+
return je.createElement(je.Fragment,null,t&&/*#__PURE__*/je.createElement(Up,{marginEnd:o},t),r,n&&/*#__PURE__*/je.createElement(Up,{marginStart:o},n))}d&&(Hp.displayName="Button");var Yp=["icon","children","isRound","aria-label"],Zp=/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.children,o=e.isRound,a=e["aria-label"],i=Lp(e,Yp),s=n||r,l=/*#__PURE__*/je.isValidElement(s)?/*#__PURE__*/je.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
17
|
+
return je.createElement(Hp,Mp({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a},i),l)});function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gp.apply(this,arguments)}function Xp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Zp.displayName="IconButton");var Kp=["id","isRequired","isInvalid","isDisabled","isReadOnly"],Jp=["getRootProps","htmlProps"],Qp=ea("FormControl"),em=Qp[0],tm=Qp[1],nm=tm,rm=Jn({strict:!1,name:"FormControlContext"}),om=rm[0],am=rm[1],im=/*#__PURE__*/ua(function(e,t){var n=pa("Form",e),r=function(e){var t=e.id,n=e.isRequired,r=e.isInvalid,o=e.isDisabled,a=e.isReadOnly,i=Xp(e,Kp),s=sr(),l=t||"field-"+s,u=l+"-label",c=l+"-feedback",d=l+"-helptext",f=je.useState(!1),p=f[0],m=f[1],v=je.useState(!1),h=v[0],y=v[1],g=rr(),b=g[0],x=g[1],E=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({id:d},e,{ref:Kn(t,function(e){e&&y(!0)})})},[d]),w=je.useCallback(function(e,t){var n,i;return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,{ref:t,"data-focus":O(b),"data-disabled":O(o),"data-invalid":O(r),"data-readonly":O(a),id:null!=(n=e.id)?n:u,htmlFor:null!=(i=e.htmlFor)?i:l})},[l,o,b,r,a,u]),k=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({id:c},e,{ref:Kn(t,function(e){e&&m(!0)}),"aria-live":"polite"})},[c]),S=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,i,{ref:t,role:"group"})},[i]),C=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Gp({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})},[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:x.on,onBlur:x.off,hasFeedbackText:p,setHasFeedbackText:m,hasHelpText:h,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:i,getHelpTextProps:E,getErrorMessageProps:k,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:C}}(ta(e)),o=r.getRootProps,a=Xp(r,Jp),i=S("chakra-form-control",e.className);/*#__PURE__*/
|
18
|
+
return je.createElement(om,{value:a},/*#__PURE__*/je.createElement(em,{value:n},/*#__PURE__*/je.createElement(va.div,Gp({},o({},t),{className:i,__css:n.container}))))});d&&(im.displayName="FormControl");var sm=/*#__PURE__*/ua(function(e,t){var n=am(),r=tm(),o=S("chakra-form__helper-text",e.className);/*#__PURE__*/
|
19
|
+
return je.createElement(va.div,Gp({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:o}))});d&&(sm.displayName="FormHelperText");var lm=["isDisabled","isInvalid","isReadOnly","isRequired"],um=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function cm(e){var t=dm(e),n=t.isDisabled,r=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return Gp({},Xp(t,lm),{disabled:n,readOnly:o,required:a,"aria-invalid":_(r),"aria-required":_(a),"aria-readonly":_(o)})}function dm(e){var t,n,r,o=am(),i=e.id,s=e.disabled,l=e.readOnly,u=e.required,c=e.isRequired,d=e.isInvalid,f=e.isReadOnly,p=e.isDisabled,m=e.onFocus,v=e.onBlur,h=Xp(e,um),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&y.push(o.feedbackId),null!=o&&o.hasHelpText&&y.push(o.helpTextId),Gp({},h,{"aria-describedby":y.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:p)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:f)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=u?u:c)?r:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:a(null==o?void 0:o.onFocus,m),onBlur:a(null==o?void 0:o.onBlur,v)})}var fm=ea("FormError"),pm=fm[0],mm=fm[1],vm=/*#__PURE__*/ua(function(e,t){var n=pa("FormError",e),r=ta(e),o=am();return null!=o&&o.isInvalid?/*#__PURE__*/je.createElement(pm,{value:n},/*#__PURE__*/je.createElement(va.div,Gp({},null==o?void 0:o.getErrorMessageProps(r,t),{className:S("chakra-form__error-message",e.className),__css:Gp({display:"flex",alignItems:"center"},n.text)}))):null});d&&(vm.displayName="FormErrorMessage"),d&&(/*#__PURE__*/ua(function(e,t){var n=mm(),r=am();if(null==r||!r.isInvalid)return null;var o=S("chakra-form__error-icon",e.className);/*#__PURE__*/
|
20
|
+
return je.createElement(_a,Gp({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:o}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}).displayName="FormErrorIcon");var hm=["className","children","requiredIndicator","optionalIndicator"],ym=/*#__PURE__*/ua(function(e,t){var n,r=fa("FormLabel",e),o=ta(e),a=o.children,i=o.requiredIndicator,s=void 0===i?/*#__PURE__*/je.createElement(gm,null):i,l=o.optionalIndicator,u=void 0===l?null:l,c=Xp(o,hm),d=am(),f=null!=(n=null==d?void 0:d.getLabelProps(c,t))?n:Gp({ref:t},c);/*#__PURE__*/
|
21
|
+
return je.createElement(va.label,Gp({},f,{className:S("chakra-form__label",o.className),__css:Gp({display:"block",textAlign:"start"},r)}),a,null!=d&&d.isRequired?s:u)});d&&(ym.displayName="FormLabel");var gm=/*#__PURE__*/ua(function(e,t){var n=am(),r=nm();if(null==n||!n.isRequired)return null;var o=S("chakra-form__required-indicator",e.className);/*#__PURE__*/
|
22
22
|
return je.createElement(va.span,Gp({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:o}))});d&&(gm.displayName="RequiredIndicator");var bm=!1,xm=null,Em=!1,wm=/* @__PURE__ */new Set,km="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Sm(e,t){wm.forEach(n=>n(e,t))}function Cm(e){Em=!0,function(e){return!(e.metaKey||!km&&e.altKey||e.ctrlKey)}(e)&&(xm="keyboard",Sm("keyboard",e))}function Om(e){xm="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Em=!0,Sm("pointer",e))}function _m(e){e.target!==window&&e.target!==document&&(Em||(xm="keyboard",Sm("keyboard",e)),Em=!1)}function Nm(){Em=!1}function Rm(){return"pointer"!==xm}function Am(e){!function(){if("undefined"==typeof window||bm)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Em=!0,e.apply(this,t)},document.addEventListener("keydown",Cm,!0),document.addEventListener("keyup",Cm,!0),window.addEventListener("focus",_m,!0),window.addEventListener("blur",Nm,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Om,!0),document.addEventListener("pointermove",Om,!0),document.addEventListener("pointerup",Om,!0)):(document.addEventListener("mousedown",Om,!0),document.addEventListener("mousemove",Om,!0),document.addEventListener("mouseup",Om,!0)),bm=!0}(),e(Rm());const t=()=>e(Rm());return wm.add(t),()=>{wm.delete(t)}}function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(this,arguments)}var Pm=Jn({name:"CheckboxGroupContext",strict:!1})[1];function Tm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var Lm=["isIndeterminate","isChecked"],Mm=function(e){var t=zf;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(va.svg),jm=function(e){/*#__PURE__*/
|
23
23
|
return je.createElement(Mm,Im({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),/*#__PURE__*/je.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},Dm=function(e){/*#__PURE__*/
|
24
24
|
return je.createElement(Mm,Im({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),/*#__PURE__*/je.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},Vm=function(e){/*#__PURE__*/
|
25
25
|
return je.createElement(qf,{initial:!1},e.open&&/*#__PURE__*/je.createElement(zf.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},e.children))},Bm=function(e){var t=e.isIndeterminate,n=e.isChecked,r=Tm(e,Lm);/*#__PURE__*/
|
26
|
-
return je.createElement(Vm,{open:n||t},/*#__PURE__*/je.createElement(t?Dm:jm,r))},Fm=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function zm(e){void 0===e&&(e={});var t=dm(e),n=t.isDisabled,r=t.isReadOnly,o=t.isRequired,s=t.isInvalid,l=t.id,
|
27
|
-
return je.createElement(Hm,Im({__css:r.container,className:S("chakra-checkbox",s)},_()),/*#__PURE__*/je.createElement("input",Im({className:"chakra-checkbox__input"},k(y,t))),/*#__PURE__*/je.createElement($m,Im({__css:r.control,className:"chakra-checkbox__control"},C()),A),l&&/*#__PURE__*/je.createElement(va.span,Im({className:"chakra-checkbox__label"},O(),{__css:Im({marginStart:i},r.label)}),l))});function Ym(e){void 0===e&&(e={});var t=e.precision,n=e.defaultValue,r=e.value,o=e.step,a=void 0===o?1:o,i=e.min,s=void 0===i?P:i,l=e.max,
|
28
|
-
return je.createElement(va.input,Km({size:n},a,{__css:o.field,ref:t,className:i}))});d&&(ev.displayName="Input"),ev.id="Input";var tv=["children","className"],nv=ea("InputGroup"),rv=nv[0],ov=nv[1],av=/*#__PURE__*/
|
26
|
+
return je.createElement(Vm,{open:n||t},/*#__PURE__*/je.createElement(t?Dm:jm,r))},Fm=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function zm(e){void 0===e&&(e={});var t=dm(e),n=t.isDisabled,r=t.isReadOnly,o=t.isRequired,s=t.isInvalid,l=t.id,u=t.onBlur,c=t.onFocus,d=t["aria-describedby"],f=e.defaultChecked,p=e.isChecked,m=e.isFocusable,v=e.onChange,h=e.isIndeterminate,y=e.name,g=e.value,b=e.tabIndex,x=void 0===b?void 0:b,w=e["aria-label"],k=e["aria-labelledby"],S=e["aria-invalid"],C=Tm(e,Fm),_=E(C,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=tr(v),R=tr(u),A=tr(c),I=je.useState(!1),P=I[0],T=I[1],L=rr(),M=L[0],j=L[1],D=rr(),V=D[0],B=D[1],F=rr(),z=F[0],W=F[1];je.useEffect(function(){return Am(T)},[]);var U=je.useRef(null),$=je.useState(!0),H=$[0],q=$[1],Y=je.useState(!!f),Z=Y[1],G=or(p,Y[0]),X=G[0],K=G[1],J=je.useCallback(function(e){r||n?e.preventDefault():(X||Z(K?e.target.checked:!!h||e.target.checked),null==N||N(e))},[r,n,K,X,h,N]);er(function(){U.current&&(U.current.indeterminate=Boolean(h))},[h]),lr(function(){n&&j.off()},[n,j]),er(function(){var e=U.current;null!=e&&e.form&&(e.form.onreset=function(){Z(!!f)})},[]);var Q=n&&!m,ee=je.useCallback(function(e){" "===e.key&&W.on()},[W]),te=je.useCallback(function(e){" "===e.key&&W.off()},[W]);er(function(){U.current&&U.current.checked!==K&&Z(U.current.checked)},[U.current]);var ne=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:t,"data-active":O(z),"data-hover":O(V),"data-checked":O(K),"data-focus":O(M),"data-focus-visible":O(M&&P),"data-indeterminate":O(h),"data-disabled":O(n),"data-invalid":O(s),"data-readonly":O(r),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,function(e){M&&e.preventDefault(),W.on()}),onMouseUp:a(e.onMouseUp,W.off),onMouseEnter:a(e.onMouseEnter,B.on),onMouseLeave:a(e.onMouseLeave,B.off)})},[z,K,n,M,P,V,h,s,r,W,B.off,B.on]),re=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},_,e,{ref:Kn(t,function(e){e&&q("LABEL"===e.tagName)}),onClick:a(e.onClick,function(){var e;H||(null==(e=U.current)||e.click(),i(U.current,{nextTick:!0}))}),"data-disabled":O(n),"data-checked":O(K),"data-invalid":O(s)})},[_,n,K,s,H]),oe=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:Kn(U,t),type:"checkbox",name:y,value:g,id:l,tabIndex:x,onChange:a(e.onChange,J),onBlur:a(e.onBlur,R,j.off),onFocus:a(e.onFocus,A,j.on),onKeyDown:a(e.onKeyDown,ee),onKeyUp:a(e.onKeyUp,te),required:o,checked:K,disabled:Q,readOnly:r,"aria-label":w,"aria-labelledby":k,"aria-invalid":S?Boolean(S):s,"aria-describedby":d,"aria-disabled":n,style:ha})},[y,g,l,J,j.off,j.on,R,A,ee,te,o,K,Q,r,w,k,S,s,d,n,x]),ae=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Im({},e,{ref:t,onMouseDown:a(e.onMouseDown,Wm),onTouchStart:a(e.onTouchStart,Wm),"data-disabled":O(n),"data-checked":O(K),"data-invalid":O(s)})},[K,n,s]);return{state:{isInvalid:s,isFocused:M,isChecked:K,isActive:z,isHovered:V,isIndeterminate:h,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:re,getCheckboxProps:ne,getInputProps:oe,getLabelProps:ae,htmlProps:_}}function Wm(e){e.preventDefault(),e.stopPropagation()}var Um=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],$m=va("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Hm=va("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),qm=/*#__PURE__*/ua(function(e,t){var n=Pm(),r=pa("Checkbox",Im({},n,e)),o=ta(e),a=o.spacing,i=void 0===a?"0.5rem":a,s=o.className,l=o.children,u=o.iconColor,c=o.iconSize,d=o.icon,f=void 0===d?/*#__PURE__*/je.createElement(Bm,null):d,p=o.isChecked,m=o.isDisabled,v=void 0===m?null==n?void 0:n.isDisabled:m,h=o.onChange,y=o.inputProps,g=Tm(o,Um),b=p;null!=n&&n.value&&o.value&&(b=n.value.includes(o.value));var x=h;null!=n&&n.onChange&&o.value&&(x=N(n.onChange,h));var E=zm(Im({},g,{isDisabled:v,isChecked:b,onChange:x})),w=E.state,k=E.getInputProps,C=E.getCheckboxProps,O=E.getLabelProps,_=E.getRootProps,R=je.useMemo(function(){return Im({opacity:w.isChecked||w.isIndeterminate?1:0,transform:w.isChecked||w.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:c,color:u},r.icon)},[u,c,w.isChecked,w.isIndeterminate,r.icon]),A=/*#__PURE__*/je.cloneElement(f,{__css:R,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});/*#__PURE__*/
|
27
|
+
return je.createElement(Hm,Im({__css:r.container,className:S("chakra-checkbox",s)},_()),/*#__PURE__*/je.createElement("input",Im({className:"chakra-checkbox__input"},k(y,t))),/*#__PURE__*/je.createElement($m,Im({__css:r.control,className:"chakra-checkbox__control"},C()),A),l&&/*#__PURE__*/je.createElement(va.span,Im({className:"chakra-checkbox__label"},O(),{__css:Im({marginStart:i},r.label)}),l))});function Ym(e){void 0===e&&(e={});var t=e.precision,n=e.defaultValue,r=e.value,o=e.step,a=void 0===o?1:o,i=e.min,s=void 0===i?P:i,l=e.max,u=void 0===l?T:l,c=e.keepWithinRange,d=void 0===c||c,f=tr(e.onChange),p=je.useState(function(){var e;return null==n?"":null!=(e=Xm(n,a,t))?e:""}),m=p[1],v=or(r,p[0]),h=v[0],y=v[1],g=Gm(Zm(y),a),b=null!=t?t:g,x=je.useCallback(function(e){e!==y&&(h||m(e.toString()),null==f||f(e.toString(),Zm(e)))},[f,h,y]),E=je.useCallback(function(e){var t=e;return d&&(t=R(t,s,u)),A(t,b)},[b,d,u,s]),w=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===y?Zm(e):Zm(y)+e,t=E(t),x(t)},[E,a,x,y]),k=je.useCallback(function(e){var t;void 0===e&&(e=a),t=""===y?Zm(-e):Zm(y)-e,t=E(t),x(t)},[E,a,x,y]),S=je.useCallback(function(){var e,r;e=null==n?"":null!=(r=Xm(n,a,t))?r:s,x(e)},[n,t,a,x,s]),C=je.useCallback(function(e){var t,n=null!=(t=Xm(e,a,b))?t:s;x(n)},[b,a,x,s]),O=Zm(y);return{isOutOfRange:O>u||O<s,isAtMax:O===u,isAtMin:O===s,precision:b,value:y,valueAsNumber:O,update:x,reset:S,increment:w,decrement:k,clamp:E,cast:C,setValue:m}}function Zm(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Gm(e,t){return Math.max(I(t),I(e))}function Xm(e,t,n){var r=Zm(e);if(!Number.isNaN(r)){var o=Gm(r,t);return A(r,null!=n?n:o)}}function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}function Jm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(qm.displayName="Checkbox");var Qm=["htmlSize"],ev=/*#__PURE__*/ua(function(e,t){var n=e.htmlSize,r=Jm(e,Qm),o=pa("Input",r),a=cm(ta(r)),i=S("chakra-input",e.className);/*#__PURE__*/
|
28
|
+
return je.createElement(va.input,Km({size:n},a,{__css:o.field,ref:t,className:i}))});d&&(ev.displayName="Input"),ev.id="Input";var tv=["children","className"],nv=ea("InputGroup"),rv=nv[0],ov=nv[1],av=/*#__PURE__*/ua(function(e,t){var n=pa("Input",e),r=ta(e),o=r.children,a=r.className,i=Jm(r,tv),s=S("chakra-input__group",a),l={},u=Qn(o),c=n.field;u.forEach(function(e){var t,r;n&&(c&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(r=c.height)?r:c.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))});var d=u.map(function(t){var n,r,o=w({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});/*#__PURE__*/
|
29
29
|
return je.cloneElement(t,"Input"!==t.type.id?o:Object.assign(o,l,t.props))});/*#__PURE__*/
|
30
|
-
return je.createElement(va.div,Km({className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},i),/*#__PURE__*/je.createElement(rv,{value:n},d))});d&&(av.displayName="InputGroup");var iv=["placement"],sv={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},lv=va("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),
|
31
|
-
return je.createElement(lv,Km({ref:t},a,{__css:Km({},s.addon,i)}))});d&&(
|
32
|
-
return je.createElement(
|
33
|
-
return je.createElement(
|
34
|
-
return je.createElement(vv,Km({ref:t,__css:
|
35
|
-
return je.createElement(hv,Km({ref:t,placement:"left",className:o},r))});yv.id="InputLeftElement",d&&(yv.displayName="InputLeftElement");var gv=/*#__PURE__*/
|
36
|
-
return je.createElement(hv,Km({ref:t,placement:"right",className:o},r))});function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}function xv(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}gv.id="InputRightElement",d&&(gv.displayName="InputRightElement");var Ev=["ratio","children","className"],wv=/*#__PURE__*/
|
37
|
-
return je.createElement(va.div,bv({ref:t,position:"relative",className:l,_before:{height:0,content:'""',display:"block",paddingBottom:L(r,function(e){return 1/e*100+"%"})},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},i),s)});d&&(wv.displayName="AspectRatio");var kv=["className"];d&&(/*#__PURE__*/
|
38
|
-
return je.createElement(va.span,bv({ref:t,className:S("chakra-badge",e.className)},r,{__css:bv({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}).displayName="Badge");var Sv=["size","centerContent"],Cv=["size"],Ov=va("div");d&&(Ov.displayName="Box");var _v=/*#__PURE__*/
|
39
|
-
return je.createElement(Ov,bv({ref:t,boxSize:n,__css:bv({},o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},a))});d&&(_v.displayName="Square"),d&&(/*#__PURE__*/
|
40
|
-
return je.createElement(_v,bv({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Nv=va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d&&(Nv.displayName="Center");var Rv=["className"];d&&(/*#__PURE__*/
|
41
|
-
return je.createElement(va.code,bv({ref:t,className:S("chakra-code",e.className)},r,{__css:bv({display:"inline-block"},n)}))}).displayName="Code");var Av=["className","centerContent"];d&&(/*#__PURE__*/
|
42
|
-
return je.createElement(va.div,bv({ref:t,className:S("chakra-container",r)},a,{__css:bv({},i,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}).displayName="Container");var Iv=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Pv=["className","orientation","__css"];d&&(/*#__PURE__*/
|
43
|
-
return je.createElement(va.hr,bv({ref:t,"aria-orientation":m},h,{__css:bv({},
|
44
|
-
return je.createElement(va.div,bv({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l}},
|
45
|
-
return je.createElement(va.div,bv({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:
|
46
|
-
return je.createElement(va.h2,bv({ref:t,className:S("chakra-heading",e.className)},r,{__css:n}))}).displayName="Heading");var Vv=["className"];d&&(/*#__PURE__*/
|
47
|
-
return je.createElement(va.kbd,bv({ref:t,className:S("chakra-kbd",o)},a,{__css:bv({fontFamily:"mono"},n)}))}).displayName="Kbd");var Bv=["className","isExternal"];d&&(/*#__PURE__*/
|
48
|
-
return je.createElement(va.a,bv({target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:t,className:S("chakra-link",o)},i,{__css:n}))}).displayName="Link");var Fv=["children","styleType","stylePosition","spacing"],zv=["as"],Wv=["as"],Uv=ea("List"),$v=Uv[0],Hv=Uv[1],qv=/*#__PURE__*/
|
49
|
-
return je.createElement($v,{value:r},/*#__PURE__*/je.createElement(va.ul,bv({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:bv({},r.container,f)},
|
50
|
-
return je.createElement(qv,bv({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),d&&(/*#__PURE__*/
|
51
|
-
return je.createElement(qv,bv({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),d&&(/*#__PURE__*/
|
52
|
-
return je.createElement(va.li,bv({ref:t},e,{__css:n.item}))}).displayName="ListItem"),d&&(/*#__PURE__*/
|
53
|
-
return je.createElement(Oa,bv({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var Yv=["columns","spacingX","spacingY","spacing","minChildWidth"],Zv=/*#__PURE__*/
|
54
|
-
return je.createElement(jv,bv({ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:
|
55
|
-
return je.createElement(va.div,bv({className:"chakra-stack__item"},e,{__css:bv({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},Qv=/*#__PURE__*/
|
56
|
-
return je.createElement(va.div,bv({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:h.flexDirection,flexWrap:
|
57
|
-
return je.createElement(Qv,bv({align:"center"},e,{direction:"row",ref:t}))});d&&(eh.displayName="HStack"),d&&(/*#__PURE__*/
|
58
|
-
return je.createElement(Qv,bv({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var th=["className","align","decoration","casing"];d&&(/*#__PURE__*/
|
59
|
-
return je.createElement(va.p,bv({ref:t,className:S("chakra-text",e.className)},o,r,{__css:n}))}).displayName="Text");var nh=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],rh=["className"];function oh(e){return"number"==typeof e?e+"px":e}var ah=/*#__PURE__*/
|
30
|
+
return je.createElement(va.div,Km({className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},i),/*#__PURE__*/je.createElement(rv,{value:n},d))});d&&(av.displayName="InputGroup");var iv=["placement"],sv={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},lv=va("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),uv=/*#__PURE__*/ua(function(e,t){var n,r=e.placement,o=void 0===r?"left":r,a=Jm(e,iv),i=null!=(n=sv[o])?n:{},s=ov();/*#__PURE__*/
|
31
|
+
return je.createElement(lv,Km({ref:t},a,{__css:Km({},s.addon,i)}))});d&&(uv.displayName="InputAddon");var cv=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
|
32
|
+
return je.createElement(uv,Km({ref:t,placement:"left"},e,{className:S("chakra-input__left-addon",e.className)}))});d&&(cv.displayName="InputLeftAddon"),cv.id="InputLeftAddon";var dv=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
|
33
|
+
return je.createElement(uv,Km({ref:t,placement:"right"},e,{className:S("chakra-input__right-addon",e.className)}))});d&&(dv.displayName="InputRightAddon"),dv.id="InputRightAddon";var fv=["placement"],pv=["className"],mv=["className"],vv=va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),hv=/*#__PURE__*/ua(function(e,t){var n,r,o,a=e.placement,i=void 0===a?"left":a,s=Jm(e,fv),l=ov(),u=l.field,c=Km(((o={})["left"===i?"insetStart":"insetEnd"]="0",o.width=null!=(n=null==u?void 0:u.height)?n:null==u?void 0:u.h,o.height=null!=(r=null==u?void 0:u.height)?r:null==u?void 0:u.h,o.fontSize=null==u?void 0:u.fontSize,o),l.element);/*#__PURE__*/
|
34
|
+
return je.createElement(vv,Km({ref:t,__css:c},s))});hv.id="InputElement",d&&(hv.displayName="InputElement");var yv=/*#__PURE__*/ua(function(e,t){var n=e.className,r=Jm(e,pv),o=S("chakra-input__left-element",n);/*#__PURE__*/
|
35
|
+
return je.createElement(hv,Km({ref:t,placement:"left",className:o},r))});yv.id="InputLeftElement",d&&(yv.displayName="InputLeftElement");var gv=/*#__PURE__*/ua(function(e,t){var n=e.className,r=Jm(e,mv),o=S("chakra-input__right-element",n);/*#__PURE__*/
|
36
|
+
return je.createElement(hv,Km({ref:t,placement:"right",className:o},r))});function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}function xv(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}gv.id="InputRightElement",d&&(gv.displayName="InputRightElement");var Ev=["ratio","children","className"],wv=/*#__PURE__*/ua(function(e,t){var n=e.ratio,r=void 0===n?4/3:n,o=e.children,a=e.className,i=xv(e,Ev),s=je.Children.only(o),l=S("chakra-aspect-ratio",a);/*#__PURE__*/
|
37
|
+
return je.createElement(va.div,bv({ref:t,position:"relative",className:l,_before:{height:0,content:'""',display:"block",paddingBottom:L(r,function(e){return 1/e*100+"%"})},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},i),s)});d&&(wv.displayName="AspectRatio");var kv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Badge",e),r=xv(ta(e),kv);/*#__PURE__*/
|
38
|
+
return je.createElement(va.span,bv({ref:t,className:S("chakra-badge",e.className)},r,{__css:bv({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}).displayName="Badge");var Sv=["size","centerContent"],Cv=["size"],Ov=va("div");d&&(Ov.displayName="Box");var _v=/*#__PURE__*/ua(function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,a=xv(e,Sv);/*#__PURE__*/
|
39
|
+
return je.createElement(Ov,bv({ref:t,boxSize:n,__css:bv({},o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},{flexShrink:0,flexGrow:0})},a))});d&&(_v.displayName="Square"),d&&(/*#__PURE__*/ua(function(e,t){var n=e.size,r=xv(e,Cv);/*#__PURE__*/
|
40
|
+
return je.createElement(_v,bv({size:n,ref:t,borderRadius:"9999px"},r))}).displayName="Circle");var Nv=va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d&&(Nv.displayName="Center");var Rv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Code",e),r=xv(ta(e),Rv);/*#__PURE__*/
|
41
|
+
return je.createElement(va.code,bv({ref:t,className:S("chakra-code",e.className)},r,{__css:bv({display:"inline-block"},n)}))}).displayName="Code");var Av=["className","centerContent"];d&&(/*#__PURE__*/ua(function(e,t){var n=ta(e),r=n.className,o=n.centerContent,a=xv(n,Av),i=fa("Container",e);/*#__PURE__*/
|
42
|
+
return je.createElement(va.div,bv({ref:t,className:S("chakra-container",r)},a,{__css:bv({},i,o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}).displayName="Container");var Iv=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Pv=["className","orientation","__css"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Divider",e),r=n.borderLeftWidth,o=n.borderBottomWidth,a=n.borderTopWidth,i=n.borderRightWidth,s=n.borderWidth,l=n.borderStyle,u=n.borderColor,c=xv(n,Iv),d=ta(e),f=d.className,p=d.orientation,m=void 0===p?"horizontal":p,v=d.__css,h=xv(d,Pv);/*#__PURE__*/
|
43
|
+
return je.createElement(va.hr,bv({ref:t,"aria-orientation":m},h,{__css:bv({},c,{border:"0",borderColor:u,borderStyle:l},{vertical:{borderLeftWidth:r||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}}[m],v),className:S("chakra-divider",f)}))}).displayName="Divider");var Tv=["direction","align","justify","wrap","basis","grow","shrink"],Lv=/*#__PURE__*/ua(function(e,t){var n=e.direction,r=e.align,o=e.justify,a=e.wrap,i=e.basis,s=e.grow,l=e.shrink,u=xv(e,Tv);/*#__PURE__*/
|
44
|
+
return je.createElement(va.div,bv({ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l}},u))});d&&(Lv.displayName="Flex");var Mv=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],jv=/*#__PURE__*/ua(function(e,t){var n=e.templateAreas,r=e.gap,o=e.rowGap,a=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,u=e.autoRows,c=e.templateRows,d=e.autoColumns,f=e.templateColumns,p=xv(e,Mv);/*#__PURE__*/
|
45
|
+
return je.createElement(va.div,bv({ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f}},p))});d&&(jv.displayName="Grid");var Dv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Heading",e),r=xv(ta(e),Dv);/*#__PURE__*/
|
46
|
+
return je.createElement(va.h2,bv({ref:t,className:S("chakra-heading",e.className)},r,{__css:n}))}).displayName="Heading");var Vv=["className"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Kbd",e),r=ta(e),o=r.className,a=xv(r,Vv);/*#__PURE__*/
|
47
|
+
return je.createElement(va.kbd,bv({ref:t,className:S("chakra-kbd",o)},a,{__css:bv({fontFamily:"mono"},n)}))}).displayName="Kbd");var Bv=["className","isExternal"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Link",e),r=ta(e),o=r.className,a=r.isExternal,i=xv(r,Bv);/*#__PURE__*/
|
48
|
+
return je.createElement(va.a,bv({target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:t,className:S("chakra-link",o)},i,{__css:n}))}).displayName="Link");var Fv=["children","styleType","stylePosition","spacing"],zv=["as"],Wv=["as"],Uv=ea("List"),$v=Uv[0],Hv=Uv[1],qv=/*#__PURE__*/ua(function(e,t){var n,r=pa("List",e),o=ta(e),a=o.children,i=o.styleType,s=void 0===i?"none":i,l=o.stylePosition,u=o.spacing,c=xv(o,Fv),d=Qn(a),f=u?((n={})["& > *:not(style) ~ *:not(style)"]={mt:u},n):{};/*#__PURE__*/
|
49
|
+
return je.createElement($v,{value:r},/*#__PURE__*/je.createElement(va.ul,bv({ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:bv({},r.container,f)},c),d))});d&&(qv.displayName="List"),d&&(/*#__PURE__*/ua(function(e,t){var n=xv(e,zv);/*#__PURE__*/
|
50
|
+
return je.createElement(qv,bv({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}).displayName="OrderedList"),d&&(/*#__PURE__*/ua(function(e,t){var n=xv(e,Wv);/*#__PURE__*/
|
51
|
+
return je.createElement(qv,bv({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}).displayName="UnorderedList"),d&&(/*#__PURE__*/ua(function(e,t){var n=Hv();/*#__PURE__*/
|
52
|
+
return je.createElement(va.li,bv({ref:t},e,{__css:n.item}))}).displayName="ListItem"),d&&(/*#__PURE__*/ua(function(e,t){var n=Hv();/*#__PURE__*/
|
53
|
+
return je.createElement(Oa,bv({ref:t,role:"presentation"},e,{__css:n.icon}))}).displayName="ListIcon");var Yv=["columns","spacingX","spacingY","spacing","minChildWidth"],Zv=/*#__PURE__*/ua(function(e,t){var n=e.columns,r=e.spacingX,o=e.spacingY,a=e.spacing,i=e.minChildWidth,s=xv(e,Yv),l=Qo(),u=i?function(e,t){return L(e,function(e){var n=function(e,t,n){var r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return function(e){var n=o.filter(Boolean),a=r.map(function(t,r){var o;return function(e,t,n){var r,o;if(null==t)return t;var a=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.value};return null!=(r=null!=(o=a(t))?o:a(n))?r:n}(e,"sizes."+t,null!=(o=n[r])?o:t)});return Array.isArray(t)?a:a[0]}}(0,e,function(e){return h(e)?e+"px":e}(e))(t);return M(e)?null:"repeat(auto-fit, minmax("+n+", 1fr))"})}(i,l):L(n,function(e){return M(e)?null:"repeat("+e+", minmax(0, 1fr))"});/*#__PURE__*/
|
54
|
+
return je.createElement(jv,bv({ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:u},s))});d&&(Zv.displayName="SimpleGrid");var Gv=va("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});d&&(Gv.displayName="Spacer");var Xv="& > *:not(style) ~ *:not(style)",Kv=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],Jv=function(e){/*#__PURE__*/
|
55
|
+
return je.createElement(va.div,bv({className:"chakra-stack__item"},e,{__css:bv({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},Qv=/*#__PURE__*/ua(function(e,t){var n,r=e.isInline,o=e.direction,a=e.align,i=e.justify,s=e.spacing,l=void 0===s?"0.5rem":s,u=e.wrap,c=e.children,d=e.divider,f=e.className,p=e.shouldWrapChildren,m=xv(e,Kv),v=r?"row":null!=o?o:"column",h=je.useMemo(function(){return function(e){var t,n=e.spacing,r=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:r})[Xv]=L(r,function(e){return o[e]}),t}({direction:v,spacing:l})},[v,l]),y=je.useMemo(function(){return function(e){var t=e.spacing,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":L(e.direction,function(e){return n[e]})}}({spacing:l,direction:v})},[l,v]),g=!!d,b=!p&&!g,x=Qn(c),E=b?x:x.map(function(e,t){var n=void 0!==e.key?e.key:t,r=t+1===x.length,o=p?/*#__PURE__*/je.createElement(Jv,{key:n},e):e;return g?/*#__PURE__*/je.createElement(je.Fragment,{key:n},o,r?null:/*#__PURE__*/je.cloneElement(d,{__css:y})):o}),w=S("chakra-stack",f);/*#__PURE__*/
|
56
|
+
return je.createElement(va.div,bv({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:h.flexDirection,flexWrap:u,className:w,__css:g?{}:(n={},n[Xv]=h[Xv],n)},m),E)});d&&(Qv.displayName="Stack");var eh=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
|
57
|
+
return je.createElement(Qv,bv({align:"center"},e,{direction:"row",ref:t}))});d&&(eh.displayName="HStack"),d&&(/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
|
58
|
+
return je.createElement(Qv,bv({align:"center"},e,{direction:"column",ref:t}))}).displayName="VStack");var th=["className","align","decoration","casing"];d&&(/*#__PURE__*/ua(function(e,t){var n=fa("Text",e),r=xv(ta(e),th),o=w({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});/*#__PURE__*/
|
59
|
+
return je.createElement(va.p,bv({ref:t,className:S("chakra-text",e.className)},o,r,{__css:n}))}).displayName="Text");var nh=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],rh=["className"];function oh(e){return"number"==typeof e?e+"px":e}var ah=/*#__PURE__*/ua(function(e,t){var n=e.spacing,r=void 0===n?"0.5rem":n,o=e.spacingX,a=e.spacingY,i=e.children,s=e.justify,l=e.direction,u=e.align,c=e.className,d=e.shouldWrapChildren,f=xv(e,nh),p=je.useMemo(function(){var e={spacingX:o,spacingY:a},t=e.spacingX,n=void 0===t?r:t,i=e.spacingY,c=void 0===i?r:i;return{"--chakra-wrap-x-spacing":function(e){return L(n,function(t){return oh(gr("space",t)(e))})},"--chakra-wrap-y-spacing":function(e){return L(c,function(t){return oh(gr("space",t)(e))})},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:u,flexDirection:l,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,a,s,u,l]),m=d?je.Children.map(i,function(e,t){/*#__PURE__*/
|
60
60
|
return je.createElement(ih,{key:t},e)}):i;/*#__PURE__*/
|
61
|
-
return je.createElement(va.div,bv({ref:t,className:S("chakra-wrap",
|
62
|
-
return je.createElement(va.li,bv({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:S("chakra-wrap__listitem",n)},r))});function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}d&&(ih.displayName="WrapItem");var lh=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function ch(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var uh="top",dh="bottom",fh="right",ph="left",mh=[uh,dh,fh,ph],vh=/*#__PURE__*/mh.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),hh=/*#__PURE__*/[].concat(mh,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),yh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gh(e){return e?(e.nodeName||"").toLowerCase():null}function bh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof bh(e).Element||e instanceof Element}function Eh(e){return e instanceof bh(e).HTMLElement||e instanceof HTMLElement}function wh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bh(e).ShadowRoot||e instanceof ShadowRoot)}function kh(e){return e.split("-")[0]}var Sh=Math.max,Ch=Math.min,Oh=Math.round;function _h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Eh(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Oh(n.width)/i||1),a>0&&(o=Oh(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Nh(e){var t=_h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ah(e){return bh(e).getComputedStyle(e)}function Ih(e){return["table","td","th"].indexOf(gh(e))>=0}function Ph(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Th(e){return"html"===gh(e)?e:e.assignedSlot||e.parentNode||(wh(e)?e.host:null)||Ph(e)}function Lh(e){return Eh(e)&&"fixed"!==Ah(e).position?e.offsetParent:null}function Mh(e){for(var t=bh(e),n=Lh(e);n&&Ih(n)&&"static"===Ah(n).position;)n=Lh(n);return n&&("html"===gh(n)||"body"===gh(n)&&"static"===Ah(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Eh(e)&&"fixed"===Ah(e).position)return null;var n=Th(e);for(wh(n)&&(n=n.host);Eh(n)&&["html","body"].indexOf(gh(n))<0;){var r=Ah(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function jh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dh(e,t,n){return Sh(e,Ch(t,n))}function Vh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Fh(e){return e.split("-")[1]}var zh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=ph,x=uh,E=window;if(c){var w=Mh(n),k="clientHeight",S="clientWidth";w===bh(n)&&"static"!==Ah(w=Ph(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===uh||(o===ph||o===fh)&&"end"===a)&&(x=dh,v-=(d&&w===E&&E.visualViewport?E.visualViewport.height:w[k])-r.height,v*=l?1:-1),o!==ph&&(o!==uh&&o!==dh||"end"!==a)||(b=fh,p-=(d&&w===E&&E.visualViewport?E.visualViewport.width:w[S])-r.width,p*=l?1:-1)}var C,O=Object.assign({position:s},c&&zh),_=!0===u?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Oh(e.x*n)/n||0,y:Oh(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=_.x,v=_.y,Object.assign({},O,l?((C={})[x]=g?"0":"",C[b]=y?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C):((t={})[x]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Uh={passive:!0},$h={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=bh(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Uh)}),s&&l.addEventListener("resize",n.update,Uh),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Uh)}),s&&l.removeEventListener("resize",n.update,Uh)}},data:{}},Hh={left:"right",right:"left",bottom:"top",top:"bottom"};function qh(e){return e.replace(/left|right|bottom|top/g,function(e){return Hh[e]})}var Yh={start:"end",end:"start"};function Zh(e){return e.replace(/start|end/g,function(e){return Yh[e]})}function Gh(e){var t=bh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xh(e){return _h(Ph(e)).left+Gh(e).scrollLeft}function Kh(e){var t=Ah(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Jh(e){return["html","body","#document"].indexOf(gh(e))>=0?e.ownerDocument.body:Eh(e)&&Kh(e)?e:Jh(Th(e))}function Qh(e,t){var n;void 0===t&&(t=[]);var r=Jh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=bh(r),i=o?[a].concat(a.visualViewport||[],Kh(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Qh(Th(i)))}function ey(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ty(e,t){return"viewport"===t?ey(function(e){var t=bh(e),n=Ph(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Xh(e),y:s}}(e)):xh(t)?function(e){var t=_h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ey(function(e){var t,n=Ph(e),r=Gh(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Sh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Sh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Xh(e),l=-r.scrollTop;return"rtl"===Ah(o||n).direction&&(s+=Sh(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Ph(e)))}function ny(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?kh(o):null,i=o?Fh(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case uh:t={x:s,y:n.y-r.height};break;case dh:t={x:s,y:n.y+n.height};break;case fh:t={x:n.x+n.width,y:l};break;case ph:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?jh(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 ry(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,c=void 0===l?"popper":l,u=t.altBoundary,d=void 0!==u&&u,f=t.padding,p=void 0===f?0:f,m=Vh("number"!=typeof p?p:Bh(p,mh)),v=e.rects.popper,h=e.elements[d?"popper"===c?"reference":"popper":c],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=Qh(Th(e)),n=["absolute","fixed"].indexOf(Ah(e).position)>=0&&Eh(e)?Mh(e):e;return xh(n)?t.filter(function(e){return xh(e)&&Rh(e,n)&&"body"!==gh(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=ty(e,n);return t.top=Sh(r.top,t.top),t.right=Ch(r.right,t.right),t.bottom=Ch(r.bottom,t.bottom),t.left=Sh(r.left,t.left),t},ty(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(xh(h)?h:h.contextElement||Ph(e.elements.popper),a,s),g=_h(e.elements.reference),b=ny({reference:g,element:v,strategy:"absolute",placement:r}),x=ey(Object.assign({},v,b)),E="popper"===c?x:g,w={top:y.top-E.top+m.top,bottom:E.bottom-y.bottom+m.bottom,left:y.left-E.left+m.left,right:E.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[fh,dh].indexOf(e)>=0?1:-1,n=[uh,dh].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function oy(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?hh:i,l=Fh(t.placement),c=l?a?vh:vh.filter(function(e){return Fh(e)===l}):mh,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]=ry(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[kh(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var ay={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=kh(h),g=l||(y!==h&&m?function(e){if("auto"===kh(e))return[];var t=qh(e);return[Zh(e),t,Zh(t)]}(h):[qh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===kh(n)?oy(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)},[]),x=t.rects.reference,E=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var O=b[C],_=kh(O),N="start"===Fh(O),R=[uh,dh].indexOf(_)>=0,A=R?"width":"height",I=ry(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=R?N?fh:ph:N?dh:uh;x[A]>E[A]&&(P=qh(P));var T=qh(P),L=[];if(a&&L.push(I[_]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){S=O,k=!1;break}w.set(O,L)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function iy(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sy(e){return[uh,fh,dh,ph].some(function(t){return e[t]>=0})}var ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=hh.reduce(function(e,n){return e[n]=function(e,t,n){var r=kh(e),o=[ph,uh].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ph,fh].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},cy={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,f=ry(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=kh(t.placement),m=Fh(t.placement),v=!m,h=jh(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,O="y"===h?uh:ph,_="y"===h?dh:fh,N="y"===h?"height":"width",R=g[h],A=R+f[O],I=R-f[_],P=c?-x[N]/2:0,T="start"===m?b[N]:x[N],L="start"===m?-x[N]:-b[N],M=t.elements.arrow,j=c&&M?Nh(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[O],B=D[_],F=Dh(0,b[N],j[N]),z=v?b[N]/2-P-F-V-w.mainAxis:T-F-V-w.mainAxis,W=v?-b[N]/2+P+F+B+w.mainAxis:L+F+B+w.mainAxis,U=t.elements.arrow&&Mh(t.elements.arrow),$=null!=(C=null==k?void 0:k[h])?C:0,H=R+W-$,q=Dh(c?Ch(A,R+z-$-(U?"y"===h?U.clientTop||0:U.clientLeft||0:0)):A,R,c?Sh(I,H):I);g[h]=q,S[h]=q-R}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?uh:ph],K=Z-f["x"===h?dh:fh],J=-1!==[uh,ph].indexOf(p),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-x[G]-Q+w.altAxis,te=J?Z+b[G]+x[G]-Q-w.altAxis:K,ne=c&&J?function(e,t,n){var r=Dh(e,t,n);return r>n?n:r}(ee,Z,te):Dh(c?ee:X,Z,c?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function uy(e,t,n){void 0===n&&(n=!1);var r=Eh(t),o=Eh(t)&&function(e){var t=e.getBoundingClientRect(),n=Oh(t.width)/e.offsetWidth||1,r=Oh(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ph(t),i=_h(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==gh(t)||Kh(a))&&(s=function(e){return e!==bh(e)&&Eh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Gh(e);var t}(t)),Eh(t)?((l=_h(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Xh(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function dy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function fy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var py='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',my=["name","enabled","phase","fn","effect","requires","options"],vy="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hy={placement:"bottom",modifiers:[],strategy:"absolute"};function yy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function gy(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?hy:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},hy,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],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:xh(e)?Qh(e):e.contextElement?Qh(e.contextElement):[],popper:Qh(t)};var i,c,f,p=function(e){var t=dy(e);return yh.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),c=function(e){return e.name},f=new Set,i.filter(function(e){var t=c(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),my).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(fy(py,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(fy(py,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":yh.indexOf(t.phase)<0&&console.error(fy(py,t.name,'"phase"',"either "+yh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(fy(py,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(fy(py,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(fy(py,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fy(py,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+my.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(fy('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===kh(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var v=Ah(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance: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(yy(t,n)){s.rects={reference:uy(t,Mh(n),"fixed"===s.options.strategy),popper:Nh(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(vy)}},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(!yy(e,t))return"production"!==process.env.NODE_ENV&&console.error(vy),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 by=/*#__PURE__*/gy({defaultModifiers:[$h,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ny({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Ah(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:kh(t.placement),variation:Fh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wh(Object.assign({},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,Wh(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];Eh(o)&&gh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Eh(r)&&gh(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},ly,ay,cy,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=kh(n.placement),l=jh(s),c=[ph,fh].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Vh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bh(e,mh))}(o.padding,n),d=Nh(a),f="y"===l?uh:ph,p="y"===l?dh:fh,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],v=i[l]-n.rects.reference[l],h=Mh(a),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[c]/2+(m/2-v/2),b=Dh(u[f],g,y-d[c]-u[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Eh(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Rh(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ry(t,{elementContext:"reference"}),s=ry(t,{altBoundary:!0}),l=iy(i,r),c=iy(s,o,a),u=sy(l),d=sy(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}var Ey=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},wy={arrowShadowColor:Ey("--popper-arrow-shadow-color"),arrowSize:Ey("--popper-arrow-size","8px"),arrowSizeHalf:Ey("--popper-arrow-size-half"),arrowBg:Ey("--popper-arrow-bg"),transformOrigin:Ey("--popper-transform-origin"),arrowOffset:Ey("--popper-arrow-offset")},ky={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Sy={scroll:!0,resize:!0},Cy={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){t.elements.popper.style.width=t.elements.reference.offsetWidth+"px"}}},Oy={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){_y(e.state)},effect:function(e){var t=e.state;return function(){_y(t)}}},_y=function(e){e.elements.popper.style.setProperty(wy.transformOrigin.var,ky[e.placement])},Ny={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ry(e.state)}},Ry=function(e){var t;if(e.placement){var n=Ay(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,o;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=wy.arrowSize.varRef,r.height=wy.arrowSize.varRef,r.zIndex=-1,r));var a=((o={})[wy.arrowSizeHalf.var]="calc("+wy.arrowSize.varRef+" / 2)",o[wy.arrowOffset.var]="calc("+wy.arrowSizeHalf.varRef+" * -1)",o);for(var i in a)e.elements.arrow.style.setProperty(i,a[i])}}},Ay=function(e){return e.startsWith("top")?{property:"bottom",value:wy.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:wy.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:wy.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:wy.arrowOffset.varRef}:void 0},Iy={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Py(e.state)},effect:function(e){var t=e.state;return function(){Py(t)}}},Py=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:wy.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ty={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ly={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},My=["size","shadowColor","bg","style"];function jy(e){var t=e.size,n=e.shadowColor,r=e.bg,o=xy({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dy.apply(this,arguments)}function Vy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var By=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],Fy=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],zy=["type","isChecked"],Wy=["children","type","value","defaultValue","onChange"],Uy=Tp(),$y=Uy[0],Hy=Uy[1],qy=Uy[2],Yy=Uy[3],Zy=Jn({strict:!1,name:"MenuContext"}),Gy=Zy[0],Xy=Zy[1];function Ky(e){var t;return z(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function Jy(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.onMouseEnter,r=e.onMouseMove,o=e.onMouseLeave,a=e.onClick,s=e.isDisabled,l=e.isFocusable,c=e.closeOnSelect,u=e.type,d=Vy(e,Fy),f=Xy(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,x=je.useRef(null),E=b+"-menuitem-"+sr(),w=Yy({disabled:s&&!l}),k=w.index,S=w.register,C=je.useCallback(function(e){null==n||n(e),s||p(k)},[p,k,s,n]),_=je.useCallback(function(e){null==r||r(e),x.current&&!U(x.current)&&C(e)},[C,r]),N=je.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),R=je.useCallback(function(e){null==a||a(e),Ky(e.currentTarget)&&(null!=c?c:v)&&h()},[h,a,v,c]),A=k===m,I=s&&!l;lr(function(){g&&(A&&!I&&x.current?i(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!U(y.current)&&i(y.current,{preventScroll:!1}))},[A,I,y,g]);var P=function(e){void 0===e&&(e={});var t=e.ref,n=e.isDisabled,r=e.isFocusable,o=e.clickOnEnter,a=void 0===o||o,i=e.clickOnSpace,s=void 0===i||i,l=e.onMouseDown,c=e.onMouseUp,u=e.onClick,d=e.onKeyDown,f=e.onKeyUp,p=e.tabIndex,m=e.onMouseOver,v=e.onMouseLeave,h=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,lh),y=je.useState(!0),g=y[0],b=y[1],x=je.useState(!1),E=x[0],w=x[1],k=function(){var e=je.useRef(new Map),t=e.current,n=je.useCallback(function(t,n,r,o){e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=je.useCallback(function(t,n,r,o){t.removeEventListener(n,r,o),e.current.delete(r)},[]);return je.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=g?p:p||0,C=n&&!r,_=je.useCallback(function(e){if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)},[n,u]),N=je.useCallback(function(e){E&&ch(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",N,!1))},[E,k]),R=je.useCallback(function(e){if(null==d||d(e),!(n||e.defaultPrevented||e.metaKey)&&ch(e.nativeEvent)&&!g){var t=a&&"Enter"===e.key;s&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",N,!1)}},[n,g,d,a,s,k,N]),A=je.useCallback(function(e){null==f||f(e),n||e.defaultPrevented||e.metaKey||ch(e.nativeEvent)&&!g&&s&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[s,g,n,f]),I=je.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=je.useCallback(function(e){if(!j(e)){if(n)return e.stopPropagation(),void e.preventDefault();g||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==l||l(e)}},[n,g,l,k,I]),T=je.useCallback(function(e){j(e)||(g||w(!1),null==c||c(e))},[c,g]),L=je.useCallback(function(e){n?e.preventDefault():null==m||m(e)},[n,m]),M=je.useCallback(function(e){E&&(e.preventDefault(),w(!1)),null==v||v(e)},[E,v]),D=Kn(t,function(e){e&&"BUTTON"!==e.tagName&&b(!1)});return sh({},h,g?{ref:D,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:_,onMouseDown:l,onMouseUp:c,onKeyUp:f,onKeyDown:d,onMouseOver:m,onMouseLeave:v}:{ref:D,role:"button","data-active":O(E),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:S,onClick:_,onMouseDown:P,onMouseUp:T,onKeyUp:A,onKeyDown:R,onMouseOver:L,onMouseLeave:M})}({onClick:R,onMouseEnter:C,onMouseMove:_,onMouseLeave:N,ref:Kn(S,x,t),isDisabled:s,isFocusable:l});return Dy({},d,P,{type:null!=u?u:P.type,id:E,role:"menuitem",tabIndex:A?0:-1})}var Qy=["descendants"],eg=["children","as"],tg=["rootProps"],ng=["type"],rg=["icon","iconSpacing","command","commandSpacing","children"],og=["icon","iconSpacing"],ag=["className","title"],ig=["title","children","className"],sg=["className","children"],lg=ea("Menu"),cg=lg[0],ug=lg[1],dg=function(e){var t=e.children,n=pa("Menu",e),d=function(e){void 0===e&&(e={});var t=e.id,n=e.closeOnSelect,r=void 0===n||n,d=e.closeOnBlur,f=void 0===d||d,p=e.autoSelect,m=void 0===p||p,v=e.isLazy,h=e.isOpen,y=e.defaultIsOpen,g=e.onClose,b=e.onOpen,x=e.placement,E=void 0===x?"bottom-start":x,w=e.lazyBehavior,k=void 0===w?"unmount":w,S=e.direction,C=e.computePositionOnMount,O=void 0!==C&&C,_=Vy(e,By),N=je.useRef(null),R=je.useRef(null),A=qy(),I=je.useCallback(function(){i(N.current,{nextTick:!0,selectTextIfInput:!1})},[]),P=je.useCallback(function(){var e=setTimeout(function(){var e=A.firstEnabled();e&&q(e.index)});J.current.add(e)},[A]),T=je.useCallback(function(){var e=setTimeout(function(){var e=A.lastEnabled();e&&q(e.index)});J.current.add(e)},[A]),L=function(e){void 0===e&&(e={});var t=e.onClose,n=e.isOpen,r=e.id,o=tr(e.onOpen),i=tr(t),s=je.useState(e.defaultIsOpen||!1),l=s[1],c=or(n,s[0]),u=c[0],d=c[1],f=sr(r,"disclosure"),p=je.useCallback(function(){u||l(!1),null==i||i()},[u,i]),m=je.useCallback(function(){u||l(!0),null==o||o()},[u,o]),v=je.useCallback(function(){(d?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:u,getButtonProps:function(e){return void 0===e&&(e={}),ir({},e,{"aria-expanded":d,"aria-controls":f,onClick:a(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),ir({},e,{hidden:!d,id:f})}}}({isOpen:h,defaultIsOpen:y,onClose:g,onOpen:je.useCallback(function(){null==b||b(),m?P():I()},[m,P,I,b])}),M=L.isOpen,j=L.onOpen,D=L.onClose,V=L.onToggle;!function(e){var t=e.ref,n=e.handler,r=e.enabled,o=void 0===r||r,a=tr(n),i=je.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;je.useEffect(function(){if(o){var e=function(e){fr(e,t)&&(i.isPointerDown=!0)},r=function(e){i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&n&&fr(e,t)&&(i.isPointerDown=!1,a(e))},l=function(e){i.ignoreEmulatedMouseEvents=!0,n&&i.isPointerDown&&fr(e,t)&&(i.isPointerDown=!1,a(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",l,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",l,!0)}}},[n,t,a,i,o])}({enabled:M&&f,ref:N,handler:function(e){var t;null!=(t=R.current)&&t.contains(e.target)||D()}});var B,F,z,W,U=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,o=e.placement,a=void 0===o?"bottom":o,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,c=void 0===l?8:l,u=e.eventListeners,d=void 0===u||u,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,x=void 0===b||b,E=e.matchWidth,w=e.direction,k=void 0===w?"ltr":w,S=je.useRef(null),C=je.useRef(null),O=je.useRef(null),_=function(e,t){var n,r;void 0===t&&(t="ltr");var o=(null==(n=Ty[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=Ly[e])?r:o}(a,k),N=je.useRef(function(){}),R=je.useCallback(function(){var e;n&&S.current&&C.current&&(null==N.current||N.current(),O.current=by(S.current,C.current,{placement:_,modifiers:[Iy,Ny,Oy,xy({},Cy,{enabled:!!E}),xy({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:xy({},Sy,e)}:{enabled:e,options:Sy})),{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),O.current.forceUpdate(),N.current=O.current.destroy)},[_,n,r,E,d,c,f,m,h,x,g,s]);je.useEffect(function(){return function(){var e;S.current||C.current||(null==(e=O.current)||e.destroy(),O.current=null)}},[]);var A=je.useCallback(function(e){S.current=e,R()},[R]),I=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(A,t)})},[A]),P=je.useCallback(function(e){C.current=e,R()},[R]),T=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(P,t),style:xy({},e.style,{position:s,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,E]),L=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,My);return xy({},n,{ref:t,"data-popper-arrow":"",style:jy(e)})},[]),M=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=O.current)||e.update()},forceUpdate:function(){var e;null==(e=O.current)||e.forceUpdate()},transformOrigin:wy.transformOrigin.varRef,referenceRef:A,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:M,getReferenceProps:I}}(Dy({},_,{enabled:M||O,placement:E,direction:S})),$=je.useState(-1),H=$[0],q=$[1];lr(function(){M||q(-1)},[M]),lr(function(){if(W&&!function(e){var t=e.current;if(!t)return!1;var n=l(t);return!!n&&!c(t,n)&&!!u(n)}(B)){var e=(null==z?void 0:z.current)||B.current;e&&i(e,{nextTick:!0})}},[W=(F={focusRef:R,visible:M,shouldFocus:!0}).shouldFocus&&!F.visible,B=N,z=F.focusRef]);var Y=function(e){var t=e.isOpen,n=e.ref,r=je.useState(t),a=r[0],i=r[1],s=je.useState(!1),l=s[0],c=s[1];return je.useEffect(function(){l||(i(t),c(!0))},[t,l,a]),nr("animationend",function(){i(t)},function(){return n.current}),{present:!(!t&&!a),onComplete:function(){var e,t=new(o(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}({isOpen:M,ref:N}),Z=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=sr(e);return je.useMemo(function(){return n.map(function(e){return e+"-"+o})},[o,n])}(t,"menu-button","menu-list"),G=Z[0],X=Z[1],K=je.useCallback(function(){j(),I()},[j,I]),J=je.useRef(new Set([]));cr(function(){J.current.forEach(function(e){return clearTimeout(e)}),J.current.clear()});var Q=je.useCallback(function(){j(),P()},[P,j]),ee=je.useCallback(function(){j(),T()},[j,T]),te=je.useCallback(function(){var e,t,n=s(N.current),r=null==(e=N.current)?void 0:e.contains(n.activeElement);if(M&&!r){var o=null==(t=A.item(H))?void 0:t.node;o&&i(o,{selectTextIfInput:!1,preventScroll:!1})}},[M,H,A]);return{openAndFocusMenu:K,openAndFocusFirstItem:Q,openAndFocusLastItem:ee,onTransitionEnd:te,unstable__animationState:Y,descendants:A,popper:U,buttonId:G,menuId:X,forceUpdate:U.forceUpdate,orientation:"vertical",isOpen:M,onToggle:V,onOpen:j,onClose:D,menuRef:N,buttonRef:R,focusedIndex:H,closeOnSelect:r,closeOnBlur:f,autoSelect:m,setFocusedIndex:q,isLazy:v,lazyBehavior:k}}(Dy({},ta(e),{direction:Qo().direction})),f=d.descendants,p=Vy(d,Qy),m=je.useMemo(function(){return p},[p]);/*#__PURE__*/
|
63
|
-
return je.createElement($y,{value:f},/*#__PURE__*/je.createElement(Gy,{value:m},/*#__PURE__*/je.createElement(
|
64
|
-
return je.createElement(va.button,Dy({ref:t},e,{__css:Dy({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),pg=/*#__PURE__*/
|
65
|
-
return je.createElement(n||fg,Dy({},r,{className:S("chakra-menu__menu-button",e.className)}),/*#__PURE__*/je.createElement(va.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});d&&(pg.displayName="MenuButton");var mg={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},vg=function(e){var t=zf;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(va.div),hg=/*#__PURE__*/
|
66
|
-
return je.createElement(va.div,Dy({},f,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=p.list)?void 0:r.zIndex}}),/*#__PURE__*/je.createElement(vg,Dy({},d,{onUpdate:
|
67
|
-
return je.createElement(va.button,Dy({ref:t,type:a},r,{__css:i}))});d&&(/*#__PURE__*/
|
68
|
-
return je.createElement(yg,Dy({},
|
69
|
-
return je.createElement("svg",Dy({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/je.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},bg=/*#__PURE__*/
|
70
|
-
return je.createElement(yg,Dy({},i,{className:S("chakra-menu__menuitem-option",a.className)}),null!==n&&/*#__PURE__*/je.createElement(kg,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||/*#__PURE__*/je.createElement(gg,null)),/*#__PURE__*/je.createElement("span",{style:{flex:1}},i.children))});bg.id="MenuItemOption",d&&(bg.displayName="MenuItemOption");var xg=function(e){var t=e.className,n=e.title,r=function(e){void 0===e&&(e={});var t=e.children,n=e.type,r=void 0===n?"radio":n,o=e.value,a=e.defaultValue,i=e.onChange,s=Vy(e,Wy),l=ar({defaultValue:null!=a?a:"radio"===r?"":[],value:o,onChange:i}),
|
61
|
+
return je.createElement(va.div,bv({ref:t,className:S("chakra-wrap",c),overflow:"hidden"},f),/*#__PURE__*/je.createElement(va.ul,{className:"chakra-wrap__list",__css:p},m))});d&&(ah.displayName="Wrap");var ih=/*#__PURE__*/ua(function(e,t){var n=e.className,r=xv(e,rh);/*#__PURE__*/
|
62
|
+
return je.createElement(va.li,bv({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:S("chakra-wrap__listitem",n)},r))});function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}d&&(ih.displayName="WrapItem");var lh=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function uh(e){var t=e.target,n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==t.isContentEditable}var ch="top",dh="bottom",fh="right",ph="left",mh=[ch,dh,fh,ph],vh=/*#__PURE__*/mh.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),hh=/*#__PURE__*/[].concat(mh,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),yh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gh(e){return e?(e.nodeName||"").toLowerCase():null}function bh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof bh(e).Element||e instanceof Element}function Eh(e){return e instanceof bh(e).HTMLElement||e instanceof HTMLElement}function wh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bh(e).ShadowRoot||e instanceof ShadowRoot)}function kh(e){return e.split("-")[0]}var Sh=Math.max,Ch=Math.min,Oh=Math.round;function _h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Eh(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Oh(n.width)/i||1),a>0&&(o=Oh(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Nh(e){var t=_h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ah(e){return bh(e).getComputedStyle(e)}function Ih(e){return["table","td","th"].indexOf(gh(e))>=0}function Ph(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Th(e){return"html"===gh(e)?e:e.assignedSlot||e.parentNode||(wh(e)?e.host:null)||Ph(e)}function Lh(e){return Eh(e)&&"fixed"!==Ah(e).position?e.offsetParent:null}function Mh(e){for(var t=bh(e),n=Lh(e);n&&Ih(n)&&"static"===Ah(n).position;)n=Lh(n);return n&&("html"===gh(n)||"body"===gh(n)&&"static"===Ah(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Eh(e)&&"fixed"===Ah(e).position)return null;var n=Th(e);for(wh(n)&&(n=n.host);Eh(n)&&["html","body"].indexOf(gh(n))<0;){var r=Ah(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function jh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dh(e,t,n){return Sh(e,Ch(t,n))}function Vh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Fh(e){return e.split("-")[1]}var zh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"==typeof c?c({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=ph,x=ch,E=window;if(u){var w=Mh(n),k="clientHeight",S="clientWidth";w===bh(n)&&"static"!==Ah(w=Ph(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===ch||(o===ph||o===fh)&&"end"===a)&&(x=dh,v-=(d&&w===E&&E.visualViewport?E.visualViewport.height:w[k])-r.height,v*=l?1:-1),o!==ph&&(o!==ch&&o!==dh||"end"!==a)||(b=fh,p-=(d&&w===E&&E.visualViewport?E.visualViewport.width:w[S])-r.width,p*=l?1:-1)}var C,O=Object.assign({position:s},u&&zh),_=!0===c?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:Oh(e.x*n)/n||0,y:Oh(t*n)/n||0}}({x:p,y:v}):{x:p,y:v};return p=_.x,v=_.y,Object.assign({},O,l?((C={})[x]=g?"0":"",C[b]=y?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C):((t={})[x]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Uh={passive:!0},$h={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=bh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,Uh)}),s&&l.addEventListener("resize",n.update,Uh),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Uh)}),s&&l.removeEventListener("resize",n.update,Uh)}},data:{}},Hh={left:"right",right:"left",bottom:"top",top:"bottom"};function qh(e){return e.replace(/left|right|bottom|top/g,function(e){return Hh[e]})}var Yh={start:"end",end:"start"};function Zh(e){return e.replace(/start|end/g,function(e){return Yh[e]})}function Gh(e){var t=bh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xh(e){return _h(Ph(e)).left+Gh(e).scrollLeft}function Kh(e){var t=Ah(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Jh(e){return["html","body","#document"].indexOf(gh(e))>=0?e.ownerDocument.body:Eh(e)&&Kh(e)?e:Jh(Th(e))}function Qh(e,t){var n;void 0===t&&(t=[]);var r=Jh(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=bh(r),i=o?[a].concat(a.visualViewport||[],Kh(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Qh(Th(i)))}function ey(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ty(e,t){return"viewport"===t?ey(function(e){var t=bh(e),n=Ph(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Xh(e),y:s}}(e)):xh(t)?function(e){var t=_h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ey(function(e){var t,n=Ph(e),r=Gh(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Sh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Sh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Xh(e),l=-r.scrollTop;return"rtl"===Ah(o||n).direction&&(s+=Sh(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Ph(e)))}function ny(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?kh(o):null,i=o?Fh(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case ch:t={x:s,y:n.y-r.height};break;case dh:t={x:s,y:n.y+n.height};break;case fh:t={x:n.x+n.width,y:l};break;case ph:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?jh(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ry(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,s=void 0===i?"viewport":i,l=t.elementContext,u=void 0===l?"popper":l,c=t.altBoundary,d=void 0!==c&&c,f=t.padding,p=void 0===f?0:f,m=Vh("number"!=typeof p?p:Bh(p,mh)),v=e.rects.popper,h=e.elements[d?"popper"===u?"reference":"popper":u],y=function(e,t,n){var r="clippingParents"===t?function(e){var t=Qh(Th(e)),n=["absolute","fixed"].indexOf(Ah(e).position)>=0&&Eh(e)?Mh(e):e;return xh(n)?t.filter(function(e){return xh(e)&&Rh(e,n)&&"body"!==gh(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o.reduce(function(t,n){var r=ty(e,n);return t.top=Sh(r.top,t.top),t.right=Ch(r.right,t.right),t.bottom=Ch(r.bottom,t.bottom),t.left=Sh(r.left,t.left),t},ty(e,o[0]));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(xh(h)?h:h.contextElement||Ph(e.elements.popper),a,s),g=_h(e.elements.reference),b=ny({reference:g,element:v,strategy:"absolute",placement:r}),x=ey(Object.assign({},v,b)),E="popper"===u?x:g,w={top:y.top-E.top+m.top,bottom:E.bottom-y.bottom+m.bottom,left:y.left-E.left+m.left,right:E.right-y.right+m.right},k=e.modifiersData.offset;if("popper"===u&&k){var S=k[r];Object.keys(w).forEach(function(e){var t=[fh,dh].indexOf(e)>=0?1:-1,n=[ch,dh].indexOf(e)>=0?"y":"x";w[e]+=S[n]*t})}return w}function oy(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,s=void 0===i?hh:i,l=Fh(t.placement),u=l?a?vh:vh.filter(function(e){return Fh(e)===l}):mh,c=u.filter(function(e){return s.indexOf(e)>=0});0===c.length&&(c=u,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=c.reduce(function(t,a){return t[a]=ry(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[kh(a)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}var ay={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,h=t.options.placement,y=kh(h),g=l||(y!==h&&m?function(e){if("auto"===kh(e))return[];var t=qh(e);return[Zh(e),t,Zh(t)]}(h):[qh(h)]),b=[h].concat(g).reduce(function(e,n){return e.concat("auto"===kh(n)?oy(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:v}):n)},[]),x=t.rects.reference,E=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var O=b[C],_=kh(O),N="start"===Fh(O),R=[ch,dh].indexOf(_)>=0,A=R?"width":"height",I=ry(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),P=R?N?fh:ph:N?dh:ch;x[A]>E[A]&&(P=qh(P));var T=qh(P),L=[];if(a&&L.push(I[_]<=0),s&&L.push(I[P]<=0,I[T]<=0),L.every(function(e){return e})){S=O,k=!1;break}w.set(O,L)}if(k)for(var M=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},j=m?3:1;j>0&&"break"!==M(j);j--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function iy(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sy(e){return[ch,fh,dh,ph].some(function(t){return e[t]>=0})}var ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=hh.reduce(function(e,n){return e[n]=function(e,t,n){var r=kh(e),o=[ph,ch].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ph,fh].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,o),e},{}),i=a[t.placement],s=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i.x,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},uy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.tether,u=void 0===l||l,c=n.tetherOffset,d=void 0===c?0:c,f=ry(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=kh(t.placement),m=Fh(t.placement),v=!m,h=jh(p),y="x"===h?"y":"x",g=t.modifiersData.popperOffsets,b=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,w="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var C,O="y"===h?ch:ph,_="y"===h?dh:fh,N="y"===h?"height":"width",R=g[h],A=R+f[O],I=R-f[_],P=u?-x[N]/2:0,T="start"===m?b[N]:x[N],L="start"===m?-x[N]:-b[N],M=t.elements.arrow,j=u&&M?Nh(M):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=D[O],B=D[_],F=Dh(0,b[N],j[N]),z=v?b[N]/2-P-F-V-w.mainAxis:T-F-V-w.mainAxis,W=v?-b[N]/2+P+F+B+w.mainAxis:L+F+B+w.mainAxis,U=t.elements.arrow&&Mh(t.elements.arrow),$=null!=(C=null==k?void 0:k[h])?C:0,H=R+W-$,q=Dh(u?Ch(A,R+z-$-(U?"y"===h?U.clientTop||0:U.clientLeft||0:0)):A,R,u?Sh(I,H):I);g[h]=q,S[h]=q-R}if(s){var Y,Z=g[y],G="y"===y?"height":"width",X=Z+f["x"===h?ch:ph],K=Z-f["x"===h?dh:fh],J=-1!==[ch,ph].indexOf(p),Q=null!=(Y=null==k?void 0:k[y])?Y:0,ee=J?X:Z-b[G]-x[G]-Q+w.altAxis,te=J?Z+b[G]+x[G]-Q-w.altAxis:K,ne=u&&J?function(e,t,n){var r=Dh(e,t,n);return r>n?n:r}(ee,Z,te):Dh(u?ee:X,Z,u?te:K);g[y]=ne,S[y]=ne-Z}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function cy(e,t,n){void 0===n&&(n=!1);var r=Eh(t),o=Eh(t)&&function(e){var t=e.getBoundingClientRect(),n=Oh(t.width)/e.offsetWidth||1,r=Oh(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ph(t),i=_h(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==gh(t)||Kh(a))&&(s=function(e){return e!==bh(e)&&Eh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Gh(e);var t}(t)),Eh(t)?((l=_h(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Xh(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function dy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function fy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var py='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',my=["name","enabled","phase","fn","effect","requires","options"],vy="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hy={placement:"bottom",modifiers:[],strategy:"absolute"};function yy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function gy(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?hy:r;return function(e,t,r){void 0===r&&(r=o);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},hy,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var a="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:xh(e)?Qh(e):e.contextElement?Qh(e.contextElement):[],popper:Qh(t)};var i,u,f,p=function(e){var t=dy(e);return yh.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,s.options.modifiers)));if(s.orderedModifiers=p.filter(function(e){return e.enabled}),"production"!==process.env.NODE_ENV){var m=(i=[].concat(p,s.options.modifiers),u=function(e){return e.name},f=new Set,i.filter(function(e){var t=u(e);if(!f.has(t))return f.add(t),!0}));(function(e){e.forEach(function(t){[].concat(Object.keys(t),my).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(fy(py,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(fy(py,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":yh.indexOf(t.phase)<0&&console.error(fy(py,t.name,'"phase"',"either "+yh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(fy(py,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(fy(py,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(fy(py,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fy(py,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+my.map(function(e){return'"'+e+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n})&&console.error(fy('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))})})})})(m),"auto"===kh(s.options.placement)&&(s.orderedModifiers.find(function(e){return"flip"===e.name})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var v=Ah(t);[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach(function(e){var t=e.options,n=e.effect;if("function"==typeof n){var r=n({state:s,name:e.name,instance:c,options:void 0===t?{}:t});l.push(r||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(yy(t,n)){s.rects={reference:cy(t,Mh(n),"fixed"===s.options.strategy),popper:Nh(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var a=s.orderedModifiers[o],i=a.fn,l=a.options;"function"==typeof i&&(s=i({state:s,options:void 0===l?{}:l,name:a.name,instance:c})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(vy)}},update:(a=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(a())})})),i}),destroy:function(){d(),u=!0}};if(!yy(e,t))return"production"!==process.env.NODE_ENV&&console.error(vy),c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var by=/*#__PURE__*/gy({defaultModifiers:[$h,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ny({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var u=Ah(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(e){return u.indexOf(e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:kh(t.placement),variation:Fh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wh(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wh(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Eh(o)&&gh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Eh(r)&&gh(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},ly,ay,uy,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=kh(n.placement),l=jh(s),u=[ph,fh].indexOf(s)>=0?"height":"width";if(a&&i){var c=function(e,t){return Vh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bh(e,mh))}(o.padding,n),d=Nh(a),f="y"===l?ch:ph,p="y"===l?dh:fh,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],h=Mh(a),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=y/2-d[u]/2+(m/2-v/2),b=Dh(c[f],g,y-d[u]-c[p]);n.modifiersData[r]=((t={})[l]=b,t.centerOffset=b-g,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(Eh(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Rh(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ry(t,{elementContext:"reference"}),s=ry(t,{altBoundary:!0}),l=iy(i,r),u=iy(s,o,a),c=sy(l),d=sy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}var Ey=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},wy={arrowShadowColor:Ey("--popper-arrow-shadow-color"),arrowSize:Ey("--popper-arrow-size","8px"),arrowSizeHalf:Ey("--popper-arrow-size-half"),arrowBg:Ey("--popper-arrow-bg"),transformOrigin:Ey("--popper-transform-origin"),arrowOffset:Ey("--popper-arrow-offset")},ky={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Sy={scroll:!0,resize:!0},Cy={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){t.elements.popper.style.width=t.elements.reference.offsetWidth+"px"}}},Oy={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){_y(e.state)},effect:function(e){var t=e.state;return function(){_y(t)}}},_y=function(e){e.elements.popper.style.setProperty(wy.transformOrigin.var,ky[e.placement])},Ny={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){Ry(e.state)}},Ry=function(e){var t;if(e.placement){var n=Ay(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,o;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=wy.arrowSize.varRef,r.height=wy.arrowSize.varRef,r.zIndex=-1,r));var a=((o={})[wy.arrowSizeHalf.var]="calc("+wy.arrowSize.varRef+" / 2)",o[wy.arrowOffset.var]="calc("+wy.arrowSizeHalf.varRef+" * -1)",o);for(var i in a)e.elements.arrow.style.setProperty(i,a[i])}}},Ay=function(e){return e.startsWith("top")?{property:"bottom",value:wy.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:wy.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:wy.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:wy.arrowOffset.varRef}:void 0},Iy={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){Py(e.state)},effect:function(e){var t=e.state;return function(){Py(t)}}},Py=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");n&&Object.assign(n.style,{transform:"rotate(45deg)",background:wy.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ty={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ly={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},My=["size","shadowColor","bg","style"];function jy(e){var t=e.size,n=e.shadowColor,r=e.bg,o=xy({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dy.apply(this,arguments)}function Vy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var By=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],Fy=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],zy=["type","isChecked"],Wy=["children","type","value","defaultValue","onChange"],Uy=Tp(),$y=Uy[0],Hy=Uy[1],qy=Uy[2],Yy=Uy[3],Zy=Jn({strict:!1,name:"MenuContext"}),Gy=Zy[0],Xy=Zy[1];function Ky(e){var t;return z(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function Jy(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.onMouseEnter,r=e.onMouseMove,o=e.onMouseLeave,a=e.onClick,s=e.isDisabled,l=e.isFocusable,u=e.closeOnSelect,c=e.type,d=Vy(e,Fy),f=Xy(),p=f.setFocusedIndex,m=f.focusedIndex,v=f.closeOnSelect,h=f.onClose,y=f.menuRef,g=f.isOpen,b=f.menuId,x=je.useRef(null),E=b+"-menuitem-"+sr(),w=Yy({disabled:s&&!l}),k=w.index,S=w.register,C=je.useCallback(function(e){null==n||n(e),s||p(k)},[p,k,s,n]),_=je.useCallback(function(e){null==r||r(e),x.current&&!U(x.current)&&C(e)},[C,r]),N=je.useCallback(function(e){null==o||o(e),s||p(-1)},[p,s,o]),R=je.useCallback(function(e){null==a||a(e),Ky(e.currentTarget)&&(null!=u?u:v)&&h()},[h,a,v,u]),A=k===m,I=s&&!l;lr(function(){g&&(A&&!I&&x.current?i(x.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):y.current&&!U(y.current)&&i(y.current,{preventScroll:!1}))},[A,I,y,g]);var P=function(e){void 0===e&&(e={});var t=e.ref,n=e.isDisabled,r=e.isFocusable,o=e.clickOnEnter,a=void 0===o||o,i=e.clickOnSpace,s=void 0===i||i,l=e.onMouseDown,u=e.onMouseUp,c=e.onClick,d=e.onKeyDown,f=e.onKeyUp,p=e.tabIndex,m=e.onMouseOver,v=e.onMouseLeave,h=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,lh),y=je.useState(!0),g=y[0],b=y[1],x=je.useState(!1),E=x[0],w=x[1],k=function(){var e=je.useRef(new Map),t=e.current,n=je.useCallback(function(t,n,r,o){e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=je.useCallback(function(t,n,r,o){t.removeEventListener(n,r,o),e.current.delete(r)},[]);return je.useEffect(function(){return function(){t.forEach(function(e,t){r(e.el,e.type,t,e.options)})}},[r,t]),{add:n,remove:r}}(),S=g?p:p||0,C=n&&!r,_=je.useCallback(function(e){if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==c||c(e)},[n,c]),N=je.useCallback(function(e){E&&uh(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",N,!1))},[E,k]),R=je.useCallback(function(e){if(null==d||d(e),!(n||e.defaultPrevented||e.metaKey)&&uh(e.nativeEvent)&&!g){var t=a&&"Enter"===e.key;s&&" "===e.key&&(e.preventDefault(),w(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",N,!1)}},[n,g,d,a,s,k,N]),A=je.useCallback(function(e){null==f||f(e),n||e.defaultPrevented||e.metaKey||uh(e.nativeEvent)&&!g&&s&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())},[s,g,n,f]),I=je.useCallback(function(e){0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))},[k]),P=je.useCallback(function(e){if(!j(e)){if(n)return e.stopPropagation(),void e.preventDefault();g||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==l||l(e)}},[n,g,l,k,I]),T=je.useCallback(function(e){j(e)||(g||w(!1),null==u||u(e))},[u,g]),L=je.useCallback(function(e){n?e.preventDefault():null==m||m(e)},[n,m]),M=je.useCallback(function(e){E&&(e.preventDefault(),w(!1)),null==v||v(e)},[E,v]),D=Kn(t,function(e){e&&"BUTTON"!==e.tagName&&b(!1)});return sh({},h,g?{ref:D,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:_,onMouseDown:l,onMouseUp:u,onKeyUp:f,onKeyDown:d,onMouseOver:m,onMouseLeave:v}:{ref:D,role:"button","data-active":O(E),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:S,onClick:_,onMouseDown:P,onMouseUp:T,onKeyUp:A,onKeyDown:R,onMouseOver:L,onMouseLeave:M})}({onClick:R,onMouseEnter:C,onMouseMove:_,onMouseLeave:N,ref:Kn(S,x,t),isDisabled:s,isFocusable:l});return Dy({},d,P,{type:null!=c?c:P.type,id:E,role:"menuitem",tabIndex:A?0:-1})}var Qy=["descendants"],eg=["children","as"],tg=["rootProps"],ng=["type"],rg=["icon","iconSpacing","command","commandSpacing","children"],og=["icon","iconSpacing"],ag=["className","title"],ig=["title","children","className"],sg=["className","children"],lg=ea("Menu"),ug=lg[0],cg=lg[1],dg=function(e){var t=e.children,n=pa("Menu",e),d=function(e){void 0===e&&(e={});var t=e.id,n=e.closeOnSelect,r=void 0===n||n,d=e.closeOnBlur,f=void 0===d||d,p=e.autoSelect,m=void 0===p||p,v=e.isLazy,h=e.isOpen,y=e.defaultIsOpen,g=e.onClose,b=e.onOpen,x=e.placement,E=void 0===x?"bottom-start":x,w=e.lazyBehavior,k=void 0===w?"unmount":w,S=e.direction,C=e.computePositionOnMount,O=void 0!==C&&C,_=Vy(e,By),N=je.useRef(null),R=je.useRef(null),A=qy(),I=je.useCallback(function(){i(N.current,{nextTick:!0,selectTextIfInput:!1})},[]),P=je.useCallback(function(){var e=setTimeout(function(){var e=A.firstEnabled();e&&q(e.index)});J.current.add(e)},[A]),T=je.useCallback(function(){var e=setTimeout(function(){var e=A.lastEnabled();e&&q(e.index)});J.current.add(e)},[A]),L=function(e){void 0===e&&(e={});var t=e.onClose,n=e.isOpen,r=e.id,o=tr(e.onOpen),i=tr(t),s=je.useState(e.defaultIsOpen||!1),l=s[1],u=or(n,s[0]),c=u[0],d=u[1],f=sr(r,"disclosure"),p=je.useCallback(function(){c||l(!1),null==i||i()},[c,i]),m=je.useCallback(function(){c||l(!0),null==o||o()},[c,o]),v=je.useCallback(function(){(d?p:m)()},[d,m,p]);return{isOpen:!!d,onOpen:m,onClose:p,onToggle:v,isControlled:c,getButtonProps:function(e){return void 0===e&&(e={}),ir({},e,{"aria-expanded":d,"aria-controls":f,onClick:a(e.onClick,v)})},getDisclosureProps:function(e){return void 0===e&&(e={}),ir({},e,{hidden:!d,id:f})}}}({isOpen:h,defaultIsOpen:y,onClose:g,onOpen:je.useCallback(function(){null==b||b(),m?P():I()},[m,P,I,b])}),M=L.isOpen,j=L.onOpen,D=L.onClose,V=L.onToggle;!function(e){var t=e.ref,n=e.handler,r=e.enabled,o=void 0===r||r,a=tr(n),i=je.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;je.useEffect(function(){if(o){var e=function(e){fr(e,t)&&(i.isPointerDown=!0)},r=function(e){i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&n&&fr(e,t)&&(i.isPointerDown=!1,a(e))},l=function(e){i.ignoreEmulatedMouseEvents=!0,n&&i.isPointerDown&&fr(e,t)&&(i.isPointerDown=!1,a(e))},u=s(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",r,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",l,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",r,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",l,!0)}}},[n,t,a,i,o])}({enabled:M&&f,ref:N,handler:function(e){var t;null!=(t=R.current)&&t.contains(e.target)||D()}});var B,F,z,W,U=function(e){void 0===e&&(e={});var t=e.enabled,n=void 0===t||t,r=e.modifiers,o=e.placement,a=void 0===o?"bottom":o,i=e.strategy,s=void 0===i?"absolute":i,l=e.arrowPadding,u=void 0===l?8:l,c=e.eventListeners,d=void 0===c||c,f=e.offset,p=e.gutter,m=void 0===p?8:p,v=e.flip,h=void 0===v||v,y=e.boundary,g=void 0===y?"clippingParents":y,b=e.preventOverflow,x=void 0===b||b,E=e.matchWidth,w=e.direction,k=void 0===w?"ltr":w,S=je.useRef(null),C=je.useRef(null),O=je.useRef(null),_=function(e,t){var n,r;void 0===t&&(t="ltr");var o=(null==(n=Ty[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=Ly[e])?r:o}(a,k),N=je.useRef(function(){}),R=je.useCallback(function(){var e;n&&S.current&&C.current&&(null==N.current||N.current(),O.current=by(S.current,C.current,{placement:_,modifiers:[Iy,Ny,Oy,xy({},Cy,{enabled:!!E}),xy({name:"eventListeners"},(e=d,"object"==typeof e?{enabled:!0,options:xy({},Sy,e)}:{enabled:e,options:Sy})),{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=f?f:[0,m]}},{name:"flip",enabled:!!h,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:g}}].concat(null!=r?r:[]),strategy:s}),O.current.forceUpdate(),N.current=O.current.destroy)},[_,n,r,E,d,u,f,m,h,x,g,s]);je.useEffect(function(){return function(){var e;S.current||C.current||(null==(e=O.current)||e.destroy(),O.current=null)}},[]);var A=je.useCallback(function(e){S.current=e,R()},[R]),I=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(A,t)})},[A]),P=je.useCallback(function(e){C.current=e,R()},[R]),T=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:Kn(P,t),style:xy({},e.style,{position:s,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"})})},[s,P,E]),L=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,My);return xy({},n,{ref:t,"data-popper-arrow":"",style:jy(e)})},[]),M=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xy({},e,{ref:t,"data-popper-arrow-inner":""})},[]);return{update:function(){var e;null==(e=O.current)||e.update()},forceUpdate:function(){var e;null==(e=O.current)||e.forceUpdate()},transformOrigin:wy.transformOrigin.varRef,referenceRef:A,popperRef:P,getPopperProps:T,getArrowProps:L,getArrowInnerProps:M,getReferenceProps:I}}(Dy({},_,{enabled:M||O,placement:E,direction:S})),$=je.useState(-1),H=$[0],q=$[1];lr(function(){M||q(-1)},[M]),lr(function(){if(W&&!function(e){var t=e.current;if(!t)return!1;var n=l(t);return!!n&&!u(t,n)&&!!c(n)}(B)){var e=(null==z?void 0:z.current)||B.current;e&&i(e,{nextTick:!0})}},[W=(F={focusRef:R,visible:M,shouldFocus:!0}).shouldFocus&&!F.visible,B=N,z=F.focusRef]);var Y=function(e){var t=e.isOpen,n=e.ref,r=je.useState(t),a=r[0],i=r[1],s=je.useState(!1),l=s[0],u=s[1];return je.useEffect(function(){l||(i(t),u(!0))},[t,l,a]),nr("animationend",function(){i(t)},function(){return n.current}),{present:!(!t&&!a),onComplete:function(){var e,t=new(o(n.current).CustomEvent)("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}({isOpen:M,ref:N}),Z=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=sr(e);return je.useMemo(function(){return n.map(function(e){return e+"-"+o})},[o,n])}(t,"menu-button","menu-list"),G=Z[0],X=Z[1],K=je.useCallback(function(){j(),I()},[j,I]),J=je.useRef(new Set([]));ur(function(){J.current.forEach(function(e){return clearTimeout(e)}),J.current.clear()});var Q=je.useCallback(function(){j(),P()},[P,j]),ee=je.useCallback(function(){j(),T()},[j,T]),te=je.useCallback(function(){var e,t,n=s(N.current),r=null==(e=N.current)?void 0:e.contains(n.activeElement);if(M&&!r){var o=null==(t=A.item(H))?void 0:t.node;o&&i(o,{selectTextIfInput:!1,preventScroll:!1})}},[M,H,A]);return{openAndFocusMenu:K,openAndFocusFirstItem:Q,openAndFocusLastItem:ee,onTransitionEnd:te,unstable__animationState:Y,descendants:A,popper:U,buttonId:G,menuId:X,forceUpdate:U.forceUpdate,orientation:"vertical",isOpen:M,onToggle:V,onOpen:j,onClose:D,menuRef:N,buttonRef:R,focusedIndex:H,closeOnSelect:r,closeOnBlur:f,autoSelect:m,setFocusedIndex:q,isLazy:v,lazyBehavior:k}}(Dy({},ta(e),{direction:Qo().direction})),f=d.descendants,p=Vy(d,Qy),m=je.useMemo(function(){return p},[p]);/*#__PURE__*/
|
63
|
+
return je.createElement($y,{value:f},/*#__PURE__*/je.createElement(Gy,{value:m},/*#__PURE__*/je.createElement(ug,{value:n},r(t,{isOpen:m.isOpen,onClose:m.onClose,forceUpdate:m.forceUpdate}))))};d&&(dg.displayName="Menu");var fg=/*#__PURE__*/ua(function(e,t){var n=cg();/*#__PURE__*/
|
64
|
+
return je.createElement(va.button,Dy({ref:t},e,{__css:Dy({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))}),pg=/*#__PURE__*/ua(function(e,t){var n=e.as,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Xy(),r=n.onToggle,o=n.popper,i=n.openAndFocusFirstItem,s=n.openAndFocusLastItem,l=je.useCallback(function(e){var t=D(e),n={Enter:i,ArrowDown:i,ArrowUp:s}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[i,s]);return Dy({},e,{ref:Kn(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":O(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:a(e.onClick,r),onKeyDown:a(e.onKeyDown,l)})}(Vy(e,eg),t);/*#__PURE__*/
|
65
|
+
return je.createElement(n||fg,Dy({},r,{className:S("chakra-menu__menu-button",e.className)}),/*#__PURE__*/je.createElement(va.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))});d&&(pg.displayName="MenuButton");var mg={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},vg=function(e){var t=zf;return"custom"in t&&"function"==typeof t.custom?t.custom(e):t(e)}(va.div),hg=/*#__PURE__*/ua(function(e,t){var n,r,o=e.rootProps,i=Vy(e,tg),s=Xy(),l=s.isOpen,u=s.onTransitionEnd,c=s.unstable__animationState,d=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=Xy();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var r=n.focusedIndex,o=n.setFocusedIndex,i=n.menuRef,s=n.isOpen,l=n.onClose,u=n.menuId,c=n.isLazy,d=n.lazyBehavior,f=n.unstable__animationState,p=Hy(),m=function(e){void 0===e&&(e={});var t=e.timeout,n=void 0===t?300:t,r=e.preventDefault,o=void 0===r?function(){return!0}:r,a=je.useState([]),i=a[0],s=a[1],l=je.useRef(),u=function(){l.current&&(clearTimeout(l.current),l.current=null)};return je.useEffect(function(){return u},[]),function(e){return function(t){if("Backspace"===t.key){var r=[].concat(i);return r.pop(),void s(r)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var a=i.concat(t.key);o(t)&&(t.preventDefault(),t.stopPropagation()),s(a),e(a.join("")),u(),l.current=setTimeout(function(){s([]),l.current=null},n)}}}}({preventDefault:function(e){return" "!==e.key&&Ky(e.target)}}),v=je.useCallback(function(e){var t=D(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=p.nextEnabled(r);e&&o(e.index)},ArrowUp:function(){var e=p.prevEnabled(r);e&&o(e.index)}},a=n[t];if(a)return e.preventDefault(),void a(e);var i=m(function(e){var t=W(p.values(),e,function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""},p.item(r));if(t){var n=p.indexOf(t.node);o(n)}});Ky(e.target)&&i(e)},[p,r,m,l,o]),h=je.useRef(!1);s&&(h.current=!0);var y=V({hasBeenSelected:h.current,isLazy:c,lazyBehavior:d,isSelected:f.present});return Dy({},e,{ref:Kn(i,t),children:y?e.children:null,tabIndex:-1,role:"menu",id:u,style:Dy({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:a(e.onKeyDown,v)})}(i,t),f=function(e){void 0===e&&(e={});var t=Xy();return t.popper.getPopperProps(Dy({},e,{style:Dy({visibility:t.isOpen?"visible":"hidden"},e.style)}))}(o),p=cg();/*#__PURE__*/
|
66
|
+
return je.createElement(va.div,Dy({},f,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=p.list)?void 0:r.zIndex}}),/*#__PURE__*/je.createElement(vg,Dy({},d,{onUpdate:u,onAnimationComplete:N(c.onComplete,d.onAnimationComplete),className:S("chakra-menu__menu-list",d.className),variants:mg,initial:!1,animate:l?"enter":"exit",__css:Dy({outline:0},p.list)})))});d&&(hg.displayName="MenuList");var yg=/*#__PURE__*/ua(function(e,t){var n=e.type,r=Vy(e,ng),o=cg(),a=r.as||n?null!=n?n:void 0:"button",i=je.useMemo(function(){return Dy({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item)},[o.item]);/*#__PURE__*/
|
67
|
+
return je.createElement(va.button,Dy({ref:t,type:a},r,{__css:i}))});d&&(/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,a=e.command,i=e.commandSpacing,s=void 0===i?"0.75rem":i,l=e.children,u=Jy(Vy(e,rg),t),c=n||a?/*#__PURE__*/je.createElement("span",{style:{pointerEvents:"none",flex:1}},l):l;/*#__PURE__*/
|
68
|
+
return je.createElement(yg,Dy({},u,{className:S("chakra-menu__menuitem",u.className)}),n&&/*#__PURE__*/je.createElement(kg,{fontSize:"0.8em",marginEnd:o},n),c,a&&/*#__PURE__*/je.createElement(wg,{marginStart:s},a))}).displayName="MenuItem");var gg=function(e){/*#__PURE__*/
|
69
|
+
return je.createElement("svg",Dy({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),/*#__PURE__*/je.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},bg=/*#__PURE__*/ua(function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,a=Vy(e,og),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e.type,r=void 0===n?"radio":n,o=e.isChecked;return Dy({},Jy(Vy(e,zy),t),{role:"menuitem"+r,"aria-checked":o})}(a,t);/*#__PURE__*/
|
70
|
+
return je.createElement(yg,Dy({},i,{className:S("chakra-menu__menuitem-option",a.className)}),null!==n&&/*#__PURE__*/je.createElement(kg,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||/*#__PURE__*/je.createElement(gg,null)),/*#__PURE__*/je.createElement("span",{style:{flex:1}},i.children))});bg.id="MenuItemOption",d&&(bg.displayName="MenuItemOption");var xg=function(e){var t=e.className,n=e.title,r=function(e){void 0===e&&(e={});var t=e.children,n=e.type,r=void 0===n?"radio":n,o=e.value,a=e.defaultValue,i=e.onChange,s=Vy(e,Wy),l=ar({defaultValue:null!=a?a:"radio"===r?"":[],value:o,onChange:i}),u=l[0],c=l[1],d=je.useCallback(function(e){if("radio"===r&&v(u)&&c(e),"checkbox"===r&&b(u)){var t=u.includes(e)?B(u,e):F(u,e);c(t)}},[u,c,r]);return Dy({},s,{children:Qn(t).map(function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===r?e.props.value===u:u.includes(e.props.value);/*#__PURE__*/
|
71
71
|
return je.cloneElement(e,{type:r,onClick:function(t){d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})})})}(Vy(e,ag));/*#__PURE__*/
|
72
|
-
return je.createElement(Eg,Dy({title:n,className:S("chakra-menu__option-group",t)},r))};d&&(xg.displayName="MenuOptionGroup");var Eg=/*#__PURE__*/
|
73
|
-
return je.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/*#__PURE__*/je.createElement(va.p,Dy({className:i},a,{__css:s.groupTitle}),n),r)});d&&(Eg.displayName="MenuGroup");var wg=/*#__PURE__*/
|
72
|
+
return je.createElement(Eg,Dy({title:n,className:S("chakra-menu__option-group",t)},r))};d&&(xg.displayName="MenuOptionGroup");var Eg=/*#__PURE__*/ua(function(e,t){var n=e.title,r=e.children,o=e.className,a=Vy(e,ig),i=S("chakra-menu__group__title",o),s=cg();/*#__PURE__*/
|
73
|
+
return je.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&/*#__PURE__*/je.createElement(va.p,Dy({className:i},a,{__css:s.groupTitle}),n),r)});d&&(Eg.displayName="MenuGroup");var wg=/*#__PURE__*/ua(function(e,t){var n=cg();/*#__PURE__*/
|
74
74
|
return je.createElement(va.span,Dy({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))});d&&(wg.displayName="MenuCommand");var kg=function(e){var t=e.className,n=e.children,r=Vy(e,sg),o=je.Children.only(n),a=/*#__PURE__*/je.isValidElement(o)?/*#__PURE__*/je.cloneElement(o,{focusable:"false","aria-hidden":!0,className:S("chakra-menu__icon",o.props.className)}):null,i=S("chakra-menu__icon-wrapper",t);/*#__PURE__*/
|
75
75
|
return je.createElement(va.span,Dy({className:i},r,{__css:{flexShrink:0}}),a)};function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}function Cg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(kg.displayName="MenuIcon");var Og=function(e){/*#__PURE__*/
|
76
76
|
return je.createElement(Oa,Sg({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"}))},_g=function(e){/*#__PURE__*/
|
77
|
-
return je.createElement(Oa,Sg({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rg(e,t,n,r){je.useEffect(function(){if(e.current&&r){var a=o(e.current),i=Array.isArray(t)?t:[t],s=new a.MutationObserver(function(e){for(var t,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ng(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var o=t.value;"attributes"===o.type&&o.attributeName&&i.includes(o.attributeName)&&n(o)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ag=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],Ig=/^[Ee0-9+\-.]$/;function Pg(e){return Ig.test(e)}var Tg=["htmlProps"],Lg=ea("NumberInput"),Mg=Lg[0],jg=Lg[1],Dg=Jn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Vg=Dg[0],Bg=Dg[1],Fg=/*#__PURE__*/
|
78
|
-
return je.createElement(Vg,{value:
|
79
|
-
return je.createElement(va.div,Sg({"aria-hidden":!0,ref:t},e,{__css:Sg({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});d&&(zg.displayName="NumberInputStepper");var Wg=/*#__PURE__*/
|
80
|
-
return je.createElement(va.input,Sg({},n,{className:S("chakra-numberinput__field",e.className),__css:Sg({width:"100%"},r.field)}))});d&&(Wg.displayName="NumberInputField");var Ug=va("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),$g=/*#__PURE__*/
|
81
|
-
return je.createElement(Ug,Sg({},o,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(Og,null))});d&&($g.displayName="NumberDecrementStepper");var Hg=/*#__PURE__*/
|
82
|
-
return je.createElement(Ug,Sg({},r,{__css:o.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(_g,null))});function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qg.apply(this,arguments)}function Yg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Hg.displayName="NumberIncrementStepper");var Zg=["index"],Gg=Tp(),Xg=Gg[0],Kg=Gg[2],Jg=Gg[3],Qg=Jn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),eb=Qg[0],tb=Qg[1],nb=function(e){return null==e?void 0:e.split("")};function rb(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var ob=["children"],ab=["descendants"],ib=function(e){var t=fa("PinInput",e),n=ta(e),r=n.children,o=function(e){void 0===e&&(e={});var t=e.autoFocus,n=e.value,r=e.defaultValue,o=e.onChange,s=e.onComplete,l=e.placeholder,
|
77
|
+
return je.createElement(Oa,Sg({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"}))};function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rg(e,t,n,r){je.useEffect(function(){if(e.current&&r){var a=o(e.current),i=Array.isArray(t)?t:[t],s=new a.MutationObserver(function(e){for(var t,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ng(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var o=t.value;"attributes"===o.type&&o.attributeName&&i.includes(o.attributeName)&&n(o)}});return s.observe(e.current,{attributes:!0,attributeFilter:i}),function(){return s.disconnect()}}})}var Ag=["focusInputOnChange","clampValueOnBlur","keepWithinRange","min","max","step","isReadOnly","isDisabled","isRequired","isInvalid","pattern","inputMode","allowMouseWheel","id","onChange","precision","name","aria-describedby","aria-label","aria-labelledby","onFocus","onBlur","onInvalid","getAriaValueText","isValidCharacter","format","parse"],Ig=/^[Ee0-9+\-.]$/;function Pg(e){return Ig.test(e)}var Tg=["htmlProps"],Lg=ea("NumberInput"),Mg=Lg[0],jg=Lg[1],Dg=Jn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Vg=Dg[0],Bg=Dg[1],Fg=/*#__PURE__*/ua(function(e,t){var n=pa("NumberInput",e),r=function(e){void 0===e&&(e={});var t=e.focusInputOnChange,n=void 0===t||t,r=e.clampValueOnBlur,o=void 0===r||r,l=e.keepWithinRange,u=void 0===l||l,c=e.min,d=void 0===c?P:c,f=e.max,p=void 0===f?T:f,m=e.step,v=void 0===m?1:m,h=e.isReadOnly,y=e.isDisabled,g=e.isRequired,b=e.isInvalid,x=e.pattern,E=void 0===x?"[0-9]*(.[0-9]+)?":x,w=e.inputMode,k=void 0===w?"decimal":w,S=e.allowMouseWheel,C=e.id,O=e.name,N=e["aria-describedby"],R=e["aria-label"],A=e["aria-labelledby"],I=e.onFocus,L=e.onBlur,j=e.onInvalid,V=e.getAriaValueText,B=e.isValidCharacter,F=e.format,z=e.parse,W=Cg(e,Ag),U=tr(I),$=tr(L),H=tr(j),q=tr(null!=B?B:Pg),Y=tr(V),Z=Ym(e),G=Z.update,X=Z.increment,K=Z.decrement,J=rr(),Q=J[0],ee=J[1],te=!(h||y),ne=je.useRef(null),re=je.useRef(null),oe=je.useRef(null),ae=je.useRef(null),ie=je.useCallback(function(e){return e.split("").filter(q).join("")},[q]),se=je.useCallback(function(e){var t;return null!=(t=null==z?void 0:z(e))?t:e},[z]),le=je.useCallback(function(e){var t;return(null!=(t=null==F?void 0:F(e))?t:e).toString()},[F]);lr(function(){(Z.valueAsNumber>p||Z.valueAsNumber<d)&&(null==H||H("rangeOverflow",le(Z.value),Z.valueAsNumber))},[Z.valueAsNumber,Z.value,le,H]),er(function(){if(ne.current&&ne.current.value!=Z.value){var e=se(ne.current.value);Z.setValue(ie(e))}},[se,ie]);var ue=je.useCallback(function(e){void 0===e&&(e=v),te&&X(e)},[X,te,v]),ce=je.useCallback(function(e){void 0===e&&(e=v),te&&K(e)},[K,te,v]),de=function(e,t){var n,r,o=je.useState(!1),a=o[0],i=o[1],s=je.useState(null),l=s[0],u=s[1],c=je.useState(!0),d=c[0],f=c[1],p=je.useRef(null),m=function(){return clearTimeout(p.current)};n=a?50:null,r=tr(function(){"increment"===l&&e(),"decrement"===l&&t()}),je.useEffect(function(){var e=null;return null!==n&&(e=window.setInterval(function(){return r()},n)),function(){e&&window.clearInterval(e)}},[n,r]);var v=je.useCallback(function(){d&&e(),p.current=setTimeout(function(){f(!1),i(!0),u("increment")},300)},[e,d]),h=je.useCallback(function(){d&&t(),p.current=setTimeout(function(){f(!1),i(!0),u("decrement")},300)},[t,d]),y=je.useCallback(function(){f(!0),i(!1),m()},[]);return ur(m),{up:v,down:h,stop:y,isSpinning:a}}(ue,ce);Rg(oe,"disabled",de.stop,de.isSpinning),Rg(ae,"disabled",de.stop,de.isSpinning);var fe=je.useCallback(function(e){if(!e.nativeEvent.isComposing){var t=se(e.currentTarget.value);G(ie(t)),re.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}}},[G,ie,se]),pe=je.useCallback(function(e){var t,n,r;null==U||U(e),re.current&&(e.target.selectionStart=null!=(t=re.current.start)?t:null==(n=e.currentTarget.value)?void 0:n.length,e.currentTarget.selectionEnd=null!=(r=re.current.end)?r:e.currentTarget.selectionStart)},[U]),me=je.useCallback(function(e){if(!e.nativeEvent.isComposing){(function(e,t){return null==e.key||!(1===e.key.length&&!(e.ctrlKey||e.altKey||e.metaKey))||t(e.key)})(e,q)||e.preventDefault();var t=ve(e)*v,n={ArrowUp:function(){return ue(t)},ArrowDown:function(){return ce(t)},Home:function(){return G(d)},End:function(){return G(p)}}[D(e)];n&&(e.preventDefault(),n(e))}},[q,v,ue,ce,G,d,p]),ve=function(e){var t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},he=je.useMemo(function(){var e=null==Y?void 0:Y(Z.value);return M(e)?Z.value.toString()||void 0:e},[Z.value,Y]),ye=je.useCallback(function(){var e=Z.value;""!==e&&(Z.valueAsNumber<d&&(e=d),Z.valueAsNumber>p&&(e=p),Z.cast(e))},[Z,p,d]),ge=je.useCallback(function(){ee.off(),o&&ye()},[o,ee,ye]),be=je.useCallback(function(){n&&i(ne.current,{nextTick:!0})},[n]),xe=je.useCallback(function(e){e.preventDefault(),de.up(),be()},[be,de]),Ee=je.useCallback(function(e){e.preventDefault(),de.down(),be()},[be,de]);nr("wheel",function(e){var t=s(ne.current);if(S&&t.activeElement===ne.current){e.preventDefault();var n=ve(e)*v,r=Math.sign(e.deltaY);-1===r?ue(n):1===r&&ce(n)}},ne.current,{passive:!1});var we=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=y||u&&Z.isAtMax;return Sg({},e,{ref:Kn(t,oe),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){n||xe(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:n,"aria-disabled":_(n)})},[Z.isAtMax,u,xe,de.stop,y]),ke=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=y||u&&Z.isAtMin;return Sg({},e,{ref:Kn(t,ae),role:"button",tabIndex:-1,onPointerDown:a(e.onPointerDown,function(e){n||Ee(e)}),onPointerLeave:a(e.onPointerLeave,de.stop),onPointerUp:a(e.onPointerUp,de.stop),disabled:n,"aria-disabled":_(n)})},[Z.isAtMin,u,Ee,de.stop,y]),Se=je.useCallback(function(e,t){var n,r,o,i;return void 0===e&&(e={}),void 0===t&&(t=null),Sg({name:O,inputMode:k,type:"text",pattern:E,"aria-labelledby":A,"aria-label":R,"aria-describedby":N,id:C,disabled:y},e,{readOnly:null!=(n=e.readOnly)?n:h,"aria-readonly":null!=(r=e.readOnly)?r:h,"aria-required":null!=(o=e.required)?o:g,required:null!=(i=e.required)?i:g,ref:Kn(ne,t),value:le(Z.value),role:"spinbutton","aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Number.isNaN(Z.valueAsNumber)?void 0:Z.valueAsNumber,"aria-invalid":_(null!=b?b:Z.isOutOfRange),"aria-valuetext":he,autoComplete:"off",autoCorrect:"off",onChange:a(e.onChange,fe),onKeyDown:a(e.onKeyDown,me),onFocus:a(e.onFocus,pe,ee.on),onBlur:a(e.onBlur,$,ge)})},[O,k,E,A,R,le,N,C,y,g,h,b,Z.value,Z.valueAsNumber,Z.isOutOfRange,d,p,he,fe,me,pe,ee.on,$,ge]);return{value:le(Z.value),valueAsNumber:Z.valueAsNumber,isFocused:Q,isDisabled:y,isReadOnly:h,getIncrementButtonProps:we,getDecrementButtonProps:ke,getInputProps:Se,htmlProps:W}}(dm(ta(e))),o=r.htmlProps,l=Cg(r,Tg),u=je.useMemo(function(){return l},[l]);/*#__PURE__*/
|
78
|
+
return je.createElement(Vg,{value:u},/*#__PURE__*/je.createElement(Mg,{value:n},/*#__PURE__*/je.createElement(va.div,Sg({},o,{ref:t,className:S("chakra-numberinput",e.className),__css:Sg({position:"relative",zIndex:0},n.root)}))))});d&&(Fg.displayName="NumberInput");var zg=/*#__PURE__*/ua(function(e,t){var n=jg();/*#__PURE__*/
|
79
|
+
return je.createElement(va.div,Sg({"aria-hidden":!0,ref:t},e,{__css:Sg({display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1},n.stepperGroup)}))});d&&(zg.displayName="NumberInputStepper");var Wg=/*#__PURE__*/ua(function(e,t){var n=(0,Bg().getInputProps)(e,t),r=jg();/*#__PURE__*/
|
80
|
+
return je.createElement(va.input,Sg({},n,{className:S("chakra-numberinput__field",e.className),__css:Sg({width:"100%"},r.field)}))});d&&(Wg.displayName="NumberInputField");var Ug=va("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),$g=/*#__PURE__*/ua(function(e,t){var n,r=jg(),o=(0,Bg().getDecrementButtonProps)(e,t);/*#__PURE__*/
|
81
|
+
return je.createElement(Ug,Sg({},o,{__css:r.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(Og,null))});d&&($g.displayName="NumberDecrementStepper");var Hg=/*#__PURE__*/ua(function(e,t){var n,r=(0,Bg().getIncrementButtonProps)(e,t),o=jg();/*#__PURE__*/
|
82
|
+
return je.createElement(Ug,Sg({},r,{__css:o.stepper}),null!=(n=e.children)?n:/*#__PURE__*/je.createElement(_g,null))});function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qg.apply(this,arguments)}function Yg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(Hg.displayName="NumberIncrementStepper");var Zg=["index"],Gg=Tp(),Xg=Gg[0],Kg=Gg[2],Jg=Gg[3],Qg=Jn({name:"PinInputContext",errorMessage:"usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within `<PinInput />`"}),eb=Qg[0],tb=Qg[1],nb=function(e){return null==e?void 0:e.split("")};function rb(e,t){return("alphanumeric"===t?/^[a-zA-Z0-9]+$/i:/^[0-9]+$/).test(e)}var ob=["children"],ab=["descendants"],ib=function(e){var t=fa("PinInput",e),n=ta(e),r=n.children,o=function(e){void 0===e&&(e={});var t=e.autoFocus,n=e.value,r=e.defaultValue,o=e.onChange,s=e.onComplete,l=e.placeholder,u=void 0===l?"○":l,c=e.manageFocus,d=void 0===c||c,f=e.otp,p=void 0!==f&&f,m=e.id,v=e.isDisabled,h=e.isInvalid,y=e.type,g=void 0===y?"number":y,b=e.mask,x=sr(),E=null!=m?m:"pin-input-"+x,w=Kg(),k=je.useState(!0),S=k[0],C=k[1],O=je.useState(-1),N=O[0],R=O[1],A=ar({defaultValue:nb(r)||[],value:nb(n),onChange:function(e){return null==o?void 0:o(e.join(""))}}),I=A[0],P=A[1];je.useEffect(function(){if(t){var e=w.first();e&&i(e.node,{nextTick:!0})}},[w]);var T=je.useCallback(function(e){if(S&&d){var t=w.next(e,!1);t&&i(t.node,{nextTick:!0})}},[w,S,d]),L=je.useCallback(function(e,t){var n=[].concat(I);n[t]=e,P(n),""!==e&&n.length===w.count()&&n.every(function(e){return null!=e&&""!==e})?null==s||s(n.join("")):T(t)},[I,P,T,s,w]),M=je.useCallback(function(){var e=Array(w.count()).fill("");P(e);var t=w.first();t&&i(t.node)},[w,P]),j=je.useCallback(function(e,t){var n=t;return(null==e?void 0:e.length)>0&&(e[0]===t.charAt(0)?n=t.charAt(1):e[0]===t.charAt(1)&&(n=t.charAt(0))),n},[]),D=je.useCallback(function(e){var t=e.index,n=Yg(e,Zg),r=N===t;return qg({"aria-label":"Please enter your pin code",inputMode:"number"===g?"numeric":"text",type:b?"password":"number"===g?"tel":"text"},n,{id:E+"-"+t,disabled:v,"aria-invalid":_(h),onChange:a(n.onChange,function(e){var n=e.target.value,r=j(I[t],n);if(""!==r)if(n.length>2){if(rb(n,g)){var o=n.split("").filter(function(e,t){return t<w.count()});P(o),o.length===w.count()&&(null==s||s(o.join("")))}}else rb(r,g)&&L(r,t),C(!0);else L("",t)}),onKeyDown:a(n.onKeyDown,function(e){if("Backspace"===e.key&&d)if(""===e.target.value){var n=w.prev(t,!1);n&&(L("",t-1),i(n.node),C(!0))}else C(!1)}),onFocus:a(n.onFocus,function(){R(t)}),onBlur:a(n.onBlur,function(){R(-1)}),value:I[t]||"",autoComplete:p?"one-time-code":"off",placeholder:r?"":u})},[w,N,j,E,v,b,h,d,s,p,u,L,P,g,I]);return{getInputProps:D,id:E,descendants:w,values:I,setValue:L,setValues:P,clear:M}}(Yg(n,ob)),s=o.descendants,l=Yg(o,ab),u=Qn(r).map(function(e){/*#__PURE__*/
|
83
83
|
return je.cloneElement(e,{__css:t})});/*#__PURE__*/
|
84
|
-
return je.createElement(Xg,{value:s},/*#__PURE__*/je.createElement(eb,{value:l},
|
85
|
-
return je.createElement(va.input,qg({},n,{className:S("chakra-pin-input",e.className)}))});function lb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function
|
86
|
-
return je.createElement(pb,{value:v},/*#__PURE__*/je.createElement(va.div,
|
87
|
-
return je.createElement(va.label,
|
88
|
-
return je.createElement(va.select,xb({},a,{ref:t,className:S("chakra-select",o)}),r&&/*#__PURE__*/je.createElement("option",{value:""},r),n)});d&&(Cb.displayName="SelectField");var Ob=/*#__PURE__*/
|
89
|
-
return je.createElement(va.div,xb({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/je.createElement(Cb,xb({ref:t,height:null!=
|
84
|
+
return je.createElement(Xg,{value:s},/*#__PURE__*/je.createElement(eb,{value:l},u))};d&&(ib.displayName="PinInput");var sb=/*#__PURE__*/ua(function(e,t){var n=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=tb().getInputProps,r=Jg(),o=r.index;return n(qg({},e,{ref:Kn(r.register,t),index:o}))}(e,t);/*#__PURE__*/
|
85
|
+
return je.createElement(va.input,qg({},n,{className:S("chakra-pin-input",e.className)}))});function lb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}d&&(sb.displayName="PinInputField");var cb=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"],db=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],fb=Jn({name:"RadioGroupContext",strict:!1}),pb=fb[0],mb=fb[1],vb=/*#__PURE__*/ua(function(e,t){var n=e.colorScheme,r=e.size,o=e.variant,a=e.children,i=e.className,s=e.isDisabled,l=e.isFocusable,u=function(e){void 0===e&&(e={});var t=e.onChange,n=e.value,r=e.defaultValue,o=e.name,a=e.isDisabled,i=e.isFocusable,s=e.isNative,l=lb(e,cb),u=je.useState(r||""),c=u[1],d=or(n,u[0]),f=d[0],p=d[1],m=je.useRef(null),v=je.useCallback(function(){var e=m.current;if(e){var t="input:not(:disabled):checked",n=e.querySelector(t);if(n)n.focus();else{var r=e.querySelector(t="input:not(:disabled)");null==r||r.focus()}}},[]),h=sr(void 0,"radio"),y=o||h,g=je.useCallback(function(e){var n=H(e)?e.target.value:e;f||c(n),null==t||t(String(n))},[t,f]),b=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:Kn(t,m),role:"radiogroup"})},[]),x=je.useCallback(function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,((n={ref:t,name:y})[s?"checked":"isChecked"]=null!=p?e.value===p:void 0,n.onChange=g,n["data-radiogroup"]=!0,n))},[s,y,g,p]);return{getRootProps:b,getRadioProps:x,name:y,ref:m,focus:v,setValue:c,value:p,onChange:g,isDisabled:a,isFocusable:i,htmlProps:l}}(lb(e,db)),c=u.value,d=u.onChange,f=u.getRootProps,p=u.name,m=u.htmlProps,v=je.useMemo(function(){return{name:p,size:r,onChange:d,colorScheme:n,value:c,variant:o,isDisabled:s,isFocusable:l}},[p,r,d,n,c,o,s,l]),h=f(m,t),y=S("chakra-radio-group",i);/*#__PURE__*/
|
86
|
+
return je.createElement(pb,{value:v},/*#__PURE__*/je.createElement(va.div,ub({},h,{className:y}),a))});d&&(vb.displayName="RadioGroup");var hb=["defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function yb(e){e.preventDefault(),e.stopPropagation()}var gb=["spacing","children","isDisabled","isFocusable","inputProps"],bb=/*#__PURE__*/ua(function(e,t){var n,r=mb(),o=e.onChange,i=e.value,s=pa("Radio",ub({},r,e)),l=ta(e),u=l.spacing,c=void 0===u?"0.5rem":u,d=l.children,f=l.isDisabled,p=void 0===f?null==r?void 0:r.isDisabled:f,m=l.isFocusable,v=void 0===m?null==r?void 0:r.isFocusable:m,h=l.inputProps,y=lb(l,gb),g=e.isChecked;null!=(null==r?void 0:r.value)&&null!=i&&(g=r.value===i);var b=o;null!=r&&r.onChange&&null!=i&&(b=N(r.onChange,o));var x=function(e){void 0===e&&(e={});var t=e.defaultChecked,n=e.isChecked,r=e.isFocusable,o=e.isDisabled,i=e.isReadOnly,s=e.isRequired,l=e.onChange,u=e.isInvalid,c=e.name,d=e.value,f=e.id,p=e["data-radiogroup"],m=e["aria-describedby"],v=lb(e,hb),h=sr(void 0,"radio"),y=am(),g=mb(),b=!y||g||p?h:y.id;b=null!=f?f:b;var x=null!=o?o:null==y?void 0:y.isDisabled,E=null!=i?i:null==y?void 0:y.isReadOnly,w=null!=s?s:null==y?void 0:y.isRequired,k=null!=u?u:null==y?void 0:y.isInvalid,S=je.useState(!1),C=S[0],N=S[1],R=rr(),A=R[0],I=R[1],P=rr(),T=P[0],L=P[1],M=rr(),j=M[0],D=M[1],V=je.useState(Boolean(t)),B=V[1],F=or(n,V[0]),z=F[0],W=F[1];je.useEffect(function(){return Am(N)},[]);var U=je.useCallback(function(e){E||x?e.preventDefault():(z||B(e.target.checked),null==l||l(e))},[z,x,E,l]),$=je.useCallback(function(e){" "===e.key&&D.on()},[D]),H=je.useCallback(function(e){" "===e.key&&D.off()},[D]),q=je.useCallback(function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:t,"data-active":O(j),"data-hover":O(T),"data-disabled":O(x),"data-invalid":O(k),"data-checked":O(W),"data-focus":O(A),"data-focus-visible":O(A&&C),"data-readonly":O(E),"aria-hidden":!0,onMouseDown:a(e.onMouseDown,D.on),onMouseUp:a(e.onMouseUp,D.off),onMouseEnter:a(e.onMouseEnter,L.on),onMouseLeave:a(e.onMouseLeave,L.off)})},[j,T,x,k,W,A,E,D.on,D.off,L.on,L.off,C]),Y=null!=y?y:{},Z=Y.onFocus,G=Y.onBlur,X=je.useCallback(function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=x&&!r;return ub({},e,{id:b,ref:t,type:"radio",name:c,value:d,onChange:a(e.onChange,U),onBlur:a(G,e.onBlur,I.off),onFocus:a(Z,e.onFocus,I.on),onKeyDown:a(e.onKeyDown,$),onKeyUp:a(e.onKeyUp,H),checked:W,disabled:n,readOnly:E,required:w,"aria-invalid":_(k),"aria-disabled":_(n),"aria-required":_(w),"data-readonly":O(E),"aria-describedby":m,style:ha})},[x,r,b,c,d,U,G,I,Z,$,H,W,E,w,k,m]);return{state:{isInvalid:k,isFocused:A,isChecked:W,isActive:j,isHovered:T,isDisabled:x,isReadOnly:E,isRequired:w},getCheckboxProps:q,getInputProps:X,getLabelProps:function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ub({},e,{ref:t,onMouseDown:a(e.onMouseDown,yb),onTouchStart:a(e.onTouchStart,yb),"data-disabled":O(x),"data-checked":O(W),"data-invalid":O(k)})},getRootProps:function(e,t){return void 0===t&&(t=null),ub({},e,{ref:t,"data-disabled":O(x),"data-checked":O(W),"data-invalid":O(k)})},htmlProps:v}}(ub({},y,{isChecked:g,isFocusable:v,isDisabled:p,onChange:b,name:null!=(n=null==e?void 0:e.name)?n:null==r?void 0:r.name})),E=x.getInputProps,w=x.getCheckboxProps,k=x.getLabelProps,S=x.getRootProps,C=$(x.htmlProps,Io),R=C[0],A=w(C[1]),I=E(h,t),P=k(),T=Object.assign({},R,S()),L=ub({display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative"},s.container),M=ub({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},s.control),j=ub({userSelect:"none",marginStart:c},s.label);/*#__PURE__*/
|
87
|
+
return je.createElement(va.label,ub({className:"chakra-radio"},T,{__css:L}),/*#__PURE__*/je.createElement("input",ub({className:"chakra-radio__input"},I)),/*#__PURE__*/je.createElement(va.span,ub({className:"chakra-radio__control"},A,{__css:M})),d&&/*#__PURE__*/je.createElement(va.span,ub({className:"chakra-radio__label"},P,{__css:j}),d))});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.apply(this,arguments)}function Eb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(bb.displayName="Radio");var wb=["children","placeholder","className"],kb=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize"],Sb=["children"],Cb=/*#__PURE__*/ua(function(e,t){var n=e.children,r=e.placeholder,o=e.className,a=Eb(e,wb);/*#__PURE__*/
|
88
|
+
return je.createElement(va.select,xb({},a,{ref:t,className:S("chakra-select",o)}),r&&/*#__PURE__*/je.createElement("option",{value:""},r),n)});d&&(Cb.displayName="SelectField");var Ob=/*#__PURE__*/ua(function(e,t){var n=pa("Select",e),r=ta(e),o=r.rootProps,a=r.placeholder,i=r.icon,s=r.color,l=r.height,u=r.h,c=r.minH,d=r.minHeight,f=r.iconColor,p=r.iconSize,v=Eb(r,kb),h=$(v,Io),y=h[0],g=cm(h[1]),b={width:"100%",height:"fit-content",position:"relative",color:s},x=m({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});/*#__PURE__*/
|
89
|
+
return je.createElement(va.div,xb({className:"chakra-select__wrapper",__css:b},y,o),/*#__PURE__*/je.createElement(Cb,xb({ref:t,height:null!=u?u:l,minH:null!=c?c:d,placeholder:a},g,{__css:x}),e.children),/*#__PURE__*/je.createElement(Rb,xb({"data-disabled":O(g.disabled)},(f||s)&&{color:f||s},{__css:n.icon},p&&{fontSize:p}),i))});d&&(Ob.displayName="Select");var _b=function(e){/*#__PURE__*/
|
90
90
|
return je.createElement("svg",xb({viewBox:"0 0 24 24"},e),/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},Nb=va("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Rb=function(e){var t=e.children,n=void 0===t?/*#__PURE__*/je.createElement(_b,null):t,r=Eb(e,Sb),o=/*#__PURE__*/je.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});/*#__PURE__*/
|
91
|
-
return je.createElement(Nb,xb({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/je.isValidElement(n)?o:null)};function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}d&&(Rb.displayName="SelectIcon");var Ib=["spacing","children"],Pb=/*#__PURE__*/
|
92
|
-
return je.createElement(va.label,Ab({},f(),{className:S("chakra-switch",e.className),__css:m}),/*#__PURE__*/je.createElement("input",Ab({className:"chakra-switch__input"},
|
93
|
-
return je.createElement(va.textarea,Tb({ref:t,rows:a},s,{className:S("chakra-textarea",o),__css:l}))});function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(this,arguments)}d&&(jb.displayName="Textarea");const Vb=["hideStepper","incrementIcon","decrementIcon"],Bb=
|
91
|
+
return je.createElement(Nb,xb({},r,{className:"chakra-select__icon-wrapper"}),/*#__PURE__*/je.isValidElement(n)?o:null)};function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}d&&(Rb.displayName="SelectIcon");var Ib=["spacing","children"],Pb=/*#__PURE__*/ua(function(e,t){var n=pa("Switch",e),r=ta(e),o=r.spacing,a=void 0===o?"0.5rem":o,i=r.children,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,Ib),l=zm(s),u=l.state,c=l.getInputProps,d=l.getCheckboxProps,f=l.getRootProps,p=l.getLabelProps,m=je.useMemo(function(){return Ab({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},n.container)},[n.container]),v=je.useMemo(function(){return Ab({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)},[n.track]),h=je.useMemo(function(){return Ab({userSelect:"none",marginStart:a},n.label)},[a,n.label]);/*#__PURE__*/
|
92
|
+
return je.createElement(va.label,Ab({},f(),{className:S("chakra-switch",e.className),__css:m}),/*#__PURE__*/je.createElement("input",Ab({className:"chakra-switch__input"},c({},t))),/*#__PURE__*/je.createElement(va.span,Ab({},d(),{className:"chakra-switch__track",__css:v}),/*#__PURE__*/je.createElement(va.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":O(u.isChecked),"data-hover":O(u.isHovered)})),i&&/*#__PURE__*/je.createElement(va.span,Ab({className:"chakra-switch__label"},p(),{__css:h}),i))});function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tb.apply(this,arguments)}d&&(Pb.displayName="Switch");var Lb=["className","rows"],Mb=["h","minH","height","minHeight"],jb=/*#__PURE__*/ua(function(e,t){var n=fa("Textarea",e),r=ta(e),o=r.className,a=r.rows,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(r,Lb),s=cm(i),l=a?E(n,Mb):n;/*#__PURE__*/
|
93
|
+
return je.createElement(va.textarea,Tb({ref:t,rows:a},s,{className:S("chakra-textarea",o),__css:l}))});function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(this,arguments)}d&&(jb.displayName="Textarea");const Vb=["hideStepper","incrementIcon","decrementIcon"],Bb=ua((e,t)=>{const{hideStepper:n,incrementIcon:r,decrementIcon:o}=e,a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Vb);return je.createElement(Fg,Db({},a,{ref:t}),/*#__PURE__*/je.createElement(Wg,null),!n&&/*#__PURE__*/je.createElement(zg,null,/*#__PURE__*/je.createElement(Hg,{children:r}),/*#__PURE__*/je.createElement($g,{children:o})))});function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}Bb.defaultProps={hideStepper:!1},d&&(Bb.displayName="NumberInput");var zb=["as","viewBox","color","focusable","children","className","__css"],Wb={path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ub=/*#__PURE__*/ua(function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,u=e.className,c=e.__css,d=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,zb),f={ref:t,focusable:s,className:S("chakra-icon",u),__css:Fb({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},c)},p=null!=r?r:Wb.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
|
94
94
|
return je.createElement(va.svg,Fb({as:n},f,d));var m=null!=l?l:Wb.path;/*#__PURE__*/
|
95
|
-
return je.createElement(va.svg,Fb({verticalAlign:"middle",viewBox:p},f,d),m)});function $b(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,r=e.d,o=e.displayName,a=e.defaultProps,i=void 0===a?{}:a,s=je.Children.toArray(e.path),l=/*#__PURE__*/
|
96
|
-
return je.createElement(Ub,Fb({ref:t,viewBox:n},i,e),s.length?s:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:r}))});return d&&(l.displayName=o),l}d&&(Ub.displayName="Icon"),$b({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),$b({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),$b({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),$b({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),$b({displayName:"SunIcon",path:/*#__PURE__*/je.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/je.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/je.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Hb=$b({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});$b({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),$b({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),$b({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),$b({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),$b({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var qb=$b({displayName:"ViewIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Yb=$b({displayName:"ViewOffIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/je.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});$b({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),$b({displayName:"DeleteIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),$b({displayName:"RepeatIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),$b({displayName:"RepeatClockIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/je.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),$b({displayName:"EditIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/je.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),$b({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),$b({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Zb=$b({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});$b({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),$b({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),$b({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),$b({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),$b({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),$b({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),$b({displayName:"ExternalLinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/je.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/je.createElement("path",{d:"M10 14L21 3"}))}),$b({displayName:"LinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/je.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),$b({displayName:"PlusSquareIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/je.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/je.createElement("path",{d:"M8 12h8"}))}),$b({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),$b({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),$b({displayName:"TimeIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/je.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),$b({displayName:"ArrowRightIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),$b({displayName:"ArrowLeftIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),$b({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),$b({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),$b({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),$b({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),$b({displayName:"EmailIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),$b({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),$b({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),$b({displayName:"SpinnerIcon",path:/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement("defs",null,/*#__PURE__*/je.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/je.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/je.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/je.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/je.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/je.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/je.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),$b({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),$b({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/je.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),$b({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),$b({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),$b({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),$b({displayName:"InfoOutlineIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/je.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/je.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),$b({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),$b({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),$b({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),$b({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Gb=$b({viewBox:"0 0 14 14",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Xb=$b({displayName:"MinusIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}$b({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});const Jb=["label","children"],Qb=ca((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Jb);return je.createElement(Hp,Kb({ref:t},o),r||n)});function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(this,arguments)}d&&(Qb.displayName="Button");const tx=ca((e,t)=>/*#__PURE__*/je.createElement(gv,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/je.createElement(Qb,ex({ref:t,height:"auto"},e))));function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}tx.id="InputRightElement",d&&(tx.displayName="InputRightButton");const rx=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],ox=ca((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,c=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,rx),[u,d]=je.useState(!1),f=u?"Hide password":"Show password";let p;return p=u?n||/*#__PURE__*/je.createElement(qb,null):r||/*#__PURE__*/je.createElement(Yb,null),/*#__PURE__*/je.createElement(av,{width:a||i,size:s,variant:l},/*#__PURE__*/je.createElement(ev,nx({},c,{ref:t,type:u?"text":"password",autoComplete:u?"off":o})),/*#__PURE__*/je.createElement(tx,{onClick:()=>d(!u),"aria-label":f,variant:"ghost"},p))});function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function ix(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(ox.displayName="PasswordInput");const sx=["options","spacing","direction"],lx=["onBlur","onChange"],cx=["value","label"],ux=ca((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=ix(e,sx);const{onBlur:i,onChange:s}=a,l=ix(a,lx);return je.createElement(vb,ax({onChange:s},l),/*#__PURE__*/je.createElement(Qv,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=ix(e,cx);return je.createElement(bb,ax({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}function fx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(ux.displayName="RadioInput");const px=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],mx=["value","label"],vx=ca((e,t)=>{const n=pa("Input",e),r=n.field._focusVisible,o=dx({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return je.createElement(pg,dx({as:Hp},e,{ref:t,sx:o}))});d&&(vx.displayName="SelectButton");const hx=ca((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:l,isDisabled:c,leftIcon:u,rightIcon:d=/*#__PURE__*/je.createElement(Zb,null),multiple:f,size:p,variant:m,menuListProps:v,renderValue:h=(e=>null==e?void 0:e.join(", "))}=e,y=ta(fx(e,px)),[g,b]=je.useState(s||i),x=um({name:n}),E={isDisabled:c,leftIcon:u,rightIcon:d,size:p,variant:m},w=je.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),k=g?(Array.isArray(g)?g:[g]).map(w):[];return je.createElement(dg,dx({},y,{closeOnSelect:!f}),/*#__PURE__*/je.createElement(va.div,{className:S("saas-select")},/*#__PURE__*/je.createElement(vx,dx({ref:t},E),h(k)||l),/*#__PURE__*/je.createElement(hg,dx({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/je.createElement(xg,{defaultValue:i||s,onChange:e=>{b(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=fx(e,mx);return je.createElement(bg,dx({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/je.createElement(va.input,dx({},x,{name:n,type:"hidden",value:g,className:"saas-select__input"}))))});d&&(hx.displayName="Select");const yx=["options","children"],gx=ca((e,t)=>{let{options:n,children:r}=e,o=fx(e,yx);return je.createElement(Ob,dx({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/je.createElement("option",{key:e,value:e},t||e))))});function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}function xx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(gx.displayName="NativeSelect");const[Ex,wx]=Jn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function kx(e){const{step:t,onChange:n}=e,[r,o]=je.useState(-1),a=je.useRef([]),[,i]=je.useState(Date.now()),s=je.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return je.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),je.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const Sx=["orientation","children"],Cx=["children","orientation","step","onChange"],Ox=["children","orientation","stepComponent"],_x=["children","isOpen"],Nx=["icon","isActive","isCompleted","className"],Rx=["name","title","icon","isActive","isCompleted"],Ax=["isActive"],[Ix,Px]=ea("Stepper"),Tx=ca((e,t)=>{const{orientation:n,children:r}=e,o=xx(e,Sx);return je.createElement(Lx,bx({ref:t,orientation:n},o),/*#__PURE__*/je.createElement(Mx,{orientation:n},r))});d&&(Tx.displayName="Stepper");const Lx=ca((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=xx(e,Cx),a=pa("Stepper",bx({},o,{orientation:r})),i=ta(o),s=kx(e),l=bx({display:"flex",flexDirection:"column"},a.container);return je.createElement(Ix,{value:a},/*#__PURE__*/je.createElement(Ex,{value:s},/*#__PURE__*/je.createElement(va.div,bx({ref:t,__css:l},i,{className:S("saas-stepper",e.className)}),n)))});d&&(Lx.displayName="StepperContainer");const Mx=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=xx(e,Ox),s=Px(),{activeIndex:l}=wx(),c=bx({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),u="vertical"===o,d=a||Vx,f=(h=d,je.Children.toArray(r).filter(e=>Array.isArray(h)?h.some(t=>t===e.type):e.type===h)),p=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/je.createElement(d,bx({key:n},t.props,{icon:t.props.icon||n+1,isActive:l===n,isCompleted:t.props.isCompleted||l>n}))),u&&e.push(/*#__PURE__*/je.createElement(jx,{key:`content-${n}`,isOpen:l===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/je.createElement(Bx,{key:`separator-${n}`,isActive:n<l})),e),[]),m=function(e,t){return je.Children.toArray(e).find(e=>e.type===t)}(r,zx),v=l>=f.length?m:u?null:/*#__PURE__*/je.createElement(jx,null,null==(t=f[l])||null==(n=t.props)?void 0:n.children);var h;return je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(va.div,bx({__css:c},i,{className:S("saas-stepper__steps",e.className)}),p),v)};d&&(Mx.displayName="StepperSteps");const jx=e=>{const{children:t,isOpen:n=!0}=e,r=xx(e,_x),o=Px();return je.createElement(va.div,bx({__css:o.content},r,{className:S("saas-stepper__content",e.className)}),/*#__PURE__*/je.createElement(sp,{in:n},t))};d&&(jx.displayName="StepperContent");const Dx=e=>{const{icon:t,isCompleted:n,className:r}=e,o=xx(e,Nx),a=bx({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Px().icon);let i;return i=n?/*#__PURE__*/je.createElement(Ub,{as:Gb}):t,/*#__PURE__*/je.createElement(va.div,bx({__css:a},o,{className:S("saas-stepper__icon",r)}),i)};d&&(Dx.displayName="StepperIcon");const Vx=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=xx(e,Rx),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=wx();return je.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=bx({display:"flex",alignItems:"center",flexDirection:"row"},Px().step);return je.createElement(va.div,bx({},a,{__css:s,"data-active":O(i.isActive),"data-completed":O(i.isCompleted),className:S("saas-stepper__step",e.className)}),/*#__PURE__*/je.createElement(Dx,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/je.createElement(Fx,null,t))};d&&(Vx.displayName="StepperStep");const Bx=e=>{const{isActive:t}=e,n=xx(e,Ax),r=bx({flex:1,mx:2},Px().separator);return je.createElement(va.div,bx({},n,{"data-active":O(t),className:S("saas-stepper__separator",e.className),__css:r}))};d&&(Bx.displayName="StepperSeparator");const Fx=e=>{const t=Px();return je.createElement(va.p,bx({},e,{__css:t.title,className:S("saas-stepper__title",e.className)}))};d&&(Fx.displayName="StepperStepTitle");const zx=e=>{const t=Px();return je.createElement(va.div,bx({__css:t.completed},e,{className:S("saas-stepper__completed",e.className)}))};function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}function Ux(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(zx.displayName="StepperCompleted");const $x=["name","label","help","hideLabel","children"],Hx=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],qx=["name","rules"],Yx=["ref"],Zx=["name","rules"],Gx=["ref"],Xx=["type","leftAddon","rightAddon","size"],Kx=["type"],Jx=["label","type"],Qx=["pinLength","pinType","spacing"],eE={},tE="text",nE=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=Ux(e,$x),{formState:s}=Y(),l=((e,t)=>Z(t.errors,e))(t,s);return je.createElement(im,Wx({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/je.createElement(ym,null,n):null,/*#__PURE__*/je.createElement(Ov,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/je.createElement(sm,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/je.createElement(vm,null,null==l?void 0:l.message)))};d&&(nE.displayName="BaseField");const rE=je.forwardRef((e,t)=>{const{type:n=tE}=e;return je.createElement(eE[n]||eE[tE],Wx({ref:t},e))}),oE=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>ca((t,n)=>{let{name:r,rules:o}=t,a=Ux(t,qx);const{control:i}=Y();return je.createElement(J,{name:r,control:i,rules:o,render:t=>{let{field:{ref:r}}=t,o=Ux(t.field,Yx);return je.createElement(e,Wx({},o,a,{ref:dr(n,r)}))}})}))(t):(e=>ca((t,n)=>{let{name:r,rules:o}=t,a=Ux(t,Zx);const{register:i}=Y(),s=i(r,o),{ref:l}=s,c=Ux(s,Gx);return je.createElement(e,Wx({},c,a,{ref:dr(n,l)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=ca((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:f,rules:p}=t,m=Ux(t,Hx),v=Wx({required:f},p);return je.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:f},/*#__PURE__*/je.createElement(e,Wx({ref:o,id:a,name:i,label:n?s:void 0,rules:v},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||nE});return eE[e]=o,o};oE("text",ca((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=Ux(e,Xx);const s=/*#__PURE__*/je.createElement(ev,Wx({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/je.createElement(av,{size:a},r,s,o):s})),oE("number",Bb,{isControlled:!0}),oE("password",ca((e,t)=>/*#__PURE__*/je.createElement(ox,Wx({ref:t},e)))),oE("textarea",jb),oE("switch",ca((e,t)=>{let n=Ux(e,Kx);return je.createElement(Pb,Wx({},n,{ref:t}))}),{isControlled:!0}),oE("select",hx,{isControlled:!0}),oE("checkbox",ca((e,t)=>{let{label:n}=e,r=Ux(e,Jx);return je.createElement(qm,Wx({ref:t},r),n)}),{hideLabel:!0}),oE("radio",ux,{isControlled:!0}),oE("native-select",gx,{isControlled:!0}),oE("pin",ca((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=Ux(e,Qx),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/je.createElement(sb,{key:e,ref:t}));return je.createElement(eh,{spacing:o},/*#__PURE__*/je.createElement(ib,Wx({},a,{type:r}),i))}),{isControlled:!0});const aE=["items","label","title"],iE=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return Wx({},Ux(t,aE),{name:e,label:n||r})}),sE=e=>({getFields:()=>iE(e),getNestedFields:t=>{var n;const r=q(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?iE(r.items.properties):"object"===r.type?iE(r.properties):[r.items]:[]}}),lE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],cE=ca((e,t)=>{const{mode:n="all",resolver:o,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:c,delayError:u,schema:d,defaultValues:f,onChange:p,onSubmit:m,onError:v,formRef:h,children:y}=e,g=Ux(e,lE),b={mode:n,resolver:o,defaultValues:f,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:c,delayError:u};d&&!o&&(b.resolver=null==cE.getResolver?void 0:cE.getResolver(d));const x=X(b),{handleSubmit:E}=x;return je.useImperativeHandle(t,()=>x,[t,x]),je.useEffect(()=>{let e;return p&&(e=x.watch(p)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[x,p]),/*#__PURE__*/je.createElement(K,x,/*#__PURE__*/je.createElement(va.form,Wx({ref:h,onSubmit:E(m,v)},g,{className:S("saas-form",e.className)}),r(y,x)))});cE.getFieldResolver=sE,d&&(cE.displayName="Form");const uE=["children"],dE=({children:e})=>/*#__PURE__*/je.createElement(va.div,null,e);d&&(dE.displayName="FormLayoutItem");const fE=e=>{var t,n,r;let{children:o}=e,a=Ux(e,uE);const i=Wx({},null!=(t=null==(n=Qo().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return je.createElement(Zv,Wx({},i,{className:S("saas-form__layout",a.className)}),je.Children.map(o,e=>je.isValidElement(e)?/*#__PURE__*/je.createElement(dE,null,e):e))};d&&(fE.displayName="FormLayout");const pE=(e,t)=>je.Children.map(t,t=>je.isValidElement(t)&&t.props.name?je.cloneElement(t,Wx({},t.props,{name:`${e}.${t.props.name}`})):t),[mE,vE]=Jn({name:"ArrayFieldContext"}),[hE,yE]=Jn({name:"ArrayFieldRowContext"}),gE=["children","index"],bE=["children"],xE=["children"],EE=["name","defaultValue","keyName","min","max","children"],wE=e=>{let{children:t,index:n}=e,r=Ux(e,gE);return je.createElement(SE,{index:n},/*#__PURE__*/je.createElement(kE,r,t),/*#__PURE__*/je.createElement(CE,null))};d&&(wE.displayName="ArrayFieldRow");const kE=e=>{let{children:t}=e,n=Ux(e,bE);const{name:r}=yE();return je.createElement(fE,Wx({flex:"1",mr:"2"},n),pE(r,t))};d&&(kE.displayName="ArrayFieldRowFields");const SE=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=Y(),{name:n,remove:r,fields:o}=vE();return je.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:je.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return je.createElement(hE,{value:n},/*#__PURE__*/je.createElement(va.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};d&&(SE.displayName="ArrayFieldRowContainer");const CE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Xb,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=yE(),{min:n,fields:r}=vE();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));d&&(CE.displayName="ArrayFieldRemoveButton");const OE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Hb,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=vE();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));d&&(OE.displayName="ArrayFieldAddButton");const _E=ca((e,t)=>{const{children:n}=e,r=Ux(e,xE);return je.createElement(RE,Wx({ref:t},r),/*#__PURE__*/je.createElement(NE,null,e=>/*#__PURE__*/je.createElement(je.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/je.createElement(wE,{key:e,index:t},n)))),/*#__PURE__*/je.createElement(OE,null))});d&&(_E.displayName="ArrayField");const NE=({children:e})=>{const{fields:t}=vE();return e(t)};d&&(NE.displayName="ArrayFieldRows");const RE=je.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=Ux(e,EE);const c=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=Y();return Wx({},G({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return je.useImperativeHandle(t,()=>c,[t,c]),/*#__PURE__*/je.createElement(mE,{value:c},/*#__PURE__*/je.createElement(nE,Wx({name:n},l),s))});d&&(RE.displayName="ArrayFieldContainer");const AE=["name","label","hideLabel","children","columns","spacing"],IE=e=>{const t=fa("FormLegend");return je.createElement(ym,Wx({as:"legend",sx:t},e))},PE=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=Ux(e,AE);return je.createElement(im,Wx({name:t,as:"fieldset"},s),/*#__PURE__*/je.createElement(IE,{display:r?"none":"block"},n),/*#__PURE__*/je.createElement(fE,{columns:a,gridGap:i},pE(t,o)))};d&&(PE.displayName="ObjectField");const TE=["name","type"],LE=["schema","fieldResolver","focusFirstField"],ME=["name","type","defaultValue"],jE=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=Ux(e,TE);return je.createElement(rE,Wx({key:n||t,name:n,type:r},o))})},DE=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=Ux(e,LE);const a=je.useMemo(()=>n||cE.getFieldResolver(t),[t,n]),i=je.useMemo(()=>a.getFields(),[a]),s=Y();return je.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/je.createElement(fE,o,i.map(e=>{let{name:t,type:n}=e,r=Ux(e,ME);return"array"===n?/*#__PURE__*/je.createElement(_E,Wx({key:t,name:t},r),jE(a,t)):"object"===n?/*#__PURE__*/je.createElement(PE,Wx({key:t,name:t},r),jE(a,t)):/*#__PURE__*/je.createElement(rE,Wx({key:t,name:t,type:n},r))}))};d&&(DE.displayName="Fields");const VE=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],BE=je.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=Ux(e,VE),{formState:l}=Y();return je.createElement(Qb,Wx({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});BE.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},d&&(BE.displayName="SubmitButton");const FE=["schema","submitLabel","fieldResolver","children"],zE=ca((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=Ux(e,FE);return je.createElement(cE,Wx({},i,{schema:n,ref:t}),/*#__PURE__*/je.createElement(fE,null,/*#__PURE__*/je.createElement(DE,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/je.createElement(BE,null,r),a))});d&&(zE.displayName="AutoForm");const WE=["onChange"],[UE,$E]=Jn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),HE=["children"],qE=["getFormProps"];je.forwardRef((e,t)=>{const{children:n}=e,o=Ux(e,HE),a=function(e){const t=kx(Ux(e,WE)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=je.useState({}),s=je.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),c(Wx({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=je.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),c=je.useCallback(e=>{i(t=>Wx({},t,{[e.name]:e}))},[a]);return Wx({getFormProps:l,updateStep:c,steps:a},t)}(e),{getFormProps:i}=a,s=Ux(a,qE),l=je.useMemo(()=>s,[s]);return je.createElement(Ex,{value:l},/*#__PURE__*/je.createElement(UE,{value:l},/*#__PURE__*/je.createElement(cE,Wx({ref:t},o,i()),r(n,a))))});const YE=e=>sE(e.properties),ZE=t=>({schema:t,fieldResolver:YE(t),resolver:e(t)});export{ZE as jsonSchemaForm};
|
95
|
+
return je.createElement(va.svg,Fb({verticalAlign:"middle",viewBox:p},f,d),m)});function $b(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,r=e.d,o=e.displayName,a=e.defaultProps,i=void 0===a?{}:a,s=je.Children.toArray(e.path),l=/*#__PURE__*/ua(function(e,t){/*#__PURE__*/
|
96
|
+
return je.createElement(Ub,Fb({ref:t,viewBox:n},i,e),s.length?s:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:r}))});return d&&(l.displayName=o),l}d&&(Ub.displayName="Icon"),$b({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),$b({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),$b({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),$b({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),$b({displayName:"SunIcon",path:/*#__PURE__*/je.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/je.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/je.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/je.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/je.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/je.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Hb=$b({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});$b({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/je.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),$b({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),$b({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),$b({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),$b({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var qb=$b({displayName:"ViewIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Yb=$b({displayName:"ViewOffIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/je.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});$b({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),$b({displayName:"DeleteIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),$b({displayName:"RepeatIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),$b({displayName:"RepeatClockIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/je.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),$b({displayName:"EditIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/je.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),$b({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),$b({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Zb=$b({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});$b({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),$b({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),$b({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),$b({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),$b({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),$b({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),$b({displayName:"ExternalLinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/je.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/je.createElement("path",{d:"M10 14L21 3"}))}),$b({displayName:"LinkIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/je.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),$b({displayName:"PlusSquareIcon",path:/*#__PURE__*/je.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/je.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/je.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/je.createElement("path",{d:"M8 12h8"}))}),$b({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),$b({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),$b({displayName:"TimeIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/je.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),$b({displayName:"ArrowRightIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),$b({displayName:"ArrowLeftIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/je.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),$b({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),$b({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),$b({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),$b({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),$b({displayName:"EmailIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/je.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),$b({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),$b({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),$b({displayName:"SpinnerIcon",path:/*#__PURE__*/je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement("defs",null,/*#__PURE__*/je.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/je.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/je.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/je.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/je.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/je.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/je.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),$b({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),$b({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/je.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),$b({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),$b({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),$b({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),$b({displayName:"InfoOutlineIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/je.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/je.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/je.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),$b({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),$b({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),$b({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/je.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/je.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/je.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/je.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),$b({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),$b({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Gb=$b({viewBox:"0 0 14 14",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Xb=$b({displayName:"MinusIcon",path:/*#__PURE__*/je.createElement("g",{fill:"currentColor"},/*#__PURE__*/je.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}$b({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});const Jb=["label","children"],Qb=ua((e,t)=>{let{label:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,Jb);return je.createElement(Hp,Kb({ref:t},o),r||n)});function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(this,arguments)}d&&(Qb.displayName="Button");const tx=ua((e,t)=>/*#__PURE__*/je.createElement(gv,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/je.createElement(Qb,ex({ref:t,height:"auto"},e))));function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}tx.id="InputRightElement",d&&(tx.displayName="InputRightButton");const rx=["viewIcon","viewOffIcon","autoComplete","w","width","size","variant"],ox=ua((e,t)=>{const{viewIcon:n,viewOffIcon:r,autoComplete:o,w:a,width:i,size:s,variant:l}=e,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,rx),[c,d]=je.useState(!1),f=c?"Hide password":"Show password";let p;return p=c?n||/*#__PURE__*/je.createElement(qb,null):r||/*#__PURE__*/je.createElement(Yb,null),/*#__PURE__*/je.createElement(av,{width:a||i,size:s,variant:l},/*#__PURE__*/je.createElement(ev,nx({},u,{ref:t,type:c?"text":"password",autoComplete:c?"off":o})),/*#__PURE__*/je.createElement(tx,{onClick:()=>d(!c),"aria-label":f,variant:"ghost"},p))});function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function ix(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(ox.displayName="PasswordInput");const sx=["options","spacing","direction"],lx=["onBlur","onChange"],ux=["value","label"],cx=ua((e,t)=>{let{options:n,spacing:r,direction:o}=e,a=ix(e,sx);const{onBlur:i,onChange:s}=a,l=ix(a,lx);return je.createElement(vb,ax({onChange:s},l),/*#__PURE__*/je.createElement(Qv,{spacing:r,direction:o},n.map((e,n)=>{let{value:r,label:o}=e,a=ix(e,ux);return je.createElement(bb,ax({key:n,onBlur:i,value:r,ref:t},a),o||r)})))});function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}function fx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(cx.displayName="RadioInput");const px=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],mx=["value","label"],vx=ua((e,t)=>{const n=pa("Input",e),r=n.field._focusVisible,o=dx({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:n.field.h||n.field.height,_focus:r,_expanded:r},n.field,{h:"auto"});return je.createElement(pg,dx({as:Hp},e,{ref:t,sx:o}))});d&&(vx.displayName="SelectButton");const hx=ua((e,t)=>{const{name:n,options:r,children:o,onChange:a,defaultValue:i,value:s,placeholder:l,isDisabled:u,leftIcon:c,rightIcon:d=/*#__PURE__*/je.createElement(Zb,null),multiple:f,size:p,variant:m,menuListProps:v,renderValue:h=(e=>null==e?void 0:e.join(", "))}=e,y=ta(fx(e,px)),[g,b]=je.useState(s||i),x=cm({name:n}),E={isDisabled:u,leftIcon:c,rightIcon:d,size:p,variant:m},w=je.useCallback(e=>{if(!r)return e;for(const t of r)if(t.label&&t.value===e)return t.label;return e},[r]),k=g?(Array.isArray(g)?g:[g]).map(w):[];return je.createElement(dg,dx({},y,{closeOnSelect:!f}),/*#__PURE__*/je.createElement(va.div,{className:S("saas-select")},/*#__PURE__*/je.createElement(vx,dx({ref:t},E),h(k)||l),/*#__PURE__*/je.createElement(hg,dx({maxH:"60vh",overflowY:"auto"},v),/*#__PURE__*/je.createElement(xg,{defaultValue:i||s,onChange:e=>{b(e),null==a||a(e)},type:f?"checkbox":"radio"},r?r.map((e,t)=>{let{value:n,label:r}=e,o=fx(e,mx);return je.createElement(bg,dx({key:t,value:n},o),r||n)}):o)),/*#__PURE__*/je.createElement(va.input,dx({},x,{name:n,type:"hidden",value:g,className:"saas-select__input"}))))});d&&(hx.displayName="Select");const yx=["options","children"],gx=ua((e,t)=>{let{options:n,children:r}=e,o=fx(e,yx);return je.createElement(Ob,dx({ref:t},o),r||(null==n?void 0:n.map(({value:e,label:t})=>/*#__PURE__*/je.createElement("option",{key:e,value:e},t||e))))});function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}function xx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(gx.displayName="NativeSelect");const[Ex,wx]=Jn({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function kx(e){const{step:t,onChange:n}=e,[r,o]=je.useState(-1),a=je.useRef([]),[,i]=je.useState(Date.now()),s=je.useCallback(e=>{const t=[...a.current];-1===t.indexOf(e)&&t.push(e),a.current=t,i(Date.now())},[a,i]),l=e=>{const t=a.current.indexOf(e);-1!==t&&o(t)};return je.useEffect(()=>{"string"==typeof t?l(t):"number"==typeof t?o(t):-1===r&&o(0)},[t]),je.useEffect(()=>{null==n||n(r)},[r,n]),{stepsRef:a,activeStep:a.current[r],activeIndex:r,isFirstStep:0===r,isLastStep:r===a.current.length-1,isCompleted:r>=a.current.length,setIndex:o,setStep:l,nextStep:()=>{o(r+1)},prevStep:()=>{o(r-1)},registerStep:s,unregisterStep:e=>{a.current=a.current.slice(a.current.indexOf(e),1)}}}const Sx=["orientation","children"],Cx=["children","orientation","step","onChange"],Ox=["children","orientation","stepComponent"],_x=["children","isOpen"],Nx=["icon","isActive","isCompleted","className"],Rx=["name","title","icon","isActive","isCompleted"],Ax=["isActive"],[Ix,Px]=ea("Stepper"),Tx=ua((e,t)=>{const{orientation:n,children:r}=e,o=xx(e,Sx);return je.createElement(Lx,bx({ref:t,orientation:n},o),/*#__PURE__*/je.createElement(Mx,{orientation:n},r))});d&&(Tx.displayName="Stepper");const Lx=ua((e,t)=>{const{children:n,orientation:r="horizontal"}=e,o=xx(e,Cx),a=pa("Stepper",bx({},o,{orientation:r})),i=ta(o),s=kx(e),l=bx({display:"flex",flexDirection:"column"},a.container);return je.createElement(Ix,{value:a},/*#__PURE__*/je.createElement(Ex,{value:s},/*#__PURE__*/je.createElement(va.div,bx({ref:t,__css:l},i,{className:S("saas-stepper",e.className)}),n)))});d&&(Lx.displayName="StepperContainer");const Mx=e=>{var t,n;const{children:r,orientation:o="horizontal",stepComponent:a}=e,i=xx(e,Ox),s=Px(),{activeIndex:l}=wx(),u=bx({display:"flex",flexDirection:"row",alignItems:"center"},s.steps),c="vertical"===o,d=a||Vx,f=(h=d,je.Children.toArray(r).filter(e=>Array.isArray(h)?h.some(t=>t===e.type):e.type===h)),p=f.reduce((e,t,n,r)=>(e.push(/*#__PURE__*/je.createElement(d,bx({key:n},t.props,{icon:t.props.icon||n+1,isActive:l===n,isCompleted:t.props.isCompleted||l>n}))),c&&e.push(/*#__PURE__*/je.createElement(jx,{key:`content-${n}`,isOpen:l===n},t.props.children)),n<r.length-1&&e.push(/*#__PURE__*/je.createElement(Bx,{key:`separator-${n}`,isActive:n<l})),e),[]),m=function(e,t){return je.Children.toArray(e).find(e=>e.type===t)}(r,zx),v=l>=f.length?m:c?null:/*#__PURE__*/je.createElement(jx,null,null==(t=f[l])||null==(n=t.props)?void 0:n.children);var h;return je.createElement(je.Fragment,null,/*#__PURE__*/je.createElement(va.div,bx({__css:u},i,{className:S("saas-stepper__steps",e.className)}),p),v)};d&&(Mx.displayName="StepperSteps");const jx=e=>{const{children:t,isOpen:n=!0}=e,r=xx(e,_x),o=Px();return je.createElement(va.div,bx({__css:o.content},r,{className:S("saas-stepper__content",e.className)}),/*#__PURE__*/je.createElement(sp,{in:n},t))};d&&(jx.displayName="StepperContent");const Dx=e=>{const{icon:t,isCompleted:n,className:r}=e,o=xx(e,Nx),a=bx({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},Px().icon);let i;return i=n?/*#__PURE__*/je.createElement(Ub,{as:Gb}):t,/*#__PURE__*/je.createElement(va.div,bx({__css:a},o,{className:S("saas-stepper__icon",r)}),i)};d&&(Dx.displayName="StepperIcon");const Vx=e=>{const{title:t,icon:n,isActive:r,isCompleted:o}=e,a=xx(e,Rx),i=function(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:a,activeStep:i}=wx();return je.useEffect(()=>{if(t)return o(t),()=>{a(t)}},[]),{isActive:t?i===t:n,isCompleted:r}}(e),s=bx({display:"flex",alignItems:"center",flexDirection:"row"},Px().step);return je.createElement(va.div,bx({},a,{__css:s,"data-active":O(i.isActive),"data-completed":O(i.isCompleted),className:S("saas-stepper__step",e.className)}),/*#__PURE__*/je.createElement(Dx,{icon:n,isActive:r,isCompleted:o}),t&&/*#__PURE__*/je.createElement(Fx,null,t))};d&&(Vx.displayName="StepperStep");const Bx=e=>{const{isActive:t}=e,n=xx(e,Ax),r=bx({flex:1,mx:2},Px().separator);return je.createElement(va.div,bx({},n,{"data-active":O(t),className:S("saas-stepper__separator",e.className),__css:r}))};d&&(Bx.displayName="StepperSeparator");const Fx=e=>{const t=Px();return je.createElement(va.p,bx({},e,{__css:t.title,className:S("saas-stepper__title",e.className)}))};d&&(Fx.displayName="StepperStepTitle");const zx=e=>{const t=Px();return je.createElement(va.div,bx({__css:t.completed},e,{className:S("saas-stepper__completed",e.className)}))};function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}function Ux(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}d&&(zx.displayName="StepperCompleted");const $x=["name","label","help","hideLabel","children"],Hx=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules"],qx=["name","rules"],Yx=["ref"],Zx=["name","rules"],Gx=["ref"],Xx=["type","leftAddon","rightAddon","size"],Kx=["type"],Jx=["label","type"],Qx=["pinLength","pinType","spacing"],eE={},tE="text",nE=e=>{const{name:t,label:n,help:r,hideLabel:o,children:a}=e,i=Ux(e,$x),{formState:s}=Y(),l=((e,t)=>Z(t.errors,e))(t,s);return je.createElement(im,Wx({},i,{isInvalid:!!l}),n&&!o?/*#__PURE__*/je.createElement(ym,null,n):null,/*#__PURE__*/je.createElement(Ov,null,a,!r||null!=l&&l.message?null:/*#__PURE__*/je.createElement(sm,null,r),(null==l?void 0:l.message)&&/*#__PURE__*/je.createElement(vm,null,null==l?void 0:l.message)))};d&&(nE.displayName="BaseField");const rE=je.forwardRef((e,t)=>{const{type:n=tE}=e;return je.createElement(eE[n]||eE[tE],Wx({ref:t},e))}),oE=(e,t,n)=>{let r;r=null!=n&&n.isControlled?(e=>ua((t,n)=>{let{name:r,rules:o}=t,i=Ux(t,qx);const{control:s}=Y();return je.createElement(J,{name:r,control:s,rules:o,render:t=>{let{field:{ref:r}}=t,o=Ux(t.field,Yx);return je.createElement(e,Wx({},o,i,{onChange:a(i.onChange,o.onChange),onBlur:a(i.onBlur,o.onBlur),ref:dr(n,r)}))}})}))(t):(e=>ua((t,n)=>{let{name:r,rules:o}=t,i=Ux(t,Zx);const{register:s}=Y(),l=s(r,o),{ref:u}=l,c=Ux(l,Gx);return je.createElement(e,Wx({},c,i,{onChange:a(i.onChange,c.onChange),onBlur:a(i.onBlur,c.onBlur),ref:dr(n,u)}))}))(t);const o=((e,{displayName:t,hideLabel:n,BaseField:r})=>{const o=ua((t,o)=>{const{id:a,name:i,label:s,help:l,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f,rules:p}=t,m=Ux(t,Hx),v=Wx({required:f},p);return je.createElement(r,{id:a,name:i,label:s,help:l,hideLabel:n,isDisabled:u,isInvalid:c,isReadOnly:d,isRequired:f},/*#__PURE__*/je.createElement(e,Wx({ref:o,id:a,name:i,label:n?s:void 0,rules:v},m)))});return o.displayName=t,o})(r,{displayName:`${e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||nE});return eE[e]=o,o};oE("text",ua((e,t)=>{let{type:n="text",leftAddon:r,rightAddon:o,size:a}=e,i=Ux(e,Xx);const s=/*#__PURE__*/je.createElement(ev,Wx({type:n,size:a},i,{ref:t}));return r||o?/*#__PURE__*/je.createElement(av,{size:a},r,s,o):s})),oE("number",Bb,{isControlled:!0}),oE("password",ua((e,t)=>/*#__PURE__*/je.createElement(ox,Wx({ref:t},e)))),oE("textarea",jb),oE("switch",ua((e,t)=>{let n=Ux(e,Kx);return je.createElement(Pb,Wx({},n,{ref:t}))}),{isControlled:!0}),oE("select",hx,{isControlled:!0}),oE("checkbox",ua((e,t)=>{let{label:n}=e,r=Ux(e,Jx);return je.createElement(qm,Wx({ref:t},r),n)}),{hideLabel:!0}),oE("radio",cx,{isControlled:!0}),oE("native-select",gx,{isControlled:!0}),oE("pin",ua((e,t)=>{const{pinLength:n=4,pinType:r,spacing:o}=e,a=Ux(e,Qx),i=[];for(let e=0;e<n;e++)i.push(/*#__PURE__*/je.createElement(sb,{key:e,ref:t}));return je.createElement(eh,{spacing:o},/*#__PURE__*/je.createElement(ib,Wx({},a,{type:r}),i))}),{isControlled:!0});const aE=["items","label","title"],iE=e=>e&&Object.entries(e).map(([e,t])=>{let{label:n,title:r}=t;return Wx({},Ux(t,aE),{name:e,label:n||r})}),sE=e=>({getFields:()=>iE(e),getNestedFields:t=>{var n;const r=q(e,t);return r?"object"===(null==(n=r.items)?void 0:n.type)?iE(r.items.properties):"object"===r.type?iE(r.properties):[r.items]:[]}}),lE=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onChange","onSubmit","onError","formRef","children"],uE=ua((e,t)=>{const{mode:n="all",resolver:o,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:u,delayError:c,schema:d,defaultValues:f,onChange:p,onSubmit:m,onError:v,formRef:h,children:y}=e,g=Ux(e,lE),b={mode:n,resolver:o,defaultValues:f,reValidateMode:a,shouldFocusError:i,shouldUnregister:s,shouldUseNativeValidation:l,criteriaMode:u,delayError:c};d&&!o&&(b.resolver=null==uE.getResolver?void 0:uE.getResolver(d));const x=X(b),{handleSubmit:E}=x;return je.useImperativeHandle(t,()=>x,[t,x]),je.useEffect(()=>{let e;return p&&(e=x.watch(p)),()=>{var t;return null==(t=e)?void 0:t.unsubscribe()}},[x,p]),/*#__PURE__*/je.createElement(K,x,/*#__PURE__*/je.createElement(va.form,Wx({ref:h,onSubmit:E(m,v)},g,{className:S("saas-form",e.className)}),r(y,x)))});uE.getFieldResolver=sE,d&&(uE.displayName="Form");const cE=["children"],dE=({children:e})=>/*#__PURE__*/je.createElement(va.div,null,e);d&&(dE.displayName="FormLayoutItem");const fE=e=>{var t,n,r;let{children:o}=e,a=Ux(e,cE);const i=Wx({},null!=(t=null==(n=Qo().components)||null==(r=n.FormLayout)?void 0:r.defaultProps)?t:{spacing:4},a);return je.createElement(Zv,Wx({},i,{className:S("saas-form__layout",a.className)}),je.Children.map(o,e=>je.isValidElement(e)?/*#__PURE__*/je.createElement(dE,null,e):e))};d&&(fE.displayName="FormLayout");const pE=(e,t)=>je.Children.map(t,t=>je.isValidElement(t)&&t.props.name?je.cloneElement(t,Wx({},t.props,{name:`${e}.${t.props.name}`})):t),[mE,vE]=Jn({name:"ArrayFieldContext"}),[hE,yE]=Jn({name:"ArrayFieldRowContext"}),gE=["children","index"],bE=["children"],xE=["children"],EE=["name","defaultValue","keyName","min","max","children"],wE=e=>{let{children:t,index:n}=e,r=Ux(e,gE);return je.createElement(SE,{index:n},/*#__PURE__*/je.createElement(kE,r,t),/*#__PURE__*/je.createElement(CE,null))};d&&(wE.displayName="ArrayFieldRow");const kE=e=>{let{children:t}=e,n=Ux(e,bE);const{name:r}=yE();return je.createElement(fE,Wx({flex:"1",mr:"2"},n),pE(r,t))};d&&(kE.displayName="ArrayFieldRowFields");const SE=({children:e,index:t})=>{const n=(({index:e})=>{const{clearErrors:t}=Y(),{name:n,remove:r,fields:o}=vE();return je.useEffect(()=>{t(n)},[]),{index:e,isFirst:0===e,isLast:e===o.length-1,name:`${n}.${e}`,remove:je.useCallback(()=>{t(n),r(e)},[e])}})({index:t});return je.createElement(hE,{value:n},/*#__PURE__*/je.createElement(va.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},e))};d&&(SE.displayName="ArrayFieldRowContainer");const CE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Xb,null),"aria-label":"Remove row"},(()=>{const{isFirst:e,remove:t}=yE(),{min:n,fields:r}=vE();return{onClick:()=>t(),isDisabled:e&&!!(n&&r.length<=n)}})(),e));d&&(CE.displayName="ArrayFieldRemoveButton");const OE=e=>/*#__PURE__*/je.createElement(Zp,Wx({icon:/*#__PURE__*/je.createElement(Hb,null),"aria-label":"Add row",float:"right"},(()=>{const{append:e,defaultValue:t,max:n,fields:r}=vE();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(n&&r.length>=n)}})(),e));d&&(OE.displayName="ArrayFieldAddButton");const _E=ua((e,t)=>{const{children:n}=e,r=Ux(e,xE);return je.createElement(RE,Wx({ref:t},r),/*#__PURE__*/je.createElement(NE,null,e=>/*#__PURE__*/je.createElement(je.Fragment,null,e.map(({id:e},t)=>/*#__PURE__*/je.createElement(wE,{key:e,index:t},n)))),/*#__PURE__*/je.createElement(OE,null))});d&&(_E.displayName="ArrayField");const NE=({children:e})=>{const{fields:t}=vE();return e(t)};d&&(NE.displayName="ArrayFieldRows");const RE=je.forwardRef((e,t)=>{let{name:n,defaultValue:r,keyName:o,min:a,max:i,children:s}=e,l=Ux(e,EE);const u=(({name:e,defaultValue:t={},keyName:n,min:r,max:o})=>{const{control:a}=Y();return Wx({},G({control:a,name:e,keyName:n}),{name:e,defaultValue:t,min:r,max:o})})({name:n,defaultValue:r,keyName:o,min:a,max:i});return je.useImperativeHandle(t,()=>u,[t,u]),/*#__PURE__*/je.createElement(mE,{value:u},/*#__PURE__*/je.createElement(nE,Wx({name:n},l),s))});d&&(RE.displayName="ArrayFieldContainer");const AE=["name","label","hideLabel","children","columns","spacing"],IE=e=>{const t=fa("FormLegend");return je.createElement(ym,Wx({as:"legend",sx:t},e))},PE=e=>{const{name:t,label:n,hideLabel:r,children:o,columns:a,spacing:i}=e,s=Ux(e,AE);return je.createElement(im,Wx({name:t,as:"fieldset"},s),/*#__PURE__*/je.createElement(IE,{display:r?"none":"block"},n),/*#__PURE__*/je.createElement(fE,{columns:a,gridGap:i},pE(t,o)))};d&&(PE.displayName="ObjectField");const TE=["name","type"],LE=["schema","fieldResolver","focusFirstField"],ME=["name","type","defaultValue"],jE=(e,t)=>{var n;return null==(n=e.getNestedFields(t))?void 0:n.map((e,t)=>{let{name:n,type:r}=e,o=Ux(e,TE);return je.createElement(rE,Wx({key:n||t,name:n,type:r},o))})},DE=e=>{let{schema:t,fieldResolver:n,focusFirstField:r}=e,o=Ux(e,LE);const a=je.useMemo(()=>n||uE.getFieldResolver(t),[t,n]),i=je.useMemo(()=>a.getFields(),[a]),s=Y();return je.useEffect(()=>{var e;r&&null!=(e=i[0])&&e.name&&s.setFocus(i[0].name)},[t,n,r]),/*#__PURE__*/je.createElement(fE,o,i.map(e=>{let{name:t,type:n}=e,r=Ux(e,ME);return"array"===n?/*#__PURE__*/je.createElement(_E,Wx({key:t,name:t},r),jE(a,t)):"object"===n?/*#__PURE__*/je.createElement(PE,Wx({key:t,name:t},r),jE(a,t)):/*#__PURE__*/je.createElement(rE,Wx({key:t,name:t,type:n},r))}))};d&&(DE.displayName="Fields");const VE=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],BE=je.forwardRef((e,t)=>{const{children:n,disableIfUntouched:r,disableIfInvalid:o,isDisabled:a,isLoading:i}=e,s=Ux(e,VE),{formState:l}=Y();return je.createElement(Qb,Wx({},s,{ref:t,variant:"primary",type:"submit",isLoading:l.isSubmitting||i,isDisabled:r&&!l.isDirty||o&&!l.isValid||a}),n)});BE.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},d&&(BE.displayName="SubmitButton");const FE=["schema","submitLabel","fieldResolver","children"],zE=ua((e,t)=>{const{schema:n,submitLabel:r="Submit",fieldResolver:o,children:a}=e,i=Ux(e,FE);return je.createElement(uE,Wx({},i,{schema:n,ref:t}),/*#__PURE__*/je.createElement(fE,null,/*#__PURE__*/je.createElement(DE,{schema:n,fieldResolver:o}),r&&/*#__PURE__*/je.createElement(BE,null,r),a))});d&&(zE.displayName="AutoForm");const WE=["onChange"],[UE,$E]=Jn({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"}),HE=["children"],qE=["getFormProps"];je.forwardRef((e,t)=>{const{children:n}=e,o=Ux(e,HE),a=function(e){const t=kx(Ux(e,WE)),{activeStep:n,isLastStep:r,nextStep:o}=t,[a,i]=je.useState({}),s=je.useCallback(async i=>{try{const s=a[n];if(r)return await(null==e.onSubmit?void 0:e.onSubmit(i)),u(Wx({},s,{isCompleted:!0})),void o();await(null==s.onSubmit?void 0:s.onSubmit(i,t)),o()}catch(i){}},[a,n,r]),l=je.useCallback(()=>{const e=a[n];return{onSubmit:s,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[a,s,n]),u=je.useCallback(e=>{i(t=>Wx({},t,{[e.name]:e}))},[a]);return Wx({getFormProps:l,updateStep:u,steps:a},t)}(e),{getFormProps:i}=a,s=Ux(a,qE),l=je.useMemo(()=>s,[s]);return je.createElement(Ex,{value:l},/*#__PURE__*/je.createElement(UE,{value:l},/*#__PURE__*/je.createElement(uE,Wx({ref:t},o,i()),r(n,a))))});const YE=e=>sE(e.properties),ZE=t=>({schema:t,fieldResolver:YE(t),resolver:e(t)});export{ZE as jsonSchemaForm};
|
97
97
|
//# sourceMappingURL=index.modern.js.map
|